@inkeep/open-knowledge 0.3.0 → 0.4.0-beta.6

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 (571) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +658 -0
  2. package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
  3. package/dist/assets/skills/open-knowledge/SKILL.md +145 -52
  4. package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
  5. package/dist/{banner-BxI1wnW9.mjs → banner-DdbR6AZr.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
  9. package/dist/build-B6buVrsB.mjs +2 -0
  10. package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
  12. package/dist/{chokidar-CblsKfnx.mjs → chokidar-CxU7f6JW.mjs} +1 -1
  13. package/dist/{chunk-24IMIIXA-Bz7rlZT3.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
  14. package/dist/{chunk-3THT3N7L-klp8GP84.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
  15. package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-qsYuZX7b.mjs} +1 -1
  16. package/dist/{chunk-44UOCSGV-BUBpWxXm.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
  17. package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-PuLVuVJW.mjs} +2 -2
  18. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-CQ53AiA_.mjs} +1 -1
  19. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-BlQvqCag.mjs} +2 -2
  20. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-DLwfww5b.mjs} +2 -2
  21. package/dist/{chunk-5QMZ5MUS-DWTkM0vM.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
  22. package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-dbrKfPGl.mjs} +2 -2
  23. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-DMPvCPbn.mjs} +2 -2
  24. package/dist/{chunk-62RKD26F-D-luOa0m.mjs → chunk-62RKD26F-B9la0pfD.mjs} +2 -2
  25. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-D92CLSK-.mjs} +2 -2
  26. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-BcZUJMO1.mjs} +1 -1
  27. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-D7Z_Qw_C.mjs} +1 -1
  28. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-DUQhJkDy.mjs} +1 -1
  29. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-DKLaJeys.mjs} +1 -1
  30. package/dist/{chunk-A4JSPFCI-U-xWmMMC.mjs → chunk-A4JSPFCI-CEm2r8SB.mjs} +2 -2
  31. package/dist/{chunk-A5O5YHGN-C7BVq0eF.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
  32. package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-DV6RO_es.mjs} +2 -2
  33. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-dTNL-45u.mjs} +1 -1
  34. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-BvXPAaHu.mjs} +2 -2
  35. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-Cu6JFoC4.mjs} +2 -2
  36. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DmUrFuRy.mjs} +2 -2
  37. package/dist/{chunk-BBXLRYSX-DURjrblE.mjs → chunk-BBXLRYSX-K758HlCs.mjs} +2 -2
  38. package/dist/{chunk-BRGMQKJV-CdrkqzRA.mjs → chunk-BRGMQKJV-BXc-9Cgj.mjs} +3 -3
  39. package/dist/{chunk-CR5AFCPT-ROmyDFrB.mjs → chunk-CR5AFCPT-DxNsgM0M.mjs} +2 -2
  40. package/dist/{chunk-CWQS3NFK-DFdwmFxJ.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
  41. package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-DkHLjHX6.mjs} +2 -2
  42. package/dist/{chunk-D6CWQ5DW-B-J4LN9N.mjs → chunk-D6CWQ5DW-7lvT8dGP.mjs} +2 -2
  43. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-D8jJZr4A.mjs} +2 -2
  44. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-C3s1D8OY.mjs} +2 -2
  45. package/dist/{chunk-DXB73IDG-C774okS0.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
  46. package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CETL3_Uw.mjs} +1 -1
  47. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-DOoQW9jQ.mjs} +2 -2
  48. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-BK2tpXPf.mjs} +2 -2
  49. package/dist/{chunk-F55TLFGB-DqkrAMO5.mjs → chunk-F55TLFGB-Vy5RU2P3.mjs} +2 -2
  50. package/dist/{chunk-FEIOJCZD-C4x0A4rb.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
  51. package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-Di-RB9Qt.mjs} +1 -1
  52. package/dist/{chunk-GFQRA5P5-1fzItQ8F.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
  53. package/dist/{chunk-GOV5EKKI-PN17n-Z0.mjs → chunk-GOV5EKKI-CKV9jOGv.mjs} +2 -2
  54. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-CUKDClxt.mjs} +2 -2
  55. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-MTQ75a8z.mjs} +2 -2
  56. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-D-8Vc6Zb.mjs} +1 -1
  57. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-XrOcsn2f.mjs} +2 -2
  58. package/dist/{chunk-HWBSOZZR-Dikp87Ww.mjs → chunk-HWBSOZZR-BZF8XsyZ.mjs} +2 -2
  59. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-wgmyck2O.mjs} +2 -2
  60. package/dist/{chunk-I57KEIP3-B1DoH8rp.mjs → chunk-I57KEIP3-DipCOPKf.mjs} +2 -2
  61. package/dist/{chunk-IPJHKYVM-BbWncVr2.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
  62. package/dist/{chunk-J642UCRS-DB77Y2Wt.mjs → chunk-J642UCRS-YiNealfn.mjs} +2 -2
  63. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-VMFWXimu.mjs} +2 -2
  64. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-pRogdye4.mjs} +2 -2
  65. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-ByBS5IDP.mjs} +2 -2
  66. package/dist/{chunk-LPQPILI2-BXfU9TgM.mjs → chunk-LPQPILI2-FRQB9gt5.mjs} +2 -2
  67. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-46S7WKw8.mjs} +2 -2
  68. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DdGmM3wr.mjs} +2 -2
  69. package/dist/{chunk-MDDMCKUK-D6GWoJsI.mjs → chunk-MDDMCKUK-CuRdI1Uv.mjs} +2 -2
  70. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-Wd1iVjXi.mjs} +2 -2
  71. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-BWrqic3t.mjs} +1 -1
  72. package/dist/{chunk-MIZPJHVH-z-geAni9.mjs → chunk-MIZPJHVH-DWdPvcYR.mjs} +2 -2
  73. package/dist/{chunk-MLXIYONF-DB-C8Hx8.mjs → chunk-MLXIYONF-CiCzoeGt.mjs} +2 -2
  74. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DJo74dVC.mjs} +2 -2
  75. package/dist/{chunk-NAERJDUW-CX0lf-xx.mjs → chunk-NAERJDUW-CIHrNgJB.mjs} +2 -2
  76. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-BVljycUZ.mjs} +2 -2
  77. package/dist/{chunk-NUYSJFDK-D2NXm2ND.mjs → chunk-NUYSJFDK-BTseBdxv.mjs} +2 -2
  78. package/dist/{chunk-NYQYO467-Degkom4D.mjs → chunk-NYQYO467-BgXuDHUQ.mjs} +2 -2
  79. package/dist/{chunk-OARHFVLG-CY8D2Qov.mjs → chunk-OARHFVLG-Cr0x3Si_.mjs} +2 -2
  80. package/dist/{chunk-OCLXQMOG-BMsyLQhm.mjs → chunk-OCLXQMOG-BW6rwyzS.mjs} +2 -2
  81. package/dist/{chunk-OCS6LSEM-BHslttnj.mjs → chunk-OCS6LSEM-D7VAOziZ.mjs} +2 -2
  82. package/dist/{chunk-OJDRYQWQ-BV5MVRVg.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
  83. package/dist/{chunk-OL3S66CO-Bmgu4tW4.mjs → chunk-OL3S66CO-CQnF8cPH.mjs} +2 -2
  84. package/dist/{chunk-PBXLG62G-lGjqkk78.mjs → chunk-PBXLG62G-CgbPJTiw.mjs} +2 -2
  85. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-CO4MYU__.mjs} +1 -1
  86. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-DsRn64Ef.mjs} +2 -2
  87. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-BUMOhlW7.mjs} +2 -2
  88. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-F0_rcDPM.mjs} +2 -2
  89. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-CeW6f7-x.mjs} +1 -1
  90. package/dist/{chunk-R6VWJ2ZL-B0CcMPyK.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
  91. package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-BmkapBPD.mjs} +2 -2
  92. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-DkebEzkd.mjs} +2 -2
  93. package/dist/{chunk-SYMJJMQ4-CWTh95-4.mjs → chunk-SYMJJMQ4-DOZMaECk.mjs} +2 -2
  94. package/dist/{chunk-T56QNPHK-DlKQeuXU.mjs → chunk-T56QNPHK-DPXaSSfC.mjs} +2 -2
  95. package/dist/{chunk-TLSUDHID-B8UnqY4U.mjs → chunk-TLSUDHID-BovZg0r1.mjs} +2 -2
  96. package/dist/{chunk-TOMNU26N-BcdbBQ2p.mjs → chunk-TOMNU26N-AAglMy4J.mjs} +2 -2
  97. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-WeVWfqYv.mjs} +2 -2
  98. package/dist/{chunk-UNYNJIFU-DwPQMz0F.mjs → chunk-UNYNJIFU-CqGlXAg7.mjs} +3 -3
  99. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-DQgGPvBY.mjs} +2 -2
  100. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-DIo0Ia0_.mjs} +2 -2
  101. package/dist/{chunk-VLGZJRPG-D4NVKJYL.mjs → chunk-VLGZJRPG-DymOu90-.mjs} +2 -2
  102. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-Bfa1NTzt.mjs} +2 -2
  103. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-PBsHe2md.mjs} +2 -2
  104. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-KO2zkfs2.mjs} +2 -2
  105. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-D5w6wtaX.mjs} +1 -1
  106. package/dist/{chunk-XHM67O4N-Cg35xc6b.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
  107. package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-RHzVmuiF.mjs} +2 -2
  108. package/dist/{chunk-XORM457F-CRToN1RQ.mjs → chunk-XORM457F-wr_DBBnV.mjs} +2 -2
  109. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-DxaG1FfA.mjs} +2 -2
  110. package/dist/{chunk-YCFVLTST-Ox9Z0Nk6.mjs → chunk-YCFVLTST-Dzwevuc3.mjs} +2 -2
  111. package/dist/{chunk-YFG2CMIF-Csgr05KV.mjs → chunk-YFG2CMIF-BoZQym0L.mjs} +2 -2
  112. package/dist/{chunk-YNYSPYQ5-BpP11HXS.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
  113. package/dist/{chunk-YS3AZT3J-BEZxz_aQ.mjs → chunk-YS3AZT3J-CBc9LHIy.mjs} +2 -2
  114. package/dist/{chunk-YTNYSM6T-DuBR2-TM.mjs → chunk-YTNYSM6T-WMIf3AF8.mjs} +2 -2
  115. package/dist/{chunk-Z6LRHWXI-DbRghyzT.mjs → chunk-Z6LRHWXI-DGTVoTuf.mjs} +2 -2
  116. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-Cb4YKOCM.mjs} +2 -2
  117. package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
  118. package/dist/cli.mjs +58 -1400
  119. package/dist/colors-BNufdynn.mjs +2 -0
  120. package/dist/colors-T3xmlXQT.mjs +1 -0
  121. package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
  122. package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
  123. package/dist/config-schema.json +87 -0
  124. package/dist/config.project-local.schema.json +30 -0
  125. package/dist/config.project.schema.json +59 -0
  126. package/dist/config.user.schema.json +58 -0
  127. package/dist/constants-Dc6GZ6j9.mjs +2 -0
  128. package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
  129. package/dist/{curl-47BFPSFW-Kn_Na_aU.mjs → curl-47BFPSFW-C2kRcGkX.mjs} +2 -2
  130. package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
  131. package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
  132. package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
  133. package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
  134. package/dist/dist-B6pNPboH.mjs +1609 -0
  135. package/dist/dist-DVM7wH81.mjs +359 -0
  136. package/dist/dist-DXLSMgBY.mjs +1 -0
  137. package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
  138. package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
  139. package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
  140. package/dist/{esm-BFkWzFey.mjs → esm-BbkJd7ro.mjs} +1 -1
  141. package/dist/{esm-wByiX8MO.mjs → esm-CEs3LWY3.mjs} +2 -2
  142. package/dist/{execAsync-0jii24p9.mjs → execAsync-CulVJBMN.mjs} +1 -1
  143. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-CzW9fUYQ.mjs} +1 -1
  144. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DuQoqWaW.mjs} +1 -1
  145. package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
  146. package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
  147. package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
  148. package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
  149. package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
  150. package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
  151. package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
  152. package/dist/{getMachineId-bsd-C1M346yz.mjs → getMachineId-bsd-DAmB-Ym0.mjs} +2 -2
  153. package/dist/{getMachineId-bsd-CPESl3L6.mjs → getMachineId-bsd-FYDP9w5Q.mjs} +2 -2
  154. package/dist/{getMachineId-bsd-DEUypOXJ.mjs → getMachineId-bsd-mPrX3ckm.mjs} +2 -2
  155. package/dist/{getMachineId-darwin-0hBTy7c8.mjs → getMachineId-darwin-B0Qw-MTj.mjs} +2 -2
  156. package/dist/{getMachineId-darwin-CJK3eX9q.mjs → getMachineId-darwin-C79HtyON.mjs} +2 -2
  157. package/dist/{getMachineId-darwin-Vupnt-kR.mjs → getMachineId-darwin-Co8Jnu5v.mjs} +2 -2
  158. package/dist/{getMachineId-linux-BGQn48cN.mjs → getMachineId-linux-BBORs2cS.mjs} +2 -2
  159. package/dist/{getMachineId-linux-CIp07XEX.mjs → getMachineId-linux-BizmCjYq.mjs} +2 -2
  160. package/dist/{getMachineId-linux-B2nkqMir.mjs → getMachineId-linux-BvLCCmKQ.mjs} +2 -2
  161. package/dist/{getMachineId-unsupported-CH1Q20xN.mjs → getMachineId-unsupported-Bgp-Es9j.mjs} +2 -2
  162. package/dist/{getMachineId-unsupported-DfSmC7Gy.mjs → getMachineId-unsupported-CbR45h2D.mjs} +2 -2
  163. package/dist/{getMachineId-unsupported-BnsanXR2.mjs → getMachineId-unsupported-DbGFOAw1.mjs} +2 -2
  164. package/dist/{getMachineId-win-BmmB_8yL.mjs → getMachineId-win-CT_Y5i_4.mjs} +2 -2
  165. package/dist/{getMachineId-win-DlPRChXs.mjs → getMachineId-win-Cy0XHq4X.mjs} +2 -2
  166. package/dist/{getMachineId-win-JnMJbIaW.mjs → getMachineId-win-D5gDnBHa.mjs} +2 -2
  167. package/dist/{git-handle-BhGnmvTB-BMB_49Sb.mjs → git-handle-DwfYp_z--CfyPz4Dz.mjs} +2 -2
  168. package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
  169. package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
  170. package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
  171. package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
  172. package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
  173. package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
  174. package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
  175. package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
  176. package/dist/index.d.mts +9 -2278
  177. package/dist/index.mjs +1 -1
  178. package/dist/init-B7qJnXKB.mjs +397 -0
  179. package/dist/init-DiH9oQ6_.mjs +1 -0
  180. package/dist/{is-object-BNVklKxg.mjs → is-object-DF0ZeuvD.mjs} +1 -1
  181. package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
  182. package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
  183. package/dist/{js-exec-M6UR76J5-DSk5_wnx.mjs → js-exec-M6UR76J5-IyD-lpzv.mjs} +3 -3
  184. package/dist/{lib-Dl2j2VNl.mjs → lib-BOCdCkg7.mjs} +1 -1
  185. package/dist/{libesm-DC4M2SkF.mjs → libesm-YL3Bqolr.mjs} +1 -1
  186. package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
  187. package/dist/loader-BQf8AJXb.mjs +4 -0
  188. package/dist/loader-C8lkPKn8.mjs +1 -0
  189. package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
  190. package/dist/{lzma-0LJzVZpl.mjs → lzma-vr8hBkhz.mjs} +2 -2
  191. package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
  192. package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
  193. package/dist/mrmime-C2W7cgq2.mjs +2 -0
  194. package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
  195. package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
  196. package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
  197. package/dist/{open-browser-BzMQ6cLf.mjs → open-browser-BZZK_gJj.mjs} +1 -1
  198. package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
  199. package/dist/preview-CN1rHXBb.mjs +1 -0
  200. package/dist/preview-DUTos2Es.mjs +3 -0
  201. package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
  202. package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
  203. package/dist/public/assets/{ActivityPanelDiffView-D-EUyEh6.js → ActivityPanelDiffView-DoHWP1ak.js} +1 -1
  204. package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
  205. package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
  206. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  207. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  208. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  209. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  210. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  211. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  212. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  213. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  214. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  215. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  216. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  217. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  218. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  219. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  220. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  221. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  222. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  223. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  224. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  225. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  226. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  227. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  228. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  229. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  230. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  231. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  232. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  233. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  234. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  235. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  236. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  237. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  238. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  239. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  240. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  241. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  242. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  243. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  244. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  245. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  246. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  247. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  248. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  249. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  250. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  251. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  252. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  253. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  254. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  255. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  256. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  257. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  258. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  259. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  260. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  261. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  262. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  263. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  264. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  265. package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
  266. package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
  267. package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
  268. package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
  269. package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
  270. package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
  271. package/dist/public/assets/{agent-presence-BXsx4eTl.js → agent-presence-Ds2n3U5P.js} +1 -1
  272. package/dist/public/assets/arc-BL_OKZmE.js +1 -0
  273. package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
  274. package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
  275. package/dist/public/assets/array-X0JlPOfd.js +1 -0
  276. package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
  277. package/dist/public/assets/{button-BPXuMr5W.js → button-BsFpqlpT.js} +1 -1
  278. package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
  279. package/dist/public/assets/channel-CR-xJel6.js +1 -0
  280. package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
  281. package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
  282. package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
  283. package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
  284. package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
  285. package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
  286. package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
  287. package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
  288. package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
  289. package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
  290. package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
  291. package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
  292. package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
  293. package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
  294. package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
  295. package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
  296. package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
  297. package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
  298. package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
  299. package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
  300. package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
  301. package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
  302. package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
  303. package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
  304. package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
  305. package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
  306. package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
  307. package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
  308. package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
  309. package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
  310. package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
  311. package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
  312. package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
  313. package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
  314. package/dist/public/assets/{compiler-runtime-Y11fyRVL.js → compiler-runtime-CVnuRdak.js} +1 -1
  315. package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
  316. package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
  317. package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
  318. package/dist/public/assets/dagre-BEdPLXba.js +1 -0
  319. package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
  320. package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
  321. package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
  322. package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
  323. package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
  324. package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
  325. package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
  326. package/dist/public/assets/{dist-DR1MrLJC.js → dist-B4kUko7n.js} +1 -1
  327. package/dist/public/assets/{dist-BqO6NfD-.js → dist-BH1b1nWB.js} +1 -1
  328. package/dist/public/assets/{dist-DlS42TIP.js → dist-BOapDt7N.js} +1 -1
  329. package/dist/public/assets/dist-CIRuNcH5.js +1 -0
  330. package/dist/public/assets/{dist-GlH2KPqY.js → dist-D08h1pJc.js} +1 -1
  331. package/dist/public/assets/{dist-D2wwoXzm.js → dist-S8LJmtzL.js} +1 -1
  332. package/dist/public/assets/{dist-DeDgmJv2.js → dist-VyzSEzD4.js} +1 -1
  333. package/dist/public/assets/{dist-CgLbXgrr.js → dist-nPpvoMNC.js} +1 -1
  334. package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
  335. package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
  336. package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
  337. package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
  338. package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
  339. package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
  340. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
  341. package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
  342. package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
  343. package/dist/public/assets/index-B1y9QLHF.js +1858 -0
  344. package/dist/public/assets/index-DoXig4bf.css +1 -0
  345. package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
  346. package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
  347. package/dist/public/assets/init-CBj3ecIW.js +1 -0
  348. package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
  349. package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
  350. package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
  351. package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
  352. package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
  353. package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
  354. package/dist/public/assets/katex-qwlL5fSd.js +257 -0
  355. package/dist/public/assets/line-_p5Px7MV.js +1 -0
  356. package/dist/public/assets/linear-DwuDS4qT.js +1 -0
  357. package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
  358. package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
  359. package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
  360. package/dist/public/assets/min-HKuGSUqa.js +1 -0
  361. package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
  362. package/dist/public/assets/now-BBH4UqDm.js +1 -0
  363. package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
  364. package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
  365. package/dist/public/assets/{panel-BCRdtBla.js → panel-BgMqDESF.js} +1 -1
  366. package/dist/public/assets/path-rUlDLHdA.js +1 -0
  367. package/dist/public/assets/pdf-a35ddrIO.js +54 -0
  368. package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
  369. package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
  370. package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
  371. package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
  372. package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
  373. package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
  374. package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
  375. package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
  376. package/dist/public/assets/reduce-DotyoGA7.js +1 -0
  377. package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
  378. package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
  379. package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
  380. package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
  381. package/dist/public/assets/src-C9jsS3p4.js +1 -0
  382. package/dist/public/assets/src-zyMpT2LE.js +1 -0
  383. package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
  384. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
  385. package/dist/public/assets/stex-BKMR5xQj.js +1 -0
  386. package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
  387. package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
  388. package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
  389. package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
  390. package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
  391. package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
  392. package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
  393. package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
  394. package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
  395. package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
  396. package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
  397. package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
  398. package/dist/public/index.html +43 -18
  399. package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
  400. package/dist/{python3-AUFTPCU6-MeZyx8_A.mjs → python3-AUFTPCU6-BaJugIdp.mjs} +2 -2
  401. package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
  402. package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
  403. package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
  404. package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
  405. package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
  406. package/dist/{rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs → rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs} +1 -1
  407. package/dist/schemas/v0/config.project-local.schema.json +30 -0
  408. package/dist/schemas/v0/config.project.schema.json +59 -0
  409. package/dist/schemas/v0/config.user.schema.json +58 -0
  410. package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
  411. package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
  412. package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
  413. package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
  414. package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
  415. package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
  416. package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
  417. package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
  418. package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
  419. package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
  420. package/dist/src-Cak39c0B.mjs +1 -0
  421. package/dist/start-BXk7J0Kh.mjs +1 -0
  422. package/dist/start-D6Ip3u6P.mjs +3 -0
  423. package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
  424. package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
  425. package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
  426. package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
  427. package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
  428. package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
  429. package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
  430. package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
  431. package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
  432. package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
  433. package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
  434. package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
  435. package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
  436. package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
  437. package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
  438. package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
  439. package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
  440. package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
  441. package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
  442. package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
  443. package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
  444. package/package.json +12 -15
  445. package/scripts/build-config-schema.mjs +69 -0
  446. package/scripts/postinstall.mjs +0 -20
  447. package/scripts/probe-exec.ts +7 -10
  448. package/scripts/probe-read-document.ts +1 -13
  449. package/dist/alias-JE7RI5QX-TirEebNy.mjs +0 -1
  450. package/dist/awk2-POPGKRAI-DigGXYmO.mjs +0 -1
  451. package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +0 -1
  452. package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +0 -1
  453. package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +0 -1
  454. package/dist/build-D4l8tfO0.mjs +0 -2
  455. package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +0 -1
  456. package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +0 -1
  457. package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +0 -1
  458. package/dist/colors-BnZ-i-vb.mjs +0 -1
  459. package/dist/colors-DoPZvo1q.mjs +0 -2
  460. package/dist/column-WLPMMSTS-fFssyAvW.mjs +0 -1
  461. package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +0 -1
  462. package/dist/constants-ekUaxW9F.mjs +0 -2
  463. package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +0 -1
  464. package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +0 -1
  465. package/dist/date-DD7FVA2V-DRxppxbV.mjs +0 -1
  466. package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +0 -1
  467. package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +0 -1
  468. package/dist/dist-0qFIeeXA.mjs +0 -142
  469. package/dist/dist-BCyi1oM7.mjs +0 -116
  470. package/dist/dist-CXdg7KnM.mjs +0 -199
  471. package/dist/dist-Ct-gJ7iD.mjs +0 -1
  472. package/dist/du-WO2ENHXQ-B5uda2-L.mjs +0 -1
  473. package/dist/echo-O45JWWI2-B9QCpaZR.mjs +0 -1
  474. package/dist/env-5EPCWSXR--4eujSrM.mjs +0 -1
  475. package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +0 -1
  476. package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +0 -1
  477. package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +0 -1
  478. package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +0 -1
  479. package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +0 -1
  480. package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +0 -2
  481. package/dist/fold-LDSORVYE-CAfX9d8n.mjs +0 -1
  482. package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +0 -1
  483. package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +0 -1
  484. package/dist/gzip-AQXSGOVS-CL228lzk.mjs +0 -1
  485. package/dist/head-HT2B6D2J-DyNkF3aY.mjs +0 -1
  486. package/dist/help-VVWX7SA5-D5WzpTIY.mjs +0 -1
  487. package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +0 -1
  488. package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +0 -1
  489. package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +0 -1
  490. package/dist/init-Ccjx3YjD.mjs +0 -1
  491. package/dist/init-DOTyF3_B.mjs +0 -1
  492. package/dist/init-Dc2dCgGt.mjs +0 -255
  493. package/dist/init-DeV-MdCs.mjs +0 -120
  494. package/dist/join-GG2LDHE5-B6C3-ghI.mjs +0 -1
  495. package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +0 -1
  496. package/dist/keepalive-CZzB5k1h.mjs +0 -2
  497. package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +0 -1
  498. package/dist/loader-Bveym9GJ.mjs +0 -1
  499. package/dist/loader-C3jzK-Dy.mjs +0 -3
  500. package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +0 -1
  501. package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +0 -1
  502. package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +0 -1
  503. package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +0 -1
  504. package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +0 -1
  505. package/dist/od-VJEF2UR5-PasvdXXR.mjs +0 -1
  506. package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +0 -1
  507. package/dist/paths-BA1xev5m.mjs +0 -1
  508. package/dist/paths-DtQI2_ER.mjs +0 -2
  509. package/dist/preview-BTFflPaA.mjs +0 -1
  510. package/dist/preview-BuXqi6nl.mjs +0 -3
  511. package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +0 -1
  512. package/dist/public/assets/ActivityModeContent-Ccu_n0bV.js +0 -2
  513. package/dist/public/assets/DocumentContext-C1msvcHp.js +0 -5
  514. package/dist/public/assets/GraphPanel-CJ_U3W3L.js +0 -46
  515. package/dist/public/assets/McpConsentDialogBody-Csjet19t.js +0 -1
  516. package/dist/public/assets/PageListContext-B5SWnlyE.js +0 -278
  517. package/dist/public/assets/SourceEditor-OFesfBB2.js +0 -3
  518. package/dist/public/assets/__vite-browser-external-Dz2JgTKm.js +0 -1
  519. package/dist/public/assets/chunk-DECur_0Z.js +0 -1
  520. package/dist/public/assets/clipboard-DAcKCHl1.js +0 -32
  521. package/dist/public/assets/dialog-CtSN0d2b.js +0 -45
  522. package/dist/public/assets/index-CwFTGDhe.js +0 -1843
  523. package/dist/public/assets/index-DjR45Lon.css +0 -1
  524. package/dist/public/assets/propagation-api-Bugyj7xy.js +0 -1
  525. package/dist/public/assets/telemetry-impl-D8K_lJGH.js +0 -2
  526. package/dist/public/assets/toggle-group-LDOO6zaV.js +0 -1
  527. package/dist/public/assets/tooltip-D0MnQ7ZX.js +0 -1
  528. package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +0 -1
  529. package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +0 -1
  530. package/dist/rev-XOSYPP45-q2MQLs41.mjs +0 -1
  531. package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +0 -1
  532. package/dist/rm-RTZG23RL-fjvVauiI.mjs +0 -1
  533. package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +0 -1
  534. package/dist/sed-VFTTATXJ-DO49xc40.mjs +0 -1
  535. package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +0 -1
  536. package/dist/server-lock-n3Y5JWNv-3o7br8XE.mjs +0 -2
  537. package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +0 -1
  538. package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +0 -1
  539. package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +0 -1
  540. package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +0 -1
  541. package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +0 -1
  542. package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +0 -1
  543. package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +0 -1
  544. package/dist/src-CCtbSzLe.mjs +0 -1
  545. package/dist/start-D7mCFrVn.mjs +0 -1
  546. package/dist/start-RnYkhoRl.mjs +0 -2
  547. package/dist/stat-BT5A227F-Dqepjl-k.mjs +0 -1
  548. package/dist/strings-7PLOGTPD-g6FhPS64.mjs +0 -1
  549. package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +0 -1
  550. package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +0 -1
  551. package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +0 -1
  552. package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +0 -1
  553. package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +0 -1
  554. package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +0 -1
  555. package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +0 -1
  556. package/dist/tr-2HXZRDSW-DrrobhxR.mjs +0 -1
  557. package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +0 -1
  558. package/dist/true-WHJNXCHG-BaLssNp9.mjs +0 -1
  559. package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +0 -1
  560. package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +0 -1
  561. package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +0 -1
  562. package/dist/which-XZHEH76L-DxZJ58G5.mjs +0 -1
  563. package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +0 -1
  564. package/dist/wrapper-BTT6637Z.mjs +0 -7
  565. package/dist/xan-BXDXYEIB-_Vtao535.mjs +0 -1
  566. package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +0 -1
  567. package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +0 -1
  568. package/dist/yq-MJMAR36V-pRBq87Ya.mjs +0 -1
  569. /package/dist/public/assets/{go-DatQmDtN.js → go-a33xvodr.js} +0 -0
  570. /package/dist/public/assets/{shell-7yok6dsz.js → shell-40VLet8r.js} +0 -0
  571. /package/dist/public/assets/{w3c-keyname-CSlwavrd.js → w3c-keyname-Dfj2imOv.js} +0 -0
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{c as e,i as t,l as n,s as r,t as i,u as a}from"./init-Dc2dCgGt.mjs";import{n as o,r as s}from"./loader-C3jzK-Dy.mjs";import"./src-CCtbSzLe.mjs";export{n as ALL_EDITOR_IDS,s as ConfigSchema,a as EDITOR_TARGETS,i as detectInstalledEditors,o as loadConfig,t as readExistingMcpEntry,r as writeEditorMcpConfig,e as writeUserMcpConfigs};
1
+ import{c as e,d as t,i as n,l as r,s as i,t as a,u as o}from"./init-B7qJnXKB.mjs";import{t as s}from"./loader-BQf8AJXb.mjs";import"./src-Cak39c0B.mjs";export{r as ALL_EDITOR_IDS,o as EDITOR_TARGETS,a as detectInstalledEditors,t as initContent,s as loadConfig,n as readExistingMcpEntry,i as writeEditorMcpConfig,e as writeUserMcpConfigs};
@@ -0,0 +1,397 @@
1
+ import{i as e,o as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{r,t as i}from"./esm-CEs3LWY3.mjs";import{_t as a,ht as o}from"./dist-DVM7wH81.mjs";import{C as s,St as c,bt as l,k as u,vn as d,zt as f}from"./dist-B6pNPboH.mjs";import{n as p,t as m}from"./constants-Dc6GZ6j9.mjs";import{t as h}from"./is-object-DF0ZeuvD.mjs";import{i as g,o as _,r as v,s as y,t as b}from"./colors-BNufdynn.mjs";import{t as x}from"./preview-DUTos2Es.mjs";import S,{basename as C,dirname as w,isAbsolute as T,join as E,posix as ee,relative as D,resolve as O,sep as k,win32 as te}from"node:path";import{cpSync as ne,existsSync as A,lstatSync as re,mkdirSync as j,readFileSync as M,realpathSync as ie,rmSync as ae,writeFileSync as N}from"node:fs";import P from"node:process";import{homedir as F}from"node:os";import{AsyncLocalStorage as oe,AsyncResource as se}from"node:async_hooks";import{stripVTControlCharacters as ce,styleText as I}from"node:util";import*as le from"node:readline";function ue(){return P.platform.startsWith(`win`)?!!P.env.CI||!!P.env.WT_SESSION||!!P.env.TERMINUS_SUBLIME||P.env.ConEmuTask===`{cmd::Cmder}`||P.env.TERM_PROGRAM===`Terminus-Sublime`||P.env.TERM_PROGRAM===`vscode`||P.env.TERM===`xterm-256color`||P.env.TERM===`alacritty`||P.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:P.env.TERM!==`linux`}const de={circleQuestionMark:`(?)`,questionMarkPrefix:`(?)`,square:`█`,squareDarkShade:`▓`,squareMediumShade:`▒`,squareLightShade:`░`,squareTop:`▀`,squareBottom:`▄`,squareLeft:`▌`,squareRight:`▐`,squareCenter:`■`,bullet:`●`,dot:`․`,ellipsis:`…`,pointerSmall:`›`,triangleUp:`▲`,triangleUpSmall:`▴`,triangleDown:`▼`,triangleDownSmall:`▾`,triangleLeftSmall:`◂`,triangleRightSmall:`▸`,home:`⌂`,heart:`♥`,musicNote:`♪`,musicNoteBeamed:`♫`,arrowUp:`↑`,arrowDown:`↓`,arrowLeft:`←`,arrowRight:`→`,arrowLeftRight:`↔`,arrowUpDown:`↕`,almostEqual:`≈`,notEqual:`≠`,lessOrEqual:`≤`,greaterOrEqual:`≥`,identical:`≡`,infinity:`∞`,subscriptZero:`₀`,subscriptOne:`₁`,subscriptTwo:`₂`,subscriptThree:`₃`,subscriptFour:`₄`,subscriptFive:`₅`,subscriptSix:`₆`,subscriptSeven:`₇`,subscriptEight:`₈`,subscriptNine:`₉`,oneHalf:`½`,oneThird:`⅓`,oneQuarter:`¼`,oneFifth:`⅕`,oneSixth:`⅙`,oneEighth:`⅛`,twoThirds:`⅔`,twoFifths:`⅖`,threeQuarters:`¾`,threeFifths:`⅗`,threeEighths:`⅜`,fourFifths:`⅘`,fiveSixths:`⅚`,fiveEighths:`⅝`,sevenEighths:`⅞`,line:`─`,lineBold:`━`,lineDouble:`═`,lineDashed0:`┄`,lineDashed1:`┅`,lineDashed2:`┈`,lineDashed3:`┉`,lineDashed4:`╌`,lineDashed5:`╍`,lineDashed6:`╴`,lineDashed7:`╶`,lineDashed8:`╸`,lineDashed9:`╺`,lineDashed10:`╼`,lineDashed11:`╾`,lineDashed12:`−`,lineDashed13:`–`,lineDashed14:`‐`,lineDashed15:`⁃`,lineVertical:`│`,lineVerticalBold:`┃`,lineVerticalDouble:`║`,lineVerticalDashed0:`┆`,lineVerticalDashed1:`┇`,lineVerticalDashed2:`┊`,lineVerticalDashed3:`┋`,lineVerticalDashed4:`╎`,lineVerticalDashed5:`╏`,lineVerticalDashed6:`╵`,lineVerticalDashed7:`╷`,lineVerticalDashed8:`╹`,lineVerticalDashed9:`╻`,lineVerticalDashed10:`╽`,lineVerticalDashed11:`╿`,lineDownLeft:`┐`,lineDownLeftArc:`╮`,lineDownBoldLeftBold:`┓`,lineDownBoldLeft:`┒`,lineDownLeftBold:`┑`,lineDownDoubleLeftDouble:`╗`,lineDownDoubleLeft:`╖`,lineDownLeftDouble:`╕`,lineDownRight:`┌`,lineDownRightArc:`╭`,lineDownBoldRightBold:`┏`,lineDownBoldRight:`┎`,lineDownRightBold:`┍`,lineDownDoubleRightDouble:`╔`,lineDownDoubleRight:`╓`,lineDownRightDouble:`╒`,lineUpLeft:`┘`,lineUpLeftArc:`╯`,lineUpBoldLeftBold:`┛`,lineUpBoldLeft:`┚`,lineUpLeftBold:`┙`,lineUpDoubleLeftDouble:`╝`,lineUpDoubleLeft:`╜`,lineUpLeftDouble:`╛`,lineUpRight:`└`,lineUpRightArc:`╰`,lineUpBoldRightBold:`┗`,lineUpBoldRight:`┖`,lineUpRightBold:`┕`,lineUpDoubleRightDouble:`╚`,lineUpDoubleRight:`╙`,lineUpRightDouble:`╘`,lineUpDownLeft:`┤`,lineUpBoldDownBoldLeftBold:`┫`,lineUpBoldDownBoldLeft:`┨`,lineUpDownLeftBold:`┥`,lineUpBoldDownLeftBold:`┩`,lineUpDownBoldLeftBold:`┪`,lineUpDownBoldLeft:`┧`,lineUpBoldDownLeft:`┦`,lineUpDoubleDownDoubleLeftDouble:`╣`,lineUpDoubleDownDoubleLeft:`╢`,lineUpDownLeftDouble:`╡`,lineUpDownRight:`├`,lineUpBoldDownBoldRightBold:`┣`,lineUpBoldDownBoldRight:`┠`,lineUpDownRightBold:`┝`,lineUpBoldDownRightBold:`┡`,lineUpDownBoldRightBold:`┢`,lineUpDownBoldRight:`┟`,lineUpBoldDownRight:`┞`,lineUpDoubleDownDoubleRightDouble:`╠`,lineUpDoubleDownDoubleRight:`╟`,lineUpDownRightDouble:`╞`,lineDownLeftRight:`┬`,lineDownBoldLeftBoldRightBold:`┳`,lineDownLeftBoldRightBold:`┯`,lineDownBoldLeftRight:`┰`,lineDownBoldLeftBoldRight:`┱`,lineDownBoldLeftRightBold:`┲`,lineDownLeftRightBold:`┮`,lineDownLeftBoldRight:`┭`,lineDownDoubleLeftDoubleRightDouble:`╦`,lineDownDoubleLeftRight:`╥`,lineDownLeftDoubleRightDouble:`╤`,lineUpLeftRight:`┴`,lineUpBoldLeftBoldRightBold:`┻`,lineUpLeftBoldRightBold:`┷`,lineUpBoldLeftRight:`┸`,lineUpBoldLeftBoldRight:`┹`,lineUpBoldLeftRightBold:`┺`,lineUpLeftRightBold:`┶`,lineUpLeftBoldRight:`┵`,lineUpDoubleLeftDoubleRightDouble:`╩`,lineUpDoubleLeftRight:`╨`,lineUpLeftDoubleRightDouble:`╧`,lineUpDownLeftRight:`┼`,lineUpBoldDownBoldLeftBoldRightBold:`╋`,lineUpDownBoldLeftBoldRightBold:`╈`,lineUpBoldDownLeftBoldRightBold:`╇`,lineUpBoldDownBoldLeftRightBold:`╊`,lineUpBoldDownBoldLeftBoldRight:`╉`,lineUpBoldDownLeftRight:`╀`,lineUpDownBoldLeftRight:`╁`,lineUpDownLeftBoldRight:`┽`,lineUpDownLeftRightBold:`┾`,lineUpBoldDownBoldLeftRight:`╂`,lineUpDownLeftBoldRightBold:`┿`,lineUpBoldDownLeftBoldRight:`╃`,lineUpBoldDownLeftRightBold:`╄`,lineUpDownBoldLeftBoldRight:`╅`,lineUpDownBoldLeftRightBold:`╆`,lineUpDoubleDownDoubleLeftDoubleRightDouble:`╬`,lineUpDoubleDownDoubleLeftRight:`╫`,lineUpDownLeftDoubleRightDouble:`╪`,lineCross:`╳`,lineBackslash:`╲`,lineSlash:`╱`},fe={tick:`✔`,info:`ℹ`,warning:`⚠`,cross:`✘`,squareSmall:`◻`,squareSmallFilled:`◼`,circle:`◯`,circleFilled:`◉`,circleDotted:`◌`,circleDouble:`◎`,circleCircle:`ⓞ`,circleCross:`ⓧ`,circlePipe:`Ⓘ`,radioOn:`◉`,radioOff:`◯`,checkboxOn:`☒`,checkboxOff:`☐`,checkboxCircleOn:`ⓧ`,checkboxCircleOff:`Ⓘ`,pointer:`❯`,triangleUpOutline:`△`,triangleLeft:`◀`,triangleRight:`▶`,lozenge:`◆`,lozengeOutline:`◇`,hamburger:`☰`,smiley:`㋡`,mustache:`෴`,star:`★`,play:`▶`,nodejs:`⬢`,oneSeventh:`⅐`,oneNinth:`⅑`,oneTenth:`⅒`},pe={tick:`√`,info:`i`,warning:`‼`,cross:`×`,squareSmall:`□`,squareSmallFilled:`■`,circle:`( )`,circleFilled:`(*)`,circleDotted:`( )`,circleDouble:`( )`,circleCircle:`(○)`,circleCross:`(×)`,circlePipe:`(│)`,radioOn:`(*)`,radioOff:`( )`,checkboxOn:`[×]`,checkboxOff:`[ ]`,checkboxCircleOn:`(×)`,checkboxCircleOff:`( )`,pointer:`>`,triangleUpOutline:`∆`,triangleLeft:`◄`,triangleRight:`►`,lozenge:`♦`,lozengeOutline:`◊`,hamburger:`≡`,smiley:`☺`,mustache:`┌─┐`,star:`✶`,play:`►`,nodejs:`♦`,oneSeventh:`1/7`,oneNinth:`1/9`,oneTenth:`1/10`},me={...de,...fe},he={...de,...pe},L=ue()?me:he;Object.entries(fe);var ge=n(((t,n)=>{n.exports=i;function r(t){let n={defaultWidth:0,output:process.stdout,tty:e(`tty`)};return t?(Object.keys(n).forEach(function(e){t[e]||(t[e]=n[e])}),t):n}function i(e){let t=r(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&e!==0)return e}return t.defaultWidth}}));const _e=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),ve=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,ye=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,be=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,xe=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,Se=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/uy,Ce=/\t{1,1000}/y,we=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,Te=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Ee=/\p{M}+/gu,De={limit:1/0,ellipsis:``},Oe=(e,t={},n={})=>{let r=t.limit??1/0,i=t.ellipsis??``,a=t?.ellipsisWidth??(i?Oe(i,De,n).width:0),o=n.controlWidth??0,s=n.tabWidth??8,c=n.emojiWidth??2,l=n.regularWidth??1,u=n.wideWidth??2,d=[[Te,l],[be,0],[xe,o],[Ce,s],[we,c],[Se,u]],f=0,p=0,m=e.length,h=0,g=!1,_=m,v=Math.max(0,r-a),y=0,b=0,x=0,S=0;outer:for(;;){if(b>y||p>=m&&p>f){let t=e.slice(y,b)||e.slice(f,p);h=0;for(let e of t.replaceAll(Ee,``)){let t=e.codePointAt(0)||0;if(S=ve(t)?2:ye(t)?u:l,x+S>v&&(_=Math.min(_,Math.max(y,f)+h)),x+S>r){g=!0;break outer}h+=e.length,x+=S}y=b=0}if(p>=m)break outer;for(let t=0,n=d.length;t<n;t++){let[n,i]=d[t];if(n.lastIndex=p,n.test(e)){if(h=n===Se?_e(e.slice(p,n.lastIndex)):n===we?1:n.lastIndex-p,S=h*i,x+S>v&&(_=Math.min(_,p+Math.floor((v-x)/i))),x+S>r){g=!0;break outer}x+=S,y=f,b=p,p=f=n.lastIndex;continue outer}}p+=1}return{width:g?v:x,index:g?_:m,truncated:g,ellipsed:g&&r>=a}},ke={limit:1/0,ellipsis:``,ellipsisWidth:0},R=(e,t={})=>Oe(e,ke,t).width,Ae=`]8;;`,je=RegExp(`(?:\\[(?<code>\\d+)m|\\${Ae}(?<uri>.*))`,`y`),Me=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},Ne=e=>`[${e}m`,Pe=e=>`${Ae}${e}`,Fe=(e,t,n)=>{let r=t[Symbol.iterator](),i=!1,a=!1,o=e.at(-1),s=o===void 0?0:R(o),c=r.next(),l=r.next(),u=0;for(;!c.done;){let o=c.value,d=R(o);s+d<=n?e[e.length-1]+=o:(e.push(o),s=0),(o===`\x1B`||o===`›`)&&(i=!0,a=t.startsWith(Ae,u+1)),i?a?o===`\x07`&&(i=!1,a=!1):o===`m`&&(i=!1):(s+=d,s===n&&!l.done&&(e.push(``),s=0)),c=l,l=r.next(),u+=o.length}o=e.at(-1),!s&&o!==void 0&&o.length&&e.length>1&&(e[e.length-2]+=e.pop())},Ie=e=>{let t=e.split(` `),n=t.length;for(;n&&!R(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},Le=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=e.split(` `),s=[``],c=0;for(let e=0;e<o.length;e++){let r=o[e];if(n.trim!==!1){let e=s.at(-1)??``,t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,c=R(t))}e!==0&&(c>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),c=0),(c||n.trim===!1)&&(s[s.length-1]+=` `,c++));let i=R(r);if(n.hard&&i>t){let e=t-c,n=1+Math.floor((i-e-1)/t);Math.floor((i-1)/t)<n&&s.push(``),Fe(s,r,t),c=R(s.at(-1)??``);continue}if(c+i>t&&c&&i){if(n.wordWrap===!1&&c<t){Fe(s,r,t),c=R(s.at(-1)??``);continue}s.push(``),c=0}if(c+i>t&&n.wordWrap===!1){Fe(s,r,t),c=R(s.at(-1)??``);continue}s[s.length-1]+=r,c+=i}n.trim!==!1&&(s=s.map(e=>Ie(e)));let l=s.join(`
2
+ `),u=!1;for(let e=0;e<l.length;e++){let t=l[e];if(r+=t,u)u=!1;else if(u=t>=`\ud800`&&t<=`\udbff`,u)continue;if(t===`\x1B`||t===`›`){je.lastIndex=e+1;let t=je.exec(l)?.groups;if(t?.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t?.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}if(l[e+1]===`
3
+ `){a&&(r+=Pe(``));let e=i?Me(i):void 0;i&&e&&(r+=Ne(e))}else t===`
4
+ `&&(i&&Me(i)&&(r+=Ne(i)),a&&(r+=Pe(a)))}return r},Re=/\r?\n/;function ze(e,t,n){return String(e).normalize().split(Re).map(e=>Le(e,t,n)).join(`
5
+ `)}var Be=n(((t,n)=>{let r=e(`stream`);n.exports=class extends r{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on(`pipe`,this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#n(e,...t){typeof this._dest?.[e]==`function`&&this._dest[e](...t),typeof this._src?.[e]==`function`&&this._src[e](...t)}get isTTY(){return this.#e===null?this.#t(`isTTY`,!1):this.#e}set isTTY(e){this.#e=e}get rows(){return this.#t(`rows`)}get columns(){return this.#t(`columns`)}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit(`data`,e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit(`data`,this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit(`data`,e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit(`data`,e),this.emit(`end`)}destroy(...e){return this.#n(`destroy`,...e)}destroySoon(...e){return this.#n(`destroySoon`,...e)}close(...e){return this.#n(`close`,...e)}}}));const z=[];z.push(`SIGHUP`,`SIGINT`,`SIGTERM`),process.platform!==`win32`&&z.push(`SIGALRM`,`SIGABRT`,`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&z.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`);const Ve=e=>!!e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`,He=Symbol.for(`signal-exit emitter`),Ue=globalThis,We=Object.defineProperty.bind(Object);var Ge=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Ue[He])return Ue[He];We(Ue,He,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let n=this.listeners[e],r=n.indexOf(t);r!==-1&&(r===0&&n.length===1?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let i of this.listeners[e])r=i(t,n)===!0||r;return e===`exit`&&(r=this.emit(`afterExit`,t,n)||r),r}},Ke=class{};const qe=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}});var Je=class extends Ke{onExit(){return()=>{}}load(){}unload(){}},Ye=class extends Ke{#e=Xe.platform===`win32`?`SIGINT`:`SIGHUP`;#t=new Ge;#n;#r;#i;#a={};#o=!1;constructor(e){super(),this.#n=e,this.#a={};for(let t of z)this.#a[t]=()=>{let n=this.#n.listeners(t),{count:r}=this.#t,i=e;if(typeof i.__signal_exit_emitter__==`object`&&typeof i.__signal_exit_emitter__.count==`number`&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();let n=this.#t.emit(`exit`,null,t),r=t===`SIGHUP`?this.#e:t;n||e.kill(e.pid,r)}};this.#i=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!Ve(this.#n))return()=>{};this.#o===!1&&this.load();let n=t?.alwaysLast?`afterExit`:`exit`;return this.#t.on(n,e),()=>{this.#t.removeListener(n,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(let e of z)try{let t=this.#a[e];t&&this.#n.on(e,t)}catch{}this.#n.emit=(e,...t)=>this.#c(e,...t),this.#n.reallyExit=e=>this.#s(e)}}unload(){this.#o&&(this.#o=!1,z.forEach(e=>{let t=this.#a[e];if(!t)throw Error(`Listener not defined for signal: `+e);try{this.#n.removeListener(e,t)}catch{}}),this.#n.emit=this.#r,this.#n.reallyExit=this.#i,--this.#t.count)}#s(e){return Ve(this.#n)?(this.#n.exitCode=e||0,this.#t.emit(`exit`,this.#n.exitCode,null),this.#i.call(this.#n,this.#n.exitCode)):0}#c(e,...t){let n=this.#r;if(e===`exit`&&Ve(this.#n)){typeof t[0]==`number`&&(this.#n.exitCode=t[0]);let r=n.call(this.#n,e,...t);return this.#t.emit(`exit`,this.#n.exitCode,null),r}else return n.call(this.#n,e,...t)}};const Xe=globalThis.process,{onExit:Ze,load:Qe,unload:$e}=qe(Ve(Xe)?new Ye(Xe):new Je),et=`\x1B[?25l`,tt=`\x1B[?25h`,nt=(e=1)=>e>0?`[${e}A`:``,rt=(e=1)=>e>0?`[${e}B`:``,it=(e,t)=>typeof t==`number`&&!Number.isNaN(t)?`[${t+1};${e+1}H`:`[${e+1}G`,at=`\x1B[2K`,ot=e=>e>0?(at+nt(1)).repeat(e-1)+at+`\x1B[G`:``,st=(e,t=[])=>e.name===`up`||t.includes(`vim`)&&e.name===`k`||t.includes(`emacs`)&&e.ctrl&&e.name===`p`,ct=(e,t=[])=>e.name===`down`||t.includes(`vim`)&&e.name===`j`||t.includes(`emacs`)&&e.ctrl&&e.name===`n`,lt=e=>e.name===`space`,ut=e=>`1234567890`.includes(e.name),dt=e=>e.name===`enter`||e.name===`return`;var ft=class extends Error{name=`AbortPromptError`;message=`Prompt was aborted`;constructor(e){super(),this.cause=e?.cause}},pt=class extends Error{name=`CancelPromptError`;message=`Prompt was canceled`},mt=class extends Error{name=`ExitPromptError`},ht=class extends Error{name=`HookError`},gt=class extends Error{name=`ValidationError`};const _t=new oe;function vt(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function yt(e,t){let n=vt(e);return _t.run(n,()=>{function e(e){n.handleChange=()=>{n.index=0,e()},n.handleChange()}return t(e)})}function B(){let e=_t.getStore();if(!e)throw new ht(`[Inquirer] Hook functions can only be called from within a prompt`);return e}function bt(){return B().rl}function xt(e){return se.bind((...t)=>{let n=B(),r=!1,i=n.handleChange;n.handleChange=()=>{r=!0};let a=e(...t);return r&&i(),n.handleChange=i,a})}function St(e){let t=B(),{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 Ct(){B().handleChange()}const V={queue(e){let t=B(),{index:n}=t;t.hooksEffect.push(()=>{t.hooksCleanup[n]?.();let r=e(bt());if(r!=null&&typeof r!=`function`)throw new gt(`useEffect return value must be a cleanup function or nothing.`);t.hooksCleanup[n]=r})},run(){let e=B();xt(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=B();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function wt(e){return typeof e==`function`}function H(e){return St(t=>{let n=se.bind(function(e){t.get()!==e&&(t.set(e),Ct())});if(t.initialized)return[t.get(),n];let r=wt(e)?e():e;return t.set(r),[r,n]})}function Tt(e,t){St(n=>{let r=n.get();(!Array.isArray(r)||t.some((e,t)=>!Object.is(e,r[t])))&&V.queue(e),n.set(t)})}const Et={prefix:{idle:I(`blue`,`?`),done:I(`green`,L.tick)},spinner:{interval:80,frames:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`].map(e=>I(`yellow`,e))},style:{answer:e=>I(`cyan`,e),message:e=>I(`bold`,e),error:e=>I(`red`,`> ${e}`),defaultAnswer:e=>I(`dim`,`(${e})`),help:e=>I(`dim`,e),highlight:e=>I(`cyan`,e),key:e=>I(`cyan`,I(`bold`,`<${e}>`))}};function Dt(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 Ot(...e){let t={};for(let n of e)for(let[e,r]of Object.entries(n)){let n=t[e];t[e]=Dt(n)&&Dt(r)?Ot(n,r):r}return t}function kt(...e){return Ot(Et,...e.filter(e=>e!=null))}function At({status:e=`idle`,theme:t}){let[n,r]=H(!1),[i,a]=H(0),{prefix:o,spinner:s}=kt(t);return Tt(()=>{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 jt(e,t){return St(n=>{let r=n.get();if(!r||r.dependencies.length!==t.length||r.dependencies.some((e,n)=>e!==t[n])){let r=e();return n.set({value:r,dependencies:t}),r}return r.value})}function Mt(e){return H({current:e})[0]}function Nt(e){let t=Mt(e);t.current=e,Tt(e=>{let n=!1,r=xt((r,i)=>{n||t.current(i,e)});return e.input.on(`keypress`,r),()=>{n=!0,e.input.removeListener(`keypress`,r)}},[])}var Pt=t(ge(),1);function Ft(e,t){return e.split(`
6
+ `).flatMap(e=>ze(e,t,{trim:!1,hard:!0}).split(`
7
+ `).map(e=>e.trimEnd())).join(`
8
+ `)}function It(){return(0,Pt.default)({defaultWidth:80,output:bt().output})}function Lt({active:e,renderedItems:t,pageSize:n,loop:r}){let i=Mt({lastPointer:e,lastActive:void 0}),{lastPointer:a,lastActive:o}=i.current,s=Math.floor(n/2),c=t.reduce((e,t)=>e+t.length,0),l=t.slice(0,e).reduce((e,t)=>e+t.length,0),u=l;if(c>n)if(r)u=a,o!=null&&o<e&&e-o<n&&(u=Math.min(s,Math.abs(e-o)===1?Math.min(a+(t[o]?.length??0),Math.max(l,a)):a+e-o));else{let r=t.slice(e).reduce((e,t)=>e+t.length,0);u=r<n-s?n-r:Math.min(l,s)}return i.current.lastPointer=u,i.current.lastActive=e,u}function Rt({items:e,active:t,renderItem:n,pageSize:r,loop:i=!0}){let a=It(),o=t=>(t%e.length+e.length)%e.length,s=e.map((e,r)=>e==null?[]:Ft(n({item:e,index:r,isActive:r===t}),a).split(`
9
+ `)),c=s.reduce((e,t)=>e+t.length,0),l=e=>s[e]??[],u=Lt({active:t,renderedItems:s,pageSize:r,loop:i}),d=l(t).slice(0,r),f=u+d.length<=r?u:r-d.length,p=Array.from({length:r});p.splice(f,d.length,...d);let m=new Set([t]),h=f+d.length,g=o(t+1);for(;h<r&&!m.has(g)&&(i&&c>r?g!==t:g>t);){let e=l(g).slice(0,r-h);p.splice(h,e.length,...e),m.add(g),h+=e.length,g=o(g+1)}for(h=f-1,g=o(t-1);h>=0&&!m.has(g)&&(i&&c>r?g!==t:g<t);){let e=l(g),t=e.slice(Math.max(0,e.length-h-1));p.splice(h-t.length+1,t.length,...t),m.add(g),h-=t.length,g=o(g-1)}return p.filter(e=>typeof e==`string`).join(`
10
+ `)}const zt=e=>e.split(`
11
+ `).length,Bt=e=>e.split(`
12
+ `).pop()??``;var Vt=class{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=``){let n=ce(Bt(e)),r=n;this.rl.line.length>0&&(r=r.slice(0,-this.rl.line.length)),this.rl.setPrompt(r),this.cursorPos=this.rl.getCursorPos();let i=It();e=Ft(e,i),t=Ft(t,i),n.length%i===0&&(e+=`
13
+ `);let a=e+(t?`
14
+ `+t:``),o=Math.floor(n.length/i)-this.cursorPos.rows+(t?zt(t):0);o>0&&(a+=nt(o)),a+=it(this.cursorPos.cols),this.write(rt(this.extraLinesUnderPrompt)+ot(this.height)+a),this.extraLinesUnderPrompt=o,this.height=zt(a)}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(it(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt(``);let t=rt(this.extraLinesUnderPrompt);t+=e?ot(this.height):`
15
+ `,t+=tt,this.write(t),this.rl.close()}},Ht=class extends Promise{static withResolver(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}},Ut=t(Be(),1);const Wt=globalThis.setImmediate;function Gt(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,n)=>{let r=n.slice(1);return t=r,r},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}function Kt(e){let t=Gt();return(n,r={})=>{let{input:i=process.stdin,signal:a}=r,o=new Set,s=new Ut.default;s.pipe(r.output??process.stdout);let c=le.createInterface({terminal:!0,input:i,output:s});s.mute();let l=new Vt(c),{promise:u,resolve:d,reject:f}=Ht.withResolver(),p=()=>f(new pt);if(a){let e=()=>f(new ft({cause:a.reason}));if(a.aborted)return e(),Object.assign(u,{cancel:p});a.addEventListener(`abort`,e),o.add(()=>a.removeEventListener(`abort`,e))}o.add(Ze((e,t)=>{f(new mt(`User force closed the prompt with ${e} ${t}`))}));let m=()=>f(new mt(`User force closed the prompt with SIGINT`));return c.on(`SIGINT`,m),o.add(()=>c.removeListener(`SIGINT`,m)),yt(c,a=>{let m=se.bind(()=>V.clearAll());c.on(`close`,m),o.add(()=>c.removeListener(`close`,m));let h=()=>{let r=()=>l.checkCursorPos();c.input.on(`keypress`,r),o.add(()=>c.input.removeListener(`keypress`,r));let i=null;a(()=>{let r=!1;try{let a=e(n,e=>{r?d(e):i={value:e}});if(a===void 0){let e=t[1]?.getFileName();throw e&&!e.startsWith(`file://`)&&(e=S.resolve(e)),Error(`Prompt functions must return a string.\n at ${e}`)}let[o,s]=typeof a==`string`?[a]:a;l.render(o,s),V.run()}catch(e){f(e)}if(r=!0,i!==null){let{value:e}=i;i=null,d(e)}})};return`readableFlowing`in i?Wt(h):h(),Object.assign(u.then(e=>(V.clearAll(),e),e=>{throw V.clearAll(),e}).finally(()=>{o.forEach(e=>e()),l.done({clearContent:!!r.clearPromptOnDone}),s.end()}).then(()=>u),{cancel:p})})}}var U=class{separator=I(`dim`,Array.from({length:15}).join(L.line));type=`separator`;constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`separator`)}};const qt={icon:{checked:I(`green`,L.circleFilled),unchecked:L.circle,cursor:L.pointer,disabledChecked:I(`green`,L.circleDouble),disabledUnchecked:`-`},style:{disabled:e=>I(`dim`,e),renderSelectedChoices:e=>e.map(e=>e.short).join(`, `),description:e=>I(`cyan`,e),keysHelpTip:e=>e.map(([e,t])=>`${I(`bold`,e)} ${I(`dim`,t)}`).join(I(`dim`,` • `))},i18n:{disabledError:`This option is disabled and cannot be toggled.`},keybindings:[]};function W(e){return!U.isSeparator(e)&&!e.disabled}function Jt(e){return!U.isSeparator(e)}function Yt(e){return!U.isSeparator(e)&&e.checked}function Xt(e){return W(e)?{...e,checked:!e.checked}:e}function Zt(e){return function(t){return W(t)?{...t,checked:e}:t}}function Qt(e){return e.map(e=>{if(U.isSeparator(e))return e;if(typeof e!=`object`||!e||!(`value`in e)){let t=String(e);return{value:e,name:t,short:t,checkedName:t,disabled:!1,checked:!1}}let t=e.name??String(e.value),n={value:e.value,name:t,short:e.short??t,checkedName:e.checkedName??t,disabled:e.disabled??!1,checked:e.checked??!1};return e.description&&(n.description=e.description),n})}var $t=Kt((e,t)=>{let{pageSize:n=7,loop:r=!0,required:i,validate:a=()=>!0}=e,o={all:`a`,invert:`i`,...e.shortcuts},s=kt(qt,e.theme),{keybindings:c}=s,[l,u]=H(`idle`),d=At({status:l,theme:s}),[f,p]=H(Qt(e.choices)),m=jt(()=>{let e=f.findIndex(Jt),t=f.findLastIndex(Jt);if(e===-1)throw new gt(`[checkbox prompt] No selectable choices. All choices are disabled.`);return{first:e,last:t}},[f]),[h,g]=H(m.first),[_,v]=H();Nt(async e=>{if(dt(e)){let e=f.filter(Yt),n=await a([...e]);i&&!e.length?v(`At least one choice must be selected`):n===!0?(u(`done`),t(e.map(e=>e.value))):v(n||`You must select a valid value`)}else if(st(e,c)||ct(e,c)){if(_&&v(void 0),r||st(e,c)&&h!==m.first||ct(e,c)&&h!==m.last){let t=st(e,c)?-1:1,n=h;do n=(n+t+f.length)%f.length;while(!Jt(f[n]));g(n)}}else if(lt(e)){let e=f[h];e&&!U.isSeparator(e)&&(e.disabled?v(s.i18n.disabledError):(v(void 0),p(f.map((e,t)=>t===h?Xt(e):e))))}else if(e.name===o.all){let e=f.some(e=>W(e)&&!e.checked);p(f.map(Zt(e)))}else if(e.name===o.invert)p(f.map(Xt));else if(ut(e)){let t=Number(e.name)-1,n=-1,r=f.findIndex(e=>U.isSeparator(e)?!1:(n++,n===t)),i=f[r];i&&W(i)&&(g(r),p(f.map((e,t)=>t===r?Xt(e):e)))}});let y=s.style.message(e.message,l),b,x=Rt({items:f,active:h,renderItem({item:e,isActive:t}){if(U.isSeparator(e))return` ${e.separator}`;let n=t?s.icon.cursor:` `;if(e.disabled){let t=typeof e.disabled==`string`?e.disabled:`(disabled)`,r=e.checked?s.icon.disabledChecked:s.icon.disabledUnchecked;return s.style.disabled(`${n}${r} ${e.name} ${t}`)}t&&(b=e.description);let r=e.checked?s.icon.checked:s.icon.unchecked,i=e.checked?e.checkedName:e.name;return(t?s.style.highlight:e=>e)(`${n}${r} ${i}`)},pageSize:n,loop:r});if(l===`done`){let e=f.filter(Yt);return[d,y,s.style.answer(s.style.renderSelectedChoices(e,f))].filter(Boolean).join(` `)}let S=[[`↑↓`,`navigate`],[`space`,`select`]];o.all&&S.push([o.all,`all`]),o.invert&&S.push([o.invert,`invert`]),S.push([`⏎`,`submit`]);let C=s.style.keysHelpTip(S);return`${[[d,y].filter(Boolean).join(` `),x,` `,b?s.style.description(b):``,_?s.style.error(_):``,C].filter(Boolean).join(`
16
+ `).trimEnd()}${et}`});
17
+ /*!
18
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
19
+ * SPDX-License-Identifier: BSD-3-Clause
20
+ *
21
+ * Redistribution and use in source and binary forms, with or without
22
+ * modification, are permitted provided that the following conditions are met:
23
+ *
24
+ * 1. Redistributions of source code must retain the above copyright notice, this
25
+ * list of conditions and the following disclaimer.
26
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
27
+ * this list of conditions and the following disclaimer in the
28
+ * documentation and/or other materials provided with the distribution.
29
+ * 3. Neither the name of the copyright holder nor the names of its contributors
30
+ * may be used to endorse or promote products derived from this software without
31
+ * specific prior written permission.
32
+ *
33
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
34
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
35
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
36
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
37
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
38
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
39
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
40
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
41
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
42
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43
+ */
44
+ function en(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function tn(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
45
+ `,e===t&&(i+=` `.repeat(a+n+2),i+=`^
46
+ `))}return i}var G=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=en(t.toml,t.ptr),i=tn(t.toml,n,r);super(`Invalid TOML document: ${e}\n\n${i}`,t),this.line=n,this.column=r,this.codeblock=i}};
47
+ /*!
48
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
49
+ * SPDX-License-Identifier: BSD-3-Clause
50
+ *
51
+ * Redistribution and use in source and binary forms, with or without
52
+ * modification, are permitted provided that the following conditions are met:
53
+ *
54
+ * 1. Redistributions of source code must retain the above copyright notice, this
55
+ * list of conditions and the following disclaimer.
56
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
57
+ * this list of conditions and the following disclaimer in the
58
+ * documentation and/or other materials provided with the distribution.
59
+ * 3. Neither the name of the copyright holder nor the names of its contributors
60
+ * may be used to endorse or promote products derived from this software without
61
+ * specific prior written permission.
62
+ *
63
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
64
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
65
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
66
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
67
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
68
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
69
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
70
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
71
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
72
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
73
+ */
74
+ function nn(e,t){let n=0;for(;e[t-++n]===`\\`;);return--n&&n%2}function rn(e,t=0,n=e.length){let r=e.indexOf(`
75
+ `,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function K(e,t){for(let n=t;n<e.length;n++){let r=e[n];if(r===`
76
+ `)return n;if(r===`\r`&&e[n+1]===`
77
+ `)return n+1;if(r<` `&&r!==` `||r===``)throw new G(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function q(e,t,n,r){let i;for(;;){for(;(i=e[t])===` `||i===` `||!n&&(i===`
78
+ `||i===`\r`&&e[t+1]===`
79
+ `);)t++;if(r||i!==`#`)break;t=K(e,t)}return t}function an(e,t,n,r,i=!1){if(!r)return t=rn(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`)a=rn(e,a);else if(t===n)return a+1;else if(t===r||i&&(t===`
80
+ `||t===`\r`&&e[a+1]===`
81
+ `))return a}throw new G(`cannot find end of structure`,{toml:e,ptr:t})}function on(e,t){let n=e[t],r=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=r.length-1;do t=e.indexOf(r,++t);while(t>-1&&n!==`'`&&nn(e,t));return t>-1&&(t+=r.length,r.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}
82
+ /*!
83
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
84
+ * SPDX-License-Identifier: BSD-3-Clause
85
+ *
86
+ * Redistribution and use in source and binary forms, with or without
87
+ * modification, are permitted provided that the following conditions are met:
88
+ *
89
+ * 1. Redistributions of source code must retain the above copyright notice, this
90
+ * list of conditions and the following disclaimer.
91
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
92
+ * this list of conditions and the following disclaimer in the
93
+ * documentation and/or other materials provided with the distribution.
94
+ * 3. Neither the name of the copyright holder nor the names of its contributors
95
+ * may be used to endorse or promote products derived from this software without
96
+ * specific prior written permission.
97
+ *
98
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
99
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
100
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
101
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
102
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
103
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
104
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
105
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
106
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
107
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
108
+ */
109
+ let sn=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;var cn=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(sn);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}};
110
+ /*!
111
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
112
+ * SPDX-License-Identifier: BSD-3-Clause
113
+ *
114
+ * Redistribution and use in source and binary forms, with or without
115
+ * modification, are permitted provided that the following conditions are met:
116
+ *
117
+ * 1. Redistributions of source code must retain the above copyright notice, this
118
+ * list of conditions and the following disclaimer.
119
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
120
+ * this list of conditions and the following disclaimer in the
121
+ * documentation and/or other materials provided with the distribution.
122
+ * 3. Neither the name of the copyright holder nor the names of its contributors
123
+ * may be used to endorse or promote products derived from this software without
124
+ * specific prior written permission.
125
+ *
126
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
127
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
128
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
129
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
130
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
131
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
132
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
133
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
134
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
135
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
136
+ */
137
+ let ln=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,un=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,dn=/^[+-]?0[0-9_]/,fn=/^[0-9a-f]{2,8}$/i,pn={b:`\b`,t:` `,n:`
138
+ `,f:`\f`,r:`\r`,e:`\x1B`,'"':`"`,"\\":`\\`};function mn(e,t=0,n=e.length){let r=e[t]===`'`,i=e[t++]===e[t]&&e[t]===e[t+1];i&&(n-=2,e[t+=2]===`\r`&&t++,e[t]===`
139
+ `&&t++);let a=0,o,s=``,c=t;for(;t<n-1;){let n=e[t++];if(n===`
140
+ `||n===`\r`&&e[t]===`
141
+ `){if(!i)throw new G(`newlines are not allowed in strings`,{toml:e,ptr:t-1})}else if(n<` `&&n!==` `||n===``)throw new G(`control characters are not allowed in strings`,{toml:e,ptr:t-1});if(o){if(o=!1,n===`x`||n===`u`||n===`U`){let r=e.slice(t,t+=n===`x`?2:n===`u`?4:8);if(!fn.test(r))throw new G(`invalid unicode escape`,{toml:e,ptr:a});try{s+=String.fromCodePoint(parseInt(r,16))}catch{throw new G(`invalid unicode escape`,{toml:e,ptr:a})}}else if(i&&(n===`
142
+ `||n===` `||n===` `||n===`\r`)){if(t=q(e,t-1,!0),e[t]!==`
143
+ `&&e[t]!==`\r`)throw new G(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:a});t=q(e,t)}else if(n in pn)s+=pn[n];else throw new G(`unrecognized escape sequence`,{toml:e,ptr:a});c=t}else !r&&n===`\\`&&(a=t-1,o=!0,s+=e.slice(c,a))}return s+e.slice(c,n-1)}function hn(e,t,n,r){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return r?0n:0;let i=ln.test(e);if(i||un.test(e)){if(dn.test(e))throw new G(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new G(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new G(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new cn(e);if(!a.isValid())throw new G(`invalid value`,{toml:t,ptr:n});return a}
144
+ /*!
145
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
146
+ * SPDX-License-Identifier: BSD-3-Clause
147
+ *
148
+ * Redistribution and use in source and binary forms, with or without
149
+ * modification, are permitted provided that the following conditions are met:
150
+ *
151
+ * 1. Redistributions of source code must retain the above copyright notice, this
152
+ * list of conditions and the following disclaimer.
153
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
154
+ * this list of conditions and the following disclaimer in the
155
+ * documentation and/or other materials provided with the distribution.
156
+ * 3. Neither the name of the copyright holder nor the names of its contributors
157
+ * may be used to endorse or promote products derived from this software without
158
+ * specific prior written permission.
159
+ *
160
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
161
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
162
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
163
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
164
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
165
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
166
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
167
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
168
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
169
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
170
+ */
171
+ function gn(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(K(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function _n(e,t,n,r,i){if(r===0)throw new G(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?xn(e,t,r,i):bn(e,t,r,i);if(n){if(s=q(e,s),e[s]===`,`)s++;else if(e[s]!==n)throw new G(`expected comma or end of structure`,{toml:e,ptr:s})}return[o,s]}let o;if(a===`"`||a===`'`){o=on(e,t);let r=mn(e,t,o);if(n){if(o=q(e,o),e[o]&&e[o]!==`,`&&e[o]!==n&&e[o]!==`
172
+ `&&e[o]!==`\r`)throw new G(`unexpected character encountered`,{toml:e,ptr:o});o+=+(e[o]===`,`)}return[r,o]}o=an(e,t,`,`,n);let s=gn(e,t,o-+(e[o-1]===`,`));if(!s[0])throw new G(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=q(e,t+s[1]),o+=+(e[o]===`,`)),[hn(s[0],e,t,i),o]}
173
+ /*!
174
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
175
+ * SPDX-License-Identifier: BSD-3-Clause
176
+ *
177
+ * Redistribution and use in source and binary forms, with or without
178
+ * modification, are permitted provided that the following conditions are met:
179
+ *
180
+ * 1. Redistributions of source code must retain the above copyright notice, this
181
+ * list of conditions and the following disclaimer.
182
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
183
+ * this list of conditions and the following disclaimer in the
184
+ * documentation and/or other materials provided with the distribution.
185
+ * 3. Neither the name of the copyright holder nor the names of its contributors
186
+ * may be used to endorse or promote products derived from this software without
187
+ * specific prior written permission.
188
+ *
189
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
190
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
191
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
192
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
193
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
194
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
195
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
196
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
197
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
198
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
199
+ */
200
+ let vn=/^[a-zA-Z0-9-_]+[ \t]*$/;function yn(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new G(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++r];if(o!==` `&&o!==` `)if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new G(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let s=on(e,t);if(s<0)throw new G(`unfinished string encountered`,{toml:e,ptr:t});r=e.indexOf(`.`,s);let c=e.slice(s,r<0||r>a?a:r),l=rn(c);if(l>-1)throw new G(`newlines are not allowed in keys`,{toml:e,ptr:t+r+l});if(c.trimStart())throw new G(`found extra tokens after the string part`,{toml:e,ptr:s});if(a<s&&(a=e.indexOf(n,s),a<0))throw new G(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});i.push(mn(e,t,s))}else{r=e.indexOf(`.`,t);let n=e.slice(t,r<0||r>a?a:r);if(!vn.test(n))throw new G(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});i.push(n.trimEnd())}}while(r+1&&r<a);return[i,q(e,a+1,!0,!0)]}function bn(e,t,n,r){let i={},a=new Set,o;for(t++;(o=e[t++])!==`}`&&o;)if(o===`,`)throw new G(`expected value, found comma`,{toml:e,ptr:t-1});else if(o===`#`)t=K(e,t);else if(o!==` `&&o!==` `&&o!==`
201
+ `&&o!==`\r`){let o,s=i,c=!1,[l,u]=yn(e,t-1);for(let n=0;n<l.length;n++){if(n&&(s=c?s[o]:s[o]={}),o=l[n],(c=Object.hasOwn(s,o))&&(typeof s[o]!=`object`||a.has(s[o])))throw new G(`trying to redefine an already defined value`,{toml:e,ptr:t});!c&&o===`__proto__`&&Object.defineProperty(s,o,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new G(`trying to redefine an already defined value`,{toml:e,ptr:t});let[d,f]=_n(e,u,`}`,n-1,r);a.add(d),s[o]=d,t=f}if(!o)throw new G(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}function xn(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new G(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=K(e,t);else if(a!==` `&&a!==` `&&a!==`
202
+ `&&a!==`\r`){let a=_n(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new G(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}
203
+ /*!
204
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
205
+ * SPDX-License-Identifier: BSD-3-Clause
206
+ *
207
+ * Redistribution and use in source and binary forms, with or without
208
+ * modification, are permitted provided that the following conditions are met:
209
+ *
210
+ * 1. Redistributions of source code must retain the above copyright notice, this
211
+ * list of conditions and the following disclaimer.
212
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
213
+ * this list of conditions and the following disclaimer in the
214
+ * documentation and/or other materials provided with the distribution.
215
+ * 3. Neither the name of the copyright holder nor the names of its contributors
216
+ * may be used to endorse or promote products derived from this software without
217
+ * specific prior written permission.
218
+ *
219
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
220
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
221
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
222
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
223
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
224
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
225
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
226
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
227
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
228
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
229
+ */
230
+ function Sn(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function Cn(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=q(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=yn(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new G(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=Sn(n[0],r,i,t?2:1);if(!c)throw new G(`trying to redefine an already defined table or value`,{toml:e,ptr:s});o=c[2],a=c[1],s=n[1]}else{let r=yn(e,s),i=Sn(r[0],a,o,0);if(!i)throw new G(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=_n(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=q(e,s,!0),e[s]&&e[s]!==`
231
+ `&&e[s]!==`\r`)throw new G(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=q(e,s)}return r}
232
+ /*!
233
+ * Copyright (c) Squirrel Chat et al., All rights reserved.
234
+ * SPDX-License-Identifier: BSD-3-Clause
235
+ *
236
+ * Redistribution and use in source and binary forms, with or without
237
+ * modification, are permitted provided that the following conditions are met:
238
+ *
239
+ * 1. Redistributions of source code must retain the above copyright notice, this
240
+ * list of conditions and the following disclaimer.
241
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
242
+ * this list of conditions and the following disclaimer in the
243
+ * documentation and/or other materials provided with the distribution.
244
+ * 3. Neither the name of the copyright holder nor the names of its contributors
245
+ * may be used to endorse or promote products derived from this software without
246
+ * specific prior written permission.
247
+ *
248
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
249
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
250
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
251
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
252
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
253
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
254
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
255
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
256
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
257
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
258
+ */
259
+ let wn=/^[a-z0-9-_]+$/i;function J(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function Tn(e){for(let t=0;t<e.length;t++)if(J(e[t])!==`object`)return!1;return e.length!=0}function En(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}function Dn(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:r&&Number.isInteger(e)?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return En(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return On(e,n,r);if(t===`array`)return kn(e,n,r)}function On(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=wn.test(o)?o:En(o),i+=` = `,i+=Dn(e[o],J(e[o]),t-1,n)}return i+` }`}function kn(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=Dn(e[i],J(e[i]),t-1,n)}return r+` ]`}function An(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`
260
+ `}[[${t}]]\n`,i+=jn(0,e[a],t,n,r);return i}function jn(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=J(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=wn.test(c)?c:En(c);if(e===`array`&&Tn(t[c]))o+=(o&&`
261
+ `)+An(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
262
+ `)+jn(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=Dn(t[c],e,r,i),a+=`
263
+ `}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function Mn(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(J(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=jn(0,e,``,t,n);return r[r.length-1]===`
264
+ `?r:r+`
265
+ `}function Nn(e,t){let n;try{n=re(e)}catch(e){if(e.code===`ENOENT`)return;throw e}if(n.isSymbolicLink())throw Error(`Refusing to follow symlink at ${t} (${e}). An untrusted upstream may have committed this symlink to redirect writes outside the project. Remove the symlink and re-run.`)}function Pn(e){return`# yaml-language-server: $schema=https://unpkg.com/@inkeep/open-knowledge@latest/dist/schemas/${o}/config.project.schema.json
266
+ # Open Knowledge — project configuration
267
+ #
268
+ # This file overrides built-in defaults for this project. Every key below
269
+ # is commented out and shows its current default value. Uncomment any key
270
+ # to override it.
271
+ #
272
+ # Precedence (lowest -> highest):
273
+ # Built-in defaults
274
+ # -> ~/.ok/config.yml (user defaults)
275
+ # -> ./.ok/config.yml (this file)
276
+ #
277
+ # Schema reference: packages/cli/src/config/schema.ts
278
+
279
+
280
+ # --- Content ---------------------------------------------------------------
281
+ # dir: where the CRDT editor reads/writes documents. Relative to the project
282
+ # root (the directory containing .ok/), NOT to this file.
283
+ #
284
+ # Path exclusions live in .okignore (gitignore syntax) at the project root,
285
+ # with nested .okignore files honored at any folder depth.
286
+ #
287
+ # content:
288
+ # dir: .
289
+
290
+
291
+ # --- Suggested lifecycle (optional pattern) --------------------------------
292
+ # Projects that want an explicit knowledge-maturation flow can organize as
293
+ # three tiers *relative to the content directory* — create the subfolders
294
+ # only when you need them:
295
+ #
296
+ # 1. external-sources/ — raw content fetched from URLs, PDFs. No analysis,
297
+ # just preservation. Use the \`ingest\` MCP tool.
298
+ # 2. research/ — analysis and synthesis. Provisional findings,
299
+ # trade-offs, open questions. Use the \`research\`
300
+ # MCP tool.
301
+ # 3. articles/ — canonical knowledge. Use the \`consolidate\` MCP
302
+ # tool to promote research -> articles once
303
+ # decisions are made.
304
+ #
305
+ # This is a pattern, not a requirement. Projects with existing layouts
306
+ # (\`specs/\`, \`reports/\`, \`docs/\`, etc.) should use those; the lifecycle
307
+ # exists as mental scaffolding, not as enforced filesystem structure.
308
+
309
+
310
+ # --- Server ----------------------------------------------------------------
311
+ # Host: set via \`--host\` flag or \`HOST\` env var (default: localhost; use
312
+ # \`0.0.0.0\` to bind LAN-visible). Port: set via \`--port\` flag or \`PORT\`
313
+ # env var (auto-allocated if unset). Both are per-process runtime knobs —
314
+ # no \`server:\` schema field exists.
315
+
316
+
317
+ # --- Appearance ------------------------------------------------------------
318
+ # Theme + default editor mode for new docs. Both default UNSET so the
319
+ # existing localStorage cache (\`ok-theme-v1\` / \`ok-editor-mode-v1\`) keeps
320
+ # powering FOUC-free first paint until you explicitly write here.
321
+ #
322
+ # appearance:
323
+ # theme: system # 'light' | 'dark' | 'system'
324
+ # editorModeDefault: wysiwyg # 'wysiwyg' | 'source'
325
+
326
+
327
+ # --- Folders: per-folder frontmatter defaults -------------------------------
328
+ #
329
+ # TL;DR glob gotcha: \`**\` is ONLY a multi-segment wildcard when it is a
330
+ # standalone path segment. \`foo-**\` behaves like \`foo-*\` (single segment, NOT
331
+ # descendants). Use \`foo/**\` or \`foo-*/**\` to match descendants.
332
+ #
333
+ # Declare title/description/tags defaults keyed by glob \`match:\`. Rules merge
334
+ # with a file's own frontmatter at read time:
335
+ # - Per scalar (title, description): the FILE wins when declared; folder
336
+ # rule fills in blanks.
337
+ # - Tags: concatenated across ALL matching rules (in declaration order) with
338
+ # file tags last; first-occurrence preserved on dedup.
339
+ # - Evaluation is positional — LATER rules in this array override earlier
340
+ # rules for scalars. Put general rules first, specific rules last.
341
+ #
342
+ # Picomatch glob cheatsheet:
343
+ # \`match: 'foo'\` — matches ONLY the folder \`foo\` itself
344
+ # \`match: 'foo/**'\` — matches \`foo\` AND all descendants (files + dirs)
345
+ # \`match: 'foo-*'\` — matches \`foo-1\`, \`foo-bar\` (single segment)
346
+ # \`match: 'foo-**'\` — behaves like \`foo-*\` (NOT multi-segment); see
347
+ # TL;DR above. Use \`foo-*/**\` if you want
348
+ # \`foo-X\` plus its descendants.
349
+ #
350
+ # Tip: run \`ok seed\` to scaffold the Karpathy three-layer starter
351
+ # (external-sources/, research/, articles/) with matching \`folders:\` entries.
352
+ # The commented example below is the exact structure \`ok seed\` writes.
353
+ #
354
+ # Example:
355
+ # folders:
356
+ # - match: 'external-sources/**'
357
+ # frontmatter:
358
+ # title: External Sources
359
+ # description: Raw preserved sources (URLs, PDFs, files). Immutable — captured verbatim via \`ingest\`. No analysis in these files; takeaways belong in \`research/\`.
360
+ # tags: [source, immutable, layer-ingest]
361
+ # - match: 'research/**'
362
+ # frontmatter:
363
+ # title: Research
364
+ # description: Provisional analysis synthesizing external sources. Produced by the \`research\` tool. Promote to \`articles/\` via \`consolidate\` when the team decides.
365
+ # tags: [research, provisional, layer-research]
366
+ # - match: 'articles/**'
367
+ # frontmatter:
368
+ # title: Articles
369
+ # description: Canonical knowledge committed after a team decision. Produced by the \`consolidate\` tool with a \`supersedes:\` chain tying back to the research that preceded it.
370
+ # tags: [article, canonical, layer-consolidate]
371
+ `}function Fn(e,t,n){return Nn(e,n),A(e)?!1:(N(e,t,`utf-8`),!0)}function In(e,t){if(Nn(e,`.ok/.gitignore`),!A(e))return N(e,t,`utf-8`),`created`;let n=t.split(`
372
+ `).map(e=>e.trim()).filter(e=>e.length>0&&!e.startsWith(`#`)),r=M(e,`utf-8`),i=new Set(r.split(`
373
+ `).map(e=>e.trim())),a=n.filter(e=>!i.has(e));return a.length===0?`unchanged`:(N(e,`${r}${r.length===0||r.endsWith(`
374
+ `)?``:`
375
+ `}${a.join(`
376
+ `)}\n`,`utf-8`),`updated`)}const Ln=`# .ok/local/ holds per-machine runtime state. Anything inside is
377
+ # machine-local and never committed. New runtime files (caches, locks,
378
+ # manifests, telemetry, error logs) are auto-ignored — no edit needed here.
379
+ ${a}/
380
+ `;function Rn(e){let t=O(e,`.ok`),n=[],r=[],i=[];Nn(t,`.ok/`),j(t,{recursive:!0});let a=In(E(t,`.gitignore`),Ln);return a===`created`?n.push(`.gitignore`):a===`updated`?r.push(`.gitignore`):i.push(`.gitignore`),Fn(E(t,`config.yml`),Pn(p),`.ok/config.yml`)?n.push(m):i.push(m),Fn(E(e,`.okignore`),`# .okignore — paths to exclude from the Open Knowledge document index.
381
+ # Uses gitignore syntax (parsed by the \`ignore\` npm library), evaluated
382
+ # alongside .gitignore in a single ignore-lib instance.
383
+ #
384
+ # Patterns combine with .gitignore: an entry here adds to exclusions, and
385
+ # a leading \`!\` re-includes a file that .gitignore excluded.
386
+ # Nested .okignore files at any folder depth are honored (mirrors .gitignore).
387
+ #
388
+ # Examples:
389
+ # drafts/ # exclude a directory
390
+ # *.draft.md # exclude files matching a pattern
391
+ # !keep.md # re-include a file .gitignore excluded
392
+ `,`.okignore`)?n.push(`.okignore`):i.push(`.okignore`),{created:n,updated:r,skipped:i}}const zn=[`claude`,`claude-desktop`,`cursor`,`vscode`,`windsurf`,`codex`],Bn=[`@inkeep/open-knowledge`,`mcp`],Vn={MCP_DEBUG:`1`,OK_LOG_FILE:`/tmp/ok-mcp.log`};function Hn(e=process.argv[1]){if(!e)throw Error(`Cannot infer the local CLI entry for --dev-mcp because process.argv[1] is empty.`);let t=O(e);if(C(t)===`cli.mjs`&&C(w(t))===`dist`)return t;let n=t.split(k),r=n.lastIndexOf(`packages`);if(r===-1||n[r+1]!==`cli`)throw Error(`Cannot infer the repo root for --dev-mcp from ${t}. Run the local CLI from this repo so the built dist path can be derived.`);let i=n.slice(0,r);return E(i.length===0?k:i.join(k),`packages`,`cli`,`dist`,`cli.mjs`)}function Y(e={}){return e.cliPath?{command:e.cliPath,args:[`mcp`]}:e.mode===`dev`?{command:`node`,args:[Hn(),`mcp`],env:{...Vn}}:{command:`npx`,args:[...Bn]}}function X(e){return e===`win32`?te:ee}function Un(e={}){let t=e.platformName??process.platform,n=e.home??F(),r=e.env??process.env,i=X(t);return t===`darwin`?i.join(n,`Library`,`Application Support`):t===`win32`?r.APPDATA??i.join(n,`AppData`,`Roaming`):r.XDG_CONFIG_HOME??i.join(n,`.config`)}function Wn(e={}){let t=e.platformName??process.platform,n=e.home??F();return X(t).join(n,`.claude.json`)}function Gn(e={}){let t=e.platformName??process.platform,n=e.home??F(),r=e.env??process.env;if(t===`darwin`)return ee.join(n,`Library`,`Application Support`,`Claude`,`claude_desktop_config.json`);if(t===`win32`){let e=r.APPDATA??te.join(n,`AppData`,`Roaming`);return te.join(e,`Claude`,`claude_desktop_config.json`)}throw Error(`Claude Desktop is not available on ${t}. Supported: macOS, Windows.`)}function Kn(e={}){let t=e.platformName??process.platform,n=e.home??F();return X(t).join(n,`.cursor`,`mcp.json`)}function qn(e={}){return X(e.platformName??process.platform).join(Un(e),`Code`,`User`,`mcp.json`)}function Jn(e={}){let t=e.platformName??process.platform,n=e.home??F();return X(t).join(n,`.codeium`,`windsurf`,`mcp_config.json`)}function Yn(e={}){let t=e.platformName??process.platform,n=e.home??F();return(e.env??process.env).CODEX_HOME??X(t).join(n,`.codex`)}function Xn(e={}){return X(e.platformName??process.platform).join(Yn(e),`config.toml`)}function Zn(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>Zn(e,t[n]));if(h(e)&&h(t)){let n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((e,t)=>e===r[t])&&n.every(n=>Zn(e[n],t[n]))}return!1}function Qn(e,t){return Object.entries(t).every(([t,n])=>Zn(e[t],n))}function $n(e,t){return{...e,...t}}function Z(e){return{...e,isCompatible(t,n,r){return Qn(t,e.buildEntry(n,r))},mergeManagedFields(t,n,r){return $n(t,e.buildEntry(n,r))}}}const Q={claude:Z({id:`claude`,label:`Claude Code`,configPath:(e,t)=>Wn({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>s,buildEntry:(e,t)=>Y(t),scope:`global`,detectPath:(e,t)=>E(t??F(),`.claude`),projectConfigPath:e=>E(e,`.mcp.json`),projectSkillPath:e=>E(e,`.claude`,`skills`,`open-knowledge`,`SKILL.md`)}),"claude-desktop":Z({id:`claude-desktop`,label:`Claude Desktop`,configPath:(e,t)=>Gn({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>s,buildEntry:(e,t)=>Y(t),scope:`global`,detectPath:(e,t)=>w(Gn({home:t}))}),cursor:Z({id:`cursor`,label:`Cursor`,configPath:(e,t)=>Kn({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>s,buildEntry:(e,t)=>Y(t),scope:`global`,detectPath:(e,t)=>w(Kn({home:t})),projectConfigPath:e=>E(e,`.cursor`,`mcp.json`),projectSkillPath:e=>E(e,`.cursor`,`skills`,`open-knowledge`,`SKILL.md`)}),vscode:Z({id:`vscode`,label:`VS Code`,configPath:(e,t)=>qn({home:t}),format:`json`,topLevelKey:`servers`,serverName:()=>s,buildEntry:(e,t)=>({type:`stdio`,...Y(t)}),scope:`global`,detectPath:(e,t)=>w(qn({home:t})),projectConfigPath:e=>E(e,`.vscode`,`mcp.json`)}),windsurf:Z({id:`windsurf`,label:`Windsurf`,configPath:(e,t)=>Jn({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>s,buildEntry:(e,t)=>Y(t),scope:`global`,detectPath:(e,t)=>w(Jn({home:t}))}),codex:Z({id:`codex`,label:`Codex`,configPath:(e,t)=>Xn({home:t}),format:`toml`,topLevelKey:`mcp_servers`,serverName:()=>s,buildEntry:(e,t)=>Y(t),scope:`global`,detectPath:(e,t)=>w(Xn({home:t})),projectConfigPath:e=>E(e,`.codex`,`config.toml`)})};function er(e){let t=e.filter(e=>!Object.hasOwn(Q,e));if(t.length>0)throw Error(`Unknown editor(s): ${t.join(`, `)}. Valid options: ${zn.join(`, `)}`);return e.map(e=>Q[e])}function tr(e){if(!A(e))return{};let t=M(e,`utf-8`).trim();if(t===``)return{};try{let n=JSON.parse(t);if(h(n))return n;throw Error(`${e} root must be a JSON object`)}catch(t){throw t instanceof SyntaxError?Error(`${e} contains invalid JSON: ${t.message}`):t}}function nr(e){if(!A(e))return{};let t=M(e,`utf-8`).trim();if(t===``)return{};try{let n=Cn(t);if(h(n))return n;throw Error(`${e} root must be a TOML table`)}catch(t){throw Error(`${e} contains invalid TOML: ${t instanceof Error?t.message:String(t)}`)}}function rr(e,t){j(w(e),{recursive:!0}),N(e,`${JSON.stringify(t,null,2)}\n`,`utf-8`)}function ir(e,t){j(w(e),{recursive:!0});let n=Mn(t);N(e,n.endsWith(`
393
+ `)?n:`${n}\n`,`utf-8`)}function ar(e,t){let n;try{n=ie(t)}catch{n=O(t)}let r;try{r=re(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(r?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run \`ok init\`, or pass \`--no-mcp\` to skip MCP config writes.`);let i=w(e);for(;i.length>1&&i!==k;){let t;try{t=ie(i)}catch(e){if(e.code===`ENOENT`){i=w(i);continue}throw e}let r=D(n,t);if(r===``||!r.startsWith(`..`)&&!T(r))return;throw Error(`Refusing to write at ${e}: ancestor ${i} resolves to ${t}, which is outside the project directory ${n}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run, or pass \`--no-mcp\`.`)}}const or=e=>e!==`project`,sr=e=>e!==`user`;async function cr(){let e=await $t({message:`Where should the MCP server be configured?
394
+ `,required:!1,theme:{icon:{checked:`[x]`,unchecked:`[ ]`}},choices:[{name:`User-level (~/.claude.json, ~/.cursor/mcp.json, …)`,value:`user`,checked:!0},{name:`Project-level (.mcp.json, .cursor/mcp.json, …)`,value:`project`,checked:!0}]});return e.includes(`user`)&&e.includes(`project`)?`both`:e.includes(`user`)?`user`:e.includes(`project`)?`project`:null}async function lr(e){return e.mcp===!1?null:e.scope?e.scope:e.isTTY??process.stdout.isTTY?(e.promptFn??cr)():`both`}const ur=`0.0.1`,dr=`open-knowledge-ui`;function fr(e,t={}){let n=E(e,`.claude`,`launch.json`),r=t.mode===`dev`?{name:dr,runtimeExecutable:`node`,runtimeArgs:[Hn(),`ui`],port:3e3}:{name:dr,runtimeExecutable:`npx`,runtimeArgs:[`@inkeep/open-knowledge`,`ui`],port:3e3};try{if(ar(n,e),!A(n))return j(w(n),{recursive:!0}),N(n,`${JSON.stringify({version:ur,configurations:[r]},null,2)}\n`,`utf-8`),{action:`created`,configPath:n};let t=M(n,`utf-8`).trim(),i=t?JSON.parse(t):{};if(!h(i))return{action:`failed`,configPath:n,error:`launch.json root is not an object`};let a=Array.isArray(i.configurations)?i.configurations:[],o=a.findIndex(e=>h(e)&&e.name===dr);o>=0?a[o]=r:a.push(r);let s={...i,version:i.version??ur,configurations:a};return N(n,`${JSON.stringify(s,null,2)}\n`,`utf-8`),{action:o>=0?`merged`:`created`,configPath:n}}catch(e){return{action:`failed`,configPath:n,error:e instanceof Error?e.message:String(e)}}}function pr(e,t,n){try{return A(e.detectPath?.(t,n)??w(e.configPath(t,n)))}catch{return!1}}function $(e,t,n,r,i){let a=e.serverName(t),o;try{o=i??e.configPath(t,r)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:``,serverName:a,error:t instanceof Error?t.message:String(t)}}if(!i&&!n.skipAvailabilityCheck&&!pr(e,t,r))return{editorId:e.id,label:e.label,action:`skipped-missing`,configPath:o,serverName:a};if(i!==void 0)try{ar(o,t)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),configScope:`project`}}let s;try{s=e.format===`toml`?nr(o):tr(o)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t)}}let c=s[e.topLevelKey]??{},l=c[a],u;try{u=e.buildEntry(t,n)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t)}}let d={...s,[e.topLevelKey]:{...c,[a]:u}};try{e.format===`toml`?ir(o,d):rr(o,d)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t)}}return{editorId:e.id,label:e.label,action:l===void 0?`written`:`overwritten`,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}}}function mr(e,t){let n=e.projectSkillPath?.(t);if(!n)return{editorId:e.id,label:e.label,action:`skipped-unsupported`,path:``};try{let r=d(),i=w(n);ar(i,t);let a=A(n)?`overwritten`:`written`;return ae(i,{recursive:!0,force:!0}),j(w(i),{recursive:!0}),ne(r,i,{recursive:!0}),{editorId:e.id,label:e.label,action:a,path:n}}catch(t){return{editorId:e.id,label:e.label,action:`failed`,path:n,error:t instanceof Error?t.message:String(t)}}}function hr(e,t){let n=e.projectConfigPath?.(t);if(!(!n||!A(n)))return{editorId:e.id,label:e.label,path:n}}async function gr(e){let t=er(e.editors),n={mode:`published`,cliPath:e.cliPath,skipAvailabilityCheck:!0};return t.map(t=>$(t,``,n,e.home))}function _r(e,t,n){let r;try{r=e.configPath(t,n)}catch{return null}let i;try{i=e.format===`toml`?nr(r):tr(r)}catch{return null}let a=i[e.topLevelKey];if(!h(a))return null;let o=a[e.serverName(t)];return h(o)?o:null}async function vr(e={}){let t=O(e.cwd??process.cwd()),n={mode:e.devMcp?`dev`:`published`},r=await c(t),i;try{i=Rn(t)}catch(n){let i=Q.claude.configPath(t,e.home);return{contentCreated:[],contentUpdated:[],contentSkipped:[],editors:[],projectSkills:[],legacyProjectConfigs:[],didGitInit:r.didInit,claudeDesktopDetected:!1,mcpAction:`failed`,mcpPath:i,mcpError:`Content scaffolding failed: ${n instanceof Error?n.message:String(n)}`}}let a=await lr({scope:e.scope,mcp:e.mcp,isTTY:e.isTTY,promptFn:e.promptFn}),o=e.editors??br(t,e.home),s=e.editors??zn.filter(e=>Q[e].projectConfigPath!==void 0),u=er(o),d=er(s),p=e.mcp===!1||a===null,m=Array.from(new Map([...u,...p?[]:d].map(e=>[e.id,e])).values()),h=u.filter(n=>pr(n,t,e.home)),g=[],_=[],v=new Set;for(let r of m){if(p){let n=``;try{n=r.configPath(t,e.home)}catch{}g.push({editorId:r.id,label:r.label,action:`skipped-flag`,configPath:n,serverName:r.serverName(t)});continue}if(or(a)&&u.includes(r)&&g.push($(r,t,n,e.home)),sr(a)&&d.includes(r)&&r.projectConfigPath){let i=r.projectConfigPath(t),a=$(r,t,n,e.home,i);g.push(a),(a.action===`written`||a.action===`overwritten`)&&(v.add(i),_.push(mr(r,t)))}}let y=!p&&a!==null&&sr(a)?d.filter(e=>!e.projectConfigPath).map(e=>e.label):void 0,b=p?[]:h.map(e=>hr(e,t)).filter(e=>e!==void 0).filter(e=>!v.has(e.path)),x=h.some(e=>e.id===`claude`)&&!p?fr(t,n):void 0,S=await(e.installUserSkill??f)({home:e.home}),C=l({home:e.home}),w=p?`skipped-flag`:`skipped-missing`,T=g.find(e=>e.editorId===`claude`)??g[0]??{action:w,configPath:Q.claude.configPath(t,e.home)};return{contentCreated:i.created,contentUpdated:i.updated,contentSkipped:i.skipped,editors:g,projectSkills:_,legacyProjectConfigs:b,launchJson:x,skillInstall:S,didGitInit:r.didInit,claudeDesktopDetected:C,mcpAction:T.action,mcpPath:T.configPath,mcpError:`error`in T?T.error:void 0,projectScopeUnsupportedLabels:y}}function yr(e,t){let n=[],r=e.editors.some(e=>e.action===`written`||e.action===`overwritten`),i=e.editors.some(e=>e.action===`failed`)||e.projectSkills.some(e=>e.action===`failed`),a=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-flag`),o=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-missing`),s=e=>{let n=e.configPath.startsWith(t)?D(t,e.configPath):e.configPath;switch(e.action){case`created`:return` app preview server ${n} configured for Claude Code Desktop embedded browser`;case`merged`:return` app preview server ${n} updated for Claude Code Desktop embedded browser`;case`failed`:return` app preview server ${n} FAILED: ${e.error}`}};e.didGitInit&&n.push(`Initialized git repo at ${t}/.git/ (default branch: main)`);let c=E(t,`.ok`);if(e.contentCreated.length>0||e.contentUpdated.length>0?(n.push(b(`Content scaffolded at ${c}/`)),e.contentCreated.length>0&&n.push(` Created: ${e.contentCreated.join(`, `)}`),e.contentUpdated.length>0&&n.push(` Updated: ${e.contentUpdated.join(`, `)}`)):n.push(b(`Content already present at ${c}/`)),e.contentSkipped.length>0&&n.push(` Skipped (already exist): ${e.contentSkipped.join(`, `)}`),n.push(``),e.mcpError&&e.editors.length===0)n.push(`Warning: ${e.mcpError}`);else if(e.editors.length===0)if(n.push(b(`MCP server configuration:`)),e.mcpAction===`skipped-flag`)n.push(` MCP config not written — use without --no-mcp to configure editors`);else if(e.projectScopeUnsupportedLabels&&e.projectScopeUnsupportedLabels.length>0){let t=e.projectScopeUnsupportedLabels.join(`, `),r=e.projectScopeUnsupportedLabels.length===1?`does`:`do`;n.push(` ${t} ${r} not support project-level config; skipped`)}else n.push(` No supported editor config directories detected; skipped MCP registration`);else if(a)n.push(`MCP config not written — use without --no-mcp to configure editors`);else if(o)n.push(b(`MCP server configuration:`)),n.push(` No supported editor config directories detected; skipped MCP registration`);else{n.push(b(`MCP server configuration:`));for(let r of e.editors){let i=r.configPath.startsWith(t)?D(t,r.configPath):r.configPath.replace(/^\/Users\/[^/]+/,`~`),a=r.serverName===`open-knowledge`?``:` (${r.serverName})`,o=r.configScope===`project`?` (project)`:``,c=`${r.label}${o}`,l=` `.repeat(Math.max(1,20-c.length)),u=r.editorId===`claude-desktop`&&(r.action===`written`||r.action===`overwritten`)?` — quit and relaunch Claude Desktop to activate`:``;switch(r.action){case`written`:n.push(` ${c}${l}${i} ${_(`registered`)}${a}${u}`);break;case`overwritten`:n.push(` ${c}${l}${i} ${_(`updated`)}${a}${u}`);break;case`skipped-missing`:n.push(` ${c}${l}${i} config root missing; skipped`);break;case`failed`:n.push(` ${c}${l}${i} ${v(`FAILED`)}: ${r.error}`);break;case`skipped-flag`:break}r.editorId===`claude`&&e.launchJson&&n.push(s(e.launchJson))}if(e.projectScopeUnsupportedLabels&&e.projectScopeUnsupportedLabels.length>0){let t=e.projectScopeUnsupportedLabels.join(`, `),r=e.projectScopeUnsupportedLabels.length===1?`does`:`do`;n.push(` ${t} ${r} not support project-level config; skipped`)}}if(e.projectSkills.length>0){n.push(``),n.push(b(`Project-local skills:`));for(let r of e.projectSkills){let e=`${r.label} (project)`,i=` `.repeat(Math.max(1,20-e.length)),a=r.path?D(t,r.path):``;switch(r.action){case`written`:n.push(` ${e}${i}${a} ${_(`installed`)}`);break;case`overwritten`:n.push(` ${e}${i}${a} ${_(`updated`)}`);break;case`skipped-unsupported`:n.push(` ${e}${i}no known project skill surface; skipped`);break;case`failed`:n.push(` ${e}${i}${a} ${v(`FAILED`)}: ${r.error}`);break}}}if(i&&(n.push(``),n.push(`For failed editors, add the MCP server entry or project skill manually. See:`),n.push(` https://github.com/inkeep/open-knowledge#mcp-setup`)),e.legacyProjectConfigs.length>0){n.push(``),n.push(`Project MCP configs found:`);for(let r of e.legacyProjectConfigs)n.push(` ${r.label} ${D(t,r.path)}`);n.push(` These project-local files may override the global config. Remove them if you want fully user-scoped MCP setup in this project.`)}if(e.skillInstall)switch(n.push(``),n.push(b(`User-global skill:`)),e.skillInstall){case`installed`:n.push(` open-knowledge ${_(`installed to detected agent hosts`)} via \`npx skills\``);break;case`skip-current`:n.push(` open-knowledge ${_(`already installed at current version`)}`);break;case`failed`:n.push(` ${y(`open-knowledge install failed — MCP still configured; run manually:`)}`),n.push(` ${y(` npx skills@~1.5.0 add <bundled-path> --agent '*' -g -y --copy`)}`);break}if(e.claudeDesktopDetected&&(n.push(``),n.push(`Claude Desktop App detected. To enable in Claude Chat & Cowork, run: ${b(`ok install-skill`)}`)),e.preview?(n.push(``),n.push(x(e.preview,t))):e.previewWarning&&(n.push(``),n.push(`Content preview unavailable: ${e.previewWarning}`)),r){let t=new Set,r=e.editors.filter(e=>e.action===`written`||e.action===`overwritten`).filter(e=>!t.has(e.editorId)&&t.add(e.editorId)).map(e=>e.label);n.push(``),n.push(`${_(`✓`)} ${b(`Next steps:`)}`),n.push(` 1. Open your editor (${g(r.join(` / `))})`),n.push(` 2. Approve the MCP server when prompted`),n.push(` 3. (Optional) scaffold the starter knowledge-base structure:`),n.push(` - ${g(`ok seed`)}`),n.push(` 4. Use the three MCP workflow tools as you build the wiki:`),n.push(` - ${g(`mcp__open-knowledge__ingest`)} — capture an external source`),n.push(` - ${g(`mcp__open-knowledge__research`)} — gather sources and write findings`),n.push(` - ${g(`mcp__open-knowledge__consolidate`)} — promote research to canonical articles`)}return n.join(`
395
+ `)}function br(e,t){let n=[];for(let r of zn)pr(Q[r],e,t)&&n.push(r);return n}function xr(){return new i(`init`).description(`Scaffold .ok/ in the current directory and register the MCP server for your editor(s)`).option(`--mcp`,`Register the MCP server for selected editors (default: true)`,!0).option(`--no-mcp`,`Scaffold the .ok/ directory but do not touch MCP config`).option(`--dev-mcp`,`Register a local dev MCP entry using node + packages/cli/dist/cli.mjs with debug logging`).addOption(new r(`--scope <scope>`,`Write MCP config at user level, project level, or both`).choices([`user`,`project`,`both`])).action(async e=>{let t=process.cwd(),n;try{n=await vr({cwd:t,mcp:e.mcp,devMcp:e.devMcp,scope:e.scope})}catch(e){if(e instanceof u){process.stderr.write(`open-knowledge requires git to initialize a parent repo. Install git or run 'git init' yourself, then re-run.
396
+ `),e.stderr&&process.stderr.write(`${e.stderr.trim()}\n`),process.exitCode=1;return}throw e}try{let{previewContent:e}=await import(`./preview-CN1rHXBb.mjs`),{loadConfig:r}=await import(`./loader-C8lkPKn8.mjs`),{resolveContentDir:i}=await import(`./dist-DXLSMgBY.mjs`),{config:a}=r(t),o=i(a,t);n.preview=e({projectDir:t,contentDir:o})}catch(e){n.previewWarning=e instanceof Error?e.message:String(e)}process.stdout.write(`${yr(n,t)}\n`),(n.editors.some(e=>e.action===`failed`)||n.mcpAction===`failed`)&&(process.exitCode=1)})}export{L as S,ot as _,lr as a,ze as b,gr as c,Rn as d,rt as f,nt as g,it as h,_r as i,zn as l,tt as m,yr as n,vr as o,et as p,xr as r,$ as s,br as t,Q as u,Ze as v,ge as x,Be as y};
397
+ //# sourceMappingURL=init-B7qJnXKB.mjs.map
@@ -0,0 +1 @@
1
+ import{o as e}from"./init-B7qJnXKB.mjs";export{e as runInit};
@@ -1,2 +1,2 @@
1
1
  function e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}export{e as t};
2
- //# sourceMappingURL=is-object-BNVklKxg.mjs.map
2
+ //# sourceMappingURL=is-object-DF0ZeuvD.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-A7ICOL4V-BvXPAaHu.mjs";export{e as join};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import"./chunk-7TSDKFEO-DUQhJkDy.mjs";import"./chunk-BBXLRYSX-K758HlCs.mjs";import{t as e}from"./chunk-YCFVLTST-Dzwevuc3.mjs";export{e as jqCommand};
@@ -1,4 +1,4 @@
1
- import"./chunk-R6VWJ2ZL-B0CcMPyK.mjs";import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{r}from"./chunk-OJDRYQWQ-BV5MVRVg.mjs";import{n as i,t as a}from"./chunk-3THT3N7L-klp8GP84.mjs";import{t as o}from"./chunk-44UOCSGV-BUBpWxXm.mjs";import{t as s}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as c,t as l}from"./chunk-I57KEIP3-B1DoH8rp.mjs";import{AsyncLocalStorage as u}from"node:async_hooks";import{fileURLToPath as d}from"node:url";import{Worker as f}from"node:worker_threads";import{randomBytes as p}from"node:crypto";var m=1e4,h=6e4,g=new u,_=`js-exec - Sandboxed JavaScript/TypeScript runtime with Node.js-compatible APIs
1
+ import"./chunk-R6VWJ2ZL-FwG_Za20.mjs";import"./chunk-CWQS3NFK-Co4ALolT.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5QMZ5MUS-CAp625aG.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{r}from"./chunk-OJDRYQWQ-ikvLWpfV.mjs";import{n as i,t as a}from"./chunk-3THT3N7L-DztAF386.mjs";import{t as o}from"./chunk-44UOCSGV-CaFxJDHm.mjs";import{t as s}from"./chunk-74CEPOFO-BcZUJMO1.mjs";import{n as c,t as l}from"./chunk-I57KEIP3-DipCOPKf.mjs";import{fileURLToPath as u}from"node:url";import{AsyncLocalStorage as d}from"node:async_hooks";import{Worker as f}from"node:worker_threads";import{randomBytes as p}from"node:crypto";var m=1e4,h=6e4,g=new d,_=`js-exec - Sandboxed JavaScript/TypeScript runtime with Node.js-compatible APIs
2
2
 
3
3
  Usage: js-exec [OPTIONS] [-c CODE | FILE] [ARGS...]
4
4
 
@@ -85,7 +85,7 @@ Limits:
85
85
  Engine: QuickJS (compiled to WebAssembly)
86
86
  `;function v(e){let t={code:null,scriptFile:null,showVersion:!1,scriptArgs:[],isModule:!1,stripTypes:!1};if(e.length===0)return t;for(let n=0;n<e.length;n++){let r=e[n];if(r===`-m`||r===`--module`){t.isModule=!0;continue}if(r===`--strip-types`){t.stripTypes=!0;continue}if(r===`-c`)return n+1>=e.length?{stdout:``,stderr:`js-exec: option requires an argument -- 'c'
87
87
  `,exitCode:2}:(t.code=e[n+1],t.scriptArgs=e.slice(n+2),t);if(r===`--version`||r===`-V`)return t.showVersion=!0,t;if(r.startsWith(`-`)&&r!==`-`&&r!==`--`)return{stdout:``,stderr:`js-exec: unrecognized option '${r}'
88
- `,exitCode:2};if(r===`--`)return n+1<e.length&&(t.scriptFile=e[n+1],t.scriptArgs=e.slice(n+2)),t;if(!r.startsWith(`-`))return t.scriptFile=r,t.scriptArgs=e.slice(n+1),t}return t}var y=null,b=null,x=[],S=null,C=d(new URL(`./worker.js`,import.meta.url));function w(){for(;x.length>0&&x[0].canceled;)x.shift();if(S||x.length===0)return;let e=x.shift();e&&(S=e,E().postMessage(S.input))}function T(e,t){if(!e||typeof e!=`object`)return{success:!1,error:`Malformed worker response`};let n=e;return typeof n.protocolToken!=`string`||n.protocolToken!==t?{success:!1,error:`Malformed worker response: invalid protocol token`}:typeof n.success==`boolean`?n.success?{success:!0}:{success:!1,error:typeof n.error==`string`&&n.error.length>0?n.error:`Worker execution failed`}:{success:!1,error:`Malformed worker response: missing success flag`}}function E(){if(b&&=(t(b),null),y)return y;let n=e.runTrusted(()=>new f(C));return y=n,n.on(`message`,e=>{if(y===n){if(S){let t=T(e,S.input.protocolToken);S.resolve(t),S=null}x.length>0?w():D()}}),n.on(`error`,e=>{if(y===n){if(S){let t=a(o(e));S.resolve({success:!1,error:t}),S=null}for(let e of x)e.resolve({success:!1,error:`Worker crashed`});x.length=0,y=null}}),n.on(`exit`,()=>{y===n&&(y=null,S&&=(S.resolve({success:!1,error:`Worker exited unexpectedly`}),null),x.length>0&&w())}),n}function D(){b=n(()=>{y&&!S&&x.length===0&&(y.terminate(),y=null)},5e3)}async function O(e,t,n,r=[],i,a,o){return g.getStore()?{stdout:``,stderr:`js-exec: recursive invocation is not supported
88
+ `,exitCode:2};if(r===`--`)return n+1<e.length&&(t.scriptFile=e[n+1],t.scriptArgs=e.slice(n+2)),t;if(!r.startsWith(`-`))return t.scriptFile=r,t.scriptArgs=e.slice(n+1),t}return t}var y=null,b=null,x=[],S=null,C=u(new URL(`./worker.js`,import.meta.url));function w(){for(;x.length>0&&x[0].canceled;)x.shift();if(S||x.length===0)return;let e=x.shift();e&&(S=e,E().postMessage(S.input))}function T(e,t){if(!e||typeof e!=`object`)return{success:!1,error:`Malformed worker response`};let n=e;return typeof n.protocolToken!=`string`||n.protocolToken!==t?{success:!1,error:`Malformed worker response: invalid protocol token`}:typeof n.success==`boolean`?n.success?{success:!0}:{success:!1,error:typeof n.error==`string`&&n.error.length>0?n.error:`Worker execution failed`}:{success:!1,error:`Malformed worker response: missing success flag`}}function E(){if(b&&=(t(b),null),y)return y;let n=e.runTrusted(()=>new f(C));return y=n,n.on(`message`,e=>{if(y===n){if(S){let t=T(e,S.input.protocolToken);S.resolve(t),S=null}x.length>0?w():D()}}),n.on(`error`,e=>{if(y===n){if(S){let t=a(o(e));S.resolve({success:!1,error:t}),S=null}for(let e of x)e.resolve({success:!1,error:`Worker crashed`});x.length=0,y=null}}),n.on(`exit`,()=>{y===n&&(y=null,S&&=(S.resolve({success:!1,error:`Worker exited unexpectedly`}),null),x.length>0&&w())}),n}function D(){b=n(()=>{y&&!S&&x.length===0&&(y.terminate(),y=null)},5e3)}async function O(e,t,n,r=[],i,a,o){return g.getStore()?{stdout:``,stderr:`js-exec: recursive invocation is not supported
89
89
  `,exitCode:1}:k(e,t,n,r,i,a,o)}async function k(e,i,s,u=[],d,f,_){let v=c(),b=i.exec,C=b?(e,t)=>g.run(!0,()=>b(e,t)):void 0,T=new l(v,i.fs,i.cwd,`js-exec`,i.fetch,i.limits?.maxOutputSize??0,C),E=i.limits?.maxJsTimeoutMs??m,D=i.fetch?Math.max(E,h):E,O={protocolToken:p(16).toString(`hex`),sharedBuffer:v,jsCode:e,cwd:i.cwd,env:r(i.env),args:u,scriptPath:s,bootstrapCode:d,isModule:f,stripTypes:_,timeoutMs:D},k,A=new Promise(e=>{k=e}),j={input:O,resolve:()=>{}},M=n(()=>{if(S===j){let e=y;e&&(y=null,e.terminate()),S=null,w()}else j.canceled=!0,S||w();j.resolve({success:!1,error:`Execution timeout: exceeded ${D}ms limit`})},D);j.resolve=e=>{t(M),k(e)},x.push(j),w();let[N,P]=await Promise.all([T.run(D),A.catch(e=>({success:!1,error:a(o(e))}))]);return!P.success&&P.error?{stdout:N.stdout,stderr:`${N.stderr}js-exec: ${a(P.error)}
90
90
  `,exitCode:N.exitCode||1}:N}var A={name:`js-exec`,async execute(e,t){if(s(e))return{stdout:_,stderr:``,exitCode:0};let n=v(e);if(`exitCode`in n)return n;if(n.showVersion)return{stdout:`QuickJS (quickjs-emscripten)
91
91
  `,stderr:``,exitCode:0};let r,a;if(n.code!==null)r=n.code,a=`-c`;else if(n.scriptFile!==null){let e=t.fs.resolvePath(t.cwd,n.scriptFile);if(!await t.fs.exists(e))return{stdout:``,stderr:`js-exec: can't open file '${n.scriptFile}': No such file or directory
@@ -94,4 +94,4 @@ Limits:
94
94
  `,exitCode:2};let o=n.isModule,c=n.stripTypes;a&&a!==`-c`&&a!==`<stdin>`&&((a.endsWith(`.mjs`)||a.endsWith(`.mts`)||a.endsWith(`.ts`))&&(o=!0),(a.endsWith(`.ts`)||a.endsWith(`.mts`))&&(c=!0)),!o&&/\bawait\s+[\w([`]/.test(r)&&(o=!0);let l=t.jsBootstrapCode;return O(r,t,a,n.scriptArgs,l,o,c)}},j={name:`node`,async execute(){return{stdout:``,stderr:`node: this sandbox uses js-exec instead of node
95
95
 
96
96
  ${_}`,exitCode:1}}};export{A as jsExecCommand,j as nodeStubCommand};
97
- //# sourceMappingURL=js-exec-M6UR76J5-DSk5_wnx.mjs.map
97
+ //# sourceMappingURL=js-exec-M6UR76J5-IyD-lpzv.mjs.map
@@ -1,2 +1,2 @@
1
1
  import{i as e,t}from"./chunk-FK9Q3tQk.mjs";var n=t((t=>{let{promisify:n}=e(`util`),{isUint8Array:r}=e(`util/types`);function i(){try{return e(`../build/Release/zstd.node`)}catch{try{return e(`../build/Debug/zstd.node`)}catch(e){throw e}}}let a=i(),o=n(a.compress),s=n(a.decompress);t.compress=async function(e,t){if(!r(e))throw TypeError(`parameter 'data' must be a Uint8Array.`);if(t!=null&&typeof t!=`number`)throw TypeError(`parameter 'compressionLevel' must be a number.`);try{return await o(e,t??3)}catch(e){throw Error(`zstd: ${e.message}`)}},t.decompress=async function(e){if(!r(e))throw TypeError(`parameter 'data' must be a Uint8Array.`);try{return await s(e)}catch(e){throw Error(`zstd: ${e.message}`)}},t.getDefinedNapiVersion=a.getDefinedNapiVersion}));export default n();export{};
2
- //# sourceMappingURL=lib-Dl2j2VNl.mjs.map
2
+ //# sourceMappingURL=lib-BOCdCkg7.mjs.map
@@ -11,4 +11,4 @@ var e=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&
11
11
  `),n=e.split(`
12
12
  `).map(e=>e+`
13
13
  `);return t?n.pop():n.push(n.pop().slice(0,-1)),n}export{w as n,_ as r,T as t};
14
- //# sourceMappingURL=libesm-DC4M2SkF.mjs.map
14
+ //# sourceMappingURL=libesm-YL3Bqolr.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-PBXLG62G-CgbPJTiw.mjs";export{e as lnCommand};
@@ -0,0 +1,4 @@
1
+ import{Y as e,bt as t,cn as n}from"./dist-DVM7wH81.mjs";import{d as r,nr as i}from"./dist-B6pNPboH.mjs";import{t as a}from"./constants-Dc6GZ6j9.mjs";import{t as o}from"./is-object-DF0ZeuvD.mjs";import{resolve as s}from"node:path";import{existsSync as c,readFileSync as l}from"node:fs";import{homedir as u}from"node:os";var d=n();function f(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];o(a)&&o(i)?n[r]=f(i,a):a!==void 0&&(n[r]=a)}return n}function p(e){if(!c(e))return{value:null,path:e,source:null,doc:null};let t;try{t=l(e,`utf-8`)}catch(t){return console.warn(`[config] Failed to read ${e}: ${t instanceof Error?t.message:t}`),{value:null,path:e,source:null,doc:null}}let n=(0,d.parseDocument)(t);if(n.errors.length>0)return console.warn(`[config] Failed to parse ${e}: ${n.errors.map(e=>e.message).join(`; `)}`),{value:null,path:e,source:t,doc:null};let r=n.toJSON();return o(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}const m=[`include`,`exclude`];function h(e){let t="Run `ok config migrate` to strip the obsolete key from config.yml automatically, or remove it by hand.";return e===`exclude`?[`Move these patterns to .okignore at the project root (gitignore syntax, 1:1 migration).`,t].join(` `):[`content.include has been removed.`,`For subdirectory scoping, set content.dir in .ok/config.yml instead.`,`For pattern-based filtering, use .okignore (gitignore syntax — exclude-only; do not copy include patterns directly).`,t].join(` `)}function g(e){let n=e.value;if(!o(n))return[];let r=n.content;if(!o(r))return[];let i=[];for(let n of m)if(n in r){let r=[`content`,n],a;e.doc!==null&&e.source!==null&&(a=t({file:e.path,source:e.source,doc:e.doc,path:r})),i.push({code:`REMOVED_KEY`,path:r,redirect:h(n),...a===void 0?{}:{source:a}})}return i}function _(e,n){return e.map(e=>{let r=e.path.map(e=>typeof e==`symbol`?String(e):e),i={path:r,message:e.message,issueCode:e.code};if(n.doc!==null&&n.source!==null){let e=t({file:n.path,source:n.source,doc:n.doc,path:r});if(e!==void 0)return{...i,source:e}}return i})}function v(t){let n=t??process.cwd(),o=[],c=s(u(),`.ok`,a),l=i({absPath:c}),d={};l.valid&&l.source!==void 0?(d=f(d,l.value),o.push(c)):l.valid;let m=s(n,`.ok`,a),h=p(m);if(h.value!==null){let t=g(h);if(t.length>0)throw Error(t.map(e).join(`
2
+
3
+ `));d=f(d,h.value),o.push(m)}y(d,[`upload`,`maxBytes`],`streaming uploads have no user-facing cap`),y(d,[`github`,`oauthAppClientId`],`use the OPEN_KNOWLEDGE_GITHUB_CLIENT_ID env var instead`),y(d,[`server`,`host`],`use the --host flag or HOST env var instead`),y(d,[`server`,`openOnAgentEdit`]),y(d,[`mcp`,`autoStart`],`to disable auto-start, set OK_MCP_AUTOSTART=0`),y(d,[`mcp`,`tools`,`read_document`,`historyDepth`]),y(d,[`mcp`,`tools`,`grep`,`maxResults`]),y(d,[`mcp`,`tools`,`search`,`maxResults`]);let v=r.safeParse(d);if(!v.success){let t={code:`SCHEMA_INVALID`,issues:_(v.error.issues,h)};throw Error(e(t))}return{config:v.data,sources:o}}function y(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){if(!o(r))return;r=r[t[e]]}if(!o(r))return;let i=t[t.length-1];if(r[i]===void 0)return;let a=t.join(`.`);console.warn(`[config] ${a} is no longer user-configurable; ${n??`the value is hardcoded in @inkeep/open-knowledge-core`}. Remove the key to silence this warning.`)}export{v as t};
4
+ //# sourceMappingURL=loader-BQf8AJXb.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./loader-BQf8AJXb.mjs";export{e as loadConfig};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-V7TAPXDL-DQgGPvBY.mjs";export{e as lsCommand};