@inkeep/open-knowledge 0.8.0-beta.22 → 0.8.0-beta.23
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.
- package/dist/alias-JE7RI5QX-DvXqsNuT.mjs +1 -0
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/awk2-POPGKRAI-DjdS5H9u.mjs +1 -0
- package/dist/{banner-2j-_SAt6.mjs → banner-D39r_H1d.mjs} +2 -2
- package/dist/base64-4YMZCVJ5-KM4zCU91.mjs +1 -0
- package/dist/basename-AA2KJYZQ-623KrTZh.mjs +1 -0
- package/dist/bash-IJWYRKFO-Czh-Vt61.mjs +1 -0
- package/dist/{build-fAc55Z_L.mjs → build-CHU3LuiR.mjs} +1 -1
- package/dist/build-DxnNKCqf.mjs +1 -0
- package/dist/cat-RDUMLXKC-BcPFfXNy.mjs +1 -0
- package/dist/chmod-SYMGL4JA-DNQ-_FB-.mjs +1 -0
- package/dist/{chokidar-Drw_7KKo.mjs → chokidar-CblsKfnx.mjs} +1 -1
- package/dist/{chunk-24IMIIXA-BPYIgkX5.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
- package/dist/{chunk-3THT3N7L-DJBUbZXN.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
- package/dist/{chunk-3ZUFRYJ4-BZnpEf92.mjs → chunk-3ZUFRYJ4-C93H8j0V.mjs} +1 -1
- package/dist/{chunk-44UOCSGV-Bldn7atv.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
- package/dist/{chunk-4GTNDTRF--1mJs7-X.mjs → chunk-4GTNDTRF-_OVmXcJ-.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-MVqoi_T3.mjs → chunk-4HHKTUW3-Dm69hDaZ.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-CvGF-_Q8.mjs → chunk-4Q4SM6WR-DDQRsilN.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-BI6dNKjc.mjs → chunk-55VFSPNA-DVZfQAzN.mjs} +2 -2
- package/dist/{chunk-5QMZ5MUS-BQ6AJ7O6.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-BvfNka90.mjs → chunk-5QVNJEHU-BvsipSFW.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-D7bOa6u8.mjs → chunk-5V6VZH6T-BCr5_GDF.mjs} +2 -2
- package/dist/{chunk-62RKD26F-CNcG0-gc.mjs → chunk-62RKD26F-CBIDfuTL.mjs} +2 -2
- package/dist/{chunk-64BAICW3-Ct0k59pL.mjs → chunk-64BAICW3-CTJNEx4Q.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-CExCjuFQ.mjs → chunk-74CEPOFO-D1bzz49u.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-Q1rIcbLT.mjs → chunk-7L36YK2X-RiPZFKaV.mjs} +1 -1
- package/dist/{chunk-7TSDKFEO-CVXHdZlP.mjs → chunk-7TSDKFEO-a-GUGBTu.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-BecnXf_j.mjs → chunk-A4HU7SVR-hefV_YmW.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-CFUAbT7E.mjs → chunk-A4JSPFCI-v5lUtffG.mjs} +2 -2
- package/dist/{chunk-A5O5YHGN-C4hFXTXp.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-DCxPAHkR.mjs → chunk-A65PWWJC-D7J5l9eq.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-Cz9e5Bhr.mjs → chunk-A7A2DBEE-PLfkXLI4.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-BsLyPNES.mjs → chunk-A7ICOL4V-Drb3XsEL.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-HEyM2sBV.mjs → chunk-ALLTKNUZ-BMiTDN50.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-CR6NU00o.mjs → chunk-APT7OOP2-CXHnSuct.mjs} +2 -2
- package/dist/{chunk-BBXLRYSX-mzBO0XWz.mjs → chunk-BBXLRYSX-DHx5dxhT.mjs} +2 -2
- package/dist/{chunk-BRGMQKJV-BKd1VT2Z.mjs → chunk-BRGMQKJV-CUNiOrRZ.mjs} +3 -3
- package/dist/{chunk-CR5AFCPT-D7NkQWcH.mjs → chunk-CR5AFCPT-BWXo8X-o.mjs} +2 -2
- package/dist/{chunk-CWQS3NFK-CKoiDb4a.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
- package/dist/{chunk-D4J545R4-Cx98m4P-.mjs → chunk-D4J545R4-C8nMOauR.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-CI9YGPey.mjs → chunk-D6CWQ5DW-Cik2LGX1.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-BMterGJ_.mjs → chunk-D7MEQ3VN-Csvth_Ss.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-D6297aec.mjs → chunk-DCAAORBQ-BdrR5ttw.mjs} +2 -2
- package/dist/{chunk-DXB73IDG-DiBHw8JN.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
- package/dist/{chunk-EEXR5ZDP-Bn4vQQ9d.mjs → chunk-EEXR5ZDP-C5AJH114.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-DpDxPaeq.mjs → chunk-EIZGF4BS-8bsVXqW0.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-CJjGfJog.mjs → chunk-F23WWYKW-DST0dB7V.mjs} +2 -2
- package/dist/{chunk-F55TLFGB-Bin48pra.mjs → chunk-F55TLFGB-oTuag-aK.mjs} +2 -2
- package/dist/{chunk-FEIOJCZD-B2ACHNVA.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-BHUn6H7z.mjs → chunk-GCTKCWKD-Deqi1D_N.mjs} +1 -1
- package/dist/{chunk-GFQRA5P5-Cud1eg4y.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-21xKIzGR.mjs → chunk-GOV5EKKI-i-yw_7Ty.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-Cj_Fxv_5.mjs → chunk-GXVXFKBA-993FoPmq.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-C-CmmYx3.mjs → chunk-HDQ56CKY-pGV4pOJA.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-BIgu03Ox.mjs → chunk-HJQJAYMS-Ci3vsKQW.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-rWCXbrjW.mjs → chunk-HJWBQKYG-UZig4wUt.mjs} +2 -2
- package/dist/{chunk-HWBSOZZR-uOggqK2F.mjs → chunk-HWBSOZZR-LxiTl7Bc.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-_GSIs_AO.mjs → chunk-HWKDQ44K-CPSjqtR_.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-7YwPR338.mjs → chunk-I57KEIP3-DwNGEmJW.mjs} +2 -2
- package/dist/{chunk-IPJHKYVM-CkYRWt-S.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
- package/dist/{chunk-J642UCRS-Cyg-aSoS.mjs → chunk-J642UCRS-DuJ82Ao2.mjs} +2 -2
- package/dist/{chunk-JVPRLUMK-DSRfSbMx.mjs → chunk-JVPRLUMK-DnQCNjpq.mjs} +2 -2
- package/dist/{chunk-KMEYNNUA-CDMPzUOg.mjs → chunk-KMEYNNUA-DfdK88O_.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-CRM1v6xO.mjs → chunk-LL3S3NLB-DxXgE3kY.mjs} +2 -2
- package/dist/{chunk-LPQPILI2-BI3cmSCQ.mjs → chunk-LPQPILI2-CfDX1Tyv.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-zhq7ggMR.mjs → chunk-LTZRCH7N-GAjTFNwG.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-DsSNdmG6.mjs → chunk-LWEGUNWT-BALY4RLC.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-BOemNzYa.mjs → chunk-MDDMCKUK-BrBgeH_z.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-BUZLLdU-.mjs → chunk-MDLLFABN-oBQf6bGE.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-CFOPmfuD.mjs → chunk-MHTUABJP-dKmK6Hw7.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-DRUAnovn.mjs → chunk-MIZPJHVH-D3ET6RI_.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-C43lG0dq.mjs → chunk-MLXIYONF-dOe6Iqcc.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-IJhb8Pnd.mjs → chunk-MYE6AGBJ-B4pRo9ma.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-B0-n_gxK.mjs → chunk-NAERJDUW-CYdostkt.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-CTS9W0AE.mjs → chunk-NCNPKYJZ-BFGan4lR.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-J6Py8CIT.mjs → chunk-NUYSJFDK-CU1FKadr.mjs} +2 -2
- package/dist/{chunk-NYQYO467-DRNkyF-U.mjs → chunk-NYQYO467-DUxnOnNG.mjs} +2 -2
- package/dist/{chunk-OARHFVLG-98yp8JRG.mjs → chunk-OARHFVLG-CpUL83N9.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-Bwp2OfcJ.mjs → chunk-OCLXQMOG-LAs82g00.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-B8tIhL1k.mjs → chunk-OCS6LSEM-y5pQiBQp.mjs} +2 -2
- package/dist/{chunk-OJDRYQWQ-XHSNzsVx.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
- package/dist/{chunk-OL3S66CO-DAKw4RBb.mjs → chunk-OL3S66CO-DjFShiWt.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-CLbYzY24.mjs → chunk-PBXLG62G-CU755yEQ.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-DU1u4KhR.mjs → chunk-PP6PSHAB-DMC_XCfO.mjs} +1 -1
- package/dist/{chunk-PYSFUGCK-BHCYaqaR.mjs → chunk-PYSFUGCK-CY7pclEB.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-B7sObey-.mjs → chunk-QCDB2VPH-D1RuXtOm.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-SwU_vJqW.mjs → chunk-QJ7O6ZN3-BH67tCjg.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-CfNKT29I.mjs → chunk-R6QSAL5T-CtbJTvt9.mjs} +1 -1
- package/dist/{chunk-R6VWJ2ZL-DIztW2nG.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-C_hK2f_6.mjs → chunk-RPNGRAAP-BughPjdR.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-ivh2-vsR.mjs → chunk-SDNKECQQ-C3GEf3VZ.mjs} +2 -2
- package/dist/{chunk-SYMJJMQ4-N8usXlyn.mjs → chunk-SYMJJMQ4-tl6Dz6VW.mjs} +2 -2
- package/dist/{chunk-T56QNPHK-BpY2JAwZ.mjs → chunk-T56QNPHK-Dzjonwlk.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-PXPLisKA.mjs → chunk-TLSUDHID-DYvzalvd.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-BVt75BK5.mjs → chunk-TOMNU26N-DYqwg_75.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-CzW3I1vv.mjs → chunk-TXBZCHCQ-l48TczF5.mjs} +2 -2
- package/dist/{chunk-UNYNJIFU-5QHcA85X.mjs → chunk-UNYNJIFU-B6KF1Gqq.mjs} +3 -3
- package/dist/{chunk-V7TAPXDL-DImQ2x1N.mjs → chunk-V7TAPXDL-CnKUp2df.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-HJeqU79C.mjs → chunk-VJFXDYWH-IiUXkKX0.mjs} +2 -2
- package/dist/{chunk-VLGZJRPG-BdCxuGR9.mjs → chunk-VLGZJRPG-ChVasMna.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-BrLYHV3X.mjs → chunk-VOBGTVA6-BT7gUxqf.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-CyUuqbM6.mjs → chunk-VYOJP4TV-BvibOnKG.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-Bs2wgFlc.mjs → chunk-WKFATFPP-DCZdrA8x.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-Bcm-Bs1P.mjs → chunk-X2AJGDEF-BaH6i1Rq.mjs} +1 -1
- package/dist/{chunk-XHM67O4N-VMZIJhmy.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
- package/dist/{chunk-XKQRETAK--OBLek3Q.mjs → chunk-XKQRETAK-cVWA9gEB.mjs} +2 -2
- package/dist/{chunk-XORM457F-DPa9UklK.mjs → chunk-XORM457F-BlSrSdGX.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-D-2j42Wk.mjs → chunk-XVDPCNWR-CtK-Xs2O.mjs} +2 -2
- package/dist/{chunk-YCFVLTST-DLBC7Zw_.mjs → chunk-YCFVLTST-uJkMN44i.mjs} +2 -2
- package/dist/{chunk-YFG2CMIF-QAvMGKqJ.mjs → chunk-YFG2CMIF-DYVCRkoM.mjs} +2 -2
- package/dist/{chunk-YNYSPYQ5-DzToRSq3.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
- package/dist/{chunk-YS3AZT3J-BLSxIHIX.mjs → chunk-YS3AZT3J-DqU1hDNV.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-DC2EcahF.mjs → chunk-YTNYSM6T-ChSQxUVG.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-Dwj1jdge.mjs → chunk-Z6LRHWXI-CEAGkbzj.mjs} +2 -2
- package/dist/{chunk-Z7JVV2SM-B1GYGO5h.mjs → chunk-Z7JVV2SM-BzR-yvwK.mjs} +2 -2
- package/dist/clear-5CZ5X4YR-DQDNPZFX.mjs +1 -0
- package/dist/cli.mjs +5 -5
- package/dist/{colors-DEbd2OH6.mjs → colors-BtKMHmBX.mjs} +1 -1
- package/dist/colors-t2HkW8lF.mjs +1 -0
- package/dist/column-WLPMMSTS-D7ZdQMYX.mjs +1 -0
- package/dist/comm-5SLSESQG-D314YMTX.mjs +1 -0
- package/dist/constants-ZD4bB9uD.mjs +2 -0
- package/dist/cp-XOYR4ABJ-BoeqT96E.mjs +1 -0
- package/dist/{curl-47BFPSFW-D1Ai6Ase.mjs → curl-47BFPSFW-CseKVLFy.mjs} +2 -2
- package/dist/cut-OPC3VAGB-BduNLBmG.mjs +1 -0
- package/dist/date-DD7FVA2V-CXtS-UgC.mjs +1 -0
- package/dist/diff-HJF2MPDN-BIBcfzYf.mjs +1 -0
- package/dist/dirname-LEMTZZFS-y-nYlas9.mjs +1 -0
- package/dist/{dist-BRdwpvRU.mjs → dist-CL9tjej4.mjs} +1 -1
- package/dist/{dist-Ca54A9UG.mjs → dist-DUA-uDSk.mjs} +64 -64
- package/dist/du-WO2ENHXQ-DxBFDhE9.mjs +1 -0
- package/dist/echo-O45JWWI2-D2qFOnG-.mjs +1 -0
- package/dist/env-5EPCWSXR-3enSMuUq.mjs +1 -0
- package/dist/{execAsync-Bpfn4nfY.mjs → execAsync-0jii24p9.mjs} +1 -1
- package/dist/{execAsync-BtSomP_N.mjs → execAsync-Czqc-yAz.mjs} +1 -1
- package/dist/{execAsync-D93HRpVy.mjs → execAsync-DgmLXmTx.mjs} +1 -1
- package/dist/expand-DTNXU4LQ-ByrWF7LC.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-ZEK-CtLJ.mjs +1 -0
- package/dist/expr-5T3UU5KE-DslbMHGH.mjs +1 -0
- package/dist/file-ZIGAJ4YS-5ydJB32I.mjs +1 -0
- package/dist/find-TPUOAIUQ-B-6hQsZ1.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44-BWjM15GF.mjs +2 -0
- package/dist/fold-LDSORVYE-BcrX-J9k.mjs +1 -0
- package/dist/{getMachineId-bsd-B17iO60u.mjs → getMachineId-bsd-BCJXEJCn.mjs} +2 -2
- package/dist/{getMachineId-bsd-CoWfSNjc.mjs → getMachineId-bsd-D7C80Q-x.mjs} +2 -2
- package/dist/{getMachineId-bsd-OuF-VvA3.mjs → getMachineId-bsd-GIcY1fmf.mjs} +2 -2
- package/dist/{getMachineId-darwin-BpLOQVU5.mjs → getMachineId-darwin-C9wsuHP1.mjs} +2 -2
- package/dist/{getMachineId-darwin-CVTu_op_.mjs → getMachineId-darwin-D9y6ky_l.mjs} +2 -2
- package/dist/{getMachineId-darwin-t-Bfqk_6.mjs → getMachineId-darwin-DG876t7S.mjs} +2 -2
- package/dist/{getMachineId-linux-BnxRLexR.mjs → getMachineId-linux-BJESQahL.mjs} +1 -1
- package/dist/{getMachineId-linux-DeBhqVXn.mjs → getMachineId-linux-Bt9mk0EE.mjs} +1 -1
- package/dist/{getMachineId-linux-BmnQivfI.mjs → getMachineId-linux-D9atImpV.mjs} +1 -1
- package/dist/{getMachineId-unsupported-CsZB09JV.mjs → getMachineId-unsupported-DAbsbHrs.mjs} +1 -1
- package/dist/{getMachineId-unsupported-DpFmOcSz.mjs → getMachineId-unsupported-Dabs3aBp.mjs} +1 -1
- package/dist/{getMachineId-unsupported-60J1q9rW.mjs → getMachineId-unsupported-cApRznzG.mjs} +1 -1
- package/dist/{getMachineId-win-BqUG1yKa.mjs → getMachineId-win-1MPHaim9.mjs} +2 -2
- package/dist/{getMachineId-win-DPcPexEZ.mjs → getMachineId-win-CH98qgwX.mjs} +2 -2
- package/dist/{getMachineId-win-B1Mk_gfO.mjs → getMachineId-win-CU_iAQo9.mjs} +2 -2
- package/dist/{gh-detect-CauEoJLn.mjs → gh-detect-DIxiI-Um.mjs} +2 -2
- package/dist/git-handle-BJwB5EBp-D5YTDzvd.mjs +1 -0
- package/dist/git-handle-uz8TUFSi-BRV63-ar.mjs +10 -0
- package/dist/grep-3AIAIJVR-Gk5ggptS.mjs +1 -0
- package/dist/gzip-AQXSGOVS-DVhom50G.mjs +1 -0
- package/dist/head-HT2B6D2J-ahSJqSiq.mjs +1 -0
- package/dist/help-VVWX7SA5-DWuklTmV.mjs +1 -0
- package/dist/history-J4QRNGRO-DF-FzAzf.mjs +1 -0
- package/dist/hostname-BK6HG2DE-BduSSI6z.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-Dyh1D0fg.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/init-B3sHjwRn.mjs +1 -0
- package/dist/{init-CVUAGlni.mjs → init-BJpQMku2.mjs} +4 -4
- package/dist/{is-object-Cg453afR.mjs → is-object-C-4FJ0rP.mjs} +1 -1
- package/dist/join-GG2LDHE5-DbbozPoG.mjs +1 -0
- package/dist/jq-ODXZBPLY-DDNFO29H.mjs +1 -0
- package/dist/{js-exec-M6UR76J5-BYzv20nM.mjs → js-exec-M6UR76J5-Cw-W_H_2.mjs} +2 -2
- package/dist/{lib-DvSbHPnW.mjs → lib-Dl2j2VNl.mjs} +1 -1
- package/dist/{libesm-YL3Bqolr.mjs → libesm-B_qVEpZ1.mjs} +1 -1
- package/dist/ln-4TRFBYAT-D-c9GUlv.mjs +1 -0
- package/dist/{loader-DEjyJycG.mjs → loader-9ZE042z8.mjs} +2 -2
- package/dist/loader-CAPOtJR1.mjs +1 -0
- package/dist/ls-KSXFZCWH-Cpvwn_RB.mjs +1 -0
- package/dist/{lzma-CldL5ztj.mjs → lzma-BSHkPrAt.mjs} +1 -1
- package/dist/{mcp-migrate-event-CyH1VVyy.mjs → mcp-migrate-event-BF8ILHwp.mjs} +1 -1
- package/dist/md5sum-INMIK4DX-ysJE_fRH.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-Doj-uc1V.mjs +1 -0
- package/dist/mv-Z6MORUFL-CB3JJwR7.mjs +1 -0
- package/dist/nl-U5YJDM32-DNpHPr0D.mjs +1 -0
- package/dist/od-VJEF2UR5-CU4HUmLC.mjs +1 -0
- package/dist/{open-browser-C9GRQw2D.mjs → open-browser-C6LU_1mt.mjs} +1 -1
- package/dist/paste-7N6AFSDS-CRLhW5JD.mjs +1 -0
- package/dist/preview-_ZVhPWmW.mjs +1 -0
- package/dist/{preview-8GeUlQ4U.mjs → preview-eJbjCNUv.mjs} +2 -2
- package/dist/printf-CX64KX2P-BRDA91sv.mjs +1 -0
- package/dist/pwd-D4OZ7N27-DOBMwDAQ.mjs +1 -0
- package/dist/{python3-AUFTPCU6-8zelkhgh.mjs → python3-AUFTPCU6-C02r6EXI.mjs} +2 -2
- package/dist/readlink-MI4GCHJF-C7jxdmka.mjs +1 -0
- package/dist/{repair-launch-json-D4EDx1qE.mjs → repair-launch-json-i_sB1efd.mjs} +2 -2
- package/dist/{repair-mcp-configs-C4W8hER9.mjs → repair-mcp-configs-KzNjJe5Y.mjs} +2 -2
- package/dist/{repair-skills-Cjs7REOr.mjs → repair-skills-B0MyM-S8.mjs} +2 -2
- package/dist/repair-skills-B75azgiA.mjs +1 -0
- package/dist/rev-XOSYPP45-BrzxRIO9.mjs +1 -0
- package/dist/rg-FOQSCCX3-D0ctWk6O.mjs +1 -0
- package/dist/rm-RTZG23RL-DZt78fCD.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-CJJKrOdm.mjs +1 -0
- package/dist/sed-VFTTATXJ-Cv8KiT35.mjs +1 -0
- package/dist/seq-RN5ZUASB-BD6p5vId.mjs +1 -0
- package/dist/server-lock-BIY3RMaC-CfCHCMTe.mjs +2 -0
- package/dist/server-lock-v2ktHD7l-C-3wEnoU.mjs +1 -0
- package/dist/sha1sum-VJPNLNU6-DukJfnER.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-QlLE_NGo.mjs +1 -0
- package/dist/sleep-VZFPZFWA-gwZmptDS.mjs +1 -0
- package/dist/sort-DCNRDA7U-Bnmzizlk.mjs +1 -0
- package/dist/split-SITCSYCZ-NsOC8k0n.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-D2ymLPIL.mjs +1 -0
- package/dist/{src-BQr1GKJv.mjs → src-DgUEXwrg.mjs} +2 -2
- package/dist/{start-CldQJe7l.mjs → start-BjM8Y0Uq.mjs} +2 -2
- package/dist/start-BweZxW7r.mjs +1 -0
- package/dist/stat-BT5A227F-Di81wqB8.mjs +1 -0
- package/dist/strings-7PLOGTPD-DKTG3t3M.mjs +1 -0
- package/dist/tac-SJGXQ4T2-CMuGqDl5.mjs +1 -0
- package/dist/tail-S5ULNTJU-CxhswWhX.mjs +1 -0
- package/dist/tar-ANUBEFJY-BajYpRKO.mjs +1 -0
- package/dist/tee-O7VXZDCO-DwJ0hUpW.mjs +1 -0
- package/dist/time-DEUO3QV2-W5vzutuD.mjs +1 -0
- package/dist/timeout-VRKMCG72-wW3XOtt7.mjs +1 -0
- package/dist/touch-DX2IJOQ4-C7eGjNGd.mjs +1 -0
- package/dist/tr-2HXZRDSW-DlafN6SW.mjs +1 -0
- package/dist/tree-LYXBS7DC-Ou8JkGQ1.mjs +1 -0
- package/dist/true-WHJNXCHG-B4B4ZHqp.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-D6xZmTWp.mjs +1 -0
- package/dist/uniq-SUNANL47-Ce9L4IzE.mjs +1 -0
- package/dist/wc-TQB3VNOX-dwG38U4n.mjs +1 -0
- package/dist/which-XZHEH76L-Cw9SQliE.mjs +1 -0
- package/dist/whoami-DGKU3D2X-hzRI9gvz.mjs +1 -0
- package/dist/{write-project-skill-yR3pYdTj.mjs → write-project-skill-grQBEqMb.mjs} +2 -2
- package/dist/xan-BXDXYEIB-loWv9Mk3.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-8Lt55NoE.mjs +1 -0
- package/dist/xargs-I6EZUCYF-CG6axhMW.mjs +1 -0
- package/dist/yazl-CJayzk0b.mjs +1 -0
- package/dist/{yazl-BKdvfH0Q.mjs → yazl-DjRp4wSy.mjs} +1 -1
- package/dist/yq-MJMAR36V-CsEAtdgj.mjs +1 -0
- package/package.json +1 -1
- package/dist/alias-JE7RI5QX-DiMuvZ_b.mjs +0 -1
- package/dist/awk2-POPGKRAI-BeVnDraO.mjs +0 -1
- package/dist/base64-4YMZCVJ5-B4tjJP2m.mjs +0 -1
- package/dist/basename-AA2KJYZQ-BDBZjFZG.mjs +0 -1
- package/dist/bash-IJWYRKFO-UQr9bYdp.mjs +0 -1
- package/dist/build-5_QDpj2G.mjs +0 -1
- package/dist/cat-RDUMLXKC-D-Lvspp-.mjs +0 -1
- package/dist/chmod-SYMGL4JA-C9nV9I5a.mjs +0 -1
- package/dist/clear-5CZ5X4YR-DKZjZQKM.mjs +0 -1
- package/dist/colors-B75xIh3W.mjs +0 -1
- package/dist/column-WLPMMSTS-KeKoME8E.mjs +0 -1
- package/dist/comm-5SLSESQG-f07t_kbe.mjs +0 -1
- package/dist/constants-DoYWKOfq.mjs +0 -2
- package/dist/cp-XOYR4ABJ-T4RhGkGw.mjs +0 -1
- package/dist/cut-OPC3VAGB-I2VCQmsN.mjs +0 -1
- package/dist/date-DD7FVA2V-726kEzqx.mjs +0 -1
- package/dist/diff-HJF2MPDN-DGxFa9Fq.mjs +0 -1
- package/dist/dirname-LEMTZZFS-BXgOaoej.mjs +0 -1
- package/dist/du-WO2ENHXQ-BsCwKI6D.mjs +0 -1
- package/dist/echo-O45JWWI2-DLZg7wXN.mjs +0 -1
- package/dist/env-5EPCWSXR-C5vCIn-C.mjs +0 -1
- package/dist/expand-DTNXU4LQ-BlyiHu-Q.mjs +0 -1
- package/dist/expansion-ENLSRCXJ-CedPCKSI.mjs +0 -1
- package/dist/expr-5T3UU5KE-Cibsfrp2.mjs +0 -1
- package/dist/file-ZIGAJ4YS-DAHjzYSb.mjs +0 -1
- package/dist/find-TPUOAIUQ-B6Q1kA1J.mjs +0 -1
- package/dist/flag-coverage-QT4N2Z44-CspB_4zD.mjs +0 -2
- package/dist/fold-LDSORVYE-O9T5HKO_.mjs +0 -1
- package/dist/git-handle-CjyGVy33-B_7lAMm9.mjs +0 -10
- package/dist/git-handle-CjyGVy33-lwHYMDQ0.mjs +0 -1
- package/dist/grep-3AIAIJVR-BZ96dHZF.mjs +0 -1
- package/dist/gzip-AQXSGOVS-Cd0FzI4A.mjs +0 -1
- package/dist/head-HT2B6D2J-_8qJ44Y0.mjs +0 -1
- package/dist/help-VVWX7SA5-nLv-kQgx.mjs +0 -1
- package/dist/history-J4QRNGRO-BFBrUjOI.mjs +0 -1
- package/dist/hostname-BK6HG2DE-CSD4JAoH.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-1itrHcsS.mjs +0 -1
- package/dist/init-DIl5O63L.mjs +0 -1
- package/dist/join-GG2LDHE5-CQlHJDoT.mjs +0 -1
- package/dist/jq-ODXZBPLY-S6TqGJov.mjs +0 -1
- package/dist/ln-4TRFBYAT-Ch5rvb9d.mjs +0 -1
- package/dist/loader-7flVKLEn.mjs +0 -1
- package/dist/ls-KSXFZCWH-D_f10oDS.mjs +0 -1
- package/dist/md5sum-INMIK4DX-BX1tQou-.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-BfIhr62Z.mjs +0 -1
- package/dist/mv-Z6MORUFL-BejgWBGu.mjs +0 -1
- package/dist/nl-U5YJDM32-Da4W1JfF.mjs +0 -1
- package/dist/od-VJEF2UR5-CEABTjhC.mjs +0 -1
- package/dist/paste-7N6AFSDS-Dy-ZdSmA.mjs +0 -1
- package/dist/preview-xC9SBSxk.mjs +0 -1
- package/dist/printf-CX64KX2P-BlwE4RVF.mjs +0 -1
- package/dist/pwd-D4OZ7N27-Dt_xnI1A.mjs +0 -1
- package/dist/readlink-MI4GCHJF-Z4cZ2KAJ.mjs +0 -1
- package/dist/repair-skills-BlQp9JSE.mjs +0 -1
- package/dist/rev-XOSYPP45-B-ZnKgE3.mjs +0 -1
- package/dist/rg-FOQSCCX3-CYZLZUMA.mjs +0 -1
- package/dist/rm-RTZG23RL-ibWWiOu8.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-DMTHF36H.mjs +0 -1
- package/dist/rolldown-runtime-twds-ZHy-DU73unG7.mjs +0 -2
- package/dist/sed-VFTTATXJ-aqlHXp32.mjs +0 -1
- package/dist/seq-RN5ZUASB-bQnXHGvz.mjs +0 -1
- package/dist/server-lock-BniQ3qki-C_0QTo_r.mjs +0 -2
- package/dist/server-lock-BniQ3qki-D-qFWWUB.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-CcW4qlsk.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-DrJUb3sN.mjs +0 -1
- package/dist/sleep-VZFPZFWA-B1ZBrvAs.mjs +0 -1
- package/dist/sort-DCNRDA7U-BB4WJgyf.mjs +0 -1
- package/dist/split-SITCSYCZ-x4Y-DA6y.mjs +0 -1
- package/dist/sqlite3-56UMWEY3-CY0-gfQK.mjs +0 -1
- package/dist/start-BGi1RpFb.mjs +0 -1
- package/dist/stat-BT5A227F-D6H5uqhc.mjs +0 -1
- package/dist/strings-7PLOGTPD-DPGaNEOP.mjs +0 -1
- package/dist/tac-SJGXQ4T2-kzO3q4pS.mjs +0 -1
- package/dist/tail-S5ULNTJU-CFPNNUdK.mjs +0 -1
- package/dist/tar-ANUBEFJY-RRKF2LBe.mjs +0 -1
- package/dist/tee-O7VXZDCO-ME2-H9TH.mjs +0 -1
- package/dist/time-DEUO3QV2-BTPD4eTE.mjs +0 -1
- package/dist/timeout-VRKMCG72-B4YT9w6n.mjs +0 -1
- package/dist/touch-DX2IJOQ4-B8zV5e5M.mjs +0 -1
- package/dist/tr-2HXZRDSW-5mSbPCHX.mjs +0 -1
- package/dist/tree-LYXBS7DC-DNl0GTgm.mjs +0 -1
- package/dist/true-WHJNXCHG-CMYHoY79.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-Df742ryg.mjs +0 -1
- package/dist/uniq-SUNANL47-_OEYW1YV.mjs +0 -1
- package/dist/wc-TQB3VNOX-CfS7oyuj.mjs +0 -1
- package/dist/which-XZHEH76L-BQVUqgjz.mjs +0 -1
- package/dist/whoami-DGKU3D2X-DPUnZuMu.mjs +0 -1
- package/dist/xan-BXDXYEIB-D6d2arbs.mjs +0 -1
- package/dist/xan-view-ECQUO7AJ-DanvS4LJ.mjs +0 -1
- package/dist/xargs-I6EZUCYF-BE34OAki.mjs +0 -1
- package/dist/yazl-Cw7cic8l.mjs +0 -1
- package/dist/yq-MJMAR36V-XOqahbXI.mjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n as e,t}from"./esm-CEs3LWY3.mjs";import{Si as n,hi as r,yn as i}from"./dist-Ca54A9UG.mjs";import{i as a,t as o}from"./gh-detect-CauEoJLn.mjs";import{n as s}from"./constants-DoYWKOfq.mjs";import{spawn as c}from"node:child_process";import{basename as l,join as u}from"node:path";import{closeSync as d,existsSync as f,mkdirSync as p,openSync as m,statSync as h}from"node:fs";import{homedir as g}from"node:os";import{setTimeout as _}from"node:timers/promises";const v=`Open Knowledge.app`,y=`/Applications/${v}`;function b(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return h(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function x(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(S(e,y))return y;let t=u(e.homeDir??g(),`Applications`,v);return S(e,t)?t:null}function S(e,t){try{let n=u(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function C(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`)return{available:!1,reason:`darwin-only`};let t;try{t=x(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:e.isTTY!==!0||e.env.SSH_CONNECTION||e.env.SSH_TTY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function w(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)");let t={...process.env};delete t.ELECTRON_RUN_AS_NODE,e.spawn(`open`,[`-b`,`com.inkeep.open-knowledge`],{detached:!0,stdio:`ignore`,env:t}).unref()}function T(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${y}. Install via DMG, or omit --mode for browser mode.`;case`darwin-only`:return`Desktop app is macOS-only on this release. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect desktop bundle at ${y} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${y} but launch dispatch did not fire (caller bug).`}}function E(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function D(e,t){return e.host??t.HOST??`localhost`}function O(e){let t=l(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var k=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function A(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function j(e){f(e.lockDir)||p(e.lockDir,{recursive:!0});let t=m(u(e.lockDir,n),`w`),r=e.spawn??c,{PORT:i,...a}=process.env,o=E();try{let n=r(o.command,[...o.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:a});return n.unref(),n}finally{try{d(t)}catch{}}}async function M(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}const N=r;function P(e){let t=e.sigtermGraceMs??N,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>_(e));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function F(e){let{config:t,cwd:n,host:r}=e,s=e.skipAutoInit??!1,c=e.skipUiAutoSpawn??!1,l=e.idleThresholdMs??18e5,{existsSync:u,mkdirSync:d}=await import(`node:fs`),{bootServer:f,getLogger:p,isProcessAlive:m,readUiLock:h,resolveContentDir:g}=await import(`./dist-BRdwpvRU.mjs`),v=e.log??p(`start`);if(!s&&!i(n))throw new k(n);let y=process.env.OK_RECLAIM_DISABLE??null;try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-C4W8hER9.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-D4EDx1qE.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-BlQp9JSE.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] skill repair sweep failed; continuing`)}let b=g(t,n);u(b)||(d(b,{recursive:!0}),v.info({contentDir:b},`Created content directory`));let x=null,S=async({lockDir:t})=>{if(x=A({uiLock:h(t),isAlive:m}),x.action===`spawn`&&!c)try{j({lockDir:t,cwd:n,spawn:e.spawn}),v.info({reason:x.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else x.action===`skip`&&v.info({port:x.port,pid:x.pid},`UI already running at port ${x.port}`)},C=e.reactShellDistDir===void 0,w=a(),T=await f({config:t,contentDir:b,projectDir:n,contentRoot:t.content.dir,port:e.port,host:r,quiet:!1,detectGh:o,tokenStore:w,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:C,idleShutdownMs:l,skipAutoInit:!0,...C?{spawnUiSiblingFn:S}:{},idleShutdownHandler:e=>P({readUiLock:()=>h(T.lockDir),isAlive:m,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:v}),log:v,...e.serveContentAssets?{serveContentAssets:!0}:{},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});x||={action:`skip`,reason:`alive`,pid:0,port:0};let E=x,D=null;if(E.action===`skip`)D=E.port>0?E.port:null;else if(!c){let t=e.uiBindTimeoutMs??3e3;D=await M({readUiLock:()=>h(T.lockDir),now:Date.now,sleep:e=>_(e),timeoutMs:t,pollIntervalMs:50}),D===null&&v.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:T.httpServer,destroy:T.destroy,lockDir:T.lockDir,contentDir:b,port:T.port,ready:T.ready,degraded:T.degraded,uiSpawnDecision:x,resolvedUiPort:D}}function I(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}async function L(e,t){let{renderBanner:n}=await import(`./banner-2j-_SAt6.mjs`),{dim:r,error:i,warning:a}=await import(`./colors-B75xIh3W.mjs`),o=process.cwd(),c=e;process.title=O(o);let l=D(t,process.env),u=t.port===void 0?void 0:Number(t.port),d=process.env.PORT?Number(process.env.PORT):void 0,f=u??d,p;try{p=await F({config:c,cwd:o,host:l,port:f,...t.serveContentAssets?{serveContentAssets:!0}:{},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{}})}catch(e){e instanceof k&&(console.error(i(e.message)),process.exit(1));let t=R(e,o,await import(`./dist-BRdwpvRU.mjs`));t!==null&&(console.error(i(t)),process.exit(1)),console.error(`${i(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let m=!1,h=async e=>{if(!m){m=!0,console.log(r(`\nShutting down (${e})`));try{await p.destroy()}catch(e){console.error(`${i(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{h(`SIGINT`)}),process.once(`SIGTERM`,()=>{h(`SIGTERM`)});let g=`http://${l}:${p.port}`,_=l===`0.0.0.0`||l===`::`?`http://0.0.0.0:${p.port}`:void 0,v=p.resolvedUiPort,y=v!==null&&v>0?`http://${l}:${v}`:g;console.log(n({name:`open-knowledge`,version:s,localUrl:y,apiUrl:y===g?void 0:g,networkUrl:_}));let b={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};p.ready.then(async()=>{if(p.degraded.length>0){console.log();for(let e of p.degraded){let t=b[e]??`${e} (check server logs for details)`;console.warn(` ${a(`⚠`)} ${a(e)}: ${r(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-C9GRQw2D.mjs`);e(y)}}).catch(e=>{console.error(` ${i(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function R(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=u(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function z(e){return new t(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,I).option(`--serve-content-assets`,`Serve content assets from this server`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
|
|
1
|
+
import{n as e,t}from"./esm-CEs3LWY3.mjs";import{Si as n,hi as r,yn as i}from"./dist-DUA-uDSk.mjs";import{i as a,t as o}from"./gh-detect-DIxiI-Um.mjs";import{n as s}from"./constants-ZD4bB9uD.mjs";import{spawn as c}from"node:child_process";import{basename as l,join as u}from"node:path";import{closeSync as d,existsSync as f,mkdirSync as p,openSync as m,statSync as h}from"node:fs";import{homedir as g}from"node:os";import{setTimeout as _}from"node:timers/promises";const v=`Open Knowledge.app`,y=`/Applications/${v}`;function b(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return h(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function x(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(S(e,y))return y;let t=u(e.homeDir??g(),`Applications`,v);return S(e,t)?t:null}function S(e,t){try{let n=u(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function C(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`)return{available:!1,reason:`darwin-only`};let t;try{t=x(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:e.isTTY!==!0||e.env.SSH_CONNECTION||e.env.SSH_TTY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function w(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)");let t={...process.env};delete t.ELECTRON_RUN_AS_NODE,e.spawn(`open`,[`-b`,`com.inkeep.open-knowledge`],{detached:!0,stdio:`ignore`,env:t}).unref()}function T(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${y}. Install via DMG, or omit --mode for browser mode.`;case`darwin-only`:return`Desktop app is macOS-only on this release. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect desktop bundle at ${y} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${y} but launch dispatch did not fire (caller bug).`}}function E(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function D(e,t){return e.host??t.HOST??`localhost`}function O(e){let t=l(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var k=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function A(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function j(e){f(e.lockDir)||p(e.lockDir,{recursive:!0});let t=m(u(e.lockDir,n),`w`),r=e.spawn??c,{PORT:i,...a}=process.env,o=E();try{let n=r(o.command,[...o.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:a});return n.unref(),n}finally{try{d(t)}catch{}}}async function M(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}const N=r;function P(e){let t=e.sigtermGraceMs??N,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>_(e));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function F(e){let{config:t,cwd:n,host:r}=e,s=e.skipAutoInit??!1,c=e.skipUiAutoSpawn??!1,l=e.idleThresholdMs??18e5,{existsSync:u,mkdirSync:d}=await import(`node:fs`),{bootServer:f,getLogger:p,isProcessAlive:m,readUiLock:h,resolveContentDir:g}=await import(`./dist-CL9tjej4.mjs`),v=e.log??p(`start`);if(!s&&!i(n))throw new k(n);let y=process.env.OK_RECLAIM_DISABLE??null;try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-KzNjJe5Y.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-i_sB1efd.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-B75azgiA.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:y})}catch(e){v.warn({err:e},`[start] skill repair sweep failed; continuing`)}let b=g(t,n);u(b)||(d(b,{recursive:!0}),v.info({contentDir:b},`Created content directory`));let x=null,S=async({lockDir:t})=>{if(x=A({uiLock:h(t),isAlive:m}),x.action===`spawn`&&!c)try{j({lockDir:t,cwd:n,spawn:e.spawn}),v.info({reason:x.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else x.action===`skip`&&v.info({port:x.port,pid:x.pid},`UI already running at port ${x.port}`)},C=e.reactShellDistDir===void 0,w=a(),T=await f({config:t,contentDir:b,projectDir:n,contentRoot:t.content.dir,port:e.port,host:r,quiet:!1,detectGh:o,tokenStore:w,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:C,idleShutdownMs:l,skipAutoInit:!0,...C?{spawnUiSiblingFn:S}:{},idleShutdownHandler:e=>P({readUiLock:()=>h(T.lockDir),isAlive:m,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:v}),log:v,...e.serveContentAssets?{serveContentAssets:!0}:{},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});x||={action:`skip`,reason:`alive`,pid:0,port:0};let E=x,D=null;if(E.action===`skip`)D=E.port>0?E.port:null;else if(!c){let t=e.uiBindTimeoutMs??3e3;D=await M({readUiLock:()=>h(T.lockDir),now:Date.now,sleep:e=>_(e),timeoutMs:t,pollIntervalMs:50}),D===null&&v.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:T.httpServer,destroy:T.destroy,lockDir:T.lockDir,contentDir:b,port:T.port,ready:T.ready,degraded:T.degraded,uiSpawnDecision:x,resolvedUiPort:D}}function I(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}async function L(e,t){let{renderBanner:n}=await import(`./banner-D39r_H1d.mjs`),{dim:r,error:i,warning:a}=await import(`./colors-t2HkW8lF.mjs`),o=process.cwd(),c=e;process.title=O(o);let l=D(t,process.env),u=t.port===void 0?void 0:Number(t.port),d=process.env.PORT?Number(process.env.PORT):void 0,f=u??d,p;try{p=await F({config:c,cwd:o,host:l,port:f,...t.serveContentAssets?{serveContentAssets:!0}:{},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{}})}catch(e){e instanceof k&&(console.error(i(e.message)),process.exit(1));let t=R(e,o,await import(`./dist-CL9tjej4.mjs`));t!==null&&(console.error(i(t)),process.exit(1)),console.error(`${i(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let m=!1,h=async e=>{if(!m){m=!0,console.log(r(`\nShutting down (${e})`));try{await p.destroy()}catch(e){console.error(`${i(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{h(`SIGINT`)}),process.once(`SIGTERM`,()=>{h(`SIGTERM`)});let g=`http://${l}:${p.port}`,_=l===`0.0.0.0`||l===`::`?`http://0.0.0.0:${p.port}`:void 0,v=p.resolvedUiPort,y=v!==null&&v>0?`http://${l}:${v}`:g;console.log(n({name:`open-knowledge`,version:s,localUrl:y,apiUrl:y===g?void 0:g,networkUrl:_}));let b={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};p.ready.then(async()=>{if(p.degraded.length>0){console.log();for(let e of p.degraded){let t=b[e]??`${e} (check server logs for details)`;console.warn(` ${a(`⚠`)} ${a(e)}: ${r(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-C6LU_1mt.mjs`);e(y)}}).catch(e=>{console.error(` ${i(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function R(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=u(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function z(e){return new t(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,I).option(`--serve-content-assets`,`Serve content assets from this server`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
|
|
2
2
|
`),process.exit(2));let e=[];if(t.port!==void 0&&e.push(`--port`),t.host!==void 0&&e.push(`--host`),e.length>0){let t=process.env.OK_LOG_LEVEL??`info`;(t===`debug`||t===`trace`)&&console.error(`--mode=app: ignoring ${e.join(`, `)}`)}let n=C(b());if(n.available){w({spawn:c});return}console.error(T(n.reason)),process.exit(1)}await L(n,t)})}export{A as a,L as c,R as d,E as f,w as h,P as i,j as l,C as m,M as n,O as o,b as p,F as r,D as s,k as t,z as u};
|
|
3
|
-
//# sourceMappingURL=start-
|
|
3
|
+
//# sourceMappingURL=start-BjM8Y0Uq.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e}from"./start-BjM8Y0Uq.mjs";export{e as startCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5QVNJEHU-BvsipSFW.mjs";export{e as statCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-VYOJP4TV-BvibOnKG.mjs";export{e as strings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";export{e as tac};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";export{e as tailCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import{n as e}from"./chunk-BRGMQKJV-CUNiOrRZ.mjs";export{e as tarCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-55VFSPNA-DVZfQAzN.mjs";export{e as teeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-CWQS3NFK-Co4ALolT.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-Z6LRHWXI-CEAGkbzj.mjs";export{e as timeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{n as e}from"./chunk-YTNYSM6T-ChSQxUVG.mjs";export{e as timeoutCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-OCLXQMOG-LAs82g00.mjs";export{e as touchCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-62RKD26F-CBIDfuTL.mjs";export{e as trCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";export{e as treeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";export{e as falseCommand,t as trueCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-PYSFUGCK-CY7pclEB.mjs";export{e as unexpand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-WKFATFPP-DCZdrA8x.mjs";export{e as uniqCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-GXVXFKBA-993FoPmq.mjs";export{e as wcCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A65PWWJC-D7J5l9eq.mjs";export{e as whichCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";export{e as whoami};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Zn as e}from"./dist-
|
|
2
|
-
//# sourceMappingURL=write-project-skill-
|
|
1
|
+
import{Zn as e}from"./dist-DUA-uDSk.mjs";import{dirname as t,isAbsolute as n,relative as r,resolve as i,sep as a}from"node:path";import{cpSync as o,existsSync as s,lstatSync as c,mkdirSync as l,realpathSync as u,rmSync as d}from"node:fs";function f(e,o){let s;try{s=u(o)}catch{s=i(o)}let l;try{l=c(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(l?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);let d=t(e);for(;d.length>1&&d!==a;){let i;try{i=u(d)}catch(e){if(e.code===`ENOENT`){d=t(d);continue}throw e}let a=r(s,i);if(a===``||!a.startsWith(`..`)&&!n(a))return;throw Error(`Refusing to write at ${e}: ancestor ${d} resolves to ${i}, which is outside the project directory ${s}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run project setup.`)}}function p(n,r){let i=n.projectSkillPath?.(r);if(!i)return{editorId:n.id,label:n.label,action:`skipped-unsupported`,path:``};try{let a=e(`project`,{checkDesktop:!0}),c=t(i);f(c,r);let u=s(i)?`overwritten`:`written`;return d(c,{recursive:!0,force:!0}),l(t(c),{recursive:!0}),o(a,c,{recursive:!0}),{editorId:n.id,label:n.label,action:u,path:i}}catch(e){return{editorId:n.id,label:n.label,action:`failed`,path:i,error:e instanceof Error?e.message:String(e)}}}export{p as n,f as t};
|
|
2
|
+
//# sourceMappingURL=write-project-skill-grQBEqMb.mjs.map
|
|
@@ -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-SYMJJMQ4-tl6Dz6VW.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DHx5dxhT.mjs";import"./chunk-F55TLFGB-oTuag-aK.mjs";import{n as e}from"./chunk-UNYNJIFU-B6KF1Gqq.mjs";export{e as xanCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{c as e}from"./chunk-F55TLFGB-oTuag-aK.mjs";export{e as cmdView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-TOMNU26N-DYqwg_75.mjs";export{e as xargsCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./yazl-DjRp4wSy.mjs";export default e();export{};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{i as e,t}from"./chunk-FK9Q3tQk.mjs";var n=t(((e,t)=>{function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}let r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function i(e){if(Buffer.isBuffer(e))return e;if(typeof e==`number`)return Buffer.alloc(e);if(typeof e==`string`)return Buffer.from(e);throw Error(`input must be buffer, number, or string, received `+typeof e)}function a(e){let t=i(4);return t.writeInt32BE(e,0),t}function o(e,t){e=i(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let n=~~t^-1;for(var a=0;a<e.length;a++)n=r[(n^e[a])&255]^n>>>8;return n^-1}function s(){return a(o.apply(null,arguments))}s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=n(s)})),r=t((t=>{var r=e(`fs`),i=e(`stream`).Transform,a=e(`stream`).PassThrough,o=e(`zlib`),s=e(`util`),c=e(`events`).EventEmitter,l=e(`events`).errorMonitor,u=n();t.ZipFile=d,t.dateToDosDateTime=z,s.inherits(d,c);function d(){this.outputStream=new a,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(l,function(){this.errored=!0})}d.prototype.addFile=function(e,t,n){var i=this;if(t=C(t,!1),n??={},!v(i)){var a=new T(t,!1,n);i.entries.push(a),r.stat(e,function(t,o){if(t)return i.emit(`error`,t);if(!o.isFile())return i.emit(`error`,Error(`not a file: `+e));a.uncompressedSize=o.size,n.mtime??a.setLastModDate(o.mtime),n.mode??a.setFileAttributesMode(o.mode),a.setFileDataPumpFunction(function(){var t=r.createReadStream(e);a.state=T.FILE_DATA_IN_PROGRESS,t.on(`error`,function(e){i.emit(`error`,e)}),m(i,a,t)}),g(i)})}},d.prototype.addReadStream=function(e,t,n){this.addReadStreamLazy(t,n,function(t){t(null,e)})},d.prototype.addReadStreamLazy=function(e,t,n){var r=this;if(typeof t==`function`&&(n=t,t=null),t??={},e=C(e,!1),!v(r)){var i=new T(e,!1,t);r.entries.push(i),i.setFileDataPumpFunction(function(){i.state=T.FILE_DATA_IN_PROGRESS,n(function(e,t){if(e)return r.emit(`error`,e);m(r,i,t)})}),g(r)}},d.prototype.addBuffer=function(e,t,n){var r=this;if(t=C(t,!1),e.length>1073741823)throw Error(`buffer too large: `+e.length+` > 1073741823`);if(n??={},n.size!=null)throw Error(`options.size not allowed`);if(v(r))return;var i=new T(t,!1,n);i.uncompressedSize=e.length,i.crc32=u.unsigned(e),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?a(e):o.deflateRaw(e,{level:i.compressionLevel},function(e,t){a(t)});function a(e){i.compressedSize=e.length,i.setFileDataPumpFunction(function(){p(r,e),p(r,i.getDataDescriptor()),i.state=T.FILE_DATA_DONE,setImmediate(function(){g(r)})}),g(r)}},d.prototype.addEmptyDirectory=function(e,t){var n=this;if(e=C(e,!0),t??={},t.size!=null)throw Error(`options.size not allowed`);if(t.compress!=null)throw Error(`options.compress not allowed`);if(t.compressionLevel!=null)throw Error(`options.compressionLevel not allowed`);if(!v(n)){var r=new T(e,!0,t);n.entries.push(r),r.setFileDataPumpFunction(function(){p(n,r.getDataDescriptor()),r.state=T.FILE_DATA_DONE,g(n)}),g(n)}};var f=q([80,75,5,6]);d.prototype.end=function(e,t){if(typeof e==`function`&&(t=e,e=null),e??={},!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=t,this.forceZip64Eocd=!!e.forceZip64Format,e.comment){if(typeof e.comment==`string`?this.comment=G(e.comment):this.comment=e.comment,this.comment.length>65535)throw Error(`comment is too large`);if(J(this.comment,f))throw Error(`comment contains end of central directory record signature`)}else this.comment=w;g(this)}};function p(e,t){e.outputStream.write(t),e.outputStreamCursor+=t.length}function m(e,t,n){var r=new H,i=new V,s=t.compressionLevel===0?new a:new o.DeflateRaw({level:t.compressionLevel}),c=new V;n.pipe(r).pipe(i).pipe(s).pipe(c).pipe(e.outputStream,{end:!1}),c.on(`end`,function(){if(t.crc32=r.crc32,t.uncompressedSize==null)t.uncompressedSize=i.byteCount;else if(t.uncompressedSize!==i.byteCount)return e.emit(`error`,Error(`file data stream has unexpected number of bytes`));t.compressedSize=c.byteCount,e.outputStreamCursor+=t.compressedSize,p(e,t.getDataDescriptor()),t.state=T.FILE_DATA_DONE,g(e)})}function h(e){if(e.compress!=null&&e.compressionLevel!=null&&!!e.compress!=!!e.compressionLevel)throw Error(`conflicting settings for compress and compressionLevel`);return e.compressionLevel==null?e.compress===!1?0:6:e.compressionLevel}function g(e){if(e.allDone||e.errored)return;if(e.ended&&e.calculatedTotalSizeCallback!=null){var t=_(e);t!=null&&(e.calculatedTotalSizeCallback(t),e.calculatedTotalSizeCallback=null)}var n=r();function r(){for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.state<T.FILE_DATA_DONE)return n}return null}if(n!=null){if(n.state<T.READY_TO_PUMP_FILE_DATA||n.state===T.FILE_DATA_IN_PROGRESS)return;n.relativeOffsetOfLocalHeader=e.outputStreamCursor,p(e,n.getLocalFileHeader()),n.doFileDataPump()}else e.ended&&(e.offsetOfStartOfCentralDirectory=e.outputStreamCursor,e.entries.forEach(function(t){p(e,t.getCentralDirectoryRecord())}),p(e,S(e)),e.outputStream.end(),e.allDone=!0)}function _(e){for(var t=0,n=0,r=0;r<e.entries.length;r++){var i=e.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=T.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=t;var a=i.useZip64Format();t+=E+i.utf8FileName.length,t+=i.uncompressedSize,i.crcAndFileSizeKnown||(a?t+=N:t+=M),n+=P+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(n+=F),a&&(n+=I)}var o=0;return(e.forceZip64Eocd||e.entries.length>=65535||n>=65535||t>=4294967295)&&(o+=y+b),o+=x+e.comment.length,t+n+o}function v(e){if(e.ended)throw Error(`cannot add entries after calling end()`);return!!e.errored}var y=56,b=20,x=22;function S(e,t){var n=!1,r=e.entries.length;(e.forceZip64Eocd||e.entries.length>=65535)&&(r=65535,n=!0);var i=e.outputStreamCursor-e.offsetOfStartOfCentralDirectory,a=i;(e.forceZip64Eocd||i>=4294967295)&&(a=4294967295,n=!0);var o=e.offsetOfStartOfCentralDirectory;if((e.forceZip64Eocd||e.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,n=!0),t)return n?y+b+x:x;var s=K(x+e.comment.length);if(s.writeUInt32LE(101010256,0),s.writeUInt16LE(0,4),s.writeUInt16LE(0,6),s.writeUInt16LE(r,8),s.writeUInt16LE(r,10),s.writeUInt32LE(a,12),s.writeUInt32LE(o,16),s.writeUInt16LE(e.comment.length,20),e.comment.copy(s,22),!n)return s;var c=K(y);c.writeUInt32LE(101075792,0),B(c,y-12,4),c.writeUInt16LE(k,12),c.writeUInt16LE(O,14),c.writeUInt32LE(0,16),c.writeUInt32LE(0,20),B(c,e.entries.length,24),B(c,e.entries.length,32),B(c,i,40),B(c,e.offsetOfStartOfCentralDirectory,48);var l=K(b);return l.writeUInt32LE(117853008,0),l.writeUInt32LE(0,4),B(l,e.outputStreamCursor,8),l.writeUInt32LE(1,16),Buffer.concat([c,l,s])}function C(e,t){if(e===``)throw Error(`empty metadataPath`);if(e=e.replace(/\\/g,`/`),/^[a-zA-Z]:/.test(e)||/^\//.test(e))throw Error(`absolute path: `+e);if(e.split(`/`).indexOf(`..`)!==-1)throw Error(`invalid relative path: `+e);var n=/\/$/.test(e);if(t)n||(e+=`/`);else if(n)throw Error(`file path cannot end with '/': `+e);return e}var w=K(0);function T(e,t,n){if(this.utf8FileName=q(e),this.utf8FileName.length>65535)throw Error(`utf8 file name too long. `+utf8FileName.length+` > 65535`);if(this.isDirectory=t,this.state=T.WAITING_FOR_METADATA,this.setLastModDate(n.mtime==null?new Date:n.mtime),this.forceDosTimestamp=!!n.forceDosTimestamp,n.mode==null?this.setFileAttributesMode(t?16893:33204):this.setFileAttributesMode(n.mode),t?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,n.size!=null&&(this.uncompressedSize=n.size)),t?this.compressionLevel=0:this.compressionLevel=h(n),this.forceZip64Format=!!n.forceZip64Format,n.fileComment){if(typeof n.fileComment==`string`?this.fileComment=q(n.fileComment,`utf-8`):this.fileComment=n.fileComment,this.fileComment.length>65535)throw Error(`fileComment is too large`)}else this.fileComment=w}T.WAITING_FOR_METADATA=0,T.READY_TO_PUMP_FILE_DATA=1,T.FILE_DATA_IN_PROGRESS=2,T.FILE_DATA_DONE=3,T.prototype.setLastModDate=function(e){this.mtime=e;var t=z(e);this.lastModFileTime=t.time,this.lastModFileDate=t.date},T.prototype.setFileAttributesMode=function(e){if((e&65535)!==e)throw Error(`invalid mode. expected: 0 <= `+e+` <= 65535`);this.externalFileAttributes=e<<16>>>0},T.prototype.setFileDataPumpFunction=function(e){this.doFileDataPump=e,this.state=T.READY_TO_PUMP_FILE_DATA},T.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var E=30,D=20,O=45,k=831,A=2048,j=8;T.prototype.getLocalFileHeader=function(){var e=0,t=0,n=0;this.crcAndFileSizeKnown&&(e=this.crc32,t=this.compressedSize,n=this.uncompressedSize);var r=K(E),i=A;return this.crcAndFileSizeKnown||(i|=j),r.writeUInt32LE(67324752,0),r.writeUInt16LE(D,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(e,14),r.writeUInt32LE(t,18),r.writeUInt32LE(n,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var M=16,N=24;T.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return w;if(this.useZip64Format()){var e=K(N);return e.writeUInt32LE(134695760,0),e.writeUInt32LE(this.crc32,4),B(e,this.compressedSize,8),B(e,this.uncompressedSize,16),e}else{var e=K(M);return e.writeUInt32LE(134695760,0),e.writeUInt32LE(this.crc32,4),e.writeUInt32LE(this.compressedSize,8),e.writeUInt32LE(this.uncompressedSize,12),e}};var P=46,F=9,I=28;T.prototype.getCentralDirectoryRecord=function(){var e=K(P),t=A;this.crcAndFileSizeKnown||(t|=j);var n=w;if(!this.forceDosTimestamp){n=K(F),n.writeUInt16LE(21589,0),n.writeUInt16LE(F-4,2),n.writeUInt8(3,4);var r=Math.floor(this.mtime.getTime()/1e3);r<-2147483648&&(r=-2147483648),r>2147483647&&(r=2147483647),n.writeUInt32LE(r,5)}var i=this.compressedSize,a=this.uncompressedSize,o=this.relativeOffsetOfLocalHeader,s=D,c=w;return this.useZip64Format()&&(i=4294967295,a=4294967295,o=4294967295,s=O,c=K(I),c.writeUInt16LE(1,0),c.writeUInt16LE(I-4,2),B(c,this.uncompressedSize,4),B(c,this.compressedSize,12),B(c,this.relativeOffsetOfLocalHeader,20)),e.writeUInt32LE(33639248,0),e.writeUInt16LE(k,4),e.writeUInt16LE(s,6),e.writeUInt16LE(t,8),e.writeUInt16LE(this.getCompressionMethod(),10),e.writeUInt16LE(this.lastModFileTime,12),e.writeUInt16LE(this.lastModFileDate,14),e.writeUInt32LE(this.crc32,16),e.writeUInt32LE(i,20),e.writeUInt32LE(a,24),e.writeUInt16LE(this.utf8FileName.length,28),e.writeUInt16LE(n.length+c.length,30),e.writeUInt16LE(this.fileComment.length,32),e.writeUInt16LE(0,34),e.writeUInt16LE(0,36),e.writeUInt32LE(this.externalFileAttributes,38),e.writeUInt32LE(o,42),Buffer.concat([e,this.utf8FileName,n,c,this.fileComment])},T.prototype.getCompressionMethod=function(){return this.compressionLevel===0?0:8};var L=new Date(1980,0,1),R=new Date(2107,11,31,23,59,58);function z(e){e<L?e=L:e>R&&(e=R);var t=0;t|=e.getDate()&31,t|=(e.getMonth()+1&15)<<5,t|=(e.getFullYear()-1980&127)<<9;var n=0;return n|=Math.floor(e.getSeconds()/2),n|=(e.getMinutes()&63)<<5,n|=(e.getHours()&31)<<11,{date:t,time:n}}function B(e,t,n){var r=Math.floor(t/4294967296),i=t%4294967296;e.writeUInt32LE(i,n),e.writeUInt32LE(r,n+4)}s.inherits(V,i);function V(e){i.call(this,e),this.byteCount=0}V.prototype._transform=function(e,t,n){this.byteCount+=e.length,n(null,e)},s.inherits(H,i);function H(e){i.call(this,e),this.crc32=0}H.prototype._transform=function(e,t,n){this.crc32=u.unsigned(e,this.crc32),n(null,e)};var U=`\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`;if(U.length!==256)throw Error(`assertion failure`);var W=null;function G(e){if(/^[\x20-\x7e]*$/.test(e))return q(e,`utf-8`);if(W==null){W={};for(var t=0;t<U.length;t++)W[U[t]]=t}for(var n=K(e.length),t=0;t<e.length;t++){var r=W[e[t]];if(r==null)throw Error(`character not encodable in CP437: `+JSON.stringify(e[t]));n[t]=r}return n}function K(e){K=t;try{return K(e)}catch{return K=n,K(e)}function t(e){return Buffer.allocUnsafe(e)}function n(e){return new Buffer(e)}}function q(e,t){q=n;try{return q(e,t)}catch{return q=r,q(e,t)}function n(e,t){return Buffer.from(e,t)}function r(e,t){return new Buffer(e,t)}}function J(e,t){J=n;try{return J(e,t)}catch{return J=r,J(e,t)}function n(e,t){return e.includes(t)}function r(e,t){for(var n=0;n<=e.length-t.length;n++)for(var r=0;;r++){if(r===t.length)return!0;if(e[n+r]!==t[r])break}return!1}}}));export{r as t};
|
|
2
|
-
//# sourceMappingURL=yazl-
|
|
2
|
+
//# sourceMappingURL=yazl-DjRp4wSy.mjs.map
|
|
@@ -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-SYMJJMQ4-tl6Dz6VW.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DHx5dxhT.mjs";import{t as e}from"./chunk-XORM457F-BlSrSdGX.mjs";export{e as yqCommand};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{r as e,t}from"./chunk-VOBGTVA6-BrLYHV3X.mjs";export{e as aliasCommand,t as unaliasCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import{n as e}from"./chunk-OARHFVLG-98yp8JRG.mjs";export{e as awkCommand2};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-QJ7O6ZN3-SwU_vJqW.mjs";export{e as base64Command};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-ALLTKNUZ-HEyM2sBV.mjs";export{e as basenameCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{i as e,t}from"./chunk-D6CWQ5DW-CI9YGPey.mjs";export{e as bashCommand,t as shCommand};
|
package/dist/build-5_QDpj2G.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./build-fAc55Z_L.mjs";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-TXBZCHCQ-CzW3I1vv.mjs";export{e as catCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-4GTNDTRF--1mJs7-X.mjs";export{e as chmodCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-LL3S3NLB-CRM1v6xO.mjs";export{e as clearCommand};
|
package/dist/colors-B75xIh3W.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,s as n}from"./colors-DEbd2OH6.mjs";export{e as dim,t as error,n as warning};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-LWEGUNWT-DsSNdmG6.mjs";export{e as column};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-Z7JVV2SM-B1GYGO5h.mjs";export{e as commCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-NUYSJFDK-J6Py8CIT.mjs";export{e as cpCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-SDNKECQQ-ivh2-vsR.mjs";export{e as cutCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-D7MEQ3VN-BMterGJ_.mjs";export{e as dateCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-TLSUDHID-PXPLisKA.mjs";export{e as diffCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-4Q4SM6WR-CvGF-_Q8.mjs";export{e as dirnameCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-RPNGRAAP-C_hK2f_6.mjs";export{e as duCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-GCTKCWKD-BHUn6H7z.mjs";export{e as echoCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{i as e,t}from"./chunk-NAERJDUW-B0-n_gxK.mjs";export{e as envCommand,t as printenvCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-VJFXDYWH-HJeqU79C.mjs";export{e as expand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import{w as e}from"./chunk-FEIOJCZD-B2ACHNVA.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";export{e as isArray};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-YFG2CMIF-QAvMGKqJ.mjs";export{e as exprCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-CR5AFCPT-D7NkQWcH.mjs";export{e as fileCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-J642UCRS-Cyg-aSoS.mjs";import{n as e}from"./chunk-LPQPILI2-BI3cmSCQ.mjs";export{e as findCommand};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-CWQS3NFK-CKoiDb4a.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-A5O5YHGN-C4hFXTXp.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-BrLYHV3X.mjs";import{t as n}from"./chunk-OARHFVLG-98yp8JRG.mjs";import{n as r}from"./chunk-QJ7O6ZN3-SwU_vJqW.mjs";import{n as i}from"./chunk-ALLTKNUZ-HEyM2sBV.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-CI9YGPey.mjs";import{n as a}from"./chunk-TXBZCHCQ-CzW3I1vv.mjs";import{n as o}from"./chunk-4GTNDTRF--1mJs7-X.mjs";import{t as s}from"./chunk-LL3S3NLB-CRM1v6xO.mjs";import{n as c}from"./chunk-LWEGUNWT-DsSNdmG6.mjs";import{n as l}from"./chunk-Z7JVV2SM-B1GYGO5h.mjs";import{n as u}from"./chunk-NUYSJFDK-J6Py8CIT.mjs";import{t as d}from"./chunk-SDNKECQQ-ivh2-vsR.mjs";import{t as f}from"./chunk-D7MEQ3VN-BMterGJ_.mjs";import{n as p}from"./chunk-TLSUDHID-PXPLisKA.mjs";import{t as m}from"./chunk-4Q4SM6WR-CvGF-_Q8.mjs";import{n as h}from"./chunk-RPNGRAAP-C_hK2f_6.mjs";import{n as g}from"./chunk-GCTKCWKD-BHUn6H7z.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-B0-n_gxK.mjs";import{n as y}from"./chunk-VJFXDYWH-HJeqU79C.mjs";import{t as b}from"./chunk-YFG2CMIF-QAvMGKqJ.mjs";import{n as x}from"./chunk-CR5AFCPT-D7NkQWcH.mjs";import"./chunk-J642UCRS-Cyg-aSoS.mjs";import{t as S}from"./chunk-LPQPILI2-BI3cmSCQ.mjs";import{t as C}from"./chunk-BRGMQKJV-BKd1VT2Z.mjs";import"./chunk-SYMJJMQ4-N8usXlyn.mjs";import"./chunk-7TSDKFEO-CVXHdZlP.mjs";import"./chunk-BBXLRYSX-mzBO0XWz.mjs";import{n as w}from"./chunk-XORM457F-DPa9UklK.mjs";import"./chunk-F55TLFGB-Bin48pra.mjs";import{t as T}from"./chunk-UNYNJIFU-5QHcA85X.mjs";import{r as E}from"./chunk-HWBSOZZR-uOggqK2F.mjs";import{n as D}from"./chunk-MDLLFABN-BUZLLdU-.mjs";import{n as O}from"./chunk-MLXIYONF-C43lG0dq.mjs";import{n as k}from"./chunk-A65PWWJC-DCxPAHkR.mjs";import{t as A}from"./chunk-MHTUABJP-CFOPmfuD.mjs";import{n as j}from"./chunk-4HHKTUW3-MVqoi_T3.mjs";import{n as M}from"./chunk-HJQJAYMS-BIgu03Ox.mjs";import{n as N}from"./chunk-PP6PSHAB-DU1u4KhR.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-zhq7ggMR.mjs";import{t as L}from"./chunk-YTNYSM6T-DC2EcahF.mjs";import{t as R}from"./chunk-Z6LRHWXI-Dwj1jdge.mjs";import{n as z}from"./chunk-A7A2DBEE-Cz9e5Bhr.mjs";import{t as B}from"./chunk-APT7OOP2-CR6NU00o.mjs";import{n as V}from"./chunk-XKQRETAK--OBLek3Q.mjs";import{n as H}from"./chunk-5V6VZH6T-D7bOa6u8.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-CfNKT29I.mjs";import{n as G}from"./chunk-YCFVLTST-DLBC7Zw_.mjs";import{t as K}from"./chunk-GOV5EKKI-21xKIzGR.mjs";import{t as q}from"./chunk-XVDPCNWR-D-2j42Wk.mjs";import{n as J}from"./chunk-NCNPKYJZ-CTS9W0AE.mjs";import{t as ne}from"./chunk-TOMNU26N-BVt75BK5.mjs";import{t as Y}from"./chunk-PYSFUGCK-BHCYaqaR.mjs";import{t as X}from"./chunk-VYOJP4TV-CyUuqbM6.mjs";import{t as Z}from"./chunk-MYE6AGBJ-IJhb8Pnd.mjs";import{t as re}from"./chunk-A7ICOL4V-BsLyPNES.mjs";import{t as ie}from"./chunk-55VFSPNA-BI6dNKjc.mjs";import{n as ae}from"./chunk-WKFATFPP-Bs2wgFlc.mjs";import{n as oe}from"./chunk-JVPRLUMK-DSRfSbMx.mjs";import{t as se}from"./chunk-62RKD26F-CNcG0-gc.mjs";import{t as ce}from"./chunk-QCDB2VPH-B7sObey-.mjs";import{t as le}from"./chunk-F23WWYKW-CJjGfJog.mjs";import{n as ue}from"./chunk-D4J545R4-Cx98m4P-.mjs";import{t as de}from"./chunk-DCAAORBQ-D6297aec.mjs";import{n as fe}from"./chunk-GXVXFKBA-Cj_Fxv_5.mjs";import{n as pe}from"./chunk-5QVNJEHU-BvfNka90.mjs";import"./chunk-VLGZJRPG-BdCxuGR9.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-BLSxIHIX.mjs";import{n as _e}from"./chunk-NYQYO467-DRNkyF-U.mjs";import{n as ve}from"./chunk-OL3S66CO-DAKw4RBb.mjs";import{t as ye}from"./chunk-KMEYNNUA-CDMPzUOg.mjs";import{t as be}from"./chunk-MIZPJHVH-DRUAnovn.mjs";import{n as xe}from"./chunk-A4JSPFCI-CFUAbT7E.mjs";import{t as Q}from"./chunk-PBXLG62G-CLbYzY24.mjs";import{t as Se}from"./chunk-A4HU7SVR-BecnXf_j.mjs";import{t as Ce}from"./chunk-HJWBQKYG-rWCXbrjW.mjs";import{t as we}from"./chunk-64BAICW3-Ct0k59pL.mjs";import{n as Te}from"./chunk-T56QNPHK-BpY2JAwZ.mjs";import{n as Ee}from"./chunk-V7TAPXDL-DImQ2x1N.mjs";import{n as De}from"./chunk-MDDMCKUK-BOemNzYa.mjs";import{t as Oe}from"./chunk-OCS6LSEM-B8tIhL1k.mjs";import{n as ke}from"./chunk-OCLXQMOG-Bwp2OfcJ.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,he,me,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
|
|
2
|
-
//# sourceMappingURL=flag-coverage-QT4N2Z44-CspB_4zD.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-D4J545R4-Cx98m4P-.mjs";export{e as fold};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{t as r}from"./rolldown-runtime-twds-ZHy-DU73unG7.mjs";import{EventEmitter as i}from"node:events";import{normalize as a,resolve as o}from"node:path";import{spawn as s}from"child_process";var c=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),l=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=i,n.enabled=s,n.humanize=c(),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),u=n(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=l()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),d=n(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),f=n(((t,n)=>{let r=e(`os`),i=e(`tty`),a=d(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1),`FORCE_COLOR`in o&&(s=o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function c(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(s===0)return 0;if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2;if(e&&!t&&s===void 0)return 0;let n=s||0;if(o.TERM===`dumb`)return n;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:n}function u(e){return c(l(e,e&&e.isTTY))}n.exports={supportsColor:u,stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}})),p=n(((t,n)=>{let r=e(`tty`),i=e(`util`);t.init=p,t.log=c,t.formatArgs=o,t.save=u,t.load=d,t.useColors=a,t.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=f();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
2
|
-
`).join(`
|
|
3
|
-
`+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+t+` `+e[0]}function s(){return t.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+`
|
|
4
|
-
`)}function u(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function d(){return process.env.DEBUG}function p(e){e.inspectOpts={};let n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]}n.exports=l()(t);let{formatters:m}=n.exports;m.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
|
|
5
|
-
`).map(e=>e.trim()).join(` `)},m.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),m=n(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=u():t.exports=p()})),ee=n((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0});let r=e(`fs`),i=n(m()).default(`@kwsites/file-exists`);function a(e,t,n){i(`checking %s`,e);try{let a=r.statSync(e);return a.isFile()&&t?(i(`[OK] path represents a file`),!0):a.isDirectory()&&n?(i(`[OK] path represents a directory`),!0):(i(`[FAIL] path represents something other than a file or directory`),!1)}catch(e){if(e.code===`ENOENT`)return i(`[FAIL] path is not accessible: %o`,e),!1;throw i(`[FATAL] %o`,e),e}}function o(e,n=t.READABLE){return a(e,(n&t.FILE)>0,(n&t.FOLDER)>0)}t.exists=o,t.FILE=1,t.FOLDER=2,t.READABLE=t.FILE+t.FOLDER})),te=n((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,`__esModule`,{value:!0}),t(ee())}));const ne=new WeakMap;function re(...e){let t=new String(e);return ne.set(t,e),t}function h(e){return e instanceof String&&ne.has(e)}function g(e){return ne.get(e)??[]}var ie=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createDeferred=e.deferred=void 0;function t(){let e,t,n=`pending`;return{promise:new Promise((n,r)=>{e=n,t=r}),done(t){n===`pending`&&(n=`resolved`,e(t))},fail(e){n===`pending`&&(n=`rejected`,t(e))},get fulfilled(){return n!==`pending`},get status(){return n}}}e.deferred=t,e.createDeferred=t}));function*ae(e,t){let n=t===`global`;for(let t of e)t.isGlobal===n&&(yield t)}const oe=new Set([`--add`,`--edit`,`--remove-section`,`--rename-section`,`--replace-all`,`--unset`,`--unset-all`,`-e`]),se=new Set([`--get`,`--get-all`,`--get-color`,`--get-colorbool`,`--get-regexp`,`--get-urlmatch`,`--list`,`-l`]),ce=new Set([`edit`,`remove-section`,`rename-section`,`set`,`unset`]),le=new Set([`get`,`get-color`,`get-colorbool`,`list`]);function ue(e,t){for(let{name:n}of ae(e,`task`)){if(oe.has(n))return _(!0,t);if(se.has(n))return _(!1,t)}let n=t.at(0)?.toLowerCase();return n===void 0?null:ce.has(n)?_(!0,t.slice(1)):le.has(n)?_(!1,t.slice(1)):t.length===1?_(!1,t):_(!0,t)}function _(e=!1,t=[]){let n=t.at(0)?.toLowerCase();return n===void 0?null:{isWrite:e,isRead:!e,key:n,value:t.at(1)}}function de(e,t){return t.isWrite&&t.value!==void 0?{key:t.key,value:t.value,scope:e}:{key:t.key,scope:e}}function fe(e){let t=e?.indexOf(`=`)||-1;return!e||t<0?null:{key:e.slice(0,t).trim().toLowerCase(),value:e.slice(t+1)}}function pe(e){for(let{name:t}of ae(e,`task`))switch(t){case`--global`:return`global`;case`--system`:return`system`;case`--worktree`:return`worktree`;case`--local`:return`local`;case`--file`:case`-f`:return`file`}return`local`}function me({name:e}){if(e===`-c`||e===`--config`)return`inline`;if(e===`--config-env`)return`env`}function*he(e){for(let t of e){let e=me(t),n=e&&fe(t.value);n&&(yield{...n,scope:e})}}function ge(e,t,n){let r={read:[],write:[...he(t)]};return e===`config`&&_e(r,pe(t),ue(t,n)),r}function _e(e,t,n){if(n===null)return;let r=de(t,n);n.isWrite?e.write.push(r):e.read.push(r)}const ve={short:new Map([[`c`,!0]])},ye={short:new Map([[`C`,!0],[`P`,!1],[`h`,!1],[`p`,!1],[`v`,!1],...ve.short.entries()]),long:new Set([`attr-source`,`config-env`,`exec-path`,`git-dir`,`list-cmds`,`namespace`,`super-prefix`,`work-tree`])},be={clone:{short:new Map([[`b`,!0],[`j`,!0],[`l`,!1],[`n`,!1],[`o`,!0],[`q`,!1],[`s`,!1],[`u`,!0]]),long:new Set([`branch`,`config`,`jobs`,`origin`,`upload-pack`,`u`,`template`])},commit:{short:new Map([[`C`,!0],[`F`,!0],[`c`,!0],[`m`,!0],[`t`,!0]]),long:new Set([`file`,`message`,`reedit-message`,`reuse-message`,`template`])},config:{short:new Map([[`e`,!1],[`f`,!0],[`l`,!1]]),long:new Set([`blob`,`comment`,`default`,`file`,`type`,`value`])},fetch:{short:new Map,long:new Set([`upload-pack`])},init:{short:new Map,long:new Set([`template`])},pull:{short:new Map,long:new Set([`upload-pack`])},push:{short:new Map,long:new Set([`exec`,`receive-pack`])}},xe={short:new Map,long:new Set};function Se(e){let t=be[e??``]??xe;return{short:new Map([...ve.short.entries(),...t.short.entries()]),long:t.long}}function Ce(e,t=ye){if(e.startsWith(`--`)){let n=e.indexOf(`=`);if(n>2)return[{name:e.slice(0,n),value:e.slice(n+1),needsNext:!1}];let r=e.slice(2);return[{name:e,needsNext:t.long.has(r)}]}if(e.length===2){let n=e.charAt(1);return[{name:e,needsNext:t.short.get(n)===!0}]}return we(e,t.short)}function we(e,t){let n=e.slice(1).split(``),r=[];for(let i=0;i<n.length;i++){let a=n[i],o=t.get(a);if(o===void 0)return[{name:e,needsNext:!1}];if(o){let e=n.slice(i+1).join(``);if(e&&![...e].every(e=>t.has(e)))return r.push({name:`-${a}`,value:e,needsNext:!1}),r}r.push({name:`-${a}`,needsNext:o})}return r}function Te(e,t=[]){let n=0;for(;n<e.length;){let r=String(e[n]);if(!r.startsWith(`-`)||r.length<2)break;let i=Ce(r),a=n+1;for(let n of i){let r={name:n.name,value:n.value,absorbedNext:!1,isGlobal:!0};n.needsNext&&r.value===void 0&&a<e.length&&(r.value=String(e[a]),r.absorbedNext=!0,a++),t.push(r)}n=a}return{flags:t,taskIndex:n}}function Ee(e,t,n=[]){let r=Se(t),i=[],a=[],o=0;for(;o<e.length;){let t=e[o];if(h(t)){a.push(...g(t)),o++;continue}let s=String(t);if(s===`--`){for(let t=o+1;t<e.length;t++){let n=e[t];h(n)?a.push(...g(n)):a.push(String(n))}break}if(!s.startsWith(`-`)||s.length<2){i.push(s),o++;continue}let c=Ce(s,r),l=o+1;for(let t of c){let r={name:t.name,value:t.value,absorbedNext:!1,isGlobal:!1};t.needsNext&&r.value===void 0&&l<e.length&&!h(e[l])&&(r.value=String(e[l]),r.absorbedNext=!0,l++),n.push(r)}o=l}return{flags:n,positionals:i,pathspecs:a}}function*De({write:e}){for(let t of e)for(let e of Oe){let n=e(t.key);n&&(yield n)}}function v(e,t,n=String(e)){let r=typeof e==`string`?RegExp(`\\s*${e.toLowerCase()}`):e;return function(e){if(r.test(e))return{category:t,message:`Configuring ${n} is not permitted without enabling ${t}`}}}function y(e,t){return v(RegExp(`\\s*${e.toLowerCase().replace(/\./g,`(..+)?.`)}`),t,e)}const Oe=[v(`alias`,`allowUnsafeAlias`),v(`core.askPass`,`allowUnsafeAskPass`),v(`core.editor`,`allowUnsafeEditor`),v(`core.fsmonitor`,`allowUnsafeFsMonitor`),v(`core.gitProxy`,`allowUnsafeGitProxy`),v(`core.hooksPath`,`allowUnsafeHooksPath`),v(`core.pager`,`allowUnsafePager`),v(`core.sshCommand`,`allowUnsafeSshCommand`),y(`credential.helper`,`allowUnsafeCredentialHelper`),y(`diff.command`,`allowUnsafeDiffExternal`),v(`diff.external`,`allowUnsafeDiffExternal`),y(`diff.textconv`,`allowUnsafeDiffTextConv`),y(`filter.clean`,`allowUnsafeFilter`),y(`filter.smudge`,`allowUnsafeFilter`),y(`gpg.program`,`allowUnsafeGpgProgram`),v(`init.templateDir`,`allowUnsafeTemplateDir`),y(`merge.driver`,`allowUnsafeMergeDriver`),y(`mergetool.path`,`allowUnsafeMergeDriver`),y(`mergetool.cmd`,`allowUnsafeMergeDriver`),y(`protocol.allow`,`allowUnsafeProtocolOverride`),y(`remote.receivepack`,`allowUnsafePack`),y(`remote.uploadpack`,`allowUnsafePack`),v(`sequence.editor`,`allowUnsafeEditor`)];function*ke(e,t){for(let n of t)for(let t of Ae){let r=t(e,n.name);r&&(yield r)}}function b(e,t,n,r=String(t)){let i=typeof t==`string`?RegExp(`\\s*${t.toLowerCase()}`):t,a=`Use of ${e?`${e} with option `:``}${r} is not permitted without enabling ${n}`;return function(t,r){if((!e||t===e)&&i.test(r))return{category:n,message:a}}}const Ae=[b(null,/--(upload|receive)-pack/,`allowUnsafePack`,`--upload-pack or --receive-pack`),b(`clone`,/^-\w*u/,`allowUnsafePack`),b(`clone`,`--u`,`allowUnsafePack`),b(`push`,`--exec`,`allowUnsafePack`),b(null,`--template`,`allowUnsafeTemplateDir`)];function je(e,t,n){return[...ke(e,t),...De(n)]}function Me(...e){let{flags:t,taskIndex:n}=Te(e),r=n<e.length?String(e[n]).toLowerCase():null,{positionals:i,pathspecs:a}=Ee(r===null?[]:e.slice(n+1),r,t),o=ge(r,t,i);return{task:r,flags:t.map(Pe),paths:a,config:o,vulnerabilities:Ne(je(r,t,o))}}function Ne(e){return Object.defineProperty(e,`vulnerabilities`,{value:e})}function Pe({value:e,name:t}){return e===void 0?{name:t}:{name:t,value:e}}const Fe={editor:`allowUnsafeEditor`,git_askpass:`allowUnsafeAskPass`,git_config_global:`allowUnsafeConfigPaths`,git_config_system:`allowUnsafeConfigPaths`,git_config_count:`allowUnsafeConfigEnvCount`,git_config:`allowUnsafeConfigPaths`,git_editor:`allowUnsafeEditor`,git_exec_path:`allowUnsafeConfigPaths`,git_external_diff:`allowUnsafeDiffExternal`,git_pager:`allowUnsafePager`,git_proxy_command:`allowUnsafeGitProxy`,git_template_dir:`allowUnsafeTemplateDir`,git_sequence_editor:`allowUnsafeEditor`,git_ssh:`allowUnsafeSshCommand`,git_ssh_command:`allowUnsafeSshCommand`,pager:`allowUnsafePager`,prefix:`allowUnsafeConfigPaths`,ssh_askpass:`allowUnsafeAskPass`};function*Ie(e){let t=parseInt(e.git_config_count??`0`,10);for(let n=0;n<t;n++){let t=e[`git_config_key_${n}`],r=e[`git_config_value_${n}`];t!==void 0&&(yield{key:t.toLowerCase().trim(),value:r,scope:`env`})}}function*Le(e){for(let t of Object.keys(e))if(Re(t)){let e=Fe[t];yield{category:e,message:`Use of "${t.toUpperCase()}" is not permitted without enabling ${e}`}}}function Re(e){return Object.hasOwn(Fe,e)}function ze(e){let t={};for(let[n,r]of Object.entries(e)){let e=n.toLowerCase().trim();(Re(e)||e.startsWith(`git`))&&(t[e]=String(r))}return t}function Be(e){let t=ze(e),n={read:[],write:[...Ie(t)]};return{config:n,vulnerabilities:[...Le(t),...je(null,[],n)]}}function Ve(e,t){return[...Me(...e).vulnerabilities,...Be(t).vulnerabilities]}var He=te(),Ue=t(m()),x=ie(),We=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ke=Object.getOwnPropertyNames,qe=Object.prototype.hasOwnProperty,S=(e,t)=>function(){return e&&(t=(0,e[Ke(e)[0]])(e=0)),t},Je=(e,t)=>function(){return t||(0,e[Ke(e)[0]])((t={exports:{}}).exports,t),t.exports},C=(e,t)=>{for(var n in t)We(e,n,{get:t[n],enumerable:!0})},Ye=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Ke(t))!qe.call(e,i)&&i!==n&&We(e,i,{get:()=>t[i],enumerable:!(r=Ge(t,i))||r.enumerable});return e},w=e=>Ye(We({},`__esModule`,{value:!0}),e),T,E=S({"src/lib/errors/git-error.ts"(){T=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),D,O=S({"src/lib/errors/git-response-error.ts"(){E(),D=class extends T{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),Xe,Ze=S({"src/lib/errors/task-configuration-error.ts"(){E(),Xe=class extends T{constructor(e){super(void 0,e)}}}});function Qe(e){return typeof e==`function`?e:R}function $e(e){return typeof e==`function`&&e!==R}function et(e,t){let n=e.indexOf(t);return n<=0?[e,``]:[e.substr(0,n),e.substr(n+1)]}function tt(e,t=0){return nt(e)&&e.length>t?e[t]:void 0}function k(e,t=0){if(nt(e)&&e.length>t)return e[e.length-1-t]}function nt(e){return vt(e)}function A(e=``,t=!0,n=`
|
|
6
|
-
`){return e.split(n).reduce((e,n)=>{let r=t?n.trim():n;return r&&e.push(r),e},[])}function rt(e,t){return A(e,!0).map(e=>t(e))}function it(e){return(0,He.exists)(e,He.FOLDER)}function j(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function at(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function ot(e,t){if(Array.isArray(e)){let n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function M(e){return Array.isArray(e)?e:[e]}function st(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function N(e){return M(e).map(e=>e instanceof String?e:String(e))}function P(e,t=0){if(e==null)return t;let n=parseInt(e,10);return Number.isNaN(n)?t:n}function F(e,t){let n=[];for(let r=0,i=e.length;r<i;r++)n.push(t,e[r]);return n}function I(e){return(Array.isArray(e)?Buffer.concat(e):e).toString(`utf-8`)}function ct(e,t){let n={};return t.forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function lt(e=0){return new Promise(t=>setTimeout(t,e))}function ut(e){if(e!==!1)return e}var L,R,z,dt=S({"src/lib/utils/util.ts"(){yt(),L=`\0`,R=()=>{},z=Object.prototype.toString.call.bind(Object.prototype.toString)}});function B(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function ft(e,t){let n=h(e)?`string`:typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function pt(e){return!!e&&z(e)===`[object Object]`}function mt(e){return typeof e==`function`}var ht,gt,V,_t,vt,yt=S({"src/lib/utils/argument-filters.ts"(){dt(),ht=e=>Array.isArray(e),gt=e=>typeof e==`number`,V=e=>typeof e==`string`||h(e),_t=e=>V(e)||Array.isArray(e)&&e.every(V),vt=e=>e==null||`number|boolean|function`.includes(typeof e)?!1:typeof e.length==`number`}}),bt,xt=S({"src/lib/utils/exit-codes.ts"(){bt=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e[e.ERROR=1]=`ERROR`,e[e.NOT_FOUND=-2]=`NOT_FOUND`,e[e.UNCLEAN=128]=`UNCLEAN`,e))(bt||{})}}),St,Ct=S({"src/lib/utils/git-output-streams.ts"(){St=class e{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new e(this.stdOut.toString(`utf8`),this.stdErr.toString(`utf8`))}}}});function wt(){throw Error(`LineParser:useMatches not implemented`)}var H,U,Tt=S({"src/lib/utils/line-parser.ts"(){H=class{constructor(e,t){this.matches=[],this.useMatches=wt,this.parse=(e,t)=>(this.resetMatches(),this._regExp.every((t,n)=>this.addMatch(t,n,e(n)))?this.useMatches(t,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,n){let r=n&&e.exec(n);return r&&this.pushMatch(t,r),!!r}pushMatch(e,t){this.matches.push(...t.slice(1))}},U=class extends H{addMatch(e,t,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,t,n)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function Et(...e){let t=process.cwd(),n=Object.assign({baseDir:t,...Dt},...e.filter(e=>typeof e==`object`&&e));return n.baseDir=n.baseDir||t,n.trimmed=n.trimmed===!0,n}var Dt,Ot=S({"src/lib/utils/simple-git-options.ts"(){Dt={binary:`git`,maxConcurrentProcesses:5,config:[],trimmed:!1}}});function kt(e,t=[]){return pt(e)?Object.keys(e).reduce((t,n)=>{let r=e[n];if(h(r))t.push(r);else if(ft(r,[`boolean`]))t.push(n+`=`+r);else if(Array.isArray(r))for(let e of r)ft(e,[`string`,`number`])||t.push(n+`=`+e);else t.push(n);return t},t):t}function W(e,t=0,n=!1){let r=[];for(let n=0,i=t<0?e.length:t;n<i;n++)`string|number`.includes(typeof e[n])&&r.push(String(e[n]));return kt(jt(e),r),n||r.push(...At(e)),r}function At(e){return N(B(k(e,typeof k(e)==`function`?1:0),ht,[]))}function jt(e){return B(k(e,mt(k(e))?1:0),pt)}function G(e,t=!0){let n=Qe(k(e));return t||$e(n)?n:void 0}var Mt=S({"src/lib/utils/task-options.ts"(){yt(),dt()}});function Nt(e,t){return e(t.stdOut,t.stdErr)}function K(e,t,n,r=!0){return M(n).forEach(n=>{for(let i=A(n,r),a=0,o=i.length;a<o;a++){let n=(e=0)=>{if(!(a+e>=o))return i[a+e]};t.some(({parse:t})=>t(n,e))}}),e}var Pt=S({"src/lib/utils/task-parser.ts"(){dt()}}),Ft={};C(Ft,{ExitCodes:()=>bt,GitOutputStreams:()=>St,LineParser:()=>H,NOOP:()=>R,NULL:()=>L,RemoteLineParser:()=>U,append:()=>j,appendTaskOptions:()=>kt,asArray:()=>M,asCamelCase:()=>st,asFunction:()=>Qe,asNumber:()=>P,asStringArray:()=>N,bufferToString:()=>I,callTaskParser:()=>Nt,createInstanceConfig:()=>Et,delay:()=>lt,filterArray:()=>ht,filterFunction:()=>mt,filterHasLength:()=>vt,filterNumber:()=>gt,filterPlainObject:()=>pt,filterPrimitives:()=>ft,filterString:()=>V,filterStringOrStringArray:()=>_t,filterType:()=>B,first:()=>tt,folderExists:()=>it,forEachLineWithContent:()=>rt,getTrailingOptions:()=>W,including:()=>at,isUserFunction:()=>$e,last:()=>k,objectToString:()=>z,orVoid:()=>ut,parseStringResponse:()=>K,pick:()=>ct,prefixedArray:()=>F,remove:()=>ot,splitOn:()=>et,toLinesWithContent:()=>A,trailingFunctionArgument:()=>G,trailingOptionsArgument:()=>jt});var q=S({"src/lib/utils/index.ts"(){yt(),xt(),Ct(),Tt(),Ot(),Mt(),Pt(),dt()}}),It={};C(It,{CheckRepoActions:()=>Vt,checkIsBareRepoTask:()=>zt,checkIsRepoRootTask:()=>Rt,checkIsRepoTask:()=>Lt});function Lt(e){switch(e){case`bare`:return zt();case`root`:return Rt()}return{commands:[`rev-parse`,`--is-inside-work-tree`],format:`utf-8`,onError:Ht,parser:Ut}}function Rt(){return{commands:[`rev-parse`,`--git-dir`],format:`utf-8`,onError:Ht,parser(e){return/^\.(git)?$/.test(e.trim())}}}function zt(){return{commands:[`rev-parse`,`--is-bare-repository`],format:`utf-8`,onError:Ht,parser:Ut}}function Bt(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var Vt,Ht,Ut,Wt=S({"src/lib/tasks/check-is-repo.ts"(){q(),Vt=(e=>(e.BARE=`bare`,e.IN_TREE=`tree`,e.IS_REPO_ROOT=`root`,e))(Vt||{}),Ht=({exitCode:e},t,n,r)=>{if(e===128&&Bt(t))return n(Buffer.from(`false`));r(t)},Ut=e=>e.trim()===`true`}});function Gt(e,t){let n=new Kt(e),r=e?Jt:qt;return A(t).forEach(e=>{let t=e.replace(r,``);n.paths.push(t),(Yt.test(t)?n.folders:n.files).push(t)}),n}var Kt,qt,Jt,Yt,Xt=S({"src/lib/responses/CleanSummary.ts"(){q(),Kt=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},qt=/^[a-z]+\s*/i,Jt=/^[a-z]+\s+[a-z]+\s*/i,Yt=/\/$/}}),Zt={};C(Zt,{EMPTY_COMMANDS:()=>nn,adhocExecTask:()=>Qt,configurationErrorTask:()=>J,isBufferTask:()=>en,isEmptyTask:()=>tn,straightThroughBufferTask:()=>$t,straightThroughStringTask:()=>Y});function Qt(e){return{commands:nn,format:`empty`,parser:e}}function J(e){return{commands:nn,format:`empty`,parser(){throw typeof e==`string`?new Xe(e):e}}}function Y(e,t=!1){return{commands:e,format:`utf-8`,parser(e){return t?String(e).trim():e}}}function $t(e){return{commands:e,format:`buffer`,parser(e){return e}}}function en(e){return e.format===`buffer`}function tn(e){return e.format===`empty`||!e.commands.length}var nn,X=S({"src/lib/tasks/task.ts"(){Ze(),nn=[]}}),rn={};C(rn,{CONFIG_ERROR_INTERACTIVE_MODE:()=>fn,CONFIG_ERROR_MODE_REQUIRED:()=>pn,CONFIG_ERROR_UNKNOWN_OPTION:()=>mn,CleanOptions:()=>hn,cleanTask:()=>on,cleanWithOptionsTask:()=>an,isCleanOptionsArray:()=>sn});function an(e,t){let{cleanMode:n,options:r,valid:i}=cn(e);return n?i.options?(r.push(...t),r.some(dn)?J(fn):on(n,r)):J(mn+JSON.stringify(e)):J(pn)}function on(e,t){return{commands:[`clean`,`-${e}`,...t],format:`utf-8`,parser(t){return Gt(e===`n`,t)}}}function sn(e){return Array.isArray(e)&&e.every(e=>gn.has(e))}function cn(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,``).split(``).forEach(e=>{ln(e)?(t=e,r.cleanMode=!0):r.options=r.options&&un(n[n.length]=`-${e}`)}),{cleanMode:t,options:n,valid:r}}function ln(e){return e===`f`||e===`n`}function un(e){return/^-[a-z]$/i.test(e)&&gn.has(e.charAt(1))}function dn(e){return/^-[^\-]/.test(e)?e.indexOf(`i`)>0:e===`--interactive`}var fn,pn,mn,hn,gn,_n=S({"src/lib/tasks/clean.ts"(){Xt(),q(),X(),fn=`Git clean interactive mode is not supported`,pn=`Git clean mode parameter ("n" or "f") is required`,mn=`Git clean unknown option found in: `,hn=(e=>(e.DRY_RUN=`n`,e.FORCE=`f`,e.IGNORED_INCLUDED=`x`,e.IGNORED_ONLY=`X`,e.EXCLUDING=`e`,e.QUIET=`q`,e.RECURSIVE=`d`,e))(hn||{}),gn=new Set([`i`,...N(Object.values(hn))])}});function vn(e){let t=new Sn;for(let n of xn(e))t.addValue(n.file,String(n.key),n.value);return t}function yn(e,t){let n=null,r=[],i=new Map;for(let a of xn(e,t))a.key===t&&(r.push(n=a.value),i.has(a.file)||i.set(a.file,[]),i.get(a.file).push(n));return{key:t,paths:Array.from(i.keys()),scopes:i,value:n,values:r}}function bn(e){return e.replace(/^(file):/,``)}function*xn(e,t=null){let n=e.split(`\0`);for(let e=0,r=n.length-1;e<r;){let r=bn(n[e++]),i=n[e++],a=t;if(i.includes(`
|
|
7
|
-
`)){let e=et(i,`
|
|
8
|
-
`);a=e[0],i=e[1]}yield{file:r,key:a,value:i}}}var Sn,Cn=S({"src/lib/responses/ConfigList.ts"(){q(),Sn=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{}),this._all}addFile(e){if(!(e in this.values)){let t=k(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){let r=this.addFile(e);Object.hasOwn(r,t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}});function wn(e,t){return typeof e==`string`&&Object.hasOwn(kn,e)?e:t}function Tn(e,t,n,r){let i=[`config`,`--${r}`];return n&&i.push(`--add`),i.push(e,t),{commands:i,format:`utf-8`,parser(e){return e}}}function En(e,t){let n=[`config`,`--null`,`--show-origin`,`--get-all`,e];return t&&n.splice(1,0,`--${t}`),{commands:n,format:`utf-8`,parser(t){return yn(t,e)}}}function Dn(e){let t=[`config`,`--list`,`--show-origin`,`--null`];return e&&t.push(`--${e}`),{commands:t,format:`utf-8`,parser(e){return vn(e)}}}function On(){return{addConfig(e,t,...n){return this._runTask(Tn(e,t,n[0]===!0,wn(n[1],`local`)),G(arguments))},getConfig(e,t){return this._runTask(En(e,wn(t,void 0)),G(arguments))},listConfig(...e){return this._runTask(Dn(wn(e[0],void 0)),G(arguments))}}}var kn,An=S({"src/lib/tasks/config.ts"(){Cn(),q(),kn=(e=>(e.system=`system`,e.global=`global`,e.local=`local`,e.worktree=`worktree`,e))(kn||{})}});function jn(e){return Nn.has(e)}var Mn,Nn,Pn=S({"src/lib/tasks/diff-name-status.ts"(){Mn=(e=>(e.ADDED=`A`,e.COPIED=`C`,e.DELETED=`D`,e.MODIFIED=`M`,e.RENAMED=`R`,e.CHANGED=`T`,e.UNMERGED=`U`,e.UNKNOWN=`X`,e.BROKEN=`B`,e))(Mn||{}),Nn=new Set(Object.values(Mn))}});function Fn(...e){return new Vn().param(...e)}function In(e){let t=new Set,n={};return rt(e,e=>{let[r,i,a]=e.split(L);t.add(r),(n[r]=n[r]||[]).push({line:P(i),path:r,preview:a})}),{paths:t,results:n}}function Ln(){return{grep(e){let t=G(arguments),n=W(arguments);for(let e of Rn)if(n.includes(e))return this._runTask(J(`git.grep: use of "${e}" is not supported.`),t);typeof e==`string`&&(e=Fn().param(e));let r=[`grep`,`--null`,`-n`,`--full-name`,...n,...e];return this._runTask({commands:r,format:`utf-8`,parser(e){return In(e)}},t)}}}var Rn,zn,Bn,Vn,Hn=S({"src/lib/tasks/grep.ts"(){q(),X(),Rn=[`-h`],zn=Symbol(`grepQuery`),Vn=class{constructor(){this[Bn]=[]}*[(Bn=zn,Symbol.iterator)](){for(let e of this[zn])yield e}and(...e){return e.length&&this[zn].push(`--and`,`(`,...F(e,`-e`),`)`),this}param(...e){return this[zn].push(...F(e,`-e`)),this}}}}),Un={};C(Un,{ResetMode:()=>qn,getResetMode:()=>Gn,resetTask:()=>Wn});function Wn(e,t){let n=[`reset`];return Kn(e)&&n.push(`--${e}`),n.push(...t),Y(n)}function Gn(e){if(Kn(e))return e;switch(typeof e){case`string`:case`undefined`:return`soft`}}function Kn(e){return typeof e==`string`&&Jn.includes(e)}var qn,Jn,Yn=S({"src/lib/tasks/reset.ts"(){q(),X(),qn=(e=>(e.MIXED=`mixed`,e.SOFT=`soft`,e.HARD=`hard`,e.MERGE=`merge`,e.KEEP=`keep`,e))(qn||{}),Jn=N(Object.values(qn))}});function Xn(){return(0,Ue.default)(`simple-git`)}function Zn(e,t,n){return!t||!String(t).replace(/\s*/,``)?n?(t,...r)=>{e(t,...r),n(t,...r)}:e:(r,...i)=>{e(`%s ${r}`,t,...i),n&&n(r,...i)}}function Qn(e,t,{namespace:n}){if(typeof e==`string`)return e;let r=t&&t.namespace||``;return r.startsWith(n)?r.substr(n.length+1):r||n}function $n(e,t,n,r=Xn()){let i=e&&`[${e}]`||``,a=[],o=typeof t==`string`?r.extend(t):t,s=Qn(B(t,V),o,r);return l(n);function c(t,n){return j(a,$n(e,s.replace(/^[^:]+/,t),n,r))}function l(t){let n=t&&`[${t}]`||``,a=o&&Zn(o,n)||R,s=Zn(r,`${i} ${n}`,a);return Object.assign(o?a:s,{label:e,sibling:c,info:s,step:l})}}var er=S({"src/lib/git-logger.ts"(){q(),Ue.default.formatters.L=e=>String(vt(e)?e.length:`-`),Ue.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString(`utf8`):z(e)}}),tr,nr=S({"src/lib/runners/tasks-pending-queue.ts"(){E(),er(),tr=class e{constructor(e=`GitExecutor`){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(t){let n=e.getName(t.commands[0]);return{task:t,logger:$n(this.logLabel,n),name:n}}push(e){let t=this.createProgress(e);return t.logger(`Adding task to the queue, commands = %o`,e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:n}]of Array.from(this._queue.entries()))t===e.task?(n.info(`Failed %o`,e),n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)):n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message),this.complete(t);if(this._queue.size!==0)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new T(void 0,`TasksPendingQueue: attempt called for an unknown task`);return t.logger(`Starting task`),t}static getName(t=`empty`){return`task:${t}:${++e.counter}`}static{this.counter=0}}}});function Z(e,t){return{method:tt(e.commands)||``,commands:t}}function rr(e,t){return n=>{t(`[ERROR] child process exception %o`,n),e.push(Buffer.from(String(n.stack),`ascii`))}}function ir(e,t,n,r){return i=>{n(`%s received %L bytes`,t,i),r(`%B`,i),e.push(i)}}var ar,or=S({"src/lib/runners/git-executor-chain.ts"(){E(),X(),q(),nr(),ar=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new tr}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}async attemptTask(e){let t=await this._scheduler.next(),n=()=>this._queue.complete(e);try{let{logger:t}=this._queue.attempt(e);return await(tn(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t))}catch(t){throw this.onFatalException(e,t)}finally{n(),t()}}onFatalException(e,t){let n=t instanceof T?Object.assign(t,{task:e}):new T(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(n),n}async attemptRemoteTask(e,t){let n=this._plugins.exec(`spawn.binary`,``,Z(e,e.commands)),r=this._plugins.exec(`spawn.args`,[...e.commands],{...Z(e,e.commands),env:{...this.env}}),i=await this.gitResponse(e,n,r,this.outputHandler,t.step(`SPAWN`)),a=await this.handleTaskData(e,r,i,t.step(`HANDLE`));return t(`passing response to task's parser as a %s`,e.format),en(e)?Nt(e.parser,a):Nt(e.parser,a.asStrings())}async attemptEmptyTask(e,t){return t(`empty task bypassing child process to call to task's parser`),e.parser(this)}handleTaskData(e,t,n,r){let{exitCode:i,rejection:a,stdOut:o,stdErr:s}=n;return new Promise((c,l)=>{r(`Preparing to handle process response exitCode=%d stdOut=`,i);let{error:u}=this._plugins.exec(`task.error`,{error:a},{...Z(e,t),...n});if(u&&e.onError)return r.info(`exitCode=%s handling with custom error handler`),e.onError(n,u,e=>{r.info(`custom error handler treated as success`),r(`custom error returned a %s`,z(e)),c(new St(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(s)))},l);if(u)return r.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,i,s.length,a),l(u);r.info(`retrieving task output complete`),c(new St(Buffer.concat(o),Buffer.concat(s)))})}async gitResponse(e,t,n,r,i){let a=i.sibling(`output`),o=this._plugins.exec(`spawn.options`,{cwd:this.cwd,env:this.env,windowsHide:!0},Z(e,e.commands));return new Promise(c=>{let l=[],u=[];i.info(`%s %o`,t,n),i(`%O`,o);let d=this._beforeSpawn(e,n);if(d)return c({stdOut:l,stdErr:u,exitCode:9901,rejection:d});this._plugins.exec(`spawn.before`,void 0,{...Z(e,n),kill(e){d=e||d}});let f=s(t,n,o);f.stdout.on(`data`,ir(l,`stdOut`,i,a.step(`stdOut`))),f.stderr.on(`data`,ir(u,`stdErr`,i,a.step(`stdErr`))),f.on(`error`,rr(u,i)),r&&(i(`Passing child process stdOut/stdErr to custom outputHandler`),r(t,f.stdout,f.stderr,[...n])),this._plugins.exec(`spawn.after`,void 0,{...Z(e,n),spawned:f,close(e,t){c({stdOut:l,stdErr:u,exitCode:e,rejection:d||t})},kill(e){f.killed||(d=e,f.kill(`SIGINT`))}})})}_beforeSpawn(e,t){let n;return this._plugins.exec(`spawn.before`,void 0,{...Z(e,t),kill(e){n=e||n}}),n}}}}),sr={};C(sr,{GitExecutor:()=>cr});var cr,lr=S({"src/lib/runners/git-executor.ts"(){or(),cr=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new ar(this,this._scheduler,this._plugins)}chain(){return new ar(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function ur(e,t,n=R){t.then(e=>{n(null,e)},t=>{t?.task===e&&n(t instanceof D?dr(t):t,void 0)})}function dr(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=R};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(n,{}));function n(n,r){return r in e||(n[r]={enumerable:!1,configurable:!1,get(){return t(r),e.git[r]}}),n}}var fr=S({"src/lib/task-callback.ts"(){O(),q()}});function pr(e,t){return Qt(n=>{if(!it(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e})}var mr=S({"src/lib/tasks/change-working-directory.ts"(){q(),X()}});function hr(e){let t=[`checkout`,...e];return t[1]===`-b`&&t.includes(`-B`)&&(t[1]=ot(t,`-B`)),Y(t)}function gr(){return{checkout(){return this._runTask(hr(W(arguments,1)),G(arguments))},checkoutBranch(e,t){return this._runTask(hr([`-b`,e,t,...W(arguments)]),G(arguments))},checkoutLocalBranch(e){return this._runTask(hr([`-b`,e,...W(arguments)]),G(arguments))}}}var _r=S({"src/lib/tasks/checkout.ts"(){q(),X()}});function vr(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function yr(){return{countObjects(){return this._runTask({commands:[`count-objects`,`--verbose`],format:`utf-8`,parser(e){return K(vr(),[br],e)}})}}}var br,xr=S({"src/lib/tasks/count-objects.ts"(){q(),br=new H(/([a-z-]+): (\d+)$/,(e,[t,n])=>{let r=st(t);Object.hasOwn(e,r)&&(e[r]=P(n))})}});function Sr(e){return K({author:null,branch:``,commit:``,root:!1,summary:{changes:0,insertions:0,deletions:0}},Cr,e)}var Cr,wr=S({"src/lib/parsers/parse-commit.ts"(){q(),Cr=[new H(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,n,r])=>{e.branch=t,e.commit=r,e.root=!!n}),new H(/\s*Author:\s(.+)/i,(e,[t])=>{let n=t.split(`<`),r=n.pop();!r||!r.includes(`@`)||(e.author={email:r.substr(0,r.length-1),name:n.join(`<`).trim()})}),new H(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(n,10)||0,e.summary.deletions=parseInt(r,10)||0}),new H(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0;let i=parseInt(n,10)||0;r===`-`?e.summary.deletions=i:r===`+`&&(e.summary.insertions=i)})]}});function Tr(e,t,n){return{commands:[`-c`,`core.abbrev=40`,`commit`,...F(e,`-m`),...t,...n],format:`utf-8`,parser:Sr}}function Er(){return{commit(t,...n){let r=G(arguments),i=e(t)||Tr(M(t),M(B(n[0],_t,[])),[...N(B(n[1],ht,[])),...W(arguments,0,!0)]);return this._runTask(i,r)}};function e(e){return!_t(e)&&J(`git.commit: requires the commit message to be supplied as a string/string[]`)}}var Dr=S({"src/lib/tasks/commit.ts"(){wr(),q(),X()}});function Or(){return{firstCommit(){return this._runTask(Y([`rev-list`,`--max-parents=0`,`HEAD`],!0),G(arguments))}}}var kr=S({"src/lib/tasks/first-commit.ts"(){q(),X()}});function Ar(e,t){let n=[`hash-object`,e];return t&&n.push(`-w`),Y(n,!0)}var jr=S({"src/lib/tasks/hash-object.ts"(){X()}});function Mr(e,t,n){let r=String(n).trim(),i;if(i=Pr.exec(r))return new Nr(e,t,!1,i[1]);if(i=Fr.exec(r))return new Nr(e,t,!0,i[1]);let a=``,o=r.split(` `);for(;o.length;)if(o.shift()===`in`){a=o.join(` `);break}return new Nr(e,t,/^re/i.test(r),a)}var Nr,Pr,Fr,Ir=S({"src/lib/responses/InitSummary.ts"(){Nr=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},Pr=/^Init.+ repository in (.+)$/,Fr=/^Rein.+ in (.+)$/}});function Lr(e){return e.includes(zr)}function Rr(e=!1,t,n){let r=[`init`,...n];return e&&!Lr(r)&&r.splice(1,0,zr),{commands:r,format:`utf-8`,parser(e){return Mr(r.includes(`--bare`),t,e)}}}var zr,Br=S({"src/lib/tasks/init.ts"(){Ir(),zr=`--bare`}});function Vr(e){for(let t=0;t<e.length;t++){let n=Ur.exec(e[t]);if(n)return`--${n[1]}`}return``}function Hr(e){return Ur.test(e)}var Ur,Wr=S({"src/lib/args/log-format.ts"(){Ur=/^--(stat|numstat|name-only|name-status)(=|$)/}}),Gr,Kr=S({"src/lib/responses/DiffSummary.ts"(){Gr=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function qr(e=``){let t=Qr[e];return e=>K(new Gr,t,e,!1)}var Jr,Yr,Xr,Zr,Qr,$r=S({"src/lib/parsers/parse-diff-summary.ts"(){Wr(),Kr(),Pn(),q(),Jr=[new H(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,n,r=``])=>{e.files.push({file:t.trim(),changes:P(n),insertions:r.replace(/[^+]/g,``).length,deletions:r.replace(/[^-]/g,``).length,binary:!1})}),new H(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,n,r])=>{e.files.push({file:t.trim(),before:P(n),after:P(r),binary:!0})}),new H(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,n])=>{let r=/(\d+) i/.exec(n),i=/(\d+) d/.exec(n);e.changed=P(t),e.insertions=P(r?.[1]),e.deletions=P(i?.[1])})],Yr=[new H(/(\d+)\t(\d+)\t(.+)$/,(e,[t,n,r])=>{let i=P(t),a=P(n);e.changed++,e.insertions+=i,e.deletions+=a,e.files.push({file:r,changes:i+a,insertions:i,deletions:a,binary:!1})}),new H(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Xr=[new H(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],Zr=[new H(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,n,r,i,a])=>{e.changed++,e.files.push({file:a??r,changes:0,insertions:0,deletions:0,binary:!1,status:ut(jn(t)&&t),from:ut(!!a&&r!==a&&r),similarity:P(n)})})],Qr={"":Jr,"--stat":Jr,"--numstat":Yr,"--name-status":Zr,"--name-only":Xr}}});function ei(e,t){return t.reduce((t,n,r)=>(t[n]=e[r]||``,t),Object.create({diff:null}))}function ti(e=ii,t=ai,n=``){let r=qr(n);return function(n){let i=A(n.trim(),!1,ni).map(function(n){let i=n.split(ri),a=ei(i[0].split(e),t);return i.length>1&&i[1].trim()&&(a.diff=r(i[1])),a});return{all:i,latest:i.length&&i[0]||null,total:i.length}}}var ni,ri,ii,ai,oi=S({"src/lib/parsers/parse-list-log-summary.ts"(){q(),$r(),Wr(),ni=`òòòòòò `,ri=` òò`,ii=` ò `,ai=[`hash`,`date`,`message`,`refs`,`author_name`,`author_email`]}}),si={};C(si,{diffSummaryTask:()=>ci,validateLogFormatConfig:()=>li});function ci(e){let t=Vr(e),n=[`diff`];return t===``&&(t=`--stat`,n.push(`--stat=4096`)),n.push(...e),li(n)||{commands:n,format:`utf-8`,parser:qr(t)}}function li(e){let t=e.filter(Hr);if(t.length>1)return J(`Summary flags are mutually exclusive - pick one of ${t.join(`,`)}`);if(t.length&&e.includes(`-z`))return J(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var ui=S({"src/lib/tasks/diff.ts"(){Wr(),$r(),X()}});function di(e,t){let n=[],r=[];return Object.keys(e).forEach(t=>{n.push(t),r.push(String(e[t]))}),[n,r.join(t)]}function fi(e){return Object.keys(e).reduce((t,n)=>(n in gi||(t[n]=e[n]),t),{})}function pi(e={},t=[]){let n=B(e.splitter,V,ii),[r,i]=di(pt(e.format)?e.format:{hash:`%H`,date:e.strictDate===!1?`%ai`:`%aI`,message:`%s`,refs:`%D`,body:e.multiLine?`%B`:`%b`,author_name:e.mailMap===!1?`%an`:`%aN`,author_email:e.mailMap===!1?`%ae`:`%aE`},n),a=[],o=[`--pretty=format:${ni}${i}${ri}`,...t],s=e.n||e[`max-count`]||e.maxCount;if(s&&o.push(`--max-count=${s}`),e.from||e.to){let t=e.symmetric===!1?`..`:`...`;a.push(`${e.from||``}${t}${e.to||``}`)}return V(e.file)&&o.push(`--follow`,re(e.file)),kt(fi(e),o),{fields:r,splitter:n,commands:[...o,...a]}}function mi(e,t,n){let r=ti(e,t,Vr(n));return{commands:[`log`,...n],format:`utf-8`,parser:r}}function hi(){return{log(...n){let r=G(arguments),i=pi(jt(arguments),N(B(arguments[0],ht,[]))),a=t(...n)||li(i.commands)||e(i);return this._runTask(a,r)}};function e(e){return mi(e.splitter,e.fields,e.commands)}function t(e,t){return V(e)&&V(t)&&J(`git.log(string, string) should be replaced with git.log({ from: string, to: string })`)}}var gi,_i=S({"src/lib/tasks/log.ts"(){Wr(),oi(),q(),X(),ui(),gi=(e=>(e[e[`--pretty`]=0]=`--pretty`,e[e[`max-count`]=1]=`max-count`,e[e.maxCount=2]=`maxCount`,e[e.n=3]=`n`,e[e.file=4]=`file`,e[e.format=5]=`format`,e[e.from=6]=`from`,e[e.to=7]=`to`,e[e.splitter=8]=`splitter`,e[e.symmetric=9]=`symmetric`,e[e.mailMap=10]=`mailMap`,e[e.multiLine=11]=`multiLine`,e[e.strictDate=12]=`strictDate`,e))(gi||{})}}),vi,yi,bi=S({"src/lib/responses/MergeSummary.ts"(){vi=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},yi=class{constructor(){this.conflicts=[],this.merges=[],this.result=`success`}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(`, `)}`:`OK`}}}}),xi,Si,Ci=S({"src/lib/responses/PullSummary.ts"(){xi=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},Si=class{constructor(){this.remote=``,this.hash={local:``,remote:``},this.branch={local:``,remote:``},this.message=``}toString(){return this.message}}}});function wi(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Ti(e){let t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:P(t&&t[1]||`0`),delta:P(n&&n[1]||`0`)}}var Ei,Di=S({"src/lib/parsers/parse-remote-objects.ts"(){q(),Ei=[new U(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=wi(e.remoteMessages);Object.assign(i,{[r]:P(n)})}),new U(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=wi(e.remoteMessages);Object.assign(i,{[r]:P(n)})}),new U(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,n,r])=>{let i=wi(e.remoteMessages);i.total=Ti(t),i.reused=Ti(n),i.packReused=P(r)})]}});function Oi(e,t){return K({remoteMessages:new Ai},ki,t)}var ki,Ai,ji=S({"src/lib/parsers/parse-remote-messages.ts"(){q(),Di(),ki=[new U(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...Ei,new U([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new U([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:P(t),summary:n,url:r}})],Ai=class{constructor(){this.all=[]}}}});function Mi(e,t){let n=K(new Si,Li,[e,t]);return n.message&&n}var Ni,Pi,Fi,Ii,Li,Ri,zi,Bi=S({"src/lib/parsers/parse-pull.ts"(){Ci(),q(),ji(),Ni=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Pi=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Fi=/^(create|delete) mode \d+ (.+)/,Ii=[new H(Ni,(e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)}),new H(Pi,(e,[t,,n,,r])=>n!==void 0||r!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+n||0,e.summary.deletions=+r||0,!0):!1),new H(Fi,(e,[t,n])=>{j(e.files,n),j(t===`create`?e.created:e.deleted,n)})],Li=[new H(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new H(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new H(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,n,r,i])=>{e.branch.local=r,e.hash.local=t,e.branch.remote=i,e.hash.remote=n})],Ri=(e,t)=>K(new xi,Ii,[e,t]),zi=(e,t)=>Object.assign(new xi,Ri(e,t),Oi(e,t))}}),Vi,Hi,Ui,Wi=S({"src/lib/parsers/parse-merge.ts"(){bi(),q(),Bi(),Vi=[new H(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new H(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,n])=>{e.conflicts.push(new vi(t,n))}),new H(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,n,r])=>{e.conflicts.push(new vi(t,n,{deleteRef:r}))}),new H(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new vi(t,null))}),new H(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Hi=(e,t)=>Object.assign(Ui(e,t),zi(e,t)),Ui=e=>K(new yi,Vi,e)}});function Gi(e){return e.length?{commands:[`merge`,...e],format:`utf-8`,parser(e,t){let n=Hi(e,t);if(n.failed)throw new D(n);return n}}:J(`Git.merge requires at least one option`)}var Ki=S({"src/lib/tasks/merge.ts"(){O(),Wi(),X()}});function qi(e,t,n){let r=n.includes(`deleted`),i=n.includes(`tag`)||/^refs\/tags/.test(e),a=!n.includes(`new`);return{deleted:r,tag:i,branch:!i,new:!a,alreadyUpdated:a,local:e,remote:t}}var Ji,Yi,Xi,Zi=S({"src/lib/parsers/parse-push.ts"(){q(),ji(),Ji=[new H(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new H(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref={...e.ref||{},local:t}}),new H(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,n,r])=>{e.pushed.push(qi(t,n,r))}),new H(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,n,r])=>{e.branch={...e.branch||{},local:t,remote:n,remoteName:r}}),new H(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,n,r,i])=>{e.update={head:{local:t,remote:n},hash:{from:r,to:i}}})],Yi=(e,t)=>{let n=Xi(e,t),r=Oi(e,t);return{...n,...r}},Xi=(e,t)=>K({pushed:[]},Ji,[e,t])}}),Qi={};C(Qi,{pushTagsTask:()=>$i,pushTask:()=>ea});function $i(e={},t){return j(t,`--tags`),ea(e,t)}function ea(e={},t){let n=[`push`,...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),ot(n,`-v`),j(n,`--verbose`),j(n,`--porcelain`),{commands:n,format:`utf-8`,parser:Yi}}var ta=S({"src/lib/tasks/push.ts"(){Zi(),q()}});function na(){return{showBuffer(){let e=[`show`,...W(arguments,1)];return e.includes(`--binary`)||e.splice(1,0,`--binary`),this._runTask($t(e),G(arguments))},show(){let e=[`show`,...W(arguments,1)];return this._runTask(Y(e),G(arguments))}}}var ra=S({"src/lib/tasks/show.ts"(){q(),X()}}),ia,aa,oa=S({"src/lib/responses/FileStatusSummary.ts"(){ia=/^(.+)\0(.+)$/,aa=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,t===`R`||n===`R`){let t=ia.exec(e)||[null,e,e];this.from=t[2]||``,this.path=t[1]||``}}}}});function sa(e){let[t,n]=e.split(L);return{from:n||t,to:t}}function Q(e,t,n){return[`${e}${t}`,n]}function ca(e,...t){return t.map(t=>Q(e,t,(e,t)=>e.conflicted.push(t)))}function la(e,t){let n=t.trim();switch(` `){case n.charAt(2):return r(n.charAt(0),n.charAt(1),n.slice(3));case n.charAt(1):return r(` `,n.charAt(0),n.slice(2));default:return}function r(t,n,r){let i=`${t}${n}`,a=da.get(i);a&&a(e,r),i!==`##`&&i!==`!!`&&e.files.push(new aa(r,t,n))}}var ua,da,fa,pa=S({"src/lib/responses/StatusSummary.ts"(){q(),oa(),ua=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},da=new Map([Q(` `,`A`,(e,t)=>e.created.push(t)),Q(` `,`D`,(e,t)=>e.deleted.push(t)),Q(` `,`M`,(e,t)=>e.modified.push(t)),Q(`A`,` `,(e,t)=>{e.created.push(t),e.staged.push(t)}),Q(`A`,`M`,(e,t)=>{e.created.push(t),e.staged.push(t),e.modified.push(t)}),Q(`D`,` `,(e,t)=>{e.deleted.push(t),e.staged.push(t)}),Q(`M`,` `,(e,t)=>{e.modified.push(t),e.staged.push(t)}),Q(`M`,`M`,(e,t)=>{e.modified.push(t),e.staged.push(t)}),Q(`R`,` `,(e,t)=>{e.renamed.push(sa(t))}),Q(`R`,`M`,(e,t)=>{let n=sa(t);e.renamed.push(n),e.modified.push(n.to)}),Q(`!`,`!`,(e,t)=>{(e.ignored=e.ignored||[]).push(t)}),Q(`?`,`?`,(e,t)=>e.not_added.push(t)),...ca(`A`,`A`,`U`),...ca(`D`,`D`,`U`),...ca(`U`,`A`,`D`,`U`),[`##`,(e,t)=>{let n=/ahead (\d+)/,r=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,a=/\.{3}(\S*)/,o=/\son\s(\S+?)(?=\.{3}|$)/,s=n.exec(t);e.ahead=s&&+s[1]||0,s=r.exec(t),e.behind=s&&+s[1]||0,s=i.exec(t),e.current=B(s?.[1],V,null),s=a.exec(t),e.tracking=B(s?.[1],V,null),s=o.exec(t),s&&(e.current=B(s?.[1],V,e.current)),e.detached=/\(no branch\)/.test(t)}]]),fa=function(e){let t=e.split(L),n=new ua;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&(r.charAt(0)===`R`&&(r+=L+(t[e++]||``)),la(n,r))}return n}}});function ma(e){return{format:`utf-8`,commands:[`status`,`--porcelain`,`-b`,`-u`,`--null`,...e.filter(e=>!ha.includes(e))],parser(e){return fa(e)}}}var ha,ga=S({"src/lib/tasks/status.ts"(){pa(),ha=[`--null`,`-z`]}});function _a(e=0,t=0,n=0,r=``,i=!0){return Object.defineProperty({major:e,minor:t,patch:n,agent:r,installed:i},`toString`,{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function va(){return _a(0,0,0,``,!1)}function ya(){return{version(){return this._runTask({commands:[`--version`],format:`utf-8`,parser:ba,onError(e,t,n,r){if(e.exitCode===-2)return n(Buffer.from(xa));r(t)}})}}}function ba(e){return e===xa?va():K(_a(0,0,0,e),Sa,e)}var xa,Sa,Ca=S({"src/lib/tasks/version.ts"(){q(),xa=`installed=false`,Sa=[new H(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,n,r,i=``])=>{Object.assign(e,_a(P(t),P(n),P(r),i))}),new H(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,n,r,i=``])=>{Object.assign(e,_a(P(t),P(n),r,i))})]}});function wa(e,t,n,...r){return V(n)?t(n,B(r[0],V),W(arguments)):J(`git.${e}() requires a string 'repoPath'`)}function Ta(){return{clone(e,...t){return this._runTask(wa(`clone`,Ea,B(e,V),...t),G(arguments))},mirror(e,...t){return this._runTask(wa(`mirror`,Da,B(e,V),...t),G(arguments))}}}var Ea,Da,Oa=S({"src/lib/tasks/clone.ts"(){X(),q(),Ea=(e,t,n)=>{let r=[`clone`,...n];return V(e)&&r.push(re(e)),V(t)&&r.push(re(t)),Y(r)},Da=(e,t,n)=>(j(n,`--mirror`),Ea(e,t,n))}}),ka={};C(ka,{SimpleGitApi:()=>Aa});var Aa,ja=S({"src/lib/simple-git-api.ts"(){fr(),mr(),_r(),xr(),Dr(),An(),kr(),Hn(),jr(),Br(),_i(),Ki(),ta(),ra(),ga(),X(),Ca(),q(),Oa(),Aa=class{constructor(e){this._executor=e}_runTask(e,t){let n=this._executor.chain(),r=n.push(e);return t&&ur(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(Y([`add`,...M(e)]),G(arguments))}cwd(e){let t=G(arguments);return typeof e==`string`?this._runTask(pr(e,this._executor),t):typeof e?.path==`string`?this._runTask(pr(e.path,e.root&&this._executor||void 0),t):this._runTask(J(`Git.cwd: workingDirectory must be supplied as a string`),t)}hashObject(e,t){return this._runTask(Ar(e,t===!0),G(arguments))}init(e){return this._runTask(Rr(e===!0,this._executor.cwd,W(arguments)),G(arguments))}merge(){return this._runTask(Gi(W(arguments)),G(arguments))}mergeFromTo(e,t){return V(e)&&V(t)?this._runTask(Gi([e,t,...W(arguments)]),G(arguments,!1)):this._runTask(J(`Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings`))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=ea({remote:B(arguments[0],V),branch:B(arguments[1],V)},W(arguments));return this._runTask(e,G(arguments))}stash(){return this._runTask(Y([`stash`,...W(arguments)]),G(arguments))}status(){return this._runTask(ma(W(arguments)),G(arguments))}},Object.assign(Aa.prototype,gr(),Ta(),Er(),On(),yr(),Or(),Ln(),hi(),na(),ya())}}),Ma={};C(Ma,{Scheduler:()=>Pa});var Na,Pa,Fa=S({"src/lib/runners/scheduler.ts"(){q(),er(),Na=(()=>{let e=0;return()=>{e++;let{promise:t,done:n}=(0,x.createDeferred)();return{promise:t,done:n,id:e}}})(),Pa=class{constructor(e=2){this.concurrency=e,this.logger=$n(``,`scheduler`),this.pending=[],this.running=[],this.logger(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}let e=j(this.running,this.pending.shift());this.logger(`Attempting id=%s`,e.id),e.done(()=>{this.logger(`Completing id=`,e.id),ot(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=j(this.pending,Na());return this.logger(`Scheduling id=%s`,t),this.schedule(),e}}}}),Ia={};C(Ia,{applyPatchTask:()=>La});function La(e,t){return Y([`apply`,...t,...e])}var Ra=S({"src/lib/tasks/apply-patch.ts"(){X()}});function za(e,t){return{branch:e,hash:t,success:!0}}function Ba(e){return{branch:e,hash:null,success:!1}}var Va,Ha=S({"src/lib/responses/BranchDeleteSummary.ts"(){Va=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Ua(e,t){return t===1&&Ga.test(e)}var Wa,Ga,Ka,qa,Ja=S({"src/lib/parsers/parse-branch-delete.ts"(){Ha(),q(),Wa=/(\S+)\s+\(\S+\s([^)]+)\)/,Ga=/^error[^']+'([^']+)'/m,Ka=[new H(Wa,(e,[t,n])=>{let r=za(t,n);e.all.push(r),e.branches[t]=r}),new H(Ga,(e,[t])=>{let n=Ba(t);e.errors.push(n),e.all.push(n),e.branches[t]=n})],qa=(e,t)=>K(new Va,Ka,[e,t])}}),Ya,Xa=S({"src/lib/responses/BranchSummary.ts"(){Ya=class{constructor(){this.all=[],this.branches={},this.current=``,this.detached=!1}push(e,t,n,r,i){e===`*`&&(this.detached=t,this.current=n),this.all.push(n),this.branches[n]={current:e===`*`,linkedWorkTree:e===`+`,name:n,commit:r,label:i}}}}});function Za(e){return e?e.charAt(0):``}function Qa(e,t=!1){return K(new Ya,t?[eo]:$a,e)}var $a,eo,to=S({"src/lib/parsers/parse-branch.ts"(){Xa(),q(),$a=[new H(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,n,r,i])=>{e.push(Za(t),!0,n,r,i)}),new H(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,n,r,i])=>{e.push(Za(t),!1,n,r,i)})],eo=new H(/^(\S+)$/s,(e,[t])=>{e.push(`*`,!1,t,``,``)})}}),no={};C(no,{branchLocalTask:()=>ao,branchTask:()=>io,containsDeleteBranchCommand:()=>ro,deleteBranchTask:()=>so,deleteBranchesTask:()=>oo});function ro(e){let t=[`-d`,`-D`,`--delete`];return e.some(e=>t.includes(e))}function io(e){let t=ro(e),n=e.includes(`--show-current`),r=[`branch`,...e];return r.length===1&&r.push(`-a`),r.includes(`-v`)||r.splice(1,0,`-v`),{format:`utf-8`,commands:r,parser(e,r){return t?qa(e,r).all[0]:Qa(e,n)}}}function ao(){return{format:`utf-8`,commands:[`branch`,`-v`],parser(e){return Qa(e)}}}function oo(e,t=!1){return{format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,...e],parser(e,t){return qa(e,t)},onError({exitCode:e,stdOut:t},n,r,i){if(!Ua(String(n),e))return i(n);r(t)}}}function so(e,t=!1){let n={format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,e],parser(t,n){return qa(t,n).branches[e]},onError({exitCode:e,stdErr:t,stdOut:r},i,a,o){if(!Ua(String(i),e))return o(i);throw new D(n.parser(I(r),I(t)),String(i))}};return n}var co=S({"src/lib/tasks/branch.ts"(){O(),Ja(),to(),q()}});function lo(e){let t=e.trim().replace(/^["']|["']$/g,``);return t&&a(t)}var uo,fo=S({"src/lib/responses/CheckIgnore.ts"(){uo=e=>e.split(/\n/g).map(lo).filter(Boolean)}}),po={};C(po,{checkIgnoreTask:()=>mo});function mo(e){return{commands:[`check-ignore`,...e],format:`utf-8`,parser:uo}}var ho=S({"src/lib/tasks/check-ignore.ts"(){fo()}});function go(e,t){return K({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},_o,[e,t])}var _o,vo=S({"src/lib/parsers/parse-fetch.ts"(){q(),_o=[new H(/From (.+)$/,(e,[t])=>{e.remote=t}),new H(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.branches.push({name:t,tracking:n})}),new H(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.tags.push({name:t,tracking:n})}),new H(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new H(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,n,r,i])=>{e.updated.push({name:r,tracking:i,to:n,from:t})})]}}),yo={};C(yo,{fetchTask:()=>xo});function bo(e){return/^--upload-pack(=|$)/.test(e)}function xo(e,t,n){let r=[`fetch`,...n];return e&&t&&r.push(e,t),r.find(bo)?J(`git.fetch: potential exploit argument blocked.`):{commands:r,format:`utf-8`,parser:go}}var So=S({"src/lib/tasks/fetch.ts"(){vo(),X()}});function Co(e){return K({moves:[]},wo,e)}var wo,To=S({"src/lib/parsers/parse-move.ts"(){q(),wo=[new H(/^Renaming (.+) to (.+)$/,(e,[t,n])=>{e.moves.push({from:t,to:n})})]}}),Eo={};C(Eo,{moveTask:()=>Do});function Do(e,t){return{commands:[`mv`,`-v`,...M(e),t],format:`utf-8`,parser:Co}}var Oo=S({"src/lib/tasks/move.ts"(){To(),q()}}),ko={};C(ko,{pullTask:()=>Ao});function Ao(e,t,n){let r=[`pull`,...n];return e&&t&&r.splice(1,0,e,t),{commands:r,format:`utf-8`,parser(e,t){return zi(e,t)},onError(e,t,n,r){let i=Mi(I(e.stdOut),I(e.stdErr));if(i)return r(new D(i));r(t)}}}var jo=S({"src/lib/tasks/pull.ts"(){O(),Bi(),q()}});function Mo(e){let t={};return Po(e,([e])=>t[e]={name:e}),Object.values(t)}function No(e){let t={};return Po(e,([e,n,r])=>{Object.hasOwn(t,e)||(t[e]={name:e,refs:{fetch:``,push:``}}),r&&n&&(t[e].refs[r.replace(/[^a-z]/g,``)]=n)}),Object.values(t)}function Po(e,t){rt(e,e=>t(e.split(/\s+/)))}var Fo=S({"src/lib/responses/GetRemoteSummary.ts"(){q()}}),Io={};C(Io,{addRemoteTask:()=>Lo,getRemotesTask:()=>Ro,listRemotesTask:()=>zo,remoteTask:()=>Bo,removeRemoteTask:()=>Vo});function Lo(e,t,n){return Y([`remote`,`add`,...n,e,t])}function Ro(e){let t=[`remote`];return e&&t.push(`-v`),{commands:t,format:`utf-8`,parser:e?No:Mo}}function zo(e){let t=[...e];return t[0]!==`ls-remote`&&t.unshift(`ls-remote`),Y(t)}function Bo(e){let t=[...e];return t[0]!==`remote`&&t.unshift(`remote`),Y(t)}function Vo(e){return Y([`remote`,`remove`,e])}var Ho=S({"src/lib/tasks/remote.ts"(){Fo(),X()}}),Uo={};C(Uo,{stashListTask:()=>Wo});function Wo(e={},t){let n=pi(e),r=[`stash`,`list`,...n.commands,...t],i=ti(n.splitter,n.fields,Vr(r));return li(r)||{commands:r,format:`utf-8`,parser:i}}var Go=S({"src/lib/tasks/stash-list.ts"(){Wr(),oi(),ui(),_i()}}),Ko={};C(Ko,{addSubModuleTask:()=>qo,initSubModuleTask:()=>Jo,subModuleTask:()=>Yo,updateSubModuleTask:()=>Xo});function qo(e,t){return Yo([`add`,e,t])}function Jo(e){return Yo([`init`,...e])}function Yo(e){let t=[...e];return t[0]!==`submodule`&&t.unshift(`submodule`),Y(t)}function Xo(e){return Yo([`update`,...e])}var Zo=S({"src/lib/tasks/sub-module.ts"(){X()}});function Qo(e,t){let n=Number.isNaN(e);return n===Number.isNaN(t)?n?$o(e,t):0:n?1:-1}function $o(e,t){return e===t?0:e>t?1:-1}function es(e){return e.trim()}function ts(e){return typeof e==`string`&&parseInt(e.replace(/^\D+/g,``),10)||0}var ns,rs,is=S({"src/lib/responses/TagList.ts"(){ns=class{constructor(e,t){this.all=e,this.latest=t}},rs=function(e,t=!1){let n=e.split(`
|
|
9
|
-
`).map(es).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return Qo(ts(n[0]),ts(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=$o(ts(n[e]),ts(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new ns(n,r)}}}),as={};C(as,{addAnnotatedTagTask:()=>cs,addTagTask:()=>ss,tagListTask:()=>os});function os(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return rs(e,t)}}}function ss(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function cs(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var ls=S({"src/lib/tasks/tag.ts"(){is()}}),us=Je({"src/git.js"(e,t){var{GitExecutor:n}=(lr(),w(sr)),{SimpleGitApi:r}=(ja(),w(ka)),{Scheduler:i}=(Fa(),w(Ma)),{adhocExecTask:a,configurationErrorTask:o}=(X(),w(Zt)),{asArray:s,filterArray:c,filterPrimitives:l,filterString:u,filterStringOrStringArray:d,filterType:f,getTrailingOptions:p,trailingFunctionArgument:m,trailingOptionsArgument:ee}=(q(),w(Ft)),{applyPatchTask:te}=(Ra(),w(Ia)),{branchTask:ne,branchLocalTask:re,deleteBranchesTask:h,deleteBranchTask:g}=(co(),w(no)),{checkIgnoreTask:ie}=(ho(),w(po)),{checkIsRepoTask:ae}=(Wt(),w(It)),{cleanWithOptionsTask:oe,isCleanOptionsArray:se}=(_n(),w(rn)),{diffSummaryTask:ce}=(ui(),w(si)),{fetchTask:le}=(So(),w(yo)),{moveTask:ue}=(Oo(),w(Eo)),{pullTask:_}=(jo(),w(ko)),{pushTagsTask:de}=(ta(),w(Qi)),{addRemoteTask:fe,getRemotesTask:pe,listRemotesTask:me,remoteTask:he,removeRemoteTask:ge}=(Ho(),w(Io)),{getResetMode:_e,resetTask:ve}=(Yn(),w(Un)),{stashListTask:ye}=(Go(),w(Uo)),{addSubModuleTask:be,initSubModuleTask:xe,subModuleTask:Se,updateSubModuleTask:Ce}=(Zo(),w(Ko)),{addAnnotatedTagTask:we,addTagTask:Te,tagListTask:Ee}=(ls(),w(as)),{straightThroughBufferTask:De,straightThroughStringTask:v}=(X(),w(Zt));function y(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(y.prototype=Object.create(r.prototype)).constructor=y,y.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},y.prototype.env=function(e,t){return arguments.length===1&&typeof e==`object`?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},y.prototype.stashList=function(e){return this._runTask(ye(ee(arguments)||{},c(e)&&e||[]),m(arguments))},y.prototype.mv=function(e,t){return this._runTask(ue(e,t),m(arguments))},y.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},y.prototype.pull=function(e,t,n,r){return this._runTask(_(f(e,u),f(t,u),p(arguments)),m(arguments))},y.prototype.fetch=function(e,t){return this._runTask(le(f(e,u),f(t,u),p(arguments)),m(arguments))},y.prototype.silent=function(e){return this._runTask(a(()=>console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this method will be removed.")))},y.prototype.tags=function(e,t){return this._runTask(Ee(p(arguments)),m(arguments))},y.prototype.rebase=function(){return this._runTask(v([`rebase`,...p(arguments)]),m(arguments))},y.prototype.reset=function(e){return this._runTask(ve(_e(e),p(arguments)),m(arguments))},y.prototype.revert=function(e){let t=m(arguments);return typeof e==`string`?this._runTask(v([`revert`,...p(arguments,0,!0),e]),t):this._runTask(o(`Commit must be a string`),t)},y.prototype.addTag=function(e){let t=typeof e==`string`?Te(e):o(`Git.addTag requires a tag name`);return this._runTask(t,m(arguments))},y.prototype.addAnnotatedTag=function(e,t){return this._runTask(we(e,t),m(arguments))},y.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(g(e,typeof t==`boolean`?t:!1),m(arguments))},y.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(h(e,typeof t==`boolean`?t:!1),m(arguments))},y.prototype.branch=function(e,t){return this._runTask(ne(p(arguments)),m(arguments))},y.prototype.branchLocal=function(e){return this._runTask(re(),m(arguments))},y.prototype.raw=function(e){let t=!Array.isArray(e),n=[].slice.call(t?arguments:e,0);for(let e=0;e<n.length&&t;e++)if(!l(n[e])){n.splice(e,n.length-e);break}n.push(...p(arguments,0,!0));var r=m(arguments);return n.length?this._runTask(v(n,this._trimmed),r):this._runTask(o(`Raw: must supply one or more command to execute`),r)},y.prototype.submoduleAdd=function(e,t,n){return this._runTask(be(e,t),m(arguments))},y.prototype.submoduleUpdate=function(e,t){return this._runTask(Ce(p(arguments,!0)),m(arguments))},y.prototype.submoduleInit=function(e,t){return this._runTask(xe(p(arguments,!0)),m(arguments))},y.prototype.subModule=function(e,t){return this._runTask(Se(p(arguments)),m(arguments))},y.prototype.listRemote=function(){return this._runTask(me(p(arguments)),m(arguments))},y.prototype.addRemote=function(e,t,n){return this._runTask(fe(e,t,p(arguments)),m(arguments))},y.prototype.removeRemote=function(e,t){return this._runTask(ge(e),m(arguments))},y.prototype.getRemotes=function(e,t){return this._runTask(pe(e===!0),m(arguments))},y.prototype.remote=function(e,t){return this._runTask(he(p(arguments)),m(arguments))},y.prototype.tag=function(e,t){let n=p(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(v(n),m(arguments))},y.prototype.updateServerInfo=function(e){return this._runTask(v([`update-server-info`]),m(arguments))},y.prototype.pushTags=function(e,t){let n=de({remote:f(e,u)},p(arguments));return this._runTask(n,m(arguments))},y.prototype.rm=function(e){return this._runTask(v([`rm`,`-f`,...s(e)]),m(arguments))},y.prototype.rmKeepLocal=function(e){return this._runTask(v([`rm`,`--cached`,...s(e)]),m(arguments))},y.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},y.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},y.prototype._catFile=function(e,t){var n=m(t),r=[`cat-file`],i=t[0];if(typeof i==`string`)return this._runTask(o(`Git.catFile: options must be supplied as an array of strings`),n);Array.isArray(i)&&r.push.apply(r,i);let a=e===`buffer`?De(r):v(r);return this._runTask(a,n)},y.prototype.diff=function(e,t){let n=u(e)?o(`git.diff: supplying options as a single string is no longer supported, switch to an array of strings`):v([`diff`,...p(arguments)]);return this._runTask(n,m(arguments))},y.prototype.diffSummary=function(){return this._runTask(ce(p(arguments,1)),m(arguments))},y.prototype.applyPatch=function(e){let t=d(e)?te(s(e),p([].slice.call(arguments,1))):o(`git.applyPatch requires one or more string patches as the first argument`);return this._runTask(t,m(arguments))},y.prototype.revparse=function(){let e=[`rev-parse`,...p(arguments,!0)];return this._runTask(v(e,!0),m(arguments))},y.prototype.clean=function(e,t,n){let r=se(e),i=r&&e.join(``)||f(e,u)||``,a=p([].slice.call(arguments,r?1:0));return this._runTask(oe(i,a),m(arguments))},y.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},y.prototype.clearQueue=function(){return this._runTask(a(()=>console.warn(`simple-git deprecation notice: clearQueue() is deprecated and will be removed, switch to using the abortPlugin instead.`)))},y.prototype.checkIgnore=function(e,t){return this._runTask(ie(s(f(e,d,[]))),m(arguments))},y.prototype.checkIsRepo=function(e,t){return this._runTask(ae(f(e,u)),m(arguments))},t.exports=y}});E();var ds=class extends T{constructor(e,t){super(void 0,t),this.config=e}};E(),E();var $=class extends T{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};O(),Ze(),Wt(),_n(),An(),Pn(),Hn(),Yn();function fs(e){if(e)return[{type:`spawn.before`,action(t,n){e.aborted&&n.kill(new $(void 0,`abort`,`Abort already signaled`))}},{type:`spawn.after`,action(t,n){function r(){n.kill(new $(void 0,`abort`,`Abort signal received`))}e.addEventListener(`abort`,r),n.spawned.on(`close`,()=>e.removeEventListener(`abort`,r))}}]}function ps(e={}){return{type:`spawn.args`,action(t,{env:n}){for(let r of Ve(t,n))if(e[r.category]!==!0)throw new $(void 0,`unsafe`,r.message);return t}}}q();function ms(e){let t=F(e,`-c`);return{type:`spawn.args`,action(e){return[...t,...e]}}}q();var hs=(0,x.deferred)().promise;function gs({onClose:e=!0,onExit:t=50}={}){function n(){let n=-1,i={close:(0,x.deferred)(),closeTimeout:(0,x.deferred)(),exit:(0,x.deferred)(),exitTimeout:(0,x.deferred)()},a=Promise.race([e===!1?hs:i.closeTimeout.promise,t===!1?hs:i.exitTimeout.promise]);return r(e,i.close,i.closeTimeout),r(t,i.exit,i.exitTimeout),{close(e){n=e,i.close.done()},exit(e){n=e,i.exit.done()},get exitCode(){return n},result:a}}function r(e,t,n){e!==!1&&(e===!0?t.promise:t.promise.then(()=>lt(e))).then(n.done)}return{type:`spawn.after`,async action(e,{spawned:t,close:r}){let i=n(),a=!0,o=()=>void(a=!1);t.stdout?.on(`data`,o),t.stderr?.on(`data`,o),t.on(`error`,o),t.on(`close`,e=>i.close(e)),t.on(`exit`,e=>i.exit(e));try{await i.result,a&&await lt(50),r(i.exitCode)}catch(e){r(i.exitCode,e)}}}}q();var _s=`Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`,vs=`Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;function ys(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(e)}function bs(e,t){if(e.length<1||e.length>2)throw new $(void 0,`binary`,_s);if(e.some(ys))if(t)console.warn(vs);else throw new $(void 0,`binary`,vs);let[n,r]=e;return{binary:n,prefix:r}}function xs(e,t=[`git`],n=!1){let r=bs(M(t),n);e.on(`binary`,e=>{r=bs(M(e),n)}),e.append(`spawn.binary`,()=>r.binary),e.append(`spawn.args`,e=>r.prefix?[r.prefix,...e]:e)}E();function Ss(e){return!!(e.exitCode&&e.stdErr.length)}function Cs(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function ws(e=!1,t=Ss,n=Cs){return(r,i)=>!e&&r||!t(i)?r:n(i)}function Ts(e){return{type:`task.error`,action(t,n){let r=e(t.error,{stdErr:n.stdErr,stdOut:n.stdOut,exitCode:n.exitCode});return Buffer.isBuffer(r)?{error:new T(void 0,r.toString(`utf-8`))}:{error:r}}}}q();var Es=class{constructor(){this.plugins=new Set,this.events=new i}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let n=j(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){let t=[];return M(e).forEach(e=>e&&this.plugins.add(j(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,n){let r=t,i=Object.freeze(Object.create(n));for(let t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};q();function Ds(e){let t=`--progress`,n=[`checkout`,`clone`,`fetch`,`pull`,`push`];return[{type:`spawn.args`,action(e,r){return n.includes(r.method)?at(e,t):e}},{type:`spawn.after`,action(n,r){r.commands.includes(t)&&r.spawned.stderr?.on(`data`,t=>{let n=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString(`utf8`));n&&e({method:r.method,stage:Os(n[1]),progress:P(n[2]),processed:P(n[3]),total:P(n[4])})})}}]}function Os(e){return String(e.toLowerCase().split(` `,1))||`unknown`}q();function ks(e){let t=ct(e,[`uid`,`gid`]);return{type:`spawn.options`,action(e){return{...t,...e}}}}function As({block:e,stdErr:t=!0,stdOut:n=!0}){if(e>0)return{type:`spawn.after`,action(r,i){let a;function o(){a&&clearTimeout(a),a=setTimeout(c,e)}function s(){i.spawned.stdout?.off(`data`,o),i.spawned.stderr?.off(`data`,o),i.spawned.off(`exit`,s),i.spawned.off(`close`,s),a&&clearTimeout(a)}function c(){s(),i.kill(new $(void 0,`timeout`,`block timeout reached`))}n&&i.spawned.stdout?.on(`data`,o),t&&i.spawned.stderr?.on(`data`,o),i.spawned.on(`exit`,s),i.spawned.on(`close`,s),o()}}}function js(){return{type:`spawn.args`,action(e){let t=[],n;function r(e){(n||=[]).push(...e)}for(let n=0;n<e.length;n++){let i=e[n];if(h(i)){r(g(i));continue}if(i===`--`){r(e.slice(n+1).flatMap(e=>h(e)&&g(e)||e));break}t.push(i)}return n?[...t,`--`,...n.map(String)]:t}}}q();var Ms=us();function Ns(e,t){let n=new Es,r=Et(e&&(typeof e==`string`?{baseDir:e}:e)||{},t);if(!it(r.baseDir))throw new ds(r,`Cannot use simple-git on a directory that does not exist`);return Array.isArray(r.config)&&n.add(ms(r.config)),n.add(ps(r.unsafe)),n.add(gs(r.completion)),r.abort&&n.add(fs(r.abort)),r.progress&&n.add(Ds(r.progress)),r.timeout&&n.add(As(r.timeout)),r.spawnOptions&&n.add(ks(r.spawnOptions)),n.add(js()),n.add(Ts(ws(!0))),r.errors&&n.add(Ts(r.errors)),xs(n,r.binary,r.unsafe?.allowUnsafeCustomBinary),new Ms(r,n)}O();var Ps=Ns,Fs=Ns;const Is=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function Ls(e){return Is.enqueue(e)}var Rs=r({createGitInstance:()=>zs});function zs(e,t={}){let{credentialArgs:n=[],gitIndexFile:r}=t,i={LANG:`C`,LC_ALL:`C`};return r&&(i.GIT_INDEX_FILE=o(e,r)),{git:Fs({baseDir:e,config:n.length>=2?[n[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env(i),projectDir:e,credentialArgs:n}}export{Ps as a,Fs as i,Rs as n,m as o,Ls as r,zs as t};
|
|
10
|
-
//# sourceMappingURL=git-handle-CjyGVy33-B_7lAMm9.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./git-handle-CjyGVy33-B_7lAMm9.mjs";export{e as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-J642UCRS-Cyg-aSoS.mjs";import"./chunk-VLGZJRPG-BdCxuGR9.mjs";import{i as e,r as t,t as n}from"./chunk-YS3AZT3J-BLSxIHIX.mjs";export{t as egrepCommand,n as fgrepCommand,e as grepCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{a as e,r as t,t as n}from"./chunk-LTZRCH7N-zhq7ggMR.mjs";export{t as gunzipCommand,n as gzipCommand,e as zcatCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-64BAICW3-Ct0k59pL.mjs";export{e as headCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-MLXIYONF-C43lG0dq.mjs";export{e as helpCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-NCNPKYJZ-CTS9W0AE.mjs";export{e as historyCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-4HHKTUW3-MVqoi_T3.mjs";export{e as hostname};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-MDLLFABN-BUZLLdU-.mjs";export{e as htmlToMarkdownCommand};
|
package/dist/init-DIl5O63L.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as e}from"./init-CVUAGlni.mjs";export{e as runInit};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-A7ICOL4V-BsLyPNES.mjs";export{e as join};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YNYSPYQ5-DzToRSq3.mjs";import"./chunk-DXB73IDG-DiBHw8JN.mjs";import"./chunk-5QMZ5MUS-BQ6AJ7O6.mjs";import"./chunk-24IMIIXA-BPYIgkX5.mjs";import"./chunk-7TSDKFEO-CVXHdZlP.mjs";import"./chunk-BBXLRYSX-mzBO0XWz.mjs";import{t as e}from"./chunk-YCFVLTST-DLBC7Zw_.mjs";export{e as jqCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-PBXLG62G-CLbYzY24.mjs";export{e as lnCommand};
|
package/dist/loader-7flVKLEn.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./loader-DEjyJycG.mjs";export{e as loadConfig};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-V7TAPXDL-DImQ2x1N.mjs";export{e as lsCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-APT7OOP2-CR6NU00o.mjs";export{e as md5sumCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-MDDMCKUK-BOemNzYa.mjs";export{e as mkdirCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{t as e}from"./chunk-A4JSPFCI-CFUAbT7E.mjs";export{e as mvCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-DiBHw8JN.mjs";import{n as e}from"./chunk-F23WWYKW-CJjGfJog.mjs";export{e as nl};
|