@inkeep/open-knowledge 0.33.0-beta.0 → 0.33.0-beta.10
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/{_baseFor-DgUmPvii.mjs → _baseFor-CMmZqlg4.mjs} +1 -1
- package/dist/alias-JE7RI5QX-DUBvIpa7.mjs +1 -0
- package/dist/{arc-DeCRbT14.mjs → arc-CQLjZPEs.mjs} +2 -2
- package/dist/architecture-YZFGNWBL-BGsYftSC.mjs +1 -0
- package/dist/{architectureDiagram-Q4EWVU46-Ddeiwqm4.mjs → architectureDiagram-Q4EWVU46-DGG0IyfP.mjs} +2 -2
- package/dist/{array-CB05KhfS.mjs → array-BNmwzyCf.mjs} +1 -1
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/awk2-BBAGSFUB-BSXvsYKE.mjs +1 -0
- package/dist/{banner-BeBA-IMp.mjs → banner-DsGpC-o3.mjs} +2 -2
- package/dist/base64-4YMZCVJ5-r5zsLj5P.mjs +1 -0
- package/dist/basename-AA2KJYZQ-DlSFPnLd.mjs +1 -0
- package/dist/bash-IJWYRKFO-CMwhRejZ.mjs +1 -0
- package/dist/{blockDiagram-DXYQGD6D-Cym5AJGx.mjs → blockDiagram-DXYQGD6D-DO_ZPiei.mjs} +2 -2
- package/dist/{build-CN003PPg.mjs → build-BGRQ9c88.mjs} +1 -1
- package/dist/build-C__Nqi6T.mjs +1 -0
- package/dist/{c4Diagram-AHTNJAMY-B7HMnVPk.mjs → c4Diagram-AHTNJAMY-CYnXxcYe.mjs} +2 -2
- package/dist/cat-RDUMLXKC-CBoLzbAA.mjs +1 -0
- package/dist/channel-Dz_kn09_.mjs +2 -0
- package/dist/chmod-SYMGL4JA-L3CtA8Q4.mjs +1 -0
- package/dist/{chokidar-C-Jds_Bg.mjs → chokidar-CrFRJt-7.mjs} +1 -1
- package/dist/{chunk-24IMIIXA-DaS5XS55.mjs → chunk-24IMIIXA-ByE3n7F5.mjs} +2 -2
- package/dist/{chunk-2KRD3SAO-Ci0JL9ng.mjs → chunk-2KRD3SAO-CC8_tMR3.mjs} +2 -2
- package/dist/{chunk-2TRDZQLB-Kqh0farN.mjs → chunk-2TRDZQLB-DJYfX1DB.mjs} +2 -2
- package/dist/{chunk-336JU56O-MOsDPDtl.mjs → chunk-336JU56O-D5mJPHrS.mjs} +2 -2
- package/dist/{chunk-3BS5SKQH-Chc9fv52.mjs → chunk-3BS5SKQH-C7siUFvi.mjs} +3 -3
- package/dist/{chunk-3H6UQG3A-B7zoJt1R.mjs → chunk-3H6UQG3A-jehz9Mov.mjs} +2 -2
- package/dist/{chunk-3THT3N7L-B1WzJUh4.mjs → chunk-3THT3N7L-DNeAafDi.mjs} +1 -1
- package/dist/{chunk-3ZUFRYJ4-DQB4hWDy.mjs → chunk-3ZUFRYJ4-5tUBEJiQ.mjs} +1 -1
- package/dist/chunk-426QAEUC-C79-xu4k.mjs +2 -0
- package/dist/{chunk-44UOCSGV-BZ6LfyW2.mjs → chunk-44UOCSGV-C07LY83n.mjs} +1 -1
- package/dist/{chunk-4BX2VUAB-BXGPfnwm.mjs → chunk-4BX2VUAB-CeLVr99T.mjs} +2 -2
- package/dist/{chunk-4GTNDTRF-CexF8C0H.mjs → chunk-4GTNDTRF-C79jHZPW.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-CewYv3NE.mjs → chunk-4HHKTUW3-C9w0lckj.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-D6TVzfh2.mjs → chunk-4Q4SM6WR-BBf5_ewP.mjs} +2 -2
- package/dist/{chunk-4TB4RGXK-B0uHEnHn.mjs → chunk-4TB4RGXK-n_iVg8hq.mjs} +2 -2
- package/dist/{chunk-55IACEB6-CWM_Woee.mjs → chunk-55IACEB6-DnxgLkXS.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-BoFmUszu.mjs → chunk-55VFSPNA-BI1ZlfMG.mjs} +2 -2
- package/dist/{chunk-5FUZZQ4R-BSIWed9s.mjs → chunk-5FUZZQ4R-D0CI_lA3.mjs} +2 -2
- package/dist/{chunk-5PVQY5BW-_JlgOiAb.mjs → chunk-5PVQY5BW-CM3DDgan.mjs} +2 -2
- package/dist/{chunk-5QMZ5MUS-BwpNU33k.mjs → chunk-5QMZ5MUS-DvwGjmAW.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-DJjin--s.mjs → chunk-5QVNJEHU-BwcO0gX-.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-BEpcJpsv.mjs → chunk-5V6VZH6T-CsG6wUhk.mjs} +2 -2
- package/dist/{chunk-62RKD26F-uqVDf3rA.mjs → chunk-62RKD26F-CgKazjAi.mjs} +2 -2
- package/dist/{chunk-64BAICW3-BlKhhT3-.mjs → chunk-64BAICW3-DZxI2NVA.mjs} +2 -2
- package/dist/{chunk-67CJDMHE-CADkctrU.mjs → chunk-67CJDMHE-CrUJnyQp.mjs} +2 -2
- package/dist/{chunk-6Z5SFZXK-DuXsHt84.mjs → chunk-6Z5SFZXK-CqxoPFbR.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-CciWp7CZ.mjs → chunk-74CEPOFO-smMq6g2B.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-Cok_Mfzv.mjs → chunk-7L36YK2X-BEYeMppm.mjs} +1 -1
- package/dist/{chunk-7N4EOEYR-D0VnhW8C.mjs → chunk-7N4EOEYR-qv4-7fqt.mjs} +2 -2
- package/dist/{chunk-7TSDKFEO-9ACIOuIO.mjs → chunk-7TSDKFEO-B7rhvhjt.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-DPxgapmK.mjs → chunk-A4HU7SVR-BReRiEUm.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-B_-pySix.mjs → chunk-A4JSPFCI-CzC3HvcT.mjs} +2 -2
- package/dist/{chunk-A5O5YHGN-DApqA6Ow.mjs → chunk-A5O5YHGN-0FmmnDn4.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-DRkFYIUZ.mjs → chunk-A65PWWJC-DDcfQP9l.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-DGJklf-9.mjs → chunk-A7A2DBEE-DxoLZwYW.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-BSbI3udS.mjs → chunk-A7ICOL4V-DLpBcLKS.mjs} +2 -2
- package/dist/{chunk-AA7GKIK3-DiBKA6eA.mjs → chunk-AA7GKIK3-hv3Reau6.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-B1s5GUUO.mjs → chunk-ALLTKNUZ-8gj-zLqF.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-CgGkczFr.mjs → chunk-APT7OOP2-Ba0TjHQy.mjs} +2 -2
- package/dist/{chunk-B74TABJS-CM6MrFZT.mjs → chunk-B74TABJS-D6QwMpPz.mjs} +1 -1
- package/dist/{chunk-BGSUD5R5-B-rczZvK.mjs → chunk-BGSUD5R5-BfmoQDUK.mjs} +2 -2
- package/dist/{chunk-BSJP7CBP-BWUAQGWN.mjs → chunk-BSJP7CBP-C-rdyWiE.mjs} +2 -2
- package/dist/{chunk-CIAEETIT-4Fu0r4oG.mjs → chunk-CIAEETIT-B4zNm8L4.mjs} +2 -2
- package/dist/{chunk-CWQS3NFK-BkE4vqrf.mjs → chunk-CWQS3NFK-BvSpDizp.mjs} +1 -1
- package/dist/{chunk-D4J545R4-DfBhjppa.mjs → chunk-D4J545R4-B2EJq2_m.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-BEkstiuo.mjs → chunk-D6CWQ5DW-DTkNWXQB.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-CAw29uK1.mjs → chunk-D7MEQ3VN-Cgm5u94B.mjs} +2 -2
- package/dist/{chunk-DBKNVD4L-DMfzef_7.mjs → chunk-DBKNVD4L-UVpSZ5HO.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-3VCdH2yi.mjs → chunk-DCAAORBQ-Dy6elY3j.mjs} +2 -2
- package/dist/{chunk-DXB73IDG-F_tmy-Lz.mjs → chunk-DXB73IDG-ByieFnhr.mjs} +1 -1
- package/dist/{chunk-EDXVE4YY-COyPi8-X.mjs → chunk-EDXVE4YY-B7-wXBzK.mjs} +2 -2
- package/dist/{chunk-EEXR5ZDP-VxEPFle_.mjs → chunk-EEXR5ZDP-Bot_s1lf.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-Dz3f1URh.mjs → chunk-EIZGF4BS-Cce76mbX.mjs} +2 -2
- package/dist/{chunk-ENJZ2VHE-DgpEksO3.mjs → chunk-ENJZ2VHE-DswEO8kN.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-tJnOwArx.mjs → chunk-F23WWYKW-YV2Ziyrt.mjs} +2 -2
- package/dist/{chunk-FMBD7UC4-CFP8EClM.mjs → chunk-FMBD7UC4-DyW29ls9.mjs} +2 -2
- package/dist/{chunk-FOC6F5B3-BfuMxJA0.mjs → chunk-FOC6F5B3-Bc3GvhQ3.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-C5P_ff9C.mjs → chunk-GCTKCWKD-DBnk7jcA.mjs} +1 -1
- package/dist/{chunk-GFQRA5P5-DbAN9IDm.mjs → chunk-GFQRA5P5-DuNfOQls.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-CnqfYKLU.mjs → chunk-GOV5EKKI-BFLTyBpR.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-BZ5qwuS5.mjs → chunk-GXVXFKBA-C3l1H1PT.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-C2858kAN.mjs → chunk-HDQ56CKY-Cy6yVra7.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-BhX1qT1n.mjs → chunk-HJQJAYMS-yqfBcYOx.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-D9DjORFc.mjs → chunk-HJWBQKYG-C1cifXhx.mjs} +2 -2
- package/dist/{chunk-HKLCLINH-DiTtKPWB.mjs → chunk-HKLCLINH-Ch0mauLy.mjs} +3 -3
- package/dist/{chunk-HL6NGDO2-FvmjxcsK.mjs → chunk-HL6NGDO2-D41r2_6L.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-Cd9c0ujm.mjs → chunk-HWKDQ44K-CRAflooW.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-BsA-zv3k.mjs → chunk-I57KEIP3-BW7G5kxf.mjs} +2 -2
- package/dist/{chunk-ICPOFSXX-C2hDlKD_.mjs → chunk-ICPOFSXX-BF2fcu67.mjs} +2 -2
- package/dist/{chunk-IPJHKYVM-CUKythEA.mjs → chunk-IPJHKYVM-DDc9WF57.mjs} +1 -1
- package/dist/{chunk-JVPRLUMK-D72YT6bi.mjs → chunk-JVPRLUMK-C9zEHB9M.mjs} +2 -2
- package/dist/{chunk-K5T4RW27-ChGdeubA.mjs → chunk-K5T4RW27-DLjwaibC.mjs} +2 -2
- package/dist/{chunk-K6LIBGJA-CtwqXONG.mjs → chunk-K6LIBGJA-CSZVB574.mjs} +2 -2
- package/dist/{chunk-KGLVRYIC-BYA7AJ2g.mjs → chunk-KGLVRYIC-BNQzuSOt.mjs} +2 -2
- package/dist/{chunk-KMEYNNUA-C311YB2Q.mjs → chunk-KMEYNNUA-maIN40sk.mjs} +2 -2
- package/dist/{chunk-KRBPSX3W-DsaeH-hY.mjs → chunk-KRBPSX3W-CzvY8ZXk.mjs} +2 -2
- package/dist/{chunk-KX3P26DQ-D2yWAYlk.mjs → chunk-KX3P26DQ-76goBn6H.mjs} +1 -1
- package/dist/{chunk-LIHQZDEY-Du6TmMJL.mjs → chunk-LIHQZDEY-C1QAwaiM.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-xjImIR4A.mjs → chunk-LL3S3NLB-DbugMv6o.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-DQ58So-F.mjs → chunk-LTZRCH7N-BKI5S2SB.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-B1OcC6RH.mjs → chunk-LWEGUNWT-GnqRCIV_.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-CP6l42wf.mjs → chunk-MDDMCKUK-b-Mvbq7g.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-DDKgmYs5.mjs → chunk-MDLLFABN-CySM5qrq.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-D8l1TTsc.mjs → chunk-MHTUABJP-t1OLW57X.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-BLEhGmNy.mjs → chunk-MIZPJHVH-D-ZDkLZF.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-MXi1NN3K.mjs → chunk-MLXIYONF-2Q4Ybi7x.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-BkwmDIR4.mjs → chunk-MYE6AGBJ-BejewWl1.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-Bv2VeaZc.mjs → chunk-NAERJDUW-BeJI_Ack.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-14dRI8Qm.mjs → chunk-NCNPKYJZ-BjePegaZ.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-BiYXRcxZ.mjs → chunk-NUYSJFDK-DDVtplw1.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-B_jLzNZV.mjs → chunk-OCLXQMOG-DZx1830_.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-D4VLThbM.mjs → chunk-OCS6LSEM-DGnWZEcL.mjs} +2 -2
- package/dist/{chunk-OJDRYQWQ-CmrD0Dg2.mjs → chunk-OJDRYQWQ-69O4zmKR.mjs} +1 -1
- package/dist/{chunk-ORNJ4GCN-CO4Fc0LT.mjs → chunk-ORNJ4GCN-R61lu8Cm.mjs} +2 -2
- package/dist/{chunk-OYMX7WX6-CjnWmW_n.mjs → chunk-OYMX7WX6-BShEu1pf.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-aMLWXguv.mjs → chunk-PBXLG62G-DdXtiydY.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-B3XXGg2T.mjs → chunk-PP6PSHAB-B7OGLVba.mjs} +1 -1
- package/dist/{chunk-PXTK5WE2-CguJFePc.mjs → chunk-PXTK5WE2-BeCOtT1d.mjs} +2 -2
- package/dist/{chunk-PYSFUGCK-BszfAqRG.mjs → chunk-PYSFUGCK-CoGoOEDp.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-D3ULCm4b.mjs → chunk-QCDB2VPH-z4xw9VKe.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-Dzcm83Kv.mjs → chunk-QJ7O6ZN3-Dsx1L-CX.mjs} +2 -2
- package/dist/{chunk-QZHKN3VN-CczpYV_w.mjs → chunk-QZHKN3VN-4LgLml-S.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-nrEeDNrG.mjs → chunk-R6QSAL5T-CXXlslcl.mjs} +1 -1
- package/dist/{chunk-R6VWJ2ZL-BVeTwIsz.mjs → chunk-R6VWJ2ZL-FXX1AKea.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-CajOz2i0.mjs → chunk-RPNGRAAP-D-txoG-N.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-CA2LWAo7.mjs → chunk-SDNKECQQ-sntIQEvc.mjs} +2 -2
- package/dist/{chunk-SNN4IESC-D8LPcAwE.mjs → chunk-SNN4IESC-2iQ8MDN3.mjs} +2 -2
- package/dist/{chunk-T56QNPHK-CKzBdBMk.mjs → chunk-T56QNPHK-0UWUTTk9.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-rdis5pZn.mjs → chunk-TLSUDHID-CbxrNaLS.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-BxDnjGjc.mjs → chunk-TOMNU26N-aWRPfXR1.mjs} +2 -2
- package/dist/{chunk-TP4BZANS-ClzIzpWm.mjs → chunk-TP4BZANS-DFORxqE5.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-DnSXwySk.mjs → chunk-TXBZCHCQ-COSdckz7.mjs} +2 -2
- package/dist/{chunk-U2HBQHQK-DMRf50i8.mjs → chunk-U2HBQHQK-B6QvDsYx.mjs} +2 -2
- package/dist/{chunk-V5MWI2OL-Cjq6zFOH.mjs → chunk-V5MWI2OL-CDs_rm9r.mjs} +2 -2
- package/dist/{chunk-V7TAPXDL-BaVJN6c-.mjs → chunk-V7TAPXDL-DbTOoM_I.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-BJjeOIUB.mjs → chunk-VJFXDYWH-oT0f9NSa.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-CLvo1DrK.mjs → chunk-VOBGTVA6-D6oyYm45.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-ySo4pvxO.mjs → chunk-VYOJP4TV-Dh2zBxKQ.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-jr5eyHAR.mjs → chunk-WKFATFPP-CoNouDAR.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-Bpyh-CYM.mjs → chunk-X2AJGDEF-13z4tBy7.mjs} +1 -1
- package/dist/{chunk-X2U36JSP-B09HbTgU.mjs → chunk-X2U36JSP-BlsQfR26.mjs} +2 -2
- package/dist/{chunk-XKQRETAK-CG272cRl.mjs → chunk-XKQRETAK-EkIIjUUl.mjs} +2 -2
- package/dist/{chunk-XKWWSDBF-EI7W96Bb.mjs → chunk-XKWWSDBF-B1eAKd2w.mjs} +2 -2
- package/dist/{chunk-XPW4576I-B-qTm_Z3.mjs → chunk-XPW4576I-bLLZgym8.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-DDtsDoBd.mjs → chunk-XVDPCNWR-BAt7NxwA.mjs} +2 -2
- package/dist/{chunk-YMMW5UAP-jiH3wEeU.mjs → chunk-YMMW5UAP-Bm5rv4x6.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-D6z7D3pz.mjs → chunk-YTNYSM6T-igBSh3M-.mjs} +2 -2
- package/dist/{chunk-YULBWSET-sJ_UPhUx.mjs → chunk-YULBWSET-x9ev2Mf1.mjs} +2 -2
- package/dist/{chunk-YZCP3GAM-C2dMi590.mjs → chunk-YZCP3GAM-dFAdRCa8.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-CFEq3s_2.mjs → chunk-Z6LRHWXI-CQxrFjqd.mjs} +2 -2
- package/dist/{chunk-Z7JVV2SM-XK1154v3.mjs → chunk-Z7JVV2SM-C7YBwi4Z.mjs} +2 -2
- package/dist/{chunk-ZZ45TVLE-DmKznbd-.mjs → chunk-ZZ45TVLE-2q1aFSGq.mjs} +2 -2
- package/dist/{chunk-ZZO3UDB3-Jw0Ocy-R.mjs → chunk-ZZO3UDB3-rEua5jnw.mjs} +2 -2
- package/dist/classDiagram-6PBFFD2Q-CcylKUUy.mjs +2 -0
- package/dist/classDiagram-v2-HSJHXN6E-BuitxA8E.mjs +2 -0
- package/dist/clear-5CZ5X4YR-B1WFGbrj.mjs +1 -0
- package/dist/cli.mjs +51 -51
- package/dist/clone-FnWO_tLO.mjs +2 -0
- package/dist/colors-Ct4sdRvQ.mjs +1 -0
- package/dist/{colors-DugpbXz6.mjs → colors-DWZN3WbY.mjs} +1 -1
- package/dist/column-WLPMMSTS-DkwMR9G7.mjs +1 -0
- package/dist/comm-5SLSESQG-CXlq0ETw.mjs +1 -0
- package/dist/config-schema.json +3 -3
- package/dist/config.project-local.schema.json +3 -3
- package/dist/constants-p-XvThBy.mjs +2 -0
- package/dist/{cose-bilkent-S5V4N54A-BNALZCF0.mjs → cose-bilkent-S5V4N54A-x0sjol1e.mjs} +2 -2
- package/dist/cp-XOYR4ABJ-DSmenFoy.mjs +1 -0
- package/dist/{curl-47BFPSFW-DU0Jc2rS.mjs → curl-47BFPSFW-CLzIjKiW.mjs} +2 -2
- package/dist/cut-OPC3VAGB-Bem4Z9r_.mjs +1 -0
- package/dist/{cytoscape.esm-5XrS6n0F.mjs → cytoscape.esm-D1nqsWCf.mjs} +1 -1
- package/dist/{dagre-C04vaGU3.mjs → dagre-BTsqj5N3.mjs} +2 -2
- package/dist/{dagre-KV5264BT-Cbu_HfO4.mjs → dagre-KV5264BT-qU8auIl8.mjs} +2 -2
- package/dist/date-DD7FVA2V-BIqG8vnM.mjs +1 -0
- package/dist/{defaultLocale-0qNBj5q-.mjs → defaultLocale-DMqLGTir.mjs} +1 -1
- package/dist/{diagram-5BDNPKRD--yFFNenY.mjs → diagram-5BDNPKRD-BfaCThqw.mjs} +2 -2
- package/dist/{diagram-G4DWMVQ6-DEe2UaOJ.mjs → diagram-G4DWMVQ6-GD__kOTo.mjs} +2 -2
- package/dist/{diagram-MMDJMWI5-BEgEPDUN.mjs → diagram-MMDJMWI5-eK_WgeFb.mjs} +2 -2
- package/dist/{diagram-TYMM5635-WdKiO0-q.mjs → diagram-TYMM5635-Cw9FE8Ou.mjs} +2 -2
- package/dist/diff-HJF2MPDN-QbElik15.mjs +1 -0
- package/dist/dirname-LEMTZZFS-DjJGD8wW.mjs +1 -0
- package/dist/{dist-Co98vmuK.mjs → dist-B9rR197c.mjs} +1 -1
- package/dist/{server-lock-iLcBw_q0-DrtDFuEH.mjs → dist-BB07_fNU.mjs} +117 -117
- package/dist/{dist-Bd-iJOOK.mjs → dist-C_-7dTgR.mjs} +46 -41
- package/dist/dist-DH3x1SI7.mjs +1 -0
- package/dist/{dist-bundle-tsI-uq-K.mjs → dist-bundle-CfcllBeA.mjs} +1 -1
- package/dist/dist-bundle-Dnt-gLG8.mjs +1 -0
- package/dist/du-WO2ENHXQ-gLn1L6An.mjs +1 -0
- package/dist/echo-O45JWWI2-CHeEVRD-.mjs +1 -0
- package/dist/env-5EPCWSXR-nB7iGA4U.mjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-BD_bZ9y8.mjs → erDiagram-SMLLAGMA-BQ28NjyR.mjs} +2 -2
- package/dist/{esm-BNIW0EH8.mjs → esm-PWRRAk-U.mjs} +1 -1
- package/dist/{execAsync-BAuTynbH.mjs → execAsync-Clg2-3AB.mjs} +1 -1
- package/dist/{execAsync-CBkkI2Ek.mjs → execAsync-DCzaEYgw.mjs} +1 -1
- package/dist/{execAsync-DVDfm08O.mjs → execAsync-Dyv9tAFE.mjs} +1 -1
- package/dist/expand-DTNXU4LQ--1KdtI8I.mjs +1 -0
- package/dist/expansion-VBDYWVZR-Br5lbiFS.mjs +1 -0
- package/dist/expr-YYCVMXE3-D_Mgl3lg.mjs +1 -0
- package/dist/file-IGDTDPLG-DJz2lDmW.mjs +1 -0
- package/dist/find-DH2ALKQS-BCfNRHeq.mjs +1 -0
- package/dist/flag-coverage-6JEX67RU-dAJxSkKl.mjs +2 -0
- package/dist/{flatten-DsfHsK9p.mjs → flatten-CMuDMFOE.mjs} +2 -2
- package/dist/{flowDiagram-DWJPFMVM-DZgEsdRZ.mjs → flowDiagram-DWJPFMVM-BRXMLmIm.mjs} +2 -2
- package/dist/fold-LDSORVYE-X07YByBI.mjs +1 -0
- package/dist/{ganttDiagram-T4ZO3ILL-Csm0cHYU.mjs → ganttDiagram-T4ZO3ILL-BkishNK-.mjs} +2 -2
- package/dist/{getMachineId-bsd-Bd_aCdAJ.mjs → getMachineId-bsd-BfKl40ww.mjs} +2 -2
- package/dist/{getMachineId-bsd-CmfyCGp_.mjs → getMachineId-bsd-CfcvKJtS.mjs} +2 -2
- package/dist/{getMachineId-bsd-D_lpr65O.mjs → getMachineId-bsd-DHr_3v7C.mjs} +2 -2
- package/dist/{getMachineId-darwin-CFeqXDM9.mjs → getMachineId-darwin-BGSat_hq.mjs} +2 -2
- package/dist/{getMachineId-darwin-Ch6Y3434.mjs → getMachineId-darwin-ClWJDgsl.mjs} +2 -2
- package/dist/{getMachineId-darwin-DRbP6ZXo.mjs → getMachineId-darwin-kUGmbM-E.mjs} +2 -2
- package/dist/{getMachineId-linux-CsnocidZ.mjs → getMachineId-linux-Cb6TG9LG.mjs} +1 -1
- package/dist/{getMachineId-linux-n9GZPwcR.mjs → getMachineId-linux-D_xXWtEw.mjs} +1 -1
- package/dist/{getMachineId-linux-CbD1lCp_.mjs → getMachineId-linux-vXwObLy3.mjs} +1 -1
- package/dist/{getMachineId-unsupported-Bsi0aVMm.mjs → getMachineId-unsupported-B4ElBmKF.mjs} +1 -1
- package/dist/{getMachineId-unsupported-D6zswC3_.mjs → getMachineId-unsupported-BALaAmcO.mjs} +1 -1
- package/dist/{getMachineId-unsupported-BQuHcTqF.mjs → getMachineId-unsupported-CechcDdc.mjs} +1 -1
- package/dist/{getMachineId-win-BsR1lQcH.mjs → getMachineId-win-CwyWxlQ-.mjs} +2 -2
- package/dist/{getMachineId-win-Bvo8aUso.mjs → getMachineId-win-D-OyleV_.mjs} +2 -2
- package/dist/{getMachineId-win-BpALY-6t.mjs → getMachineId-win-Div5qJyL.mjs} +2 -2
- package/dist/gh-detect-C0TUrJxp.mjs +3 -0
- package/dist/git-handle-CetHWc5A-6X5OgagE.mjs +1 -0
- package/dist/git-handle-dKyep_oZ-vn8B9Tc8.mjs +10 -0
- package/dist/gitGraph-7Q5UKJZL-Cb6AI0gQ.mjs +1 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-dC1IPshv.mjs → gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs} +2 -2
- package/dist/{graphlib-ZUByR7Z1.mjs → graphlib-C8GlDNIO.mjs} +2 -2
- package/dist/grep-2HUTXO5U-DF5bN210.mjs +1 -0
- package/dist/gzip-AQXSGOVS-Ld4whXAz.mjs +1 -0
- package/dist/head-HT2B6D2J-Y8QWoury.mjs +1 -0
- package/dist/help-VVWX7SA5-DNTZaSb5.mjs +1 -0
- package/dist/history-J4QRNGRO-D8QHmWq3.mjs +1 -0
- package/dist/hostname-BK6HG2DE-C229q8IA.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-EEqkh5Fp.mjs +1 -0
- package/dist/index.d.mts +11 -3
- package/dist/index.mjs +1 -1
- package/dist/info-OMHHGYJF-DY6XVLHA.mjs +1 -0
- package/dist/{infoDiagram-42DDH7IO-HjNjWo06.mjs → infoDiagram-42DDH7IO-BVXbYOHQ.mjs} +2 -2
- package/dist/init-CNb23nGn.mjs +1 -0
- package/dist/init-CXlRbgEZ.mjs +639 -0
- package/dist/{init-BQKkPl4l.mjs → init-D9nHWIP2.mjs} +1 -1
- package/dist/{is-object-DAC-mmwo.mjs → is-object-DhiFit5j.mjs} +1 -1
- package/dist/{isEmpty-jdQphHPa.mjs → isEmpty-B_hy4b7A.mjs} +2 -2
- package/dist/{ishikawaDiagram-UXIWVN3A-BlrokJRv.mjs → ishikawaDiagram-UXIWVN3A-Diodefny.mjs} +2 -2
- package/dist/join-GG2LDHE5-DJ1L_Ka6.mjs +1 -0
- package/dist/{journeyDiagram-VCZTEJTY-Bt5CmS_f.mjs → journeyDiagram-VCZTEJTY-CMQp-Rx9.mjs} +2 -2
- package/dist/jq-LYZFFBZB-BItVI6BJ.mjs +1 -0
- package/dist/{js-exec-VXN6TZ7U-B_mKz_np.mjs → js-exec-VXN6TZ7U-Bnv5xh7r.mjs} +2 -2
- package/dist/{kanban-definition-6JOO6SKY-BH015AU8.mjs → kanban-definition-6JOO6SKY-DhbBoKko.mjs} +2 -2
- package/dist/{launch-json-removal-kq5Dt0Gk.mjs → launch-json-removal-6s0g2-Dm.mjs} +2 -2
- package/dist/{lib-BWyT_i83.mjs → lib-BFgxfC0m.mjs} +2 -2
- package/dist/{lib-BKCY8vrL.mjs → lib-DOas6HiH.mjs} +1 -1
- package/dist/{libesm-Ob3yvbRV.mjs → libesm-bRpdkHYn.mjs} +1 -1
- package/dist/{line-DiVg83mo.mjs → line-CNrllbcq.mjs} +2 -2
- package/dist/{linear-C06cViLu.mjs → linear-CUrVtEYu.mjs} +2 -2
- package/dist/ln-4TRFBYAT-1vbMtGss.mjs +1 -0
- package/dist/loader-DZ60wqGI.mjs +4 -0
- package/dist/loader-GV9JFQfo.mjs +1 -0
- package/dist/ls-KSXFZCWH-D7XChuCb.mjs +1 -0
- package/dist/{lzma-NI_6IIcm.mjs → lzma-kz900pzb.mjs} +1 -1
- package/dist/{mcp-migrate-event-BNoOQpLB.mjs → mcp-migrate-event-H4uBxZps.mjs} +1 -1
- package/dist/md5sum-INMIK4DX-DebFzK7Y.mjs +1 -0
- package/dist/{mermaid-parser.core-DqKkkvo5.mjs → mermaid-parser.core-C4HPipkF.mjs} +2 -2
- package/dist/{mermaid.core-BzIdCd91.mjs → mermaid.core-BjaX3aDk.mjs} +3 -3
- package/dist/{mindmap-definition-QFDTVHPH-BOkRtwWA.mjs → mindmap-definition-QFDTVHPH-aTvmjjWw.mjs} +2 -2
- package/dist/mkdir-TDEMSB6C-yKujfJwH.mjs +1 -0
- package/dist/mv-Z6MORUFL-DefDwgs3.mjs +1 -0
- package/dist/native/native-config.linux-x64-gnu.node +0 -0
- package/dist/nl-U5YJDM32-C4WnOB_Q.mjs +1 -0
- package/dist/od-VJEF2UR5-w1NlCkUs.mjs +1 -0
- package/dist/{open-browser-DZUdqNsP.mjs → open-browser-9FuRJjpP.mjs} +2 -2
- package/dist/{ordinal-BuFKVuSx.mjs → ordinal-CwNJ0kWp.mjs} +2 -2
- package/dist/packet-4T2RLAQJ-Bf6ng-Cf.mjs +1 -0
- package/dist/paste-7N6AFSDS-C1xZzPgC.mjs +1 -0
- package/dist/{path-Dmj-XcQ6.mjs → path-v4_sOSY9.mjs} +1 -1
- package/dist/pie-ZZUOXDRM-B2TN5yZH.mjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-Bho_Qp6H.mjs → pieDiagram-DEJITSTG-Bwxzwykf.mjs} +2 -2
- package/dist/{preview-CGoJaoXU.mjs → preview-Ch5Z_ly3.mjs} +2 -2
- package/dist/preview-DZuLRNVg.mjs +1 -0
- package/dist/printf-CX64KX2P-mlOOn_9v.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-BhjZd4ih.js → ActivityModeContent-jsCTPiun.js} +1 -1
- package/dist/public/assets/CodeMirrorPropInput-cmSiPzan.js +3 -0
- package/dist/public/assets/DocumentContext-CNzSFsI-.js +36 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-WW7JP--8.js → EnableSyncConfirmDialog-D_NbuJ59.js} +1 -1
- package/dist/public/assets/{GraphPanel-ykpjTMSi.js → GraphPanel-BrqHgLjs.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-B2BQrtZM.js → ManagedArtifactProperties-DqTT5fPT.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-onnJGUtF.js → McpConsentDialogBody-BrfdQb16.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-BqGd0qfH.js → MermaidDocEditor-B_dNhePY.js} +1 -1
- package/dist/public/assets/{PropertyPanel-DttU8Udw.js → PropertyPanel-Dkz1gPoU.js} +1 -1
- package/dist/public/assets/ReportBugDialogBody-CCKV6nZY.js +2 -0
- package/dist/public/assets/SettingsDialogBody-BxTayjY8.js +7 -0
- package/dist/public/assets/ShareBranchSwitchDialog-BhekOXUp.js +1 -0
- package/dist/public/assets/{ShareReceiveDialog-DZDGHPPI.js → ShareReceiveDialog-o5dNBk6Q.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-Xhuw-myx.js → ShareReceiveMissDialog-UODMw9si.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-Bwdh1Cf-.js → SkillEditorActions-euGEb-E6.js} +1 -1
- package/dist/public/assets/{SourceEditor-BxbaznDP.js → SourceEditor-CORtf1FY.js} +1 -1
- package/dist/public/assets/{TerminalPanel-DQ0dcqkQ.js → TerminalPanel-g64JYtbc.js} +1 -1
- package/dist/public/assets/{agent-presence-CqgjG_1n.js → agent-presence-D3uA1hrz.js} +1 -1
- package/dist/public/assets/{auth-state-cache-ClzBZ7Ym.js → auth-state-cache-DCv4Whjc.js} +3 -3
- package/dist/public/assets/{config-provider-BAZc28q7.js → config-provider-DVy-GqC5.js} +1 -1
- package/dist/public/assets/{dist-6XgTb6IH.js → dist-DkRtDyLN.js} +39 -39
- package/dist/public/assets/{dist-Dol8Q1cO.js → dist-Dl_HewkW.js} +1 -1
- package/dist/public/assets/{doc-hash-BiliQUlA.js → doc-hash-BDRwCcvB.js} +1 -1
- package/dist/public/assets/{documents-events-u9inGgjg.js → documents-events-CJpJUM_N.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-DqUi4Yv0.js → file-tree-adapter-_1h6_EGw.js} +1 -1
- package/dist/public/assets/index-Dyz0LlrR.css +1 -0
- package/dist/public/assets/{index-C3-m6mEi.js → index-FValh7LC.js} +102 -102
- package/dist/public/assets/{lint-config-client-D8iMCwfL.js → lint-config-client-CX_cssoL.js} +1 -1
- package/dist/public/assets/{navigation-targets-CKcxoAuN.js → navigation-targets-S-8o5DE_.js} +1 -1
- package/dist/public/assets/open-managed-artifact-tab-tiXawScj.js +5 -0
- package/dist/public/assets/{pending-receive-nav-store-jeeaEovU.js → pending-receive-nav-store-BUhyCKTL.js} +1 -1
- package/dist/public/assets/{prop-types-sQ-6_M35.js → prop-types-Cr0Uib4q.js} +1 -1
- package/dist/public/assets/{receive-store-BGw3Wb65.js → receive-store-DYDEnyEg.js} +1 -1
- package/dist/public/assets/{selection-context-W2zA2_u8.js → selection-context-BjmeTT0v.js} +1 -1
- package/dist/public/assets/skill-actions-32qU2dgG.js +1 -0
- package/dist/public/assets/{skills-api-B9bExOgu.js → skills-api-UJqRM51N.js} +1 -1
- package/dist/public/assets/{src-DcaAGY7P.js → src-CBkac3Ms.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-B1GFMD9p.js → target-navigation-intent-BFsJN8Kr.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-BBVTllDg.js → typing-burst-detector-CekoPsaO.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-DJmOs4Mx.js → use-apply-config-color-theme-CUJwxTbn.js} +1 -1
- package/dist/public/assets/{workspace-paths-4LdXG6d2.js → workspace-paths-r1tSwfOd.js} +1 -1
- package/dist/public/index.html +27 -27
- package/dist/pwd-D4OZ7N27-CT87C-5L.mjs +1 -0
- package/dist/{python3-DNGS4G3E-mSuL-4Sg.mjs → python3-DNGS4G3E-CvPRspn0.mjs} +2 -2
- package/dist/{quadrantDiagram-34T5L4WZ-Bd7jb1rn.mjs → quadrantDiagram-34T5L4WZ-DNT3MD_9.mjs} +2 -2
- package/dist/radar-PYXPWWZC-COiIo4-V.mjs +1 -0
- package/dist/readlink-MI4GCHJF-yD7ZCo6I.mjs +1 -0
- package/dist/{reduce-CKdE5ppn.mjs → reduce-KkqmWdsg.mjs} +2 -2
- package/dist/{repair-launch-json-F3MZs-IY.mjs → repair-launch-json-B8-siIVG.mjs} +2 -2
- package/dist/{repair-mcp-configs-DeF097He.mjs → repair-mcp-configs-iuxXR-U-.mjs} +2 -2
- package/dist/repair-skills-CZkLkOIF.mjs +1 -0
- package/dist/repair-skills-DTChn2Mf.mjs +3 -0
- package/dist/{requirementDiagram-MS252O5E-B74qjBRN.mjs → requirementDiagram-MS252O5E-25Z7WGN_.mjs} +2 -2
- package/dist/rev-XOSYPP45-DXeN2c_L.mjs +1 -0
- package/dist/rg-XNF3R3II-CSW8tOjh.mjs +1 -0
- package/dist/rm-RTZG23RL-CdPHUz_A.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-B-Hcy2_M.mjs +1 -0
- package/dist/{rough.cjs-D5rEDIRO.mjs → rough.cjs-CjMW0p0V.mjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-CsDd_Lum.mjs → sankeyDiagram-XADWPNL6-CaXOTYx7.mjs} +2 -2
- package/dist/schemas/v0/config.project-local.schema.json +3 -3
- package/dist/sed-JAPPVBEU-CcOukRYN.mjs +1 -0
- package/dist/seq-RN5ZUASB-s6ShRZlK.mjs +1 -0
- package/dist/{sequenceDiagram-FGHM5R23-C88m3ajK.mjs → sequenceDiagram-FGHM5R23-BgVYdPUE.mjs} +2 -2
- package/dist/server-lock-GuuouVft-BjWZinGq.mjs +1 -0
- package/dist/server-lock-iLcBw_q0-DWu5z2Sp.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DypLzN_7.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DGVRMju7.mjs +1 -0
- package/dist/sleep-VZFPZFWA-B9Y3_tNd.mjs +1 -0
- package/dist/sort-DCNRDA7U-hsloabcm.mjs +1 -0
- package/dist/split-SITCSYCZ-BDulNHyK.mjs +1 -0
- package/dist/sqlite3-TE5AIOTF-DjHl_aWc.mjs +1 -0
- package/dist/src-4JZrrUEE.mjs +21 -0
- package/dist/{src-DC_BCes_.mjs → src-BGL-MlNN.mjs} +1 -1
- package/dist/start-B9AbQt7f.mjs +1 -0
- package/dist/start-DX8hoO29.mjs +3 -0
- package/dist/stat-BT5A227F-Bo3rQCLg.mjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-va6AVA_z.mjs → stateDiagram-FHFEXIEX-DQ2iT5iQ.mjs} +2 -2
- package/dist/stateDiagram-v2-QKLJ7IA2-BN2cDF-I.mjs +2 -0
- package/dist/strings-7PLOGTPD-DzlKcmS-.mjs +1 -0
- package/dist/tac-SJGXQ4T2-ByklUqCu.mjs +1 -0
- package/dist/tail-S5ULNTJU-4htchzH3.mjs +1 -0
- package/dist/tar-MZQD7NO4-BbDCO35a.mjs +1 -0
- package/dist/tee-O7VXZDCO-C4h94T7n.mjs +1 -0
- package/dist/time-DEUO3QV2-DgbA26hb.mjs +1 -0
- package/dist/{timeline-definition-GMOUNBTQ-TPAmdwnH.mjs → timeline-definition-GMOUNBTQ-CN-kJjLP.mjs} +2 -2
- package/dist/timeout-VRKMCG72-QNsmkGY4.mjs +1 -0
- package/dist/touch-DX2IJOQ4-DCSWORMR.mjs +1 -0
- package/dist/tr-2HXZRDSW-ClAtG6KK.mjs +1 -0
- package/dist/tree-LYXBS7DC-DY3rkdQ5.mjs +1 -0
- package/dist/treeView-SZITEDCU-IxD8BwiZ.mjs +1 -0
- package/dist/treemap-W4RFUUIX-Bi83ji26.mjs +1 -0
- package/dist/true-WHJNXCHG-D1oYWVZ5.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-MOepJcp7.mjs +1 -0
- package/dist/uniq-SUNANL47-BTfKD4-0.mjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-CVntpCfR.mjs → vennDiagram-DHZGUBPP-BJ8_Sz54.mjs} +2 -2
- package/dist/wardley-RL74JXVD-DxHrvQhH.mjs +1 -0
- package/dist/{wardleyDiagram-NUSXRM2D-DlYkmDFQ.mjs → wardleyDiagram-NUSXRM2D-j56ncYAi.mjs} +2 -2
- package/dist/wc-TQB3VNOX-CMqYcRvH.mjs +1 -0
- package/dist/which-XZHEH76L-CAv7Efsx.mjs +1 -0
- package/dist/whoami-DGKU3D2X-CpvaE3LM.mjs +1 -0
- package/dist/{wrapper-BZO_sIci.mjs → wrapper-C8gJQl5z.mjs} +1 -1
- package/dist/write-project-skill-BwRqNV9s.mjs +36 -0
- package/dist/xan-UD7JYIL2-DLOcZDYa.mjs +1 -0
- package/dist/xan-view-OW2TB7Z3-dHhPo_bJ.mjs +1 -0
- package/dist/xargs-I6EZUCYF-HR9_4d9i.mjs +1 -0
- package/dist/{xychartDiagram-5P7HB3ND-CFd6z4Gb.mjs → xychartDiagram-5P7HB3ND-CcUb_B_R.mjs} +2 -2
- package/dist/yazl-B1RwDQQs.mjs +1 -0
- package/dist/{yazl-Docqgl6q.mjs → yazl-DFMxUgKn.mjs} +1 -1
- package/dist/yq-OAKYHSXH-CJLBfTXv.mjs +1 -0
- package/package.json +1 -1
- package/dist/alias-JE7RI5QX-BODj4Gfj.mjs +0 -1
- package/dist/architecture-YZFGNWBL-BJvTzYI9.mjs +0 -1
- package/dist/awk2-BBAGSFUB-lHnSCbc-.mjs +0 -1
- package/dist/base64-4YMZCVJ5-BTMj5dqF.mjs +0 -1
- package/dist/basename-AA2KJYZQ-B1wvwZXV.mjs +0 -1
- package/dist/bash-IJWYRKFO-CCnjwjWe.mjs +0 -1
- package/dist/build-Ca40rJCO.mjs +0 -1
- package/dist/cat-RDUMLXKC-JY2w4DEE.mjs +0 -1
- package/dist/channel-BQl_ktPZ.mjs +0 -2
- package/dist/chmod-SYMGL4JA-3Hk_1ELN.mjs +0 -1
- package/dist/chunk-426QAEUC-B_MzMc_U.mjs +0 -2
- package/dist/classDiagram-6PBFFD2Q-L301VcDG.mjs +0 -2
- package/dist/classDiagram-v2-HSJHXN6E-CeSqnnqg.mjs +0 -2
- package/dist/clear-5CZ5X4YR-BDbutb2U.mjs +0 -1
- package/dist/clone-DETmm2Pe.mjs +0 -2
- package/dist/colors-C2Tw16G0.mjs +0 -1
- package/dist/column-WLPMMSTS-CV6fCKBB.mjs +0 -1
- package/dist/comm-5SLSESQG-c_QNAuoh.mjs +0 -1
- package/dist/constants-CLnYEWN_.mjs +0 -2
- package/dist/cp-XOYR4ABJ-Dy7On9-M.mjs +0 -1
- package/dist/cut-OPC3VAGB-BuR9R75Y.mjs +0 -1
- package/dist/date-DD7FVA2V-ClXjwml9.mjs +0 -1
- package/dist/diff-HJF2MPDN-C0H4yjXW.mjs +0 -1
- package/dist/dirname-LEMTZZFS-4AT-pFX0.mjs +0 -1
- package/dist/dist-Lt66otPU.mjs +0 -1
- package/dist/dist-bundle-BA0EtAC7.mjs +0 -1
- package/dist/du-WO2ENHXQ-Do-4VQ3V.mjs +0 -1
- package/dist/echo-O45JWWI2-DdI80aCx.mjs +0 -1
- package/dist/env-5EPCWSXR-CDfcyvrs.mjs +0 -1
- package/dist/expand-DTNXU4LQ-D-zXh5CC.mjs +0 -1
- package/dist/expansion-VBDYWVZR-DTjZRtii.mjs +0 -1
- package/dist/expr-YYCVMXE3-C9dGgUU3.mjs +0 -1
- package/dist/file-IGDTDPLG-BEwb4MXq.mjs +0 -1
- package/dist/find-DH2ALKQS-Dni7700t.mjs +0 -1
- package/dist/flag-coverage-6JEX67RU-CMw4W0rs.mjs +0 -2
- package/dist/fold-LDSORVYE-g18Hkyqy.mjs +0 -1
- package/dist/gh-detect-DNx3-c1-.mjs +0 -3
- package/dist/git-handle-BMLM1Bxa-Bic5A31t.mjs +0 -1
- package/dist/git-handle-XXj9bu6B-DY30-mw9.mjs +0 -10
- package/dist/gitGraph-7Q5UKJZL-D8oR6R4c.mjs +0 -1
- package/dist/grep-2HUTXO5U-Dq78Al2p.mjs +0 -1
- package/dist/gzip-AQXSGOVS-C9_JolVc.mjs +0 -1
- package/dist/head-HT2B6D2J-CdrKE_Tc.mjs +0 -1
- package/dist/help-VVWX7SA5-DdmujeOs.mjs +0 -1
- package/dist/history-J4QRNGRO-Bm3N_FkO.mjs +0 -1
- package/dist/hostname-BK6HG2DE-DdT-PlzJ.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-D2mzPMGY.mjs +0 -1
- package/dist/info-OMHHGYJF-pWbeXW42.mjs +0 -1
- package/dist/init-B95G78xI.mjs +0 -1
- package/dist/init-Cv8r5418.mjs +0 -639
- package/dist/join-GG2LDHE5-DV7ilddy.mjs +0 -1
- package/dist/jq-LYZFFBZB-DhEnecL2.mjs +0 -1
- package/dist/ln-4TRFBYAT-Cg_-SGIL.mjs +0 -1
- package/dist/loader-DmyBlNAH.mjs +0 -1
- package/dist/loader-LweoGzIS.mjs +0 -4
- package/dist/ls-KSXFZCWH-RlHCZlxm.mjs +0 -1
- package/dist/md5sum-INMIK4DX-BXlXL3Ru.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-Cu2DJyfB.mjs +0 -1
- package/dist/mv-Z6MORUFL-BsEWL09Z.mjs +0 -1
- package/dist/nl-U5YJDM32-BybO7Epu.mjs +0 -1
- package/dist/od-VJEF2UR5-OIZrgjg0.mjs +0 -1
- package/dist/packet-4T2RLAQJ-BizdrxBC.mjs +0 -1
- package/dist/paste-7N6AFSDS-Ch72F0D2.mjs +0 -1
- package/dist/pie-ZZUOXDRM-BSULk3pW.mjs +0 -1
- package/dist/preview-DxyaYzYn.mjs +0 -1
- package/dist/printf-CX64KX2P-DS9NCBYX.mjs +0 -1
- package/dist/public/assets/CodeMirrorPropInput-BTKAJRoj.js +0 -3
- package/dist/public/assets/DocumentContext-GpXOb1VS.js +0 -36
- package/dist/public/assets/ReportBugDialogBody-Doy_5VwI.js +0 -2
- package/dist/public/assets/SettingsDialogBody-CTxuhPRl.js +0 -7
- package/dist/public/assets/ShareBranchSwitchDialog-BFGW5yvV.js +0 -1
- package/dist/public/assets/index-Cs4DTKOK.css +0 -1
- package/dist/public/assets/open-managed-artifact-tab-CHfy6RsF.js +0 -5
- package/dist/public/assets/skill-actions-1nHLmqUS.js +0 -1
- package/dist/pwd-D4OZ7N27-PztYFitl.mjs +0 -1
- package/dist/radar-PYXPWWZC-BPIU1oIT.mjs +0 -1
- package/dist/readlink-MI4GCHJF-B72qVA05.mjs +0 -1
- package/dist/repair-skills-C2X3d1Py.mjs +0 -3
- package/dist/repair-skills-DL9nbwfk.mjs +0 -1
- package/dist/rev-XOSYPP45-ByX-mrLe.mjs +0 -1
- package/dist/rg-XNF3R3II-CnMv6YV-.mjs +0 -1
- package/dist/rm-RTZG23RL-CEw97Zb0.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-BFdmBJEt.mjs +0 -1
- package/dist/sed-JAPPVBEU-2bqT53N-.mjs +0 -1
- package/dist/seq-RN5ZUASB-DxG4OIr9.mjs +0 -1
- package/dist/server-lock-GuuouVft-Xcm8kgmF.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-4-wvJ2xb.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-BaaxN7Tl.mjs +0 -1
- package/dist/sleep-VZFPZFWA-BllHeqyP.mjs +0 -1
- package/dist/sort-DCNRDA7U-CuZyvLiY.mjs +0 -1
- package/dist/split-SITCSYCZ-_ZnwVuas.mjs +0 -1
- package/dist/sqlite3-TE5AIOTF-CNPF-saV.mjs +0 -1
- package/dist/src-ClCLBBac.mjs +0 -21
- package/dist/start-Bip4i7l5.mjs +0 -1
- package/dist/start-Oqkv042N.mjs +0 -3
- package/dist/stat-BT5A227F-D9HiKzDi.mjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-Cu9wyPTl.mjs +0 -2
- package/dist/strings-7PLOGTPD-kZJh53lS.mjs +0 -1
- package/dist/tac-SJGXQ4T2-Eo9pASuo.mjs +0 -1
- package/dist/tail-S5ULNTJU-PpwHAjse.mjs +0 -1
- package/dist/tar-MZQD7NO4-9e7UblLx.mjs +0 -1
- package/dist/tee-O7VXZDCO-CBU43Hsm.mjs +0 -1
- package/dist/time-DEUO3QV2-BpiPEFvF.mjs +0 -1
- package/dist/timeout-VRKMCG72-COJoI5YN.mjs +0 -1
- package/dist/touch-DX2IJOQ4-C4-z30TF.mjs +0 -1
- package/dist/tr-2HXZRDSW-C9BbHiUE.mjs +0 -1
- package/dist/tree-LYXBS7DC-BSj-bS3l.mjs +0 -1
- package/dist/treeView-SZITEDCU-CxDAshOW.mjs +0 -1
- package/dist/treemap-W4RFUUIX-Akln3RQv.mjs +0 -1
- package/dist/true-WHJNXCHG-BkJIzmUI.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-C-to2fwU.mjs +0 -1
- package/dist/uniq-SUNANL47-o1tLcwbX.mjs +0 -1
- package/dist/wardley-RL74JXVD-Djy_JGGm.mjs +0 -1
- package/dist/wc-TQB3VNOX-B-lPuWMt.mjs +0 -1
- package/dist/which-XZHEH76L-a4M_VoGw.mjs +0 -1
- package/dist/whoami-DGKU3D2X-DJ9OZDEX.mjs +0 -1
- package/dist/write-project-skill-B0sRkegU.mjs +0 -36
- package/dist/xan-UD7JYIL2-DqVUhpbk.mjs +0 -1
- package/dist/xan-view-OW2TB7Z3-BmNMcZHM.mjs +0 -1
- package/dist/xargs-I6EZUCYF-DphRNePs.mjs +0 -1
- package/dist/yazl-CQSNnbvt.mjs +0 -1
- package/dist/yq-OAKYHSXH-BBrPVcxh.mjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,o as t,t as n}from"./chunk-C94x7I9S.mjs";import{n as r,t as i}from"./esm-BQ4-CT8p.mjs";import{t as a}from"./execAsync-
|
|
2
|
-
//# sourceMappingURL=getMachineId-win-
|
|
1
|
+
import{a as e,o as t,t as n}from"./chunk-C94x7I9S.mjs";import{n as r,t as i}from"./esm-BQ4-CT8p.mjs";import{t as a}from"./execAsync-Dyv9tAFE.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=e(`process`),s=a(),c=(r(),t(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
|
|
2
|
+
//# sourceMappingURL=getMachineId-win-Div5qJyL.mjs.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Yo as e}from"./dist-BB07_fNU.mjs";import{execFileSync as t}from"node:child_process";import{dirname as n,join as r}from"node:path";import{existsSync as i,mkdirSync as a,readFileSync as o,writeFileSync as s}from"node:fs";import{homedir as c}from"node:os";var l=e();const u=`open-knowledge`;function d(e){try{e()}catch{}}var f=class{backend=`keyring`;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(u,e).getPassword()}catch(t){return d(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return d(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return d(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(u,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(u,e).deletePassword()}catch{}}},p=class{backend=`file`;authFile;constructor(e){this.authFile=e??r(c(),`.ok`,`auth.yml`)}read(){if(!i(this.authFile))return{};try{return(0,l.parse)(o(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=n(this.authFile);i(t)||a(t,{recursive:!0,mode:448}),s(this.authFile,(0,l.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},m=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function h(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(u,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
|
|
2
|
+
`),d(()=>t?.onBackendSelected?.({backend:`keyring`})),new m(new f(t?.onKeychainRead),new p(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${r}\n`),d(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new p(e)}}function g(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new p(e))},n)});try{return await Promise.race([h(e),r])}catch{return new p(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function _(e){let t=g(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token}}}}function v(e){let t=g(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function y(e,t){let n=[],r=new p(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));let i;try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(u,`__probe__`);let r,a=await new f(e=>{e.kind===`read-error`&&(r=e.error??`read-error`)}).get(e);if(r!==void 0)i=r;else if(a!=null)try{new t(u,e).deletePassword(),n.push(`keychain`)}catch(e){i=e instanceof Error?e.name:`delete-error`}}catch{}return{touched:n,keychainError:i}}const b=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`],x={encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3,windowsHide:!0};function S(e,n={}){let r=n._exec??t,a=n._fileExists??i,o=[`auth`,`token`,...e?[`--hostname`,e]:[]],s=[`gh`,...b.filter(a)];for(let e of s)try{let t=r(e,o,x).toString().trim();if(t.length>0)return{available:!0,token:t}}catch{}return{available:!1}}export{v as a,_ as i,y as n,h as r,S as t};
|
|
3
|
+
//# sourceMappingURL=gh-detect-C0TUrJxp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./git-handle-dKyep_oZ-vn8B9Tc8.mjs";export{e as createGitInstance};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{a as e,s as t,t as n}from"./chunk-C94x7I9S.mjs";import{ni as r}from"./dist-BB07_fNU.mjs";import{delimiter as i,normalize as a,resolve as o}from"node:path";import{existsSync as s,statSync as c}from"node:fs";import{homedir as l}from"node:os";import{spawn as u}from"child_process";import{EventEmitter as d}from"node:events";var f=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`:``)}})),p=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=f(),n.destroy=l,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 c(e){return e instanceof Error?e.stack||e.message:e}function l(){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})),m=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=p()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),ee=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)}})),te=n(((t,n)=>{let r=e(`os`),i=e(`tty`),a=ee(),{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)))}})),ne=n(((t,n)=>{let r=e(`tty`),i=e(`util`);t.init=d,t.log=c,t.formatArgs=o,t.save=l,t.load=u,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=te();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 l(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function u(){return process.env.DEBUG}function d(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=p()(t);let{formatters:f}=n.exports;f.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
|
|
5
|
+
`).map(e=>e.trim()).join(` `)},f.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),re=n(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=m():t.exports=ne()})),ie=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(re()).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})),ae=n((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,`__esModule`,{value:!0}),t(ie())}));const oe=new WeakMap;function se(...e){let t=new String(e);return oe.set(t,e),t}function h(e){return e instanceof String&&oe.has(e)}function ce(e){return oe.get(e)??[]}var le=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*ue(e,t){let n=t===`global`;for(let t of e)t.isGlobal===n&&(yield t)}const de=new Set([`--add`,`--edit`,`--remove-section`,`--rename-section`,`--replace-all`,`--unset`,`--unset-all`,`-e`]),fe=new Set([`--get`,`--get-all`,`--get-color`,`--get-colorbool`,`--get-regexp`,`--get-urlmatch`,`--list`,`-l`]),pe=new Set([`edit`,`remove-section`,`rename-section`,`set`,`unset`]),me=new Set([`get`,`get-color`,`get-colorbool`,`list`]);function he(e,t){for(let{name:n}of ue(e,`task`)){if(de.has(n))return g(!0,t);if(fe.has(n))return g(!1,t)}let n=t.at(0)?.toLowerCase();return n===void 0?null:pe.has(n)?g(!0,t.slice(1)):me.has(n)?g(!1,t.slice(1)):t.length===1?g(!1,t):g(!0,t)}function g(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 ge(e,t){return t.isWrite&&t.value!==void 0?{key:t.key,value:t.value,scope:e}:{key:t.key,scope:e}}function _e(e){let t=e?.indexOf(`=`)||-1;return!e||t<0?null:{key:e.slice(0,t).trim().toLowerCase(),value:e.slice(t+1)}}function ve(e){for(let{name:t}of ue(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 ye({name:e}){if(e===`-c`||e===`--config`)return`inline`;if(e===`--config-env`)return`env`}function*be(e){for(let t of e){let e=ye(t),n=e&&_e(t.value);n&&(yield{...n,scope:e})}}function xe(e,t,n){let r={read:[],write:[...be(t)]};return e===`config`&&Se(r,ve(t),he(t,n)),r}function Se(e,t,n){if(n===null)return;let r=ge(t,n);n.isWrite?e.write.push(r):e.read.push(r)}const Ce={short:new Map([[`c`,!0]])},we={short:new Map([[`C`,!0],[`P`,!1],[`h`,!1],[`p`,!1],[`v`,!1],...Ce.short.entries()]),long:new Set([`attr-source`,`config-env`,`exec-path`,`git-dir`,`list-cmds`,`namespace`,`super-prefix`,`work-tree`])},Te={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`])}},Ee={short:new Map,long:new Set};function De(e){let t=Te[e??``]??Ee;return{short:new Map([...Ce.short.entries(),...t.short.entries()]),long:t.long}}function Oe(e,t=we){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 _(e,t.short)}function _(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 v(e,t=[]){let n=0;for(;n<e.length;){let r=String(e[n]);if(!r.startsWith(`-`)||r.length<2)break;let i=Oe(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 ke(e,t,n=[]){let r=De(t),i=[],a=[],o=0;for(;o<e.length;){let t=e[o];if(h(t)){a.push(...ce(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(...ce(n)):a.push(String(n))}break}if(!s.startsWith(`-`)||s.length<2){i.push(s),o++;continue}let c=Oe(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*Ae({write:e}){for(let t of e)for(let e of je){let n=e(t.key);n&&(yield n)}}function y(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 b(e,t){return y(RegExp(`\\s*${e.toLowerCase().replace(/\./g,`(..+)?.`)}`),t,e)}const je=[y(`alias`,`allowUnsafeAlias`),y(`core.askPass`,`allowUnsafeAskPass`),y(`core.editor`,`allowUnsafeEditor`),y(`core.fsmonitor`,`allowUnsafeFsMonitor`),y(`core.gitProxy`,`allowUnsafeGitProxy`),y(`core.hooksPath`,`allowUnsafeHooksPath`),y(`core.pager`,`allowUnsafePager`),y(`core.sshCommand`,`allowUnsafeSshCommand`),b(`credential.helper`,`allowUnsafeCredentialHelper`),b(`diff.command`,`allowUnsafeDiffExternal`),y(`diff.external`,`allowUnsafeDiffExternal`),b(`diff.textconv`,`allowUnsafeDiffTextConv`),b(`filter.clean`,`allowUnsafeFilter`),b(`filter.smudge`,`allowUnsafeFilter`),b(`gpg.program`,`allowUnsafeGpgProgram`),y(`init.templateDir`,`allowUnsafeTemplateDir`),b(`merge.driver`,`allowUnsafeMergeDriver`),b(`mergetool.path`,`allowUnsafeMergeDriver`),b(`mergetool.cmd`,`allowUnsafeMergeDriver`),b(`protocol.allow`,`allowUnsafeProtocolOverride`),b(`remote.receivepack`,`allowUnsafePack`),b(`remote.uploadpack`,`allowUnsafePack`),y(`sequence.editor`,`allowUnsafeEditor`)];function*Me(e,t){for(let n of t)for(let t of Pe){let r=t(e,n.name);r&&(yield r)}}function Ne(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 Pe=[Ne(null,/--(upload|receive)-pack/,`allowUnsafePack`,`--upload-pack or --receive-pack`),Ne(`clone`,/^-\w*u/,`allowUnsafePack`),Ne(`clone`,`--u`,`allowUnsafePack`),Ne(`push`,`--exec`,`allowUnsafePack`),Ne(null,`--template`,`allowUnsafeTemplateDir`)];function Fe(e,t,n){return[...Me(e,t),...Ae(n)]}function Ie(...e){let{flags:t,taskIndex:n}=v(e),r=n<e.length?String(e[n]).toLowerCase():null,{positionals:i,pathspecs:a}=ke(r===null?[]:e.slice(n+1),r,t),o=xe(r,t,i);return{task:r,flags:t.map(Re),paths:a,config:o,vulnerabilities:Le(Fe(r,t,o))}}function Le(e){return Object.defineProperty(e,`vulnerabilities`,{value:e})}function Re({value:e,name:t}){return e===void 0?{name:t}:{name:t,value:e}}const ze={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*Be(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*Ve(e){for(let t of Object.keys(e))if(He(t)){let e=ze[t];yield{category:e,message:`Use of "${t.toUpperCase()}" is not permitted without enabling ${e}`}}}function He(e){return Object.hasOwn(ze,e)}function Ue(e){let t={};for(let[n,r]of Object.entries(e)){let e=n.toLowerCase().trim();(He(e)||e.startsWith(`git`))&&(t[e]=String(r))}return t}function We(e){let t=Ue(e),n={read:[],write:[...Be(t)]};return{config:n,vulnerabilities:[...Ve(t),...Fe(null,[],n)]}}function Ge(e,t){return[...Ie(...e).vulnerabilities,...We(t).vulnerabilities]}var Ke=ae(),qe=t(re()),x=le(),Je=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Xe=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,S=(e,t)=>function(){return e&&(t=(0,e[Xe(e)[0]])(e=0)),t},Qe=(e,t)=>function(){return t||(0,e[Xe(e)[0]])((t={exports:{}}).exports,t),t.exports},C=(e,t)=>{for(var n in t)Je(e,n,{get:t[n],enumerable:!0})},$e=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Xe(t))!Ze.call(e,i)&&i!==n&&Je(e,i,{get:()=>t[i],enumerable:!(r=Ye(t,i))||r.enumerable});return e},w=e=>$e(Je({},`__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)}}}}),et,D=S({"src/lib/errors/git-response-error.ts"(){E(),et=class extends T{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),tt,nt=S({"src/lib/errors/task-configuration-error.ts"(){E(),tt=class extends T{constructor(e){super(void 0,e)}}}});function rt(e){return typeof e==`function`?e:L}function it(e){return typeof e==`function`&&e!==L}function at(e,t){let n=e.indexOf(t);return n<=0?[e,``]:[e.substr(0,n),e.substr(n+1)]}function ot(e,t=0){return st(e)&&e.length>t?e[t]:void 0}function O(e,t=0){if(st(e)&&e.length>t)return e[e.length-1-t]}function st(e){return St(e)}function k(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 ct(e,t){return k(e,!0).map(e=>t(e))}function lt(e){return(0,Ke.exists)(e,Ke.FOLDER)}function A(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function ut(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function dt(e,t){if(Array.isArray(e)){let n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function j(e){return Array.isArray(e)?e:[e]}function ft(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function M(e){return j(e).map(e=>e instanceof String?e:String(e))}function N(e,t=0){if(e==null)return t;let n=parseInt(e,10);return Number.isNaN(n)?t:n}function P(e,t){let n=[];for(let r=0,i=e.length;r<i;r++)n.push(t,e[r]);return n}function F(e){return(Array.isArray(e)?Buffer.concat(e):e).toString(`utf-8`)}function pt(e,t){let n={};return t.forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function mt(e=0){return new Promise(t=>setTimeout(t,e))}function ht(e){if(e!==!1)return e}var I,L,R,gt=S({"src/lib/utils/util.ts"(){Ct(),I=`\0`,L=()=>{},R=Object.prototype.toString.call.bind(Object.prototype.toString)}});function z(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function _t(e,t){let n=h(e)?`string`:typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function vt(e){return!!e&&R(e)===`[object Object]`}function yt(e){return typeof e==`function`}var B,bt,V,xt,St,Ct=S({"src/lib/utils/argument-filters.ts"(){gt(),B=e=>Array.isArray(e),bt=e=>typeof e==`number`,V=e=>typeof e==`string`||h(e),xt=e=>V(e)||Array.isArray(e)&&e.every(V),St=e=>e==null||`number|boolean|function`.includes(typeof e)?!1:typeof e.length==`number`}}),wt,Tt=S({"src/lib/utils/exit-codes.ts"(){wt=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e[e.ERROR=1]=`ERROR`,e[e.NOT_FOUND=-2]=`NOT_FOUND`,e[e.UNCLEAN=128]=`UNCLEAN`,e))(wt||{})}}),Et,Dt=S({"src/lib/utils/git-output-streams.ts"(){Et=class e{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new e(this.stdOut.toString(`utf8`),this.stdErr.toString(`utf8`))}}}});function Ot(){throw Error(`LineParser:useMatches not implemented`)}var H,U,kt=S({"src/lib/utils/line-parser.ts"(){H=class{constructor(e,t){this.matches=[],this.useMatches=Ot,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 At(...e){let t=process.cwd(),n=Object.assign({baseDir:t,...jt},...e.filter(e=>typeof e==`object`&&e));return n.baseDir=n.baseDir||t,n.trimmed=n.trimmed===!0,n}var jt,Mt=S({"src/lib/utils/simple-git-options.ts"(){jt={binary:`git`,maxConcurrentProcesses:5,config:[],trimmed:!1}}});function Nt(e,t=[]){return vt(e)?Object.keys(e).reduce((t,n)=>{let r=e[n];if(h(r))t.push(r);else if(_t(r,[`boolean`]))t.push(n+`=`+r);else if(Array.isArray(r))for(let e of r)_t(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 Nt(Ft(e),r),n||r.push(...Pt(e)),r}function Pt(e){return M(z(O(e,typeof O(e)==`function`?1:0),B,[]))}function Ft(e){return z(O(e,yt(O(e))?1:0),vt)}function G(e,t=!0){let n=rt(O(e));return t||it(n)?n:void 0}var It=S({"src/lib/utils/task-options.ts"(){Ct(),gt()}});function Lt(e,t){return e(t.stdOut,t.stdErr)}function K(e,t,n,r=!0){return j(n).forEach(n=>{for(let i=k(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 Rt=S({"src/lib/utils/task-parser.ts"(){gt()}}),zt={};C(zt,{ExitCodes:()=>wt,GitOutputStreams:()=>Et,LineParser:()=>H,NOOP:()=>L,NULL:()=>I,RemoteLineParser:()=>U,append:()=>A,appendTaskOptions:()=>Nt,asArray:()=>j,asCamelCase:()=>ft,asFunction:()=>rt,asNumber:()=>N,asStringArray:()=>M,bufferToString:()=>F,callTaskParser:()=>Lt,createInstanceConfig:()=>At,delay:()=>mt,filterArray:()=>B,filterFunction:()=>yt,filterHasLength:()=>St,filterNumber:()=>bt,filterPlainObject:()=>vt,filterPrimitives:()=>_t,filterString:()=>V,filterStringOrStringArray:()=>xt,filterType:()=>z,first:()=>ot,folderExists:()=>lt,forEachLineWithContent:()=>ct,getTrailingOptions:()=>W,including:()=>ut,isUserFunction:()=>it,last:()=>O,objectToString:()=>R,orVoid:()=>ht,parseStringResponse:()=>K,pick:()=>pt,prefixedArray:()=>P,remove:()=>dt,splitOn:()=>at,toLinesWithContent:()=>k,trailingFunctionArgument:()=>G,trailingOptionsArgument:()=>Ft});var q=S({"src/lib/utils/index.ts"(){Ct(),Tt(),Dt(),kt(),Mt(),It(),Rt(),gt()}}),Bt={};C(Bt,{CheckRepoActions:()=>Gt,checkIsBareRepoTask:()=>Ut,checkIsRepoRootTask:()=>Ht,checkIsRepoTask:()=>Vt});function Vt(e){switch(e){case`bare`:return Ut();case`root`:return Ht()}return{commands:[`rev-parse`,`--is-inside-work-tree`],format:`utf-8`,onError:Kt,parser:qt}}function Ht(){return{commands:[`rev-parse`,`--git-dir`],format:`utf-8`,onError:Kt,parser(e){return/^\.(git)?$/.test(e.trim())}}}function Ut(){return{commands:[`rev-parse`,`--is-bare-repository`],format:`utf-8`,onError:Kt,parser:qt}}function Wt(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var Gt,Kt,qt,Jt=S({"src/lib/tasks/check-is-repo.ts"(){q(),Gt=(e=>(e.BARE=`bare`,e.IN_TREE=`tree`,e.IS_REPO_ROOT=`root`,e))(Gt||{}),Kt=({exitCode:e},t,n,r)=>{if(e===128&&Wt(t))return n(Buffer.from(`false`));r(t)},qt=e=>e.trim()===`true`}});function Yt(e,t){let n=new Xt(e),r=e?Qt:Zt;return k(t).forEach(e=>{let t=e.replace(r,``);n.paths.push(t),($t.test(t)?n.folders:n.files).push(t)}),n}var Xt,Zt,Qt,$t,en=S({"src/lib/responses/CleanSummary.ts"(){q(),Xt=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},Zt=/^[a-z]+\s*/i,Qt=/^[a-z]+\s+[a-z]+\s*/i,$t=/\/$/}}),tn={};C(tn,{EMPTY_COMMANDS:()=>sn,adhocExecTask:()=>nn,configurationErrorTask:()=>J,isBufferTask:()=>an,isEmptyTask:()=>on,straightThroughBufferTask:()=>rn,straightThroughStringTask:()=>Y});function nn(e){return{commands:sn,format:`empty`,parser:e}}function J(e){return{commands:sn,format:`empty`,parser(){throw typeof e==`string`?new tt(e):e}}}function Y(e,t=!1){return{commands:e,format:`utf-8`,parser(e){return t?String(e).trim():e}}}function rn(e){return{commands:e,format:`buffer`,parser(e){return e}}}function an(e){return e.format===`buffer`}function on(e){return e.format===`empty`||!e.commands.length}var sn,X=S({"src/lib/tasks/task.ts"(){nt(),sn=[]}}),cn={};C(cn,{CONFIG_ERROR_INTERACTIVE_MODE:()=>gn,CONFIG_ERROR_MODE_REQUIRED:()=>_n,CONFIG_ERROR_UNKNOWN_OPTION:()=>vn,CleanOptions:()=>yn,cleanTask:()=>un,cleanWithOptionsTask:()=>ln,isCleanOptionsArray:()=>dn});function ln(e,t){let{cleanMode:n,options:r,valid:i}=fn(e);return n?i.options?(r.push(...t),r.some(hn)?J(gn):un(n,r)):J(vn+JSON.stringify(e)):J(_n)}function un(e,t){return{commands:[`clean`,`-${e}`,...t],format:`utf-8`,parser(t){return Yt(e===`n`,t)}}}function dn(e){return Array.isArray(e)&&e.every(e=>bn.has(e))}function fn(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,``).split(``).forEach(e=>{pn(e)?(t=e,r.cleanMode=!0):r.options=r.options&&mn(n[n.length]=`-${e}`)}),{cleanMode:t,options:n,valid:r}}function pn(e){return e===`f`||e===`n`}function mn(e){return/^-[a-z]$/i.test(e)&&bn.has(e.charAt(1))}function hn(e){return/^-[^\-]/.test(e)?e.indexOf(`i`)>0:e===`--interactive`}var gn,_n,vn,yn,bn,xn=S({"src/lib/tasks/clean.ts"(){en(),q(),X(),gn=`Git clean interactive mode is not supported`,_n=`Git clean mode parameter ("n" or "f") is required`,vn=`Git clean unknown option found in: `,yn=(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))(yn||{}),bn=new Set([`i`,...M(Object.values(yn))])}});function Sn(e){let t=new En;for(let n of Tn(e))t.addValue(n.file,String(n.key),n.value);return t}function Cn(e,t){let n=null,r=[],i=new Map;for(let a of Tn(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 wn(e){return e.replace(/^(file):/,``)}function*Tn(e,t=null){let n=e.split(`\0`);for(let e=0,r=n.length-1;e<r;){let r=wn(n[e++]),i=n[e++],a=t;if(i.includes(`
|
|
7
|
+
`)){let e=at(i,`
|
|
8
|
+
`);a=e[0],i=e[1]}yield{file:r,key:a,value:i}}}var En,Dn=S({"src/lib/responses/ConfigList.ts"(){q(),En=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=O(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 On(e,t){return typeof e==`string`&&Object.hasOwn(Nn,e)?e:t}function kn(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 An(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 Cn(t,e)}}}function jn(e){let t=[`config`,`--list`,`--show-origin`,`--null`];return e&&t.push(`--${e}`),{commands:t,format:`utf-8`,parser(e){return Sn(e)}}}function Mn(){return{addConfig(e,t,...n){return this._runTask(kn(e,t,n[0]===!0,On(n[1],`local`)),G(arguments))},getConfig(e,t){return this._runTask(An(e,On(t,void 0)),G(arguments))},listConfig(...e){return this._runTask(jn(On(e[0],void 0)),G(arguments))}}}var Nn,Pn=S({"src/lib/tasks/config.ts"(){Dn(),q(),Nn=(e=>(e.system=`system`,e.global=`global`,e.local=`local`,e.worktree=`worktree`,e))(Nn||{})}});function Fn(e){return Ln.has(e)}var In,Ln,Rn=S({"src/lib/tasks/diff-name-status.ts"(){In=(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))(In||{}),Ln=new Set(Object.values(In))}});function zn(...e){return new Gn().param(...e)}function Bn(e){let t=new Set,n={};return ct(e,e=>{let[r,i,a]=e.split(I);t.add(r),(n[r]=n[r]||[]).push({line:N(i),path:r,preview:a})}),{paths:t,results:n}}function Vn(){return{grep(e){let t=G(arguments),n=W(arguments);for(let e of Hn)if(n.includes(e))return this._runTask(J(`git.grep: use of "${e}" is not supported.`),t);typeof e==`string`&&(e=zn().param(e));let r=[`grep`,`--null`,`-n`,`--full-name`,...n,...e];return this._runTask({commands:r,format:`utf-8`,parser(e){return Bn(e)}},t)}}}var Hn,Un,Wn,Gn,Kn=S({"src/lib/tasks/grep.ts"(){q(),X(),Hn=[`-h`],Un=Symbol(`grepQuery`),Gn=class{constructor(){this[Wn]=[]}*[(Wn=Un,Symbol.iterator)](){for(let e of this[Un])yield e}and(...e){return e.length&&this[Un].push(`--and`,`(`,...P(e,`-e`),`)`),this}param(...e){return this[Un].push(...P(e,`-e`)),this}}}}),qn={};C(qn,{ResetMode:()=>Zn,getResetMode:()=>Yn,resetTask:()=>Jn});function Jn(e,t){let n=[`reset`];return Xn(e)&&n.push(`--${e}`),n.push(...t),Y(n)}function Yn(e){if(Xn(e))return e;switch(typeof e){case`string`:case`undefined`:return`soft`}}function Xn(e){return typeof e==`string`&&Qn.includes(e)}var Zn,Qn,$n=S({"src/lib/tasks/reset.ts"(){q(),X(),Zn=(e=>(e.MIXED=`mixed`,e.SOFT=`soft`,e.HARD=`hard`,e.MERGE=`merge`,e.KEEP=`keep`,e))(Zn||{}),Qn=M(Object.values(Zn))}});function er(){return(0,qe.default)(`simple-git`)}function tr(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 nr(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 rr(e,t,n,r=er()){let i=e&&`[${e}]`||``,a=[],o=typeof t==`string`?r.extend(t):t,s=nr(z(t,V),o,r);return l(n);function c(t,n){return A(a,rr(e,s.replace(/^[^:]+/,t),n,r))}function l(t){let n=t&&`[${t}]`||``,a=o&&tr(o,n)||L,s=tr(r,`${i} ${n}`,a);return Object.assign(o?a:s,{label:e,sibling:c,info:s,step:l})}}var ir=S({"src/lib/git-logger.ts"(){q(),qe.default.formatters.L=e=>String(St(e)?e.length:`-`),qe.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString(`utf8`):R(e)}}),ar,or=S({"src/lib/runners/tasks-pending-queue.ts"(){E(),ir(),ar=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:rr(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:ot(e.commands)||``,commands:t}}function sr(e,t){return n=>{t(`[ERROR] child process exception %o`,n),e.push(Buffer.from(String(n.stack),`ascii`))}}function cr(e,t,n,r){return i=>{n(`%s received %L bytes`,t,i),r(`%B`,i),e.push(i)}}var lr,ur=S({"src/lib/runners/git-executor-chain.ts"(){E(),X(),q(),or(),lr=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new ar}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(on(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),an(e)?Lt(e.parser,a):Lt(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`,R(e)),c(new Et(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 Et(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(s=>{let c=[],l=[];i.info(`%s %o`,t,n),i(`%O`,o);let d=this._beforeSpawn(e,n);if(d)return s({stdOut:c,stdErr:l,exitCode:9901,rejection:d});this._plugins.exec(`spawn.before`,void 0,{...Z(e,n),kill(e){d=e||d}});let f=u(t,n,o);f.stdout.on(`data`,cr(c,`stdOut`,i,a.step(`stdOut`))),f.stderr.on(`data`,cr(l,`stdErr`,i,a.step(`stdErr`))),f.on(`error`,sr(l,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){s({stdOut:c,stdErr:l,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}}}}),dr={};C(dr,{GitExecutor:()=>fr});var fr,pr=S({"src/lib/runners/git-executor.ts"(){ur(),fr=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new lr(this,this._scheduler,this._plugins)}chain(){return new lr(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function mr(e,t,n=L){t.then(e=>{n(null,e)},t=>{t?.task===e&&n(t instanceof et?hr(t):t,void 0)})}function hr(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=L};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 gr=S({"src/lib/task-callback.ts"(){D(),q()}});function _r(e,t){return nn(n=>{if(!lt(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e})}var vr=S({"src/lib/tasks/change-working-directory.ts"(){q(),X()}});function yr(e){let t=[`checkout`,...e];return t[1]===`-b`&&t.includes(`-B`)&&(t[1]=dt(t,`-B`)),Y(t)}function br(){return{checkout(){return this._runTask(yr(W(arguments,1)),G(arguments))},checkoutBranch(e,t){return this._runTask(yr([`-b`,e,t,...W(arguments)]),G(arguments))},checkoutLocalBranch(e){return this._runTask(yr([`-b`,e,...W(arguments)]),G(arguments))}}}var xr=S({"src/lib/tasks/checkout.ts"(){q(),X()}});function Sr(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function Cr(){return{countObjects(){return this._runTask({commands:[`count-objects`,`--verbose`],format:`utf-8`,parser(e){return K(Sr(),[wr],e)}})}}}var wr,Tr=S({"src/lib/tasks/count-objects.ts"(){q(),wr=new H(/([a-z-]+): (\d+)$/,(e,[t,n])=>{let r=ft(t);Object.hasOwn(e,r)&&(e[r]=N(n))})}});function Er(e){return K({author:null,branch:``,commit:``,root:!1,summary:{changes:0,insertions:0,deletions:0}},Dr,e)}var Dr,Or=S({"src/lib/parsers/parse-commit.ts"(){q(),Dr=[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 kr(e,t,n){return{commands:[`-c`,`core.abbrev=40`,`commit`,...P(e,`-m`),...t,...n],format:`utf-8`,parser:Er}}function Ar(){return{commit(t,...n){let r=G(arguments),i=e(t)||kr(j(t),j(z(n[0],xt,[])),[...M(z(n[1],B,[])),...W(arguments,0,!0)]);return this._runTask(i,r)}};function e(e){return!xt(e)&&J(`git.commit: requires the commit message to be supplied as a string/string[]`)}}var jr=S({"src/lib/tasks/commit.ts"(){Or(),q(),X()}});function Mr(){return{firstCommit(){return this._runTask(Y([`rev-list`,`--max-parents=0`,`HEAD`],!0),G(arguments))}}}var Nr=S({"src/lib/tasks/first-commit.ts"(){q(),X()}});function Pr(e,t){let n=[`hash-object`,e];return t&&n.push(`-w`),Y(n,!0)}var Fr=S({"src/lib/tasks/hash-object.ts"(){X()}});function Ir(e,t,n){let r=String(n).trim(),i;if(i=Rr.exec(r))return new Lr(e,t,!1,i[1]);if(i=zr.exec(r))return new Lr(e,t,!0,i[1]);let a=``,o=r.split(` `);for(;o.length;)if(o.shift()===`in`){a=o.join(` `);break}return new Lr(e,t,/^re/i.test(r),a)}var Lr,Rr,zr,Br=S({"src/lib/responses/InitSummary.ts"(){Lr=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},Rr=/^Init.+ repository in (.+)$/,zr=/^Rein.+ in (.+)$/}});function Vr(e){return e.includes(Ur)}function Hr(e=!1,t,n){let r=[`init`,...n];return e&&!Vr(r)&&r.splice(1,0,Ur),{commands:r,format:`utf-8`,parser(e){return Ir(r.includes(`--bare`),t,e)}}}var Ur,Wr=S({"src/lib/tasks/init.ts"(){Br(),Ur=`--bare`}});function Gr(e){for(let t=0;t<e.length;t++){let n=qr.exec(e[t]);if(n)return`--${n[1]}`}return``}function Kr(e){return qr.test(e)}var qr,Jr=S({"src/lib/args/log-format.ts"(){qr=/^--(stat|numstat|name-only|name-status)(=|$)/}}),Yr,Xr=S({"src/lib/responses/DiffSummary.ts"(){Yr=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function Zr(e=``){let t=ni[e];return e=>K(new Yr,t,e,!1)}var Qr,$r,ei,ti,ni,ri=S({"src/lib/parsers/parse-diff-summary.ts"(){Jr(),Xr(),Rn(),q(),Qr=[new H(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,n,r=``])=>{e.files.push({file:t.trim(),changes:N(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:N(n),after:N(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=N(t),e.insertions=N(r?.[1]),e.deletions=N(i?.[1])})],$r=[new H(/(\d+)\t(\d+)\t(.+)$/,(e,[t,n,r])=>{let i=N(t),a=N(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})})],ei=[new H(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],ti=[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:ht(Fn(t)&&t),from:ht(!!a&&r!==a&&r),similarity:N(n)})})],ni={"":Qr,"--stat":Qr,"--numstat":$r,"--name-status":ti,"--name-only":ei}}});function ii(e,t){return t.reduce((t,n,r)=>(t[n]=e[r]||``,t),Object.create({diff:null}))}function ai(e=ci,t=li,n=``){let r=Zr(n);return function(n){let i=k(n.trim(),!1,oi).map(function(n){let i=n.split(si),a=ii(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 oi,si,ci,li,ui=S({"src/lib/parsers/parse-list-log-summary.ts"(){q(),ri(),Jr(),oi=`òòòòòò `,si=` òò`,ci=` ò `,li=[`hash`,`date`,`message`,`refs`,`author_name`,`author_email`]}}),di={};C(di,{diffSummaryTask:()=>fi,validateLogFormatConfig:()=>pi});function fi(e){let t=Gr(e),n=[`diff`];return t===``&&(t=`--stat`,n.push(`--stat=4096`)),n.push(...e),pi(n)||{commands:n,format:`utf-8`,parser:Zr(t)}}function pi(e){let t=e.filter(Kr);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 mi=S({"src/lib/tasks/diff.ts"(){Jr(),ri(),X()}});function hi(e,t){let n=[],r=[];return Object.keys(e).forEach(t=>{n.push(t),r.push(String(e[t]))}),[n,r.join(t)]}function gi(e){return Object.keys(e).reduce((t,n)=>(n in bi||(t[n]=e[n]),t),{})}function _i(e={},t=[]){let n=z(e.splitter,V,ci),[r,i]=hi(vt(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:${oi}${i}${si}`,...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`,se(e.file)),Nt(gi(e),o),{fields:r,splitter:n,commands:[...o,...a]}}function vi(e,t,n){let r=ai(e,t,Gr(n));return{commands:[`log`,...n],format:`utf-8`,parser:r}}function yi(){return{log(...n){let r=G(arguments),i=_i(Ft(arguments),M(z(arguments[0],B,[]))),a=t(...n)||pi(i.commands)||e(i);return this._runTask(a,r)}};function e(e){return vi(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 bi,xi=S({"src/lib/tasks/log.ts"(){Jr(),ui(),q(),X(),mi(),bi=(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))(bi||{})}}),Si,Ci,wi=S({"src/lib/responses/MergeSummary.ts"(){Si=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},Ci=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`}}}}),Ti,Ei,Di=S({"src/lib/responses/PullSummary.ts"(){Ti=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},Ei=class{constructor(){this.remote=``,this.hash={local:``,remote:``},this.branch={local:``,remote:``},this.message=``}toString(){return this.message}}}});function Oi(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 ki(e){let t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:N(t&&t[1]||`0`),delta:N(n&&n[1]||`0`)}}var Ai,ji=S({"src/lib/parsers/parse-remote-objects.ts"(){q(),Ai=[new U(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=Oi(e.remoteMessages);Object.assign(i,{[r]:N(n)})}),new U(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=Oi(e.remoteMessages);Object.assign(i,{[r]:N(n)})}),new U(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,n,r])=>{let i=Oi(e.remoteMessages);i.total=ki(t),i.reused=ki(n),i.packReused=N(r)})]}});function Mi(e,t){return K({remoteMessages:new Pi},Ni,t)}var Ni,Pi,Fi=S({"src/lib/parsers/parse-remote-messages.ts"(){q(),ji(),Ni=[new U(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...Ai,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:N(t),summary:n,url:r}})],Pi=class{constructor(){this.all=[]}}}});function Ii(e,t){let n=K(new Ei,Vi,[e,t]);return n.message&&n}var Li,Ri,zi,Bi,Vi,Hi,Ui,Wi=S({"src/lib/parsers/parse-pull.ts"(){Di(),q(),Fi(),Li=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Ri=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,zi=/^(create|delete) mode \d+ (.+)/,Bi=[new H(Li,(e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)}),new H(Ri,(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(zi,(e,[t,n])=>{A(e.files,n),A(t===`create`?e.created:e.deleted,n)})],Vi=[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})],Hi=(e,t)=>K(new Ti,Bi,[e,t]),Ui=(e,t)=>Object.assign(new Ti,Hi(e,t),Mi(e,t))}}),Gi,Ki,qi,Ji=S({"src/lib/parsers/parse-merge.ts"(){wi(),q(),Wi(),Gi=[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 Si(t,n))}),new H(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,n,r])=>{e.conflicts.push(new Si(t,n,{deleteRef:r}))}),new H(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new Si(t,null))}),new H(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Ki=(e,t)=>Object.assign(qi(e,t),Ui(e,t)),qi=e=>K(new Ci,Gi,e)}});function Yi(e){return e.length?{commands:[`merge`,...e],format:`utf-8`,parser(e,t){let n=Ki(e,t);if(n.failed)throw new et(n);return n}}:J(`Git.merge requires at least one option`)}var Xi=S({"src/lib/tasks/merge.ts"(){D(),Ji(),X()}});function Zi(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 Qi,$i,ea,ta=S({"src/lib/parsers/parse-push.ts"(){q(),Fi(),Qi=[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(Zi(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}}})],$i=(e,t)=>{let n=ea(e,t),r=Mi(e,t);return{...n,...r}},ea=(e,t)=>K({pushed:[]},Qi,[e,t])}}),na={};C(na,{pushTagsTask:()=>ra,pushTask:()=>ia});function ra(e={},t){return A(t,`--tags`),ia(e,t)}function ia(e={},t){let n=[`push`,...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),dt(n,`-v`),A(n,`--verbose`),A(n,`--porcelain`),{commands:n,format:`utf-8`,parser:$i}}var aa=S({"src/lib/tasks/push.ts"(){ta(),q()}});function oa(){return{showBuffer(){let e=[`show`,...W(arguments,1)];return e.includes(`--binary`)||e.splice(1,0,`--binary`),this._runTask(rn(e),G(arguments))},show(){let e=[`show`,...W(arguments,1)];return this._runTask(Y(e),G(arguments))}}}var sa=S({"src/lib/tasks/show.ts"(){q(),X()}}),ca,la,ua=S({"src/lib/responses/FileStatusSummary.ts"(){ca=/^(.+)\0(.+)$/,la=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,t===`R`||n===`R`){let t=ca.exec(e)||[null,e,e];this.from=t[2]||``,this.path=t[1]||``}}}}});function da(e){let[t,n]=e.split(I);return{from:n||t,to:t}}function Q(e,t,n){return[`${e}${t}`,n]}function fa(e,...t){return t.map(t=>Q(e,t,(e,t)=>e.conflicted.push(t)))}function pa(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=ha.get(i);a&&a(e,r),i!==`##`&&i!==`!!`&&e.files.push(new la(r,t,n))}}var ma,ha,ga,_a=S({"src/lib/responses/StatusSummary.ts"(){q(),ua(),ma=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}},ha=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(da(t))}),Q(`R`,`M`,(e,t)=>{let n=da(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)),...fa(`A`,`A`,`U`),...fa(`D`,`D`,`U`),...fa(`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=z(s?.[1],V,null),s=a.exec(t),e.tracking=z(s?.[1],V,null),s=o.exec(t),s&&(e.current=z(s?.[1],V,e.current)),e.detached=/\(no branch\)/.test(t)}]]),ga=function(e){let t=e.split(I),n=new ma;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&(r.charAt(0)===`R`&&(r+=I+(t[e++]||``)),pa(n,r))}return n}}});function va(e){return{format:`utf-8`,commands:[`status`,`--porcelain`,`-b`,`-u`,`--null`,...e.filter(e=>!ya.includes(e))],parser(e){return ga(e)}}}var ya,ba=S({"src/lib/tasks/status.ts"(){_a(),ya=[`--null`,`-z`]}});function xa(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 Sa(){return xa(0,0,0,``,!1)}function Ca(){return{version(){return this._runTask({commands:[`--version`],format:`utf-8`,parser:wa,onError(e,t,n,r){if(e.exitCode===-2)return n(Buffer.from(Ta));r(t)}})}}}function wa(e){return e===Ta?Sa():K(xa(0,0,0,e),Ea,e)}var Ta,Ea,Da=S({"src/lib/tasks/version.ts"(){q(),Ta=`installed=false`,Ea=[new H(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,n,r,i=``])=>{Object.assign(e,xa(N(t),N(n),N(r),i))}),new H(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,n,r,i=``])=>{Object.assign(e,xa(N(t),N(n),r,i))})]}});function Oa(e,t,n,...r){return V(n)?t(n,z(r[0],V),W(arguments)):J(`git.${e}() requires a string 'repoPath'`)}function ka(){return{clone(e,...t){return this._runTask(Oa(`clone`,Aa,z(e,V),...t),G(arguments))},mirror(e,...t){return this._runTask(Oa(`mirror`,ja,z(e,V),...t),G(arguments))}}}var Aa,ja,Ma=S({"src/lib/tasks/clone.ts"(){X(),q(),Aa=(e,t,n)=>{let r=[`clone`,...n];return V(e)&&r.push(se(e)),V(t)&&r.push(se(t)),Y(r)},ja=(e,t,n)=>(A(n,`--mirror`),Aa(e,t,n))}}),Na={};C(Na,{SimpleGitApi:()=>Pa});var Pa,Fa=S({"src/lib/simple-git-api.ts"(){gr(),vr(),xr(),Tr(),jr(),Pn(),Nr(),Kn(),Fr(),Wr(),xi(),Xi(),aa(),sa(),ba(),X(),Da(),q(),Ma(),Pa=class{constructor(e){this._executor=e}_runTask(e,t){let n=this._executor.chain(),r=n.push(e);return t&&mr(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`,...j(e)]),G(arguments))}cwd(e){let t=G(arguments);return typeof e==`string`?this._runTask(_r(e,this._executor),t):typeof e?.path==`string`?this._runTask(_r(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(Pr(e,t===!0),G(arguments))}init(e){return this._runTask(Hr(e===!0,this._executor.cwd,W(arguments)),G(arguments))}merge(){return this._runTask(Yi(W(arguments)),G(arguments))}mergeFromTo(e,t){return V(e)&&V(t)?this._runTask(Yi([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=ia({remote:z(arguments[0],V),branch:z(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(va(W(arguments)),G(arguments))}},Object.assign(Pa.prototype,br(),ka(),Ar(),Mn(),Cr(),Mr(),Vn(),yi(),oa(),Ca())}}),Ia={};C(Ia,{Scheduler:()=>Ra});var La,Ra,za=S({"src/lib/runners/scheduler.ts"(){q(),ir(),La=(()=>{let e=0;return()=>{e++;let{promise:t,done:n}=(0,x.createDeferred)();return{promise:t,done:n,id:e}}})(),Ra=class{constructor(e=2){this.concurrency=e,this.logger=rr(``,`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=A(this.running,this.pending.shift());this.logger(`Attempting id=%s`,e.id),e.done(()=>{this.logger(`Completing id=`,e.id),dt(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=A(this.pending,La());return this.logger(`Scheduling id=%s`,t),this.schedule(),e}}}}),Ba={};C(Ba,{applyPatchTask:()=>Va});function Va(e,t){return Y([`apply`,...t,...e])}var Ha=S({"src/lib/tasks/apply-patch.ts"(){X()}});function Ua(e,t){return{branch:e,hash:t,success:!0}}function Wa(e){return{branch:e,hash:null,success:!1}}var Ga,Ka=S({"src/lib/responses/BranchDeleteSummary.ts"(){Ga=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function qa(e,t){return t===1&&Ya.test(e)}var Ja,Ya,Xa,Za,Qa=S({"src/lib/parsers/parse-branch-delete.ts"(){Ka(),q(),Ja=/(\S+)\s+\(\S+\s([^)]+)\)/,Ya=/^error[^']+'([^']+)'/m,Xa=[new H(Ja,(e,[t,n])=>{let r=Ua(t,n);e.all.push(r),e.branches[t]=r}),new H(Ya,(e,[t])=>{let n=Wa(t);e.errors.push(n),e.all.push(n),e.branches[t]=n})],Za=(e,t)=>K(new Ga,Xa,[e,t])}}),$a,eo=S({"src/lib/responses/BranchSummary.ts"(){$a=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 to(e){return e?e.charAt(0):``}function no(e,t=!1){return K(new $a,t?[io]:ro,e)}var ro,io,ao=S({"src/lib/parsers/parse-branch.ts"(){eo(),q(),ro=[new H(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,n,r,i])=>{e.push(to(t),!0,n,r,i)}),new H(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,n,r,i])=>{e.push(to(t),!1,n,r,i)})],io=new H(/^(\S+)$/s,(e,[t])=>{e.push(`*`,!1,t,``,``)})}}),oo={};C(oo,{branchLocalTask:()=>lo,branchTask:()=>co,containsDeleteBranchCommand:()=>so,deleteBranchTask:()=>fo,deleteBranchesTask:()=>uo});function so(e){let t=[`-d`,`-D`,`--delete`];return e.some(e=>t.includes(e))}function co(e){let t=so(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?Za(e,r).all[0]:no(e,n)}}}function lo(){return{format:`utf-8`,commands:[`branch`,`-v`],parser(e){return no(e)}}}function uo(e,t=!1){return{format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,...e],parser(e,t){return Za(e,t)},onError({exitCode:e,stdOut:t},n,r,i){if(!qa(String(n),e))return i(n);r(t)}}}function fo(e,t=!1){let n={format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,e],parser(t,n){return Za(t,n).branches[e]},onError({exitCode:e,stdErr:t,stdOut:r},i,a,o){if(!qa(String(i),e))return o(i);throw new et(n.parser(F(r),F(t)),String(i))}};return n}var po=S({"src/lib/tasks/branch.ts"(){D(),Qa(),ao(),q()}});function mo(e){let t=e.trim().replace(/^["']|["']$/g,``);return t&&a(t)}var ho,go=S({"src/lib/responses/CheckIgnore.ts"(){ho=e=>e.split(/\n/g).map(mo).filter(Boolean)}}),_o={};C(_o,{checkIgnoreTask:()=>vo});function vo(e){return{commands:[`check-ignore`,...e],format:`utf-8`,parser:ho}}var yo=S({"src/lib/tasks/check-ignore.ts"(){go()}});function bo(e,t){return K({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},xo,[e,t])}var xo,So=S({"src/lib/parsers/parse-fetch.ts"(){q(),xo=[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})})]}}),Co={};C(Co,{fetchTask:()=>To});function wo(e){return/^--upload-pack(=|$)/.test(e)}function To(e,t,n){let r=[`fetch`,...n];return e&&t&&r.push(e,t),r.find(wo)?J(`git.fetch: potential exploit argument blocked.`):{commands:r,format:`utf-8`,parser:bo}}var Eo=S({"src/lib/tasks/fetch.ts"(){So(),X()}});function Do(e){return K({moves:[]},Oo,e)}var Oo,ko=S({"src/lib/parsers/parse-move.ts"(){q(),Oo=[new H(/^Renaming (.+) to (.+)$/,(e,[t,n])=>{e.moves.push({from:t,to:n})})]}}),Ao={};C(Ao,{moveTask:()=>jo});function jo(e,t){return{commands:[`mv`,`-v`,...j(e),t],format:`utf-8`,parser:Do}}var Mo=S({"src/lib/tasks/move.ts"(){ko(),q()}}),No={};C(No,{pullTask:()=>Po});function Po(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 Ui(e,t)},onError(e,t,n,r){let i=Ii(F(e.stdOut),F(e.stdErr));if(i)return r(new et(i));r(t)}}}var Fo=S({"src/lib/tasks/pull.ts"(){D(),Wi(),q()}});function Io(e){let t={};return Ro(e,([e])=>t[e]={name:e}),Object.values(t)}function Lo(e){let t={};return Ro(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 Ro(e,t){ct(e,e=>t(e.split(/\s+/)))}var zo=S({"src/lib/responses/GetRemoteSummary.ts"(){q()}}),Bo={};C(Bo,{addRemoteTask:()=>Vo,getRemotesTask:()=>Ho,listRemotesTask:()=>Uo,remoteTask:()=>Wo,removeRemoteTask:()=>Go});function Vo(e,t,n){return Y([`remote`,`add`,...n,e,t])}function Ho(e){let t=[`remote`];return e&&t.push(`-v`),{commands:t,format:`utf-8`,parser:e?Lo:Io}}function Uo(e){let t=[...e];return t[0]!==`ls-remote`&&t.unshift(`ls-remote`),Y(t)}function Wo(e){let t=[...e];return t[0]!==`remote`&&t.unshift(`remote`),Y(t)}function Go(e){return Y([`remote`,`remove`,e])}var Ko=S({"src/lib/tasks/remote.ts"(){zo(),X()}}),qo={};C(qo,{stashListTask:()=>Jo});function Jo(e={},t){let n=_i(e),r=[`stash`,`list`,...n.commands,...t],i=ai(n.splitter,n.fields,Gr(r));return pi(r)||{commands:r,format:`utf-8`,parser:i}}var Yo=S({"src/lib/tasks/stash-list.ts"(){Jr(),ui(),mi(),xi()}}),Xo={};C(Xo,{addSubModuleTask:()=>Zo,initSubModuleTask:()=>Qo,subModuleTask:()=>$o,updateSubModuleTask:()=>es});function Zo(e,t){return $o([`add`,e,t])}function Qo(e){return $o([`init`,...e])}function $o(e){let t=[...e];return t[0]!==`submodule`&&t.unshift(`submodule`),Y(t)}function es(e){return $o([`update`,...e])}var ts=S({"src/lib/tasks/sub-module.ts"(){X()}});function ns(e,t){let n=Number.isNaN(e);return n===Number.isNaN(t)?n?rs(e,t):0:n?1:-1}function rs(e,t){return e===t?0:e>t?1:-1}function is(e){return e.trim()}function as(e){return typeof e==`string`&&parseInt(e.replace(/^\D+/g,``),10)||0}var os,ss,cs=S({"src/lib/responses/TagList.ts"(){os=class{constructor(e,t){this.all=e,this.latest=t}},ss=function(e,t=!1){let n=e.split(`
|
|
9
|
+
`).map(is).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return ns(as(n[0]),as(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=rs(as(n[e]),as(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new os(n,r)}}}),ls={};C(ls,{addAnnotatedTagTask:()=>fs,addTagTask:()=>ds,tagListTask:()=>us});function us(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return ss(e,t)}}}function ds(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function fs(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var ps=S({"src/lib/tasks/tag.ts"(){cs()}}),ms=Qe({"src/git.js"(e,t){var{GitExecutor:n}=(pr(),w(dr)),{SimpleGitApi:r}=(Fa(),w(Na)),{Scheduler:i}=(za(),w(Ia)),{adhocExecTask:a,configurationErrorTask:o}=(X(),w(tn)),{asArray:s,filterArray:c,filterPrimitives:l,filterString:u,filterStringOrStringArray:d,filterType:f,getTrailingOptions:p,trailingFunctionArgument:m,trailingOptionsArgument:ee}=(q(),w(zt)),{applyPatchTask:te}=(Ha(),w(Ba)),{branchTask:ne,branchLocalTask:re,deleteBranchesTask:ie,deleteBranchTask:ae}=(po(),w(oo)),{checkIgnoreTask:oe}=(yo(),w(_o)),{checkIsRepoTask:se}=(Jt(),w(Bt)),{cleanWithOptionsTask:h,isCleanOptionsArray:ce}=(xn(),w(cn)),{diffSummaryTask:le}=(mi(),w(di)),{fetchTask:ue}=(Eo(),w(Co)),{moveTask:de}=(Mo(),w(Ao)),{pullTask:fe}=(Fo(),w(No)),{pushTagsTask:pe}=(aa(),w(na)),{addRemoteTask:me,getRemotesTask:he,listRemotesTask:g,remoteTask:ge,removeRemoteTask:_e}=(Ko(),w(Bo)),{getResetMode:ve,resetTask:ye}=($n(),w(qn)),{stashListTask:be}=(Yo(),w(qo)),{addSubModuleTask:xe,initSubModuleTask:Se,subModuleTask:Ce,updateSubModuleTask:we}=(ts(),w(Xo)),{addAnnotatedTagTask:Te,addTagTask:Ee,tagListTask:De}=(ps(),w(ls)),{straightThroughBufferTask:Oe,straightThroughStringTask:_}=(X(),w(tn));function v(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(v.prototype=Object.create(r.prototype)).constructor=v,v.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},v.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},v.prototype.stashList=function(e){return this._runTask(be(ee(arguments)||{},c(e)&&e||[]),m(arguments))},v.prototype.mv=function(e,t){return this._runTask(de(e,t),m(arguments))},v.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},v.prototype.pull=function(e,t,n,r){return this._runTask(fe(f(e,u),f(t,u),p(arguments)),m(arguments))},v.prototype.fetch=function(e,t){return this._runTask(ue(f(e,u),f(t,u),p(arguments)),m(arguments))},v.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.")))},v.prototype.tags=function(e,t){return this._runTask(De(p(arguments)),m(arguments))},v.prototype.rebase=function(){return this._runTask(_([`rebase`,...p(arguments)]),m(arguments))},v.prototype.reset=function(e){return this._runTask(ye(ve(e),p(arguments)),m(arguments))},v.prototype.revert=function(e){let t=m(arguments);return typeof e==`string`?this._runTask(_([`revert`,...p(arguments,0,!0),e]),t):this._runTask(o(`Commit must be a string`),t)},v.prototype.addTag=function(e){let t=typeof e==`string`?Ee(e):o(`Git.addTag requires a tag name`);return this._runTask(t,m(arguments))},v.prototype.addAnnotatedTag=function(e,t){return this._runTask(Te(e,t),m(arguments))},v.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(ae(e,typeof t==`boolean`?t:!1),m(arguments))},v.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(ie(e,typeof t==`boolean`?t:!1),m(arguments))},v.prototype.branch=function(e,t){return this._runTask(ne(p(arguments)),m(arguments))},v.prototype.branchLocal=function(e){return this._runTask(re(),m(arguments))},v.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(_(n,this._trimmed),r):this._runTask(o(`Raw: must supply one or more command to execute`),r)},v.prototype.submoduleAdd=function(e,t,n){return this._runTask(xe(e,t),m(arguments))},v.prototype.submoduleUpdate=function(e,t){return this._runTask(we(p(arguments,!0)),m(arguments))},v.prototype.submoduleInit=function(e,t){return this._runTask(Se(p(arguments,!0)),m(arguments))},v.prototype.subModule=function(e,t){return this._runTask(Ce(p(arguments)),m(arguments))},v.prototype.listRemote=function(){return this._runTask(g(p(arguments)),m(arguments))},v.prototype.addRemote=function(e,t,n){return this._runTask(me(e,t,p(arguments)),m(arguments))},v.prototype.removeRemote=function(e,t){return this._runTask(_e(e),m(arguments))},v.prototype.getRemotes=function(e,t){return this._runTask(he(e===!0),m(arguments))},v.prototype.remote=function(e,t){return this._runTask(ge(p(arguments)),m(arguments))},v.prototype.tag=function(e,t){let n=p(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(_(n),m(arguments))},v.prototype.updateServerInfo=function(e){return this._runTask(_([`update-server-info`]),m(arguments))},v.prototype.pushTags=function(e,t){let n=pe({remote:f(e,u)},p(arguments));return this._runTask(n,m(arguments))},v.prototype.rm=function(e){return this._runTask(_([`rm`,`-f`,...s(e)]),m(arguments))},v.prototype.rmKeepLocal=function(e){return this._runTask(_([`rm`,`--cached`,...s(e)]),m(arguments))},v.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},v.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},v.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`?Oe(r):_(r);return this._runTask(a,n)},v.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`):_([`diff`,...p(arguments)]);return this._runTask(n,m(arguments))},v.prototype.diffSummary=function(){return this._runTask(le(p(arguments,1)),m(arguments))},v.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))},v.prototype.revparse=function(){let e=[`rev-parse`,...p(arguments,!0)];return this._runTask(_(e,!0),m(arguments))},v.prototype.clean=function(e,t,n){let r=ce(e),i=r&&e.join(``)||f(e,u)||``,a=p([].slice.call(arguments,r?1:0));return this._runTask(h(i,a),m(arguments))},v.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},v.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.`)))},v.prototype.checkIgnore=function(e,t){return this._runTask(oe(s(f(e,d,[]))),m(arguments))},v.prototype.checkIsRepo=function(e,t){return this._runTask(se(f(e,u)),m(arguments))},t.exports=v}});E();var hs=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)}};D(),nt(),Jt(),xn(),Pn(),Rn(),Kn(),$n();function gs(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 _s(e={}){return{type:`spawn.args`,action(t,{env:n}){for(let r of Ge(t,n))if(e[r.category]!==!0)throw new $(void 0,`unsafe`,r.message);return t}}}q();function vs(e){let t=P(e,`-c`);return{type:`spawn.args`,action(e){return[...t,...e]}}}q();var ys=(0,x.deferred)().promise;function bs({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?ys:i.closeTimeout.promise,t===!1?ys: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(()=>mt(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 mt(50),r(i.exitCode)}catch(e){r(i.exitCode,e)}}}}q();var xs=`Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`,Ss=`Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;function Cs(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(e)}function ws(e,t){if(e.length<1||e.length>2)throw new $(void 0,`binary`,xs);if(e.some(Cs))if(t)console.warn(Ss);else throw new $(void 0,`binary`,Ss);let[n,r]=e;return{binary:n,prefix:r}}function Ts(e,t=[`git`],n=!1){let r=ws(j(t),n);e.on(`binary`,e=>{r=ws(j(e),n)}),e.append(`spawn.binary`,()=>r.binary),e.append(`spawn.args`,e=>r.prefix?[r.prefix,...e]:e)}E();function Es(e){return!!(e.exitCode&&e.stdErr.length)}function Ds(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Os(e=!1,t=Es,n=Ds){return(r,i)=>!e&&r||!t(i)?r:n(i)}function ks(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 As=class{constructor(){this.plugins=new Set,this.events=new d}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let n=A(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){let t=[];return j(e).forEach(e=>e&&this.plugins.add(A(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 js(e){let t=`--progress`,n=[`checkout`,`clone`,`fetch`,`pull`,`push`];return[{type:`spawn.args`,action(e,r){return n.includes(r.method)?ut(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:Ms(n[1]),progress:N(n[2]),processed:N(n[3]),total:N(n[4])})})}}]}function Ms(e){return String(e.toLowerCase().split(` `,1))||`unknown`}q();function Ns(e){let t=pt(e,[`uid`,`gid`]);return{type:`spawn.options`,action(e){return{...t,...e}}}}function Ps({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 Fs(){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(ce(i));continue}if(i===`--`){r(e.slice(n+1).flatMap(e=>h(e)&&ce(e)||e));break}t.push(i)}return n?[...t,`--`,...n.map(String)]:t}}}q();var Is=ms();function Ls(e,t){let n=new As,r=At(e&&(typeof e==`string`?{baseDir:e}:e)||{},t);if(!lt(r.baseDir))throw new hs(r,`Cannot use simple-git on a directory that does not exist`);return Array.isArray(r.config)&&n.add(vs(r.config)),n.add(_s(r.unsafe)),n.add(bs(r.completion)),r.abort&&n.add(gs(r.abort)),r.progress&&n.add(js(r.progress)),r.timeout&&n.add(Ps(r.timeout)),r.spawnOptions&&n.add(Ns(r.spawnOptions)),n.add(Fs()),n.add(ks(Os(!0))),r.errors&&n.add(ks(r.errors)),Ts(n,r.binary,r.unsafe?.allowUnsafeCustomBinary),new Is(r,n)}D();var Rs=Ls,zs=Ls;const Bs=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function Vs(e){return Bs.enqueue(e)}function Hs(e){try{return s(e)&&c(e).isDirectory()}catch{return!1}}const Us=[`HOME`,`USERPROFILE`,`HOMEDRIVE`,`HOMEPATH`,`APPDATA`,`LOCALAPPDATA`,`ProgramData`,`ALLUSERSPROFILE`,`SystemRoot`,`WINDIR`,`windir`,`ComSpec`,`TEMP`,`TMP`,`USERNAME`,`USERDOMAIN`,`PATHEXT`,`SSH_AUTH_SOCK`,`ELECTRON_RUN_AS_NODE`];function Ws(e){let t={LANG:`C`,LC_ALL:`C`,GIT_TERMINAL_PROMPT:`0`,GIT_MERGE_AUTOEDIT:`no`};t.PATH=r(process.env.PATH??process.env.Path,{platform:process.platform,homeDir:l(),isDir:Hs,delimiter:i});for(let e of Us){let n=process.env[e];n!==void 0&&(t[e]=n)}return e&&(t.OK_GH_TOKEN=e.token,t.OK_GH_TOKEN_HOST=e.host),t}function Gs(e,t){let n={...e.env};for(let[e,r]of Object.entries(t))r!==void 0&&(n[e]=r);return e.git.env(n)}function Ks(e,t={}){let{credentialArgs:n=[],gitIndexFile:r,ghToken:i,timeoutMs:a}=t,s=Ws(i);return r&&(s.GIT_INDEX_FILE=o(e,r)),{git:zs({baseDir:e,config:[`commit.gpgsign=false`,`core.autocrlf=false`,...n.length>=2?[n[1]]:[]],unsafe:{allowUnsafeCredentialHelper:!0},...a===void 0?{}:{timeout:{block:a}}}).env(s),projectDir:e,credentialArgs:n,env:s}}export{Rs as a,zs as i,Ks as n,re as o,Vs as r,Gs as t};
|
|
10
|
+
//# sourceMappingURL=git-handle-dKyep_oZ-vn8B9Tc8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-K5T4RW27-DLjwaibC.mjs";import{n as e}from"./chunk-67CJDMHE-CrUJnyQp.mjs";export{e as createGitGraphServices};
|
package/dist/{gitGraphDiagram-UUTBAWPF-dC1IPshv.mjs → gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as e,p as t,w as n}from"./src-DC_BCes_.mjs";import{B as r,C as i,V as a,W as o,_ as s,a as c,b as l,d as u,q as d,s as f,v as p,y as m}from"./chunk-ICPOFSXX-C2hDlKD_.mjs";import{h,p as g,r as _}from"./chunk-5PVQY5BW-_JlgOiAb.mjs";import{t as v}from"./chunk-4BX2VUAB-BXGPfnwm.mjs";import{t as y}from"./mermaid-parser.core-DqKkkvo5.mjs";import{t as b}from"./chunk-QZHKN3VN-CczpYV_w.mjs";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=u.gitGraph,S=n(()=>_({...ee,...m().gitGraph}),`getConfig`),C=new b(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return g({length:7})}n(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}n(T,`uniqBy`);var te=n(function(e){C.records.direction=e},`setDirection`),ne=n(function(t){e.debug(`options str`,t),t=t?.trim(),t||=`{}`;try{C.records.options=JSON.parse(t)}catch(t){e.error(`error while parsing gitGraph options`,t.message)}},`setOptions`),re=n(function(){return C.records.options},`getOptions`),ie=n(function(t){let n=t.msg,r=t.id,i=t.type,a=t.tags;e.info(`commit`,n,r,i,a),e.debug(`Entering commit:`,n,r,i,a);let o=S();r=f.sanitizeText(r,o),n=f.sanitizeText(n,o),a=a?.map(e=>f.sanitizeText(e,o));let s={id:r||C.records.seq+`-`+w(),message:n,seq:C.records.seq++,type:i??x.NORMAL,tags:a??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=s,e.info(`main branch`,o.mainBranchName),C.records.commits.has(s.id)&&e.warn(`Commit ID ${s.id} already exists`),C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),e.debug(`in pushCommit `+s.id)},`commit`),ae=n(function(t){let n=t.name,r=t.order;if(n=f.sanitizeText(n,S()),C.records.branches.has(n))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${n}")`);C.records.branches.set(n,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(n,{name:n,order:r}),E(n),e.debug(`in createBranch`)},`branch`),oe=n(t=>{let n=t.branch,r=t.id,i=t.type,a=t.tags,o=S();n=f.sanitizeText(n,o),r&&=f.sanitizeText(r,o);let s=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(n),l=s?C.records.commits.get(s):void 0,u=c?C.records.commits.get(c):void 0;if(l&&u&&l.branch===n)throw Error(`Cannot merge branch '${n}' into itself.`);if(C.records.currBranch===n){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`commit`]},e}if(!C.records.branches.has(n)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+n+`) does not exist`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch ${n}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+n+`) has no commits`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch abc`]},e}if(r&&C.records.commits.has(r)){let e=Error(`Incorrect usage of "merge". Commit with id:`+r+` already exists, use different custom id`);throw e.hash={text:`merge ${n} ${r} ${i} ${a?.join(` `)}`,token:`merge ${n} ${r} ${i} ${a?.join(` `)}`,expected:[`merge ${n} ${r}_UNIQUE ${i} ${a?.join(` `)}`]},e}let d=c||``,p={id:r||`${C.records.seq}-${w()}`,message:`merged branch ${n} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,d],branch:C.records.currBranch,type:x.MERGE,customType:i,customId:!!r,tags:a??[]};C.records.head=p,C.records.commits.set(p.id,p),C.records.branches.set(C.records.currBranch,p.id),e.debug(C.records.branches),e.debug(`in mergeBranch`)},`merge`),se=n(function(t){let n=t.id,r=t.targetId,i=t.tags,a=t.parent;e.debug(`Entering cherryPick:`,n,r,i);let o=S();if(n=f.sanitizeText(n,o),r=f.sanitizeText(r,o),i=i?.map(e=>f.sanitizeText(e,o)),a=f.sanitizeText(a,o),!n||!C.records.commits.has(n)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let s=C.records.commits.get(n);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===x.MERGE&&!a)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!r||!C.records.commits.has(r)){if(c===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let t=C.records.branches.get(C.records.currBranch);if(t===void 0||!t){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(t);if(o===void 0||!o){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let l={id:C.records.seq+`-`+w(),message:`cherry-picked ${s?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,s.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${s.id}${s.type===x.MERGE?`|parent:${a}`:``}`]};C.records.head=l,C.records.commits.set(l.id,l),C.records.branches.set(C.records.currBranch,l.id),e.debug(C.records.branches),e.debug(`in cherryPick`)}},`cherryPick`),E=n(function(e){if(e=f.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}n(D,`upsert`);function O(t){let n=t.reduce((e,t)=>e.seq>t.seq?e:t,t[0]),r=``;t.forEach(function(e){e===n?r+=` *`:r+=` |`});let i=[r,n.id,n.seq];for(let e in C.records.branches)C.records.branches.get(e)===n.id&&i.push(e);if(e.debug(i.join(` `)),n.parents&&n.parents.length==2&&n.parents[0]&&n.parents[1]){let e=C.records.commits.get(n.parents[0]);D(t,n,e),n.parents[1]&&t.push(C.records.commits.get(n.parents[1]))}else if(n.parents.length==0)return;else if(n.parents[0]){let e=C.records.commits.get(n.parents[0]);D(t,n,e)}t=T(t,e=>e.id),O(t)}n(O,`prettyPrintCommitHistory`);var ce=n(function(){e.debug(C.records.commits);let t=k()[0];O([t])},`prettyPrint`),le=n(function(){C.reset(),c()},`clear`),ue=n(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=n(function(){return C.records.branches},`getBranches`),fe=n(function(){return C.records.commits},`getCommits`),k=n(function(){let t=[...C.records.commits.values()];return t.forEach(function(t){e.debug(t.id)}),t.sort((e,t)=>e.seq-t.seq),t},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:n(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:n(function(){return C.records.direction},`getDirection`),getHead:n(function(){return C.records.head},`getHead`),setAccTitle:a,getAccTitle:p,getAccDescription:s,setAccDescription:r,setDiagramTitle:o,getDiagramTitle:i},pe=n((e,t)=>{v(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)me(n,t)},`populate`),me=n((t,r)=>{let i={Commit:n(e=>r.commit(he(e)),`Commit`),Branch:n(e=>r.branch(ge(e)),`Branch`),Merge:n(e=>r.merge(_e(e)),`Merge`),Checkout:n(e=>r.checkout(ve(e)),`Checkout`),CherryPicking:n(e=>r.cherryPick(ye(e)),`CherryPicking`)}[t.$type];i?i(t):e.error(`Unknown statement type: ${t.$type}`)},`parseStatement`),he=n(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=n(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=n(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=n(e=>e.branch,`parseCheckout`),ye=n(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:n(async t=>{let n=await y(`gitGraph`,t);e.debug(n),pe(n,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=n((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,Se=n(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=n(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=n(e=>{let t,r,i;return K===`BT`?(r=n((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=n((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{let n=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;n!==void 0&&r(n,i)&&(t=e,i=n)}),t},`findClosestParent`),Ce=n(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),we=n((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Ee(n),i=Math.max(r,i)):a.push(n),De(n,r)}),r=i,a.forEach(e=>{Oe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Ce(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),Te=n(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Ee=n(e=>Te(e)+M,`calculateCommitPosition`),De=n((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),Oe=n((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),ke=n((e,t,n,r,i,a)=>{let{theme:o}=l(),s=I.has(o??``),c=R.has(o??``),u=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),Ae=n((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel))if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),je=n((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
1
|
+
import{T as e,p as t,w as n}from"./src-BGL-MlNN.mjs";import{B as r,C as i,V as a,W as o,_ as s,a as c,b as l,d as u,q as d,s as f,v as p,y as m}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{h,p as g,r as _}from"./chunk-5PVQY5BW-CM3DDgan.mjs";import{t as v}from"./chunk-4BX2VUAB-CeLVr99T.mjs";import{t as y}from"./mermaid-parser.core-C4HPipkF.mjs";import{t as b}from"./chunk-QZHKN3VN-4LgLml-S.mjs";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=u.gitGraph,S=n(()=>_({...ee,...m().gitGraph}),`getConfig`),C=new b(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return g({length:7})}n(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}n(T,`uniqBy`);var te=n(function(e){C.records.direction=e},`setDirection`),ne=n(function(t){e.debug(`options str`,t),t=t?.trim(),t||=`{}`;try{C.records.options=JSON.parse(t)}catch(t){e.error(`error while parsing gitGraph options`,t.message)}},`setOptions`),re=n(function(){return C.records.options},`getOptions`),ie=n(function(t){let n=t.msg,r=t.id,i=t.type,a=t.tags;e.info(`commit`,n,r,i,a),e.debug(`Entering commit:`,n,r,i,a);let o=S();r=f.sanitizeText(r,o),n=f.sanitizeText(n,o),a=a?.map(e=>f.sanitizeText(e,o));let s={id:r||C.records.seq+`-`+w(),message:n,seq:C.records.seq++,type:i??x.NORMAL,tags:a??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=s,e.info(`main branch`,o.mainBranchName),C.records.commits.has(s.id)&&e.warn(`Commit ID ${s.id} already exists`),C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),e.debug(`in pushCommit `+s.id)},`commit`),ae=n(function(t){let n=t.name,r=t.order;if(n=f.sanitizeText(n,S()),C.records.branches.has(n))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${n}")`);C.records.branches.set(n,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(n,{name:n,order:r}),E(n),e.debug(`in createBranch`)},`branch`),oe=n(t=>{let n=t.branch,r=t.id,i=t.type,a=t.tags,o=S();n=f.sanitizeText(n,o),r&&=f.sanitizeText(r,o);let s=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(n),l=s?C.records.commits.get(s):void 0,u=c?C.records.commits.get(c):void 0;if(l&&u&&l.branch===n)throw Error(`Cannot merge branch '${n}' into itself.`);if(C.records.currBranch===n){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`commit`]},e}if(!C.records.branches.has(n)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+n+`) does not exist`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch ${n}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+n+`) has no commits`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch abc`]},e}if(r&&C.records.commits.has(r)){let e=Error(`Incorrect usage of "merge". Commit with id:`+r+` already exists, use different custom id`);throw e.hash={text:`merge ${n} ${r} ${i} ${a?.join(` `)}`,token:`merge ${n} ${r} ${i} ${a?.join(` `)}`,expected:[`merge ${n} ${r}_UNIQUE ${i} ${a?.join(` `)}`]},e}let d=c||``,p={id:r||`${C.records.seq}-${w()}`,message:`merged branch ${n} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,d],branch:C.records.currBranch,type:x.MERGE,customType:i,customId:!!r,tags:a??[]};C.records.head=p,C.records.commits.set(p.id,p),C.records.branches.set(C.records.currBranch,p.id),e.debug(C.records.branches),e.debug(`in mergeBranch`)},`merge`),se=n(function(t){let n=t.id,r=t.targetId,i=t.tags,a=t.parent;e.debug(`Entering cherryPick:`,n,r,i);let o=S();if(n=f.sanitizeText(n,o),r=f.sanitizeText(r,o),i=i?.map(e=>f.sanitizeText(e,o)),a=f.sanitizeText(a,o),!n||!C.records.commits.has(n)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let s=C.records.commits.get(n);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===x.MERGE&&!a)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!r||!C.records.commits.has(r)){if(c===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let t=C.records.branches.get(C.records.currBranch);if(t===void 0||!t){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(t);if(o===void 0||!o){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let l={id:C.records.seq+`-`+w(),message:`cherry-picked ${s?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,s.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${s.id}${s.type===x.MERGE?`|parent:${a}`:``}`]};C.records.head=l,C.records.commits.set(l.id,l),C.records.branches.set(C.records.currBranch,l.id),e.debug(C.records.branches),e.debug(`in cherryPick`)}},`cherryPick`),E=n(function(e){if(e=f.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}n(D,`upsert`);function O(t){let n=t.reduce((e,t)=>e.seq>t.seq?e:t,t[0]),r=``;t.forEach(function(e){e===n?r+=` *`:r+=` |`});let i=[r,n.id,n.seq];for(let e in C.records.branches)C.records.branches.get(e)===n.id&&i.push(e);if(e.debug(i.join(` `)),n.parents&&n.parents.length==2&&n.parents[0]&&n.parents[1]){let e=C.records.commits.get(n.parents[0]);D(t,n,e),n.parents[1]&&t.push(C.records.commits.get(n.parents[1]))}else if(n.parents.length==0)return;else if(n.parents[0]){let e=C.records.commits.get(n.parents[0]);D(t,n,e)}t=T(t,e=>e.id),O(t)}n(O,`prettyPrintCommitHistory`);var ce=n(function(){e.debug(C.records.commits);let t=k()[0];O([t])},`prettyPrint`),le=n(function(){C.reset(),c()},`clear`),ue=n(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=n(function(){return C.records.branches},`getBranches`),fe=n(function(){return C.records.commits},`getCommits`),k=n(function(){let t=[...C.records.commits.values()];return t.forEach(function(t){e.debug(t.id)}),t.sort((e,t)=>e.seq-t.seq),t},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:n(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:n(function(){return C.records.direction},`getDirection`),getHead:n(function(){return C.records.head},`getHead`),setAccTitle:a,getAccTitle:p,getAccDescription:s,setAccDescription:r,setDiagramTitle:o,getDiagramTitle:i},pe=n((e,t)=>{v(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)me(n,t)},`populate`),me=n((t,r)=>{let i={Commit:n(e=>r.commit(he(e)),`Commit`),Branch:n(e=>r.branch(ge(e)),`Branch`),Merge:n(e=>r.merge(_e(e)),`Merge`),Checkout:n(e=>r.checkout(ve(e)),`Checkout`),CherryPicking:n(e=>r.cherryPick(ye(e)),`CherryPicking`)}[t.$type];i?i(t):e.error(`Unknown statement type: ${t.$type}`)},`parseStatement`),he=n(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=n(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=n(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=n(e=>e.branch,`parseCheckout`),ye=n(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:n(async t=>{let n=await y(`gitGraph`,t);e.debug(n),pe(n,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=n((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,Se=n(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=n(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=n(e=>{let t,r,i;return K===`BT`?(r=n((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=n((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{let n=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;n!==void 0&&r(n,i)&&(t=e,i=n)}),t},`findClosestParent`),Ce=n(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),we=n((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Ee(n),i=Math.max(r,i)):a.push(n),De(n,r)}),r=i,a.forEach(e=>{Oe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Ce(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),Te=n(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Ee=n(e=>Te(e)+M,`calculateCommitPosition`),De=n((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),Oe=n((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),ke=n((e,t,n,r,i,a)=>{let{theme:o}=l(),s=I.has(o??``),c=R.has(o??``),u=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),Ae=n((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel))if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),je=n((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
2
|
${r-a/2-N/2},${l+P}
|
|
3
3
|
${r-a/2-N/2},${l-P}
|
|
4
4
|
${n.posWithOffset-a/2-N},${l-s-P}
|
|
@@ -104,4 +104,4 @@ import{T as e,p as t,w as n}from"./src-DC_BCes_.mjs";import{B as r,C as i,V as a
|
|
|
104
104
|
fill: ${e.textColor};
|
|
105
105
|
}
|
|
106
106
|
`},`getStyles`)};export{qe as diagram};
|
|
107
|
-
//# sourceMappingURL=gitGraphDiagram-UUTBAWPF-
|
|
107
|
+
//# sourceMappingURL=gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,T as r,a as i,b as a,c as o,i as s,n as c,s as l,t as u,w as d,x as f}from"./reduce-
|
|
2
|
-
//# sourceMappingURL=graphlib-
|
|
1
|
+
import{C as e,E as t,S as n,T as r,a as i,b as a,c as o,i as s,n as c,s as l,t as u,w as d,x as f}from"./reduce-KkqmWdsg.mjs";import{C as p,E as m,g as ee,h,l as g,p as te,u as _,v,w as ne}from"./_baseFor-CMmZqlg4.mjs";import{n as y,t as b}from"./isEmpty-B_hy4b7A.mjs";import{A as re,C as x,D as S,E as ie,M as ae,O as oe,T as se,j as C,k as ce,w,x as T,y as le}from"./chunk-5PVQY5BW-CM3DDgan.mjs";function ue(e,t){return e&&w(t,f(t),e)}function de(e,t){return e&&w(t,x(t),e)}function fe(e,t){return w(e,n(e),t)}var E=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,n(e)),e=oe(e);return t}:e;function pe(e,t){return w(e,E(e),t)}function me(e){return d(e,x,E)}var he=Object.prototype.hasOwnProperty;function ge(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&he.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function _e(e,t){var n=t?C(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var D=/\w*$/;function O(e){var t=new e.constructor(e.source,D.exec(e));return t.lastIndex=e.lastIndex,t}var k=m?m.prototype:void 0,A=k?k.valueOf:void 0;function j(e){return A?Object(A.call(e)):{}}var M=`[object Boolean]`,N=`[object Date]`,P=`[object Map]`,F=`[object Number]`,I=`[object RegExp]`,ve=`[object Set]`,ye=`[object String]`,be=`[object Symbol]`,xe=`[object ArrayBuffer]`,Se=`[object DataView]`,Ce=`[object Float32Array]`,we=`[object Float64Array]`,Te=`[object Int8Array]`,Ee=`[object Int16Array]`,De=`[object Int32Array]`,Oe=`[object Uint8Array]`,ke=`[object Uint8ClampedArray]`,Ae=`[object Uint16Array]`,je=`[object Uint32Array]`;function Me(e,t,n){var r=e.constructor;switch(t){case xe:return C(e);case M:case N:return new r(+e);case Se:return _e(e,n);case Ce:case we:case Te:case Ee:case De:case Oe:case ke:case Ae:case je:return re(e,n);case P:return new r;case F:case ye:return new r(e);case I:return O(e);case ve:return new r;case be:return j(e)}}var Ne=`[object Map]`;function Pe(e){return h(e)&&y(e)==Ne}var L=g&&g.isMap,Fe=L?_(L):Pe,Ie=`[object Set]`;function Le(e){return h(e)&&y(e)==Ie}var R=g&&g.isSet,Re=R?_(R):Le,ze=1,Be=2,Ve=4,z=`[object Arguments]`,He=`[object Array]`,Ue=`[object Boolean]`,We=`[object Date]`,Ge=`[object Error]`,B=`[object Function]`,Ke=`[object GeneratorFunction]`,qe=`[object Map]`,Je=`[object Number]`,V=`[object Object]`,Ye=`[object RegExp]`,Xe=`[object Set]`,Ze=`[object String]`,Qe=`[object Symbol]`,$e=`[object WeakMap]`,et=`[object ArrayBuffer]`,tt=`[object DataView]`,nt=`[object Float32Array]`,rt=`[object Float64Array]`,it=`[object Int8Array]`,at=`[object Int16Array]`,ot=`[object Int32Array]`,st=`[object Uint8Array]`,ct=`[object Uint8ClampedArray]`,lt=`[object Uint16Array]`,ut=`[object Uint32Array]`,H={};H[z]=H[He]=H[et]=H[tt]=H[Ue]=H[We]=H[nt]=H[rt]=H[it]=H[at]=H[ot]=H[qe]=H[Je]=H[V]=H[Ye]=H[Xe]=H[Ze]=H[Qe]=H[st]=H[ct]=H[lt]=H[ut]=!0,H[Ge]=H[B]=H[$e]=!1;function U(e,t,n,r,i,o){var c,l=t&ze,u=t&Be,d=t&Ve;if(n&&(c=i?n(e,r,i,o):n(e)),c!==void 0)return c;if(!ne(e))return e;var p=ee(e);if(p){if(c=ge(e),!l)return ce(e,c)}else{var m=y(e),h=m==B||m==Ke;if(te(e))return ae(e,l);if(m==V||m==z||h&&!i){if(c=u||h?{}:S(e),!l)return u?pe(e,de(c,e)):fe(e,ue(c,e))}else{if(!H[m])return i?e:{};c=Me(e,m,l)}}o||=new v;var g=o.get(e);if(g)return g;o.set(e,c),Re(e)?e.forEach(function(r){c.add(U(r,t,n,r,e,o))}):Fe(e)&&e.forEach(function(r,i){c.set(i,U(r,t,n,i,e,o))});var _=p?void 0:(d?u?me:a:u?x:f)(e);return s(_||e,function(r,i){_&&(i=r,r=e[i]),se(c,i,U(r,t,n,i,e,o))}),c}function W(e,n){return t(n,function(t){return e[t]})}function G(e){return e==null?[]:W(e,f(e))}function K(e){return e===void 0}var dt=le(function(e){return i(l(e,1,ie,!0))}),ft=`\0`,q=`\0`,J=``,Y=class{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,`directed`)?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=T(void 0),this._defaultEdgeLabelFn=T(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[q]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return p(e)||(e=T(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return f(this._nodes)}sources(){var e=this;return o(this.nodes(),function(t){return b(e._in[t])})}sinks(){var e=this;return o(this.nodes(),function(t){return b(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return c(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=q,this._children[e]={},this._children[q][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),c(f(this._in[e]),t),delete this._in[e],delete this._preds[e],c(f(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(K(t))t=q;else{t+=``;for(var n=t;!K(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==q)return t}}children(e){if(K(e)&&(e=q),this._isCompound){var t=this._children[e];if(t)return f(t)}else if(e===q)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return f(t)}successors(e){var t=this._sucs[e];if(t)return f(t)}neighbors(e){var t=this.predecessors(e);if(t)return dt(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;c(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),c(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&c(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return p(e)||(e=T(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return G(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return u(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,K(n)||(n=``+n);var o=Q(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!K(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=pt(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,X(this._preds[t],e),X(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?$(this._isDirected,arguments[0]):Q(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?$(this._isDirected,arguments[0]):Q(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?$(this._isDirected,arguments[0]):Q(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],Z(this._preds[t],e),Z(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=G(n);return t?o(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=G(n);return t?o(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}};Y.prototype._nodeCount=0,Y.prototype._edgeCount=0;function X(e,t){e[t]?e[t]++:e[t]=1}function Z(e,t){--e[t]||delete e[t]}function Q(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+J+a+J+(K(r)?ft:r)}function pt(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function $(e,t){return Q(e,t.v,t.w,t.name)}export{U as i,K as n,G as r,Y as t};
|
|
2
|
+
//# sourceMappingURL=graphlib-C8GlDNIO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-B74TABJS-D6QwMpPz.mjs";import"./chunk-DXB73IDG-ByieFnhr.mjs";import"./chunk-SNN4IESC-2iQ8MDN3.mjs";import"./chunk-2TRDZQLB-DJYfX1DB.mjs";import{o as e,r as t,t as n}from"./chunk-3H6UQG3A-jehz9Mov.mjs";export{e as egrepCommand,t as fgrepCommand,n as grepCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-ByieFnhr.mjs";import{a as e,r as t,t as n}from"./chunk-LTZRCH7N-BKI5S2SB.mjs";export{t as gunzipCommand,n as gzipCommand,e as zcatCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-ByieFnhr.mjs";import{n as e}from"./chunk-64BAICW3-DZxI2NVA.mjs";export{e as headCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-ByieFnhr.mjs";import{t as e}from"./chunk-MLXIYONF-2Q4Ybi7x.mjs";export{e as helpCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-ByieFnhr.mjs";import{t as e}from"./chunk-NCNPKYJZ-BjePegaZ.mjs";export{e as historyCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-ByieFnhr.mjs";import{t as e}from"./chunk-4HHKTUW3-C9w0lckj.mjs";export{e as hostname};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-ByieFnhr.mjs";import{t as e}from"./chunk-MDLLFABN-CySM5qrq.mjs";export{e as htmlToMarkdownCommand};
|
package/dist/index.d.mts
CHANGED
|
@@ -408,11 +408,19 @@ type SharingMode = 'shared' | 'local-only' | 'no-git';
|
|
|
408
408
|
* - `.mcp.json` — Claude Code project MCP (merged file)
|
|
409
409
|
* - `.cursor/mcp.json` — Cursor project MCP (merged file)
|
|
410
410
|
* - `.codex/config.toml` — Codex project MCP (merged file)
|
|
411
|
-
* - `.claude/skills/open-knowledge/` — Claude project SKILL.md bundle (whole-tree)
|
|
412
|
-
* - `.cursor/skills/open-knowledge/` — Cursor project SKILL.md bundle (whole-tree)
|
|
413
|
-
* - `.codex/skills/open-knowledge/` — Codex project SKILL.md bundle (whole-tree)
|
|
414
411
|
* - `.claude/launch.json` — Claude launcher entry (merged file)
|
|
415
412
|
*
|
|
413
|
+
* NOT here: OK's built-in `open-knowledge` project-skill projection
|
|
414
|
+
* (`.{host}/skills/open-knowledge/`). That bundle is a LOCAL, per-machine
|
|
415
|
+
* artifact — the app regenerates it on every open and different builds
|
|
416
|
+
* version-stamp it differently — so it is ALWAYS git-excluded via a committed
|
|
417
|
+
* `.gitignore` block (`ensureProjectSkillGitignore` in
|
|
418
|
+
* `@inkeep/open-knowledge-server`), independent of this shared/local-only
|
|
419
|
+
* toggle. Carving it OUT here is what makes the exclusion unconditional:
|
|
420
|
+
* leaving it in would only hide it in local-only mode, and it must be hidden in
|
|
421
|
+
* BOTH modes. Authored skills at `.{host}/skills/<other-name>/` stay in the
|
|
422
|
+
* toggle (handled by the installed-skill marker loop below).
|
|
423
|
+
*
|
|
416
424
|
* `.ok/` and `.okignore` are emitted UNANCHORED (slash-free). gitignore
|
|
417
425
|
* matches a slash-free pattern at every depth, so one entry each covers the
|
|
418
426
|
* project-root `.ok/` (where `config.yml` lives — it is read from
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,r as t,t as n}from"./gh-detect-
|
|
1
|
+
import{i as e,r as t,t as n}from"./gh-detect-C0TUrJxp.mjs";import{A as r,D as i,M as a,N as o,O as s,d as c,j as l,k as u,n as d,o as f,s as p,v as m,x as h,y as g}from"./init-CXlRbgEZ.mjs";import{C as _,D as v,E as y,b,d as x,f as S,h as C,i as w,n as T,p as E,r as D,t as O,u as k,v as A,x as j,y as M}from"./src-4JZrrUEE.mjs";import{_ as N,a as P,d as F,f as I,g as L,i as R,o as z,r as B,s as V,t as H,u as U,v as W}from"./write-project-skill-BwRqNV9s.mjs";import{n as G}from"./loader-DZ60wqGI.mjs";import{n as K}from"./preview-Ch5Z_ly3.mjs";import{n as q,t as J}from"./mcp-migrate-event-H4uBxZps.mjs";export{V as ALL_EDITOR_IDS,U as EDITOR_LABELS,F as EDITOR_TARGETS,I as HOSTS_WITH_USER_SKILL_DIR,d as LAUNCH_CONFIG_NAME,x as PATH_SHIM_BEGIN,S as PATH_SHIM_BLOCK_RE,E as PATH_SHIM_END,i as addOkPathsToGitExclude,H as assertProjectPathSafe,L as buildManagedServerEntry,D as buildMcpConfigDeclineEvent,J as buildMcpConfigMigrateEvent,f as classifyExistingMcpEntry,_ as collectReportBundle,t as createTokenStore,y as defaultBugReportZipPath,n as detectGh,p as detectInstalledEditors,s as formatTrackedRemediation,u as getExcludedOkPaths,r as getOkArtifactPaths,N as isEntryUpToDate,W as isOwnManagedEntry,G as loadConfig,e as makeLazyProbeTokenStore,A as parseGitHubBlobUrl,M as parseGitHubShareUrl,b as parseGitHubTreeUrl,j as parseGitUrl,C as pathInstallMarkerPath,K as previewContent,l as probeTrackedOkPaths,c as readExistingMcpEntry,a as readSharingMode,v as redactContent,o as removeOkPathsFromGitExclude,k as removeOwnMcpEntry,B as removeProjectSkill,P as removeUserGlobalSkillBundle,h as resolveProjectRoot,w as runStop,q as truncatePriorEntry,z as userGlobalSkillBundleTargets,T as validateLocalFolderForShare,m as writeEditorMcpConfig,O as writeProjectAiIntegrations,R as writeProjectSkill,g as writeUserMcpConfigs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-K5T4RW27-DLjwaibC.mjs";import{n as e}from"./chunk-KGLVRYIC-BNQzuSOt.mjs";export{e as createInfoServices};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{T as e,w as t}from"./src-
|
|
1
|
+
import{T as e,w as t}from"./src-BGL-MlNN.mjs";import{c as n}from"./chunk-ICPOFSXX-BF2fcu67.mjs";import{t as r}from"./chunk-426QAEUC-C79-xu4k.mjs";import{t as i}from"./mermaid-parser.core-C4HPipkF.mjs";var a={parse:t(async t=>{let n=await i(`info`,t);e.debug(n)},`parse`)},o={version:`11.14.0`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((t,i,a)=>{e.debug(`rendering info diagram
|
|
2
2
|
`+t);let o=r(i);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
|
|
3
|
-
//# sourceMappingURL=infoDiagram-42DDH7IO-
|
|
3
|
+
//# sourceMappingURL=infoDiagram-42DDH7IO-BVXbYOHQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./init-CXlRbgEZ.mjs";export{e as runInit};
|