@inkeep/open-knowledge 0.28.0-beta.0 → 0.28.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +24 -9
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/awk2-BBAGSFUB-Clvg_OoV.mjs +1 -0
  5. package/dist/chunk-2TRDZQLB-C2G-sahM.mjs +18 -0
  6. package/dist/{chunk-UNYNJIFU-HSzsM3a6.mjs → chunk-3BS5SKQH-HZ1-1bfb.mjs} +36 -36
  7. package/dist/{chunk-YS3AZT3J-DwQ3GyQR.mjs → chunk-3H6UQG3A-DdNaIxPm.mjs} +9 -9
  8. package/dist/{chunk-XORM457F-CJbQLVgU.mjs → chunk-6Z5SFZXK-C3WlMqq-.mjs} +53 -53
  9. package/dist/{chunk-YNYSPYQ5-DHter9G3.mjs → chunk-B74TABJS-DlbqoTuk.mjs} +13 -13
  10. package/dist/{chunk-FEIOJCZD-D6YUa1Xl.mjs → chunk-BGSUD5R5-DQ0_iOyO.mjs} +2 -2
  11. package/dist/{chunk-F55TLFGB-AEzanSfe.mjs → chunk-DBKNVD4L-BVx-WyDG.mjs} +2 -2
  12. package/dist/{chunk-BRGMQKJV-DtyxDw61.mjs → chunk-HKLCLINH-DwmCAW4U.mjs} +16 -16
  13. package/dist/chunk-HL6NGDO2-978327U5.mjs +24 -0
  14. package/dist/{chunk-LPQPILI2-GOcK96AE.mjs → chunk-K6LIBGJA-DpjaSGfc.mjs} +2 -2
  15. package/dist/{chunk-BBXLRYSX-OVlWa2B-.mjs → chunk-KRBPSX3W-nYEMVABW.mjs} +2 -2
  16. package/dist/chunk-KX3P26DQ-Cli1PSKS.mjs +2 -0
  17. package/dist/{chunk-SYMJJMQ4-DUF5hY-A.mjs → chunk-PXTK5WE2-B17f9YTq.mjs} +1 -1
  18. package/dist/{chunk-J642UCRS-C1PS8Hwf.mjs → chunk-SNN4IESC-C-P75V1I.mjs} +2 -2
  19. package/dist/chunk-TP4BZANS-eJW0TOjs.mjs +21 -0
  20. package/dist/{chunk-YFG2CMIF-DBRGs_rZ.mjs → chunk-V5MWI2OL-CDEVEp7K.mjs} +2 -2
  21. package/dist/chunk-XKWWSDBF-XuPgN5BP.mjs +37 -0
  22. package/dist/{chunk-NYQYO467-KfHLMnUW.mjs → chunk-YMMW5UAP-uYgeXT56.mjs} +5 -5
  23. package/dist/chunk-YULBWSET-BYBVdNmi.mjs +14 -0
  24. package/dist/{chunk-OL3S66CO-CBdL6pp1.mjs → chunk-ZZO3UDB3-CdVtmXn4.mjs} +2 -2
  25. package/dist/cli.mjs +7 -7
  26. package/dist/constants-DQ9gCjtp.mjs +2 -0
  27. package/dist/{dist-CgMyk9vp.mjs → dist-Cj2f9yMz.mjs} +1 -1
  28. package/dist/{dist-C_yx5tj0.mjs → dist-Dzsbf2ES.mjs} +159 -161
  29. package/dist/expansion-VBDYWVZR-k3W3Rc7R.mjs +1 -0
  30. package/dist/expr-YYCVMXE3-CHnBeIXW.mjs +1 -0
  31. package/dist/file-IGDTDPLG-DQaFkvTu.mjs +1 -0
  32. package/dist/find-DH2ALKQS-6y8KktlA.mjs +1 -0
  33. package/dist/{flag-coverage-QT4N2Z44-BlPYKPtd.mjs → flag-coverage-6JEX67RU-BqC6mFKB.mjs} +2 -2
  34. package/dist/{git-handle-Bhgrj9qX-DBwQr-02.mjs → git-handle-B4hCEi7c-CXOP12Ds.mjs} +2 -2
  35. package/dist/git-handle-DG8d2xCi-C_CAAChL.mjs +1 -0
  36. package/dist/grep-2HUTXO5U-Dbnjl3Iq.mjs +1 -0
  37. package/dist/index.d.mts +30 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/{init-ivEBwK7y.mjs → init-CylIL2_d.mjs} +24 -24
  40. package/dist/init-iEaa5yZe.mjs +1 -0
  41. package/dist/jq-LYZFFBZB-CSF_TJhe.mjs +1 -0
  42. package/dist/{js-exec-M6UR76J5-ZESSNIAK.mjs → js-exec-VXN6TZ7U-fCXuAS2-.mjs} +2 -2
  43. package/dist/{loader-u0w9n8j8.mjs → loader-DL7cugZT.mjs} +2 -2
  44. package/dist/loader-Dnu5tSEp.mjs +1 -0
  45. package/dist/preview-B5POtWPo.mjs +1 -0
  46. package/dist/{preview-DuGdXEFZ.mjs → preview-Bn8zUTY3.mjs} +2 -2
  47. package/dist/public/assets/SettingsDialogBody-BX4GP2gS.js +7 -0
  48. package/dist/public/assets/{index-BY2yEG8q.js → index-Br8R5akq.js} +3 -3
  49. package/dist/public/index.html +1 -1
  50. package/dist/{python3-AUFTPCU6-B7_jrPM3.mjs → python3-DNGS4G3E-bGzU9nm-.mjs} +2 -2
  51. package/dist/{repair-launch-json-GbJKeEYH.mjs → repair-launch-json-BkY5nlM0.mjs} +2 -2
  52. package/dist/repair-mcp-configs-Cz6iXpxD.mjs +2 -0
  53. package/dist/repair-skills-BwkQh3gJ.mjs +1 -0
  54. package/dist/repair-skills-DDLj2RIs.mjs +3 -0
  55. package/dist/rg-XNF3R3II-ivb6d3Sm.mjs +1 -0
  56. package/dist/sed-JAPPVBEU-BvDbOHs0.mjs +1 -0
  57. package/dist/{sqlite3-56UMWEY3-DNmhrHQv.mjs → sqlite3-TE5AIOTF-DW7pT7NE.mjs} +1 -1
  58. package/dist/{src-Cc1qY4l3.mjs → src-DL-hUlrv.mjs} +3 -3
  59. package/dist/{start-FRD4_VQ8.mjs → start-OiE8Ork3.mjs} +2 -2
  60. package/dist/start-uZWiX6-B.mjs +1 -0
  61. package/dist/tar-MZQD7NO4-46pC0DHj.mjs +1 -0
  62. package/dist/{write-project-skill-GLroKiE7.mjs → write-project-skill-C7UNscN7.mjs} +3 -3
  63. package/dist/xan-UD7JYIL2-DnWVVFeC.mjs +1 -0
  64. package/dist/xan-view-OW2TB7Z3-DBl8NjSB.mjs +1 -0
  65. package/dist/yq-OAKYHSXH-CpYttz-E.mjs +1 -0
  66. package/package.json +1 -1
  67. package/dist/awk2-POPGKRAI-6Q9HKhoL.mjs +0 -1
  68. package/dist/chunk-CR5AFCPT-BD_awIEP.mjs +0 -24
  69. package/dist/chunk-HWBSOZZR-DaPTwPxK.mjs +0 -37
  70. package/dist/chunk-OARHFVLG-Csb_cJVS.mjs +0 -21
  71. package/dist/chunk-VLGZJRPG-CHtdu0KZ.mjs +0 -17
  72. package/dist/chunk-XHM67O4N-2lBQUjKO.mjs +0 -2
  73. package/dist/chunk-YCFVLTST-CKzPj8PR.mjs +0 -13
  74. package/dist/constants-CrfIfZxB.mjs +0 -2
  75. package/dist/expansion-ENLSRCXJ-C5xjxYTl.mjs +0 -1
  76. package/dist/expr-5T3UU5KE-DrJUreFq.mjs +0 -1
  77. package/dist/file-ZIGAJ4YS-D07ChhI1.mjs +0 -1
  78. package/dist/find-TPUOAIUQ-ZPOxwUwf.mjs +0 -1
  79. package/dist/git-handle-DjEtQkHv-DQXg1XhZ.mjs +0 -1
  80. package/dist/grep-3AIAIJVR-Bh6KBg6d.mjs +0 -1
  81. package/dist/init-D4mCPnC2.mjs +0 -1
  82. package/dist/jq-ODXZBPLY-D3tmTL1R.mjs +0 -1
  83. package/dist/loader-ByJ07pxk.mjs +0 -1
  84. package/dist/preview-BSeDAUIf.mjs +0 -1
  85. package/dist/public/assets/SettingsDialogBody-BGLGfDpN.js +0 -7
  86. package/dist/repair-mcp-configs-DLSIsucG.mjs +0 -2
  87. package/dist/repair-skills-B-VIYM77.mjs +0 -1
  88. package/dist/repair-skills-DJmyw_aE.mjs +0 -3
  89. package/dist/rg-FOQSCCX3-ViKChHv5.mjs +0 -1
  90. package/dist/sed-VFTTATXJ-BfHBQ11q.mjs +0 -1
  91. package/dist/start-B-djBhNq.mjs +0 -1
  92. package/dist/tar-ANUBEFJY-Db9qg5B2.mjs +0 -1
  93. package/dist/xan-BXDXYEIB-I8yansvE.mjs +0 -1
  94. package/dist/xan-view-ECQUO7AJ-DJhdCPf3.mjs +0 -1
  95. package/dist/yq-MJMAR36V-BXyMiYfX.mjs +0 -1
@@ -0,0 +1 @@
1
+ import"./chunk-B74TABJS-DlbqoTuk.mjs";import{w as e}from"./chunk-BGSUD5R5-DQ0_iOyO.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";export{e as isArray};
@@ -0,0 +1 @@
1
+ import"./chunk-B74TABJS-DlbqoTuk.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{n as e}from"./chunk-V5MWI2OL-CDEVEp7K.mjs";export{e as exprCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import{n as e}from"./chunk-HL6NGDO2-978327U5.mjs";export{e as fileCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-B74TABJS-DlbqoTuk.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import"./chunk-SNN4IESC-C-P75V1I.mjs";import{n as e}from"./chunk-K6LIBGJA-DpjaSGfc.mjs";export{e as findCommand};
@@ -1,2 +1,2 @@
1
- import"./chunk-YNYSPYQ5-DHter9G3.mjs";import"./chunk-CWQS3NFK-DNm_iIwd.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import"./chunk-5QMZ5MUS-_0tQyQsf.mjs";import"./chunk-A5O5YHGN-Kbs3GRxW.mjs";import"./chunk-24IMIIXA-BoP5OA93.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-D6fSjWnx.mjs";import{t as n}from"./chunk-OARHFVLG-Csb_cJVS.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BCF2wp2J.mjs";import{n as i}from"./chunk-ALLTKNUZ-4H3OLfNN.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-CaV8X9is.mjs";import{n as a}from"./chunk-TXBZCHCQ-BxbbtyNr.mjs";import{n as o}from"./chunk-4GTNDTRF-DLnFbNSw.mjs";import{t as s}from"./chunk-LL3S3NLB-CH16p_-s.mjs";import{n as c}from"./chunk-LWEGUNWT-DhbhFY11.mjs";import{n as l}from"./chunk-Z7JVV2SM-BtFBVQEW.mjs";import{n as u}from"./chunk-NUYSJFDK-BvwS54ju.mjs";import{t as d}from"./chunk-SDNKECQQ-BsAYzqU5.mjs";import{t as f}from"./chunk-D7MEQ3VN-BM_kIbvf.mjs";import{n as p}from"./chunk-TLSUDHID-SuIGgADo.mjs";import{t as m}from"./chunk-4Q4SM6WR-CAvCnPq5.mjs";import{n as h}from"./chunk-RPNGRAAP-yHFoBjjv.mjs";import{n as g}from"./chunk-GCTKCWKD-D3J1Ev9z.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-0UrOIQ6q.mjs";import{n as y}from"./chunk-VJFXDYWH-CWlZv59U.mjs";import{t as b}from"./chunk-YFG2CMIF-DBRGs_rZ.mjs";import{n as x}from"./chunk-CR5AFCPT-BD_awIEP.mjs";import"./chunk-J642UCRS-C1PS8Hwf.mjs";import{t as S}from"./chunk-LPQPILI2-GOcK96AE.mjs";import{t as C}from"./chunk-BRGMQKJV-DtyxDw61.mjs";import"./chunk-SYMJJMQ4-DUF5hY-A.mjs";import"./chunk-7TSDKFEO-CMVuiOdP.mjs";import"./chunk-BBXLRYSX-OVlWa2B-.mjs";import{n as w}from"./chunk-XORM457F-CJbQLVgU.mjs";import"./chunk-F55TLFGB-AEzanSfe.mjs";import{t as T}from"./chunk-UNYNJIFU-HSzsM3a6.mjs";import{r as E}from"./chunk-HWBSOZZR-DaPTwPxK.mjs";import{n as D}from"./chunk-MDLLFABN-UsHGHHoh.mjs";import{n as O}from"./chunk-MLXIYONF-DRuy-_4a.mjs";import{n as k}from"./chunk-A65PWWJC-GGt9898w.mjs";import{t as A}from"./chunk-MHTUABJP-Dk5ocjFo.mjs";import{n as j}from"./chunk-4HHKTUW3-Ct4ue15f.mjs";import{n as M}from"./chunk-HJQJAYMS-BS_JF11O.mjs";import{n as N}from"./chunk-PP6PSHAB-DQ3LPONR.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-BfgCUlp9.mjs";import{t as L}from"./chunk-YTNYSM6T-DcovOiF_.mjs";import{t as R}from"./chunk-Z6LRHWXI-BLaYoFnT.mjs";import{n as z}from"./chunk-A7A2DBEE-BqvlRSRw.mjs";import{t as B}from"./chunk-APT7OOP2-DnIeUlVe.mjs";import{n as V}from"./chunk-XKQRETAK-BC2HZ_y9.mjs";import{n as H}from"./chunk-5V6VZH6T-ByuVaPWr.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-RaNW7MSS.mjs";import{n as G}from"./chunk-YCFVLTST-CKzPj8PR.mjs";import{t as K}from"./chunk-GOV5EKKI-x0jEbztj.mjs";import{t as q}from"./chunk-XVDPCNWR-CkzIJQaO.mjs";import{n as J}from"./chunk-NCNPKYJZ-Ct0_l0YT.mjs";import{t as ne}from"./chunk-TOMNU26N-Dw9Enq1O.mjs";import{t as Y}from"./chunk-PYSFUGCK-B_Gv8rUn.mjs";import{t as X}from"./chunk-VYOJP4TV-DN1CSkP5.mjs";import{t as Z}from"./chunk-MYE6AGBJ-DwzjGrc0.mjs";import{t as re}from"./chunk-A7ICOL4V-D5TsVU6v.mjs";import{t as ie}from"./chunk-55VFSPNA-RFvY6zq0.mjs";import{n as ae}from"./chunk-WKFATFPP-CoPg2OGf.mjs";import{n as oe}from"./chunk-JVPRLUMK-D6CRdXSO.mjs";import{t as se}from"./chunk-62RKD26F-K5NW6_Si.mjs";import{t as ce}from"./chunk-QCDB2VPH-Bays5mAr.mjs";import{t as le}from"./chunk-F23WWYKW-DLeNVzzD.mjs";import{n as ue}from"./chunk-D4J545R4-KlK3EOFl.mjs";import{t as de}from"./chunk-DCAAORBQ-BUMlCZ4-.mjs";import{n as fe}from"./chunk-GXVXFKBA-D0BDCtkE.mjs";import{n as pe}from"./chunk-5QVNJEHU-BV0xuiYW.mjs";import"./chunk-VLGZJRPG-CHtdu0KZ.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-DwQ3GyQR.mjs";import{n as _e}from"./chunk-NYQYO467-KfHLMnUW.mjs";import{n as ve}from"./chunk-OL3S66CO-CBdL6pp1.mjs";import{t as ye}from"./chunk-KMEYNNUA-Qk0eg7gN.mjs";import{t as be}from"./chunk-MIZPJHVH-Bo1j-3C3.mjs";import{n as xe}from"./chunk-A4JSPFCI-BA544Kdp.mjs";import{t as Q}from"./chunk-PBXLG62G-C7MEQojr.mjs";import{t as Se}from"./chunk-A4HU7SVR-Bjuqsbev.mjs";import{t as Ce}from"./chunk-HJWBQKYG-DknkBuxy.mjs";import{t as we}from"./chunk-64BAICW3-BlirlXmE.mjs";import{n as Te}from"./chunk-T56QNPHK-B6DfVzfs.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CKif4_mH.mjs";import{n as De}from"./chunk-MDDMCKUK-CuQlmIio.mjs";import{t as Oe}from"./chunk-OCS6LSEM-DkbaohJu.mjs";import{n as ke}from"./chunk-OCLXQMOG-CCPg8vjW.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,he,me,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
2
- //# sourceMappingURL=flag-coverage-QT4N2Z44-BlPYKPtd.mjs.map
1
+ import"./chunk-B74TABJS-DlbqoTuk.mjs";import"./chunk-CWQS3NFK-DNm_iIwd.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import"./chunk-5QMZ5MUS-_0tQyQsf.mjs";import"./chunk-A5O5YHGN-Kbs3GRxW.mjs";import"./chunk-24IMIIXA-BoP5OA93.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-D6fSjWnx.mjs";import{t as n}from"./chunk-TP4BZANS-eJW0TOjs.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BCF2wp2J.mjs";import{n as i}from"./chunk-ALLTKNUZ-4H3OLfNN.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-CaV8X9is.mjs";import{n as a}from"./chunk-TXBZCHCQ-BxbbtyNr.mjs";import{n as o}from"./chunk-4GTNDTRF-DLnFbNSw.mjs";import{t as s}from"./chunk-LL3S3NLB-CH16p_-s.mjs";import{n as c}from"./chunk-LWEGUNWT-DhbhFY11.mjs";import{n as l}from"./chunk-Z7JVV2SM-BtFBVQEW.mjs";import{n as u}from"./chunk-NUYSJFDK-BvwS54ju.mjs";import{t as d}from"./chunk-SDNKECQQ-BsAYzqU5.mjs";import{t as f}from"./chunk-D7MEQ3VN-BM_kIbvf.mjs";import{n as p}from"./chunk-TLSUDHID-SuIGgADo.mjs";import{t as m}from"./chunk-4Q4SM6WR-CAvCnPq5.mjs";import{n as h}from"./chunk-RPNGRAAP-yHFoBjjv.mjs";import{n as g}from"./chunk-GCTKCWKD-D3J1Ev9z.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-0UrOIQ6q.mjs";import{n as y}from"./chunk-VJFXDYWH-CWlZv59U.mjs";import{t as b}from"./chunk-V5MWI2OL-CDEVEp7K.mjs";import{t as x}from"./chunk-HL6NGDO2-978327U5.mjs";import"./chunk-SNN4IESC-C-P75V1I.mjs";import{t as S}from"./chunk-K6LIBGJA-DpjaSGfc.mjs";import{t as C}from"./chunk-HKLCLINH-DwmCAW4U.mjs";import"./chunk-PXTK5WE2-B17f9YTq.mjs";import"./chunk-7TSDKFEO-CMVuiOdP.mjs";import"./chunk-KRBPSX3W-nYEMVABW.mjs";import{n as w}from"./chunk-6Z5SFZXK-C3WlMqq-.mjs";import"./chunk-DBKNVD4L-BVx-WyDG.mjs";import{n as T}from"./chunk-3BS5SKQH-HZ1-1bfb.mjs";import{r as E}from"./chunk-XKWWSDBF-XuPgN5BP.mjs";import{n as D}from"./chunk-MDLLFABN-UsHGHHoh.mjs";import{n as O}from"./chunk-MLXIYONF-DRuy-_4a.mjs";import{n as k}from"./chunk-A65PWWJC-GGt9898w.mjs";import{t as A}from"./chunk-MHTUABJP-Dk5ocjFo.mjs";import{n as j}from"./chunk-4HHKTUW3-Ct4ue15f.mjs";import{n as M}from"./chunk-HJQJAYMS-BS_JF11O.mjs";import{n as N}from"./chunk-PP6PSHAB-DQ3LPONR.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-BfgCUlp9.mjs";import{t as L}from"./chunk-YTNYSM6T-DcovOiF_.mjs";import{t as R}from"./chunk-Z6LRHWXI-BLaYoFnT.mjs";import{n as z}from"./chunk-A7A2DBEE-BqvlRSRw.mjs";import{t as B}from"./chunk-APT7OOP2-DnIeUlVe.mjs";import{n as V}from"./chunk-XKQRETAK-BC2HZ_y9.mjs";import{n as H}from"./chunk-5V6VZH6T-ByuVaPWr.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-RaNW7MSS.mjs";import{t as G}from"./chunk-YULBWSET-BYBVdNmi.mjs";import{t as K}from"./chunk-GOV5EKKI-x0jEbztj.mjs";import{t as q}from"./chunk-XVDPCNWR-CkzIJQaO.mjs";import{n as J}from"./chunk-NCNPKYJZ-Ct0_l0YT.mjs";import{t as ne}from"./chunk-TOMNU26N-Dw9Enq1O.mjs";import{t as Y}from"./chunk-PYSFUGCK-B_Gv8rUn.mjs";import{t as X}from"./chunk-VYOJP4TV-DN1CSkP5.mjs";import{t as Z}from"./chunk-MYE6AGBJ-DwzjGrc0.mjs";import{t as re}from"./chunk-A7ICOL4V-D5TsVU6v.mjs";import{t as ie}from"./chunk-55VFSPNA-RFvY6zq0.mjs";import{n as ae}from"./chunk-WKFATFPP-CoPg2OGf.mjs";import{n as oe}from"./chunk-JVPRLUMK-D6CRdXSO.mjs";import{t as se}from"./chunk-62RKD26F-K5NW6_Si.mjs";import{t as ce}from"./chunk-QCDB2VPH-Bays5mAr.mjs";import{t as le}from"./chunk-F23WWYKW-DLeNVzzD.mjs";import{n as ue}from"./chunk-D4J545R4-KlK3EOFl.mjs";import{t as de}from"./chunk-DCAAORBQ-BUMlCZ4-.mjs";import{n as fe}from"./chunk-GXVXFKBA-D0BDCtkE.mjs";import{n as pe}from"./chunk-5QVNJEHU-BV0xuiYW.mjs";import"./chunk-2TRDZQLB-C2G-sahM.mjs";import{a as me,i as he,n as ge}from"./chunk-3H6UQG3A-DdNaIxPm.mjs";import{n as _e}from"./chunk-YMMW5UAP-uYgeXT56.mjs";import{n as ve}from"./chunk-ZZO3UDB3-CdVtmXn4.mjs";import{t as ye}from"./chunk-KMEYNNUA-Qk0eg7gN.mjs";import{t as be}from"./chunk-MIZPJHVH-Bo1j-3C3.mjs";import{n as xe}from"./chunk-A4JSPFCI-BA544Kdp.mjs";import{t as Q}from"./chunk-PBXLG62G-C7MEQojr.mjs";import{t as Se}from"./chunk-A4HU7SVR-Bjuqsbev.mjs";import{t as Ce}from"./chunk-HJWBQKYG-DknkBuxy.mjs";import{t as we}from"./chunk-64BAICW3-BlirlXmE.mjs";import{n as Te}from"./chunk-T56QNPHK-B6DfVzfs.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CKif4_mH.mjs";import{n as De}from"./chunk-MDDMCKUK-CuQlmIio.mjs";import{t as Oe}from"./chunk-OCS6LSEM-DkbaohJu.mjs";import{n as ke}from"./chunk-OCLXQMOG-CCPg8vjW.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,me,he,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
2
+ //# sourceMappingURL=flag-coverage-6JEX67RU-BqC6mFKB.mjs.map
@@ -6,5 +6,5 @@ import{a as e,s as t,t as n}from"./chunk-C94x7I9S.mjs";import{normalize as r,res
6
6
  `){return e.split(n).reduce((e,n)=>{let r=t?n.trim():n;return r&&e.push(r),e},[])}function nt(e,t){return A(e,!0).map(e=>t(e))}function rt(e){return(0,Ve.exists)(e,Ve.FOLDER)}function j(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function it(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function at(e,t){if(Array.isArray(e)){let n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function M(e){return Array.isArray(e)?e:[e]}function ot(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function N(e){return M(e).map(e=>e instanceof String?e:String(e))}function P(e,t=0){if(e==null)return t;let n=parseInt(e,10);return Number.isNaN(n)?t:n}function F(e,t){let n=[];for(let r=0,i=e.length;r<i;r++)n.push(t,e[r]);return n}function I(e){return(Array.isArray(e)?Buffer.concat(e):e).toString(`utf-8`)}function st(e,t){let n={};return t.forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function ct(e=0){return new Promise(t=>setTimeout(t,e))}function lt(e){if(e!==!1)return e}var L,R,z,ut=S({"src/lib/utils/util.ts"(){vt(),L=`\0`,R=()=>{},z=Object.prototype.toString.call.bind(Object.prototype.toString)}});function B(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function dt(e,t){let n=h(e)?`string`:typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function ft(e){return!!e&&z(e)===`[object Object]`}function pt(e){return typeof e==`function`}var mt,ht,V,gt,_t,vt=S({"src/lib/utils/argument-filters.ts"(){ut(),mt=e=>Array.isArray(e),ht=e=>typeof e==`number`,V=e=>typeof e==`string`||h(e),gt=e=>V(e)||Array.isArray(e)&&e.every(V),_t=e=>e==null||`number|boolean|function`.includes(typeof e)?!1:typeof e.length==`number`}}),yt,bt=S({"src/lib/utils/exit-codes.ts"(){yt=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e[e.ERROR=1]=`ERROR`,e[e.NOT_FOUND=-2]=`NOT_FOUND`,e[e.UNCLEAN=128]=`UNCLEAN`,e))(yt||{})}}),xt,St=S({"src/lib/utils/git-output-streams.ts"(){xt=class e{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new e(this.stdOut.toString(`utf8`),this.stdErr.toString(`utf8`))}}}});function Ct(){throw Error(`LineParser:useMatches not implemented`)}var H,U,wt=S({"src/lib/utils/line-parser.ts"(){H=class{constructor(e,t){this.matches=[],this.useMatches=Ct,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 Tt(...e){let t=process.cwd(),n=Object.assign({baseDir:t,...Et},...e.filter(e=>typeof e==`object`&&e));return n.baseDir=n.baseDir||t,n.trimmed=n.trimmed===!0,n}var Et,Dt=S({"src/lib/utils/simple-git-options.ts"(){Et={binary:`git`,maxConcurrentProcesses:5,config:[],trimmed:!1}}});function Ot(e,t=[]){return ft(e)?Object.keys(e).reduce((t,n)=>{let r=e[n];if(h(r))t.push(r);else if(dt(r,[`boolean`]))t.push(n+`=`+r);else if(Array.isArray(r))for(let e of r)dt(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 Ot(At(e),r),n||r.push(...kt(e)),r}function kt(e){return N(B(k(e,typeof k(e)==`function`?1:0),mt,[]))}function At(e){return B(k(e,pt(k(e))?1:0),ft)}function G(e,t=!0){let n=Ze(k(e));return t||Qe(n)?n:void 0}var jt=S({"src/lib/utils/task-options.ts"(){vt(),ut()}});function Mt(e,t){return e(t.stdOut,t.stdErr)}function K(e,t,n,r=!0){return M(n).forEach(n=>{for(let i=A(n,r),a=0,o=i.length;a<o;a++){let n=(e=0)=>{if(!(a+e>=o))return i[a+e]};t.some(({parse:t})=>t(n,e))}}),e}var Nt=S({"src/lib/utils/task-parser.ts"(){ut()}}),Pt={};C(Pt,{ExitCodes:()=>yt,GitOutputStreams:()=>xt,LineParser:()=>H,NOOP:()=>R,NULL:()=>L,RemoteLineParser:()=>U,append:()=>j,appendTaskOptions:()=>Ot,asArray:()=>M,asCamelCase:()=>ot,asFunction:()=>Ze,asNumber:()=>P,asStringArray:()=>N,bufferToString:()=>I,callTaskParser:()=>Mt,createInstanceConfig:()=>Tt,delay:()=>ct,filterArray:()=>mt,filterFunction:()=>pt,filterHasLength:()=>_t,filterNumber:()=>ht,filterPlainObject:()=>ft,filterPrimitives:()=>dt,filterString:()=>V,filterStringOrStringArray:()=>gt,filterType:()=>B,first:()=>et,folderExists:()=>rt,forEachLineWithContent:()=>nt,getTrailingOptions:()=>W,including:()=>it,isUserFunction:()=>Qe,last:()=>k,objectToString:()=>z,orVoid:()=>lt,parseStringResponse:()=>K,pick:()=>st,prefixedArray:()=>F,remove:()=>at,splitOn:()=>$e,toLinesWithContent:()=>A,trailingFunctionArgument:()=>G,trailingOptionsArgument:()=>At});var q=S({"src/lib/utils/index.ts"(){vt(),bt(),St(),wt(),Dt(),jt(),Nt(),ut()}}),Ft={};C(Ft,{CheckRepoActions:()=>Bt,checkIsBareRepoTask:()=>Rt,checkIsRepoRootTask:()=>Lt,checkIsRepoTask:()=>It});function It(e){switch(e){case`bare`:return Rt();case`root`:return Lt()}return{commands:[`rev-parse`,`--is-inside-work-tree`],format:`utf-8`,onError:Vt,parser:Ht}}function Lt(){return{commands:[`rev-parse`,`--git-dir`],format:`utf-8`,onError:Vt,parser(e){return/^\.(git)?$/.test(e.trim())}}}function Rt(){return{commands:[`rev-parse`,`--is-bare-repository`],format:`utf-8`,onError:Vt,parser:Ht}}function zt(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var Bt,Vt,Ht,Ut=S({"src/lib/tasks/check-is-repo.ts"(){q(),Bt=(e=>(e.BARE=`bare`,e.IN_TREE=`tree`,e.IS_REPO_ROOT=`root`,e))(Bt||{}),Vt=({exitCode:e},t,n,r)=>{if(e===128&&zt(t))return n(Buffer.from(`false`));r(t)},Ht=e=>e.trim()===`true`}});function Wt(e,t){let n=new Gt(e),r=e?qt:Kt;return A(t).forEach(e=>{let t=e.replace(r,``);n.paths.push(t),(Jt.test(t)?n.folders:n.files).push(t)}),n}var Gt,Kt,qt,Jt,Yt=S({"src/lib/responses/CleanSummary.ts"(){q(),Gt=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},Kt=/^[a-z]+\s*/i,qt=/^[a-z]+\s+[a-z]+\s*/i,Jt=/\/$/}}),Xt={};C(Xt,{EMPTY_COMMANDS:()=>tn,adhocExecTask:()=>Zt,configurationErrorTask:()=>J,isBufferTask:()=>$t,isEmptyTask:()=>en,straightThroughBufferTask:()=>Qt,straightThroughStringTask:()=>Y});function Zt(e){return{commands:tn,format:`empty`,parser:e}}function J(e){return{commands:tn,format:`empty`,parser(){throw typeof e==`string`?new Ye(e):e}}}function Y(e,t=!1){return{commands:e,format:`utf-8`,parser(e){return t?String(e).trim():e}}}function Qt(e){return{commands:e,format:`buffer`,parser(e){return e}}}function $t(e){return e.format===`buffer`}function en(e){return e.format===`empty`||!e.commands.length}var tn,X=S({"src/lib/tasks/task.ts"(){Xe(),tn=[]}}),nn={};C(nn,{CONFIG_ERROR_INTERACTIVE_MODE:()=>dn,CONFIG_ERROR_MODE_REQUIRED:()=>fn,CONFIG_ERROR_UNKNOWN_OPTION:()=>pn,CleanOptions:()=>mn,cleanTask:()=>an,cleanWithOptionsTask:()=>rn,isCleanOptionsArray:()=>on});function rn(e,t){let{cleanMode:n,options:r,valid:i}=sn(e);return n?i.options?(r.push(...t),r.some(un)?J(dn):an(n,r)):J(pn+JSON.stringify(e)):J(fn)}function an(e,t){return{commands:[`clean`,`-${e}`,...t],format:`utf-8`,parser(t){return Wt(e===`n`,t)}}}function on(e){return Array.isArray(e)&&e.every(e=>hn.has(e))}function sn(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,``).split(``).forEach(e=>{cn(e)?(t=e,r.cleanMode=!0):r.options=r.options&&ln(n[n.length]=`-${e}`)}),{cleanMode:t,options:n,valid:r}}function cn(e){return e===`f`||e===`n`}function ln(e){return/^-[a-z]$/i.test(e)&&hn.has(e.charAt(1))}function un(e){return/^-[^\-]/.test(e)?e.indexOf(`i`)>0:e===`--interactive`}var dn,fn,pn,mn,hn,gn=S({"src/lib/tasks/clean.ts"(){Yt(),q(),X(),dn=`Git clean interactive mode is not supported`,fn=`Git clean mode parameter ("n" or "f") is required`,pn=`Git clean unknown option found in: `,mn=(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))(mn||{}),hn=new Set([`i`,...N(Object.values(mn))])}});function _n(e){let t=new xn;for(let n of bn(e))t.addValue(n.file,String(n.key),n.value);return t}function vn(e,t){let n=null,r=[],i=new Map;for(let a of bn(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 yn(e){return e.replace(/^(file):/,``)}function*bn(e,t=null){let n=e.split(`\0`);for(let e=0,r=n.length-1;e<r;){let r=yn(n[e++]),i=n[e++],a=t;if(i.includes(`
7
7
  `)){let e=$e(i,`
8
8
  `);a=e[0],i=e[1]}yield{file:r,key:a,value:i}}}var xn,Sn=S({"src/lib/responses/ConfigList.ts"(){q(),xn=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{}),this._all}addFile(e){if(!(e in this.values)){let t=k(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){let r=this.addFile(e);Object.hasOwn(r,t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}});function Cn(e,t){return typeof e==`string`&&Object.hasOwn(On,e)?e:t}function wn(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 Tn(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 vn(t,e)}}}function En(e){let t=[`config`,`--list`,`--show-origin`,`--null`];return e&&t.push(`--${e}`),{commands:t,format:`utf-8`,parser(e){return _n(e)}}}function Dn(){return{addConfig(e,t,...n){return this._runTask(wn(e,t,n[0]===!0,Cn(n[1],`local`)),G(arguments))},getConfig(e,t){return this._runTask(Tn(e,Cn(t,void 0)),G(arguments))},listConfig(...e){return this._runTask(En(Cn(e[0],void 0)),G(arguments))}}}var On,kn=S({"src/lib/tasks/config.ts"(){Sn(),q(),On=(e=>(e.system=`system`,e.global=`global`,e.local=`local`,e.worktree=`worktree`,e))(On||{})}});function An(e){return Mn.has(e)}var jn,Mn,Nn=S({"src/lib/tasks/diff-name-status.ts"(){jn=(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))(jn||{}),Mn=new Set(Object.values(jn))}});function Pn(...e){return new Bn().param(...e)}function Fn(e){let t=new Set,n={};return nt(e,e=>{let[r,i,a]=e.split(L);t.add(r),(n[r]=n[r]||[]).push({line:P(i),path:r,preview:a})}),{paths:t,results:n}}function In(){return{grep(e){let t=G(arguments),n=W(arguments);for(let e of Ln)if(n.includes(e))return this._runTask(J(`git.grep: use of "${e}" is not supported.`),t);typeof e==`string`&&(e=Pn().param(e));let r=[`grep`,`--null`,`-n`,`--full-name`,...n,...e];return this._runTask({commands:r,format:`utf-8`,parser(e){return Fn(e)}},t)}}}var Ln,Rn,zn,Bn,Vn=S({"src/lib/tasks/grep.ts"(){q(),X(),Ln=[`-h`],Rn=Symbol(`grepQuery`),Bn=class{constructor(){this[zn]=[]}*[(zn=Rn,Symbol.iterator)](){for(let e of this[Rn])yield e}and(...e){return e.length&&this[Rn].push(`--and`,`(`,...F(e,`-e`),`)`),this}param(...e){return this[Rn].push(...F(e,`-e`)),this}}}}),Hn={};C(Hn,{ResetMode:()=>Kn,getResetMode:()=>Wn,resetTask:()=>Un});function Un(e,t){let n=[`reset`];return Gn(e)&&n.push(`--${e}`),n.push(...t),Y(n)}function Wn(e){if(Gn(e))return e;switch(typeof e){case`string`:case`undefined`:return`soft`}}function Gn(e){return typeof e==`string`&&qn.includes(e)}var Kn,qn,Jn=S({"src/lib/tasks/reset.ts"(){q(),X(),Kn=(e=>(e.MIXED=`mixed`,e.SOFT=`soft`,e.HARD=`hard`,e.MERGE=`merge`,e.KEEP=`keep`,e))(Kn||{}),qn=N(Object.values(Kn))}});function Yn(){return(0,He.default)(`simple-git`)}function Xn(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 Zn(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 Qn(e,t,n,r=Yn()){let i=e&&`[${e}]`||``,a=[],o=typeof t==`string`?r.extend(t):t,s=Zn(B(t,V),o,r);return l(n);function c(t,n){return j(a,Qn(e,s.replace(/^[^:]+/,t),n,r))}function l(t){let n=t&&`[${t}]`||``,a=o&&Xn(o,n)||R,s=Xn(r,`${i} ${n}`,a);return Object.assign(o?a:s,{label:e,sibling:c,info:s,step:l})}}var $n=S({"src/lib/git-logger.ts"(){q(),He.default.formatters.L=e=>String(_t(e)?e.length:`-`),He.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString(`utf8`):z(e)}}),er,tr=S({"src/lib/runners/tasks-pending-queue.ts"(){E(),$n(),er=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:Qn(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:et(e.commands)||``,commands:t}}function nr(e,t){return n=>{t(`[ERROR] child process exception %o`,n),e.push(Buffer.from(String(n.stack),`ascii`))}}function rr(e,t,n,r){return i=>{n(`%s received %L bytes`,t,i),r(`%B`,i),e.push(i)}}var ir,ar=S({"src/lib/runners/git-executor-chain.ts"(){E(),X(),q(),tr(),ir=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new er}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(en(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),$t(e)?Mt(e.parser,a):Mt(e.parser,a.asStrings())}async attemptEmptyTask(e,t){return t(`empty task bypassing child process to call to task's parser`),e.parser(this)}handleTaskData(e,t,n,r){let{exitCode:i,rejection:a,stdOut:o,stdErr:s}=n;return new Promise((c,l)=>{r(`Preparing to handle process response exitCode=%d stdOut=`,i);let{error:u}=this._plugins.exec(`task.error`,{error:a},{...Z(e,t),...n});if(u&&e.onError)return r.info(`exitCode=%s handling with custom error handler`),e.onError(n,u,e=>{r.info(`custom error handler treated as success`),r(`custom error returned a %s`,z(e)),c(new xt(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 xt(Buffer.concat(o),Buffer.concat(s)))})}async gitResponse(e,t,n,r,i){let o=i.sibling(`output`),s=this._plugins.exec(`spawn.options`,{cwd:this.cwd,env:this.env,windowsHide:!0},Z(e,e.commands));return new Promise(c=>{let l=[],u=[];i.info(`%s %o`,t,n),i(`%O`,s);let d=this._beforeSpawn(e,n);if(d)return c({stdOut:l,stdErr:u,exitCode:9901,rejection:d});this._plugins.exec(`spawn.before`,void 0,{...Z(e,n),kill(e){d=e||d}});let f=a(t,n,s);f.stdout.on(`data`,rr(l,`stdOut`,i,o.step(`stdOut`))),f.stderr.on(`data`,rr(u,`stdErr`,i,o.step(`stdErr`))),f.on(`error`,nr(u,i)),r&&(i(`Passing child process stdOut/stdErr to custom outputHandler`),r(t,f.stdout,f.stderr,[...n])),this._plugins.exec(`spawn.after`,void 0,{...Z(e,n),spawned:f,close(e,t){c({stdOut:l,stdErr:u,exitCode:e,rejection:d||t})},kill(e){f.killed||(d=e,f.kill(`SIGINT`))}})})}_beforeSpawn(e,t){let n;return this._plugins.exec(`spawn.before`,void 0,{...Z(e,t),kill(e){n=e||n}}),n}}}}),or={};C(or,{GitExecutor:()=>sr});var sr,cr=S({"src/lib/runners/git-executor.ts"(){ar(),sr=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new ir(this,this._scheduler,this._plugins)}chain(){return new ir(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function lr(e,t,n=R){t.then(e=>{n(null,e)},t=>{t?.task===e&&n(t instanceof D?ur(t):t,void 0)})}function ur(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=R};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(n,{}));function n(n,r){return r in e||(n[r]={enumerable:!1,configurable:!1,get(){return t(r),e.git[r]}}),n}}var dr=S({"src/lib/task-callback.ts"(){O(),q()}});function fr(e,t){return Zt(n=>{if(!rt(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e})}var pr=S({"src/lib/tasks/change-working-directory.ts"(){q(),X()}});function mr(e){let t=[`checkout`,...e];return t[1]===`-b`&&t.includes(`-B`)&&(t[1]=at(t,`-B`)),Y(t)}function hr(){return{checkout(){return this._runTask(mr(W(arguments,1)),G(arguments))},checkoutBranch(e,t){return this._runTask(mr([`-b`,e,t,...W(arguments)]),G(arguments))},checkoutLocalBranch(e){return this._runTask(mr([`-b`,e,...W(arguments)]),G(arguments))}}}var gr=S({"src/lib/tasks/checkout.ts"(){q(),X()}});function _r(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function vr(){return{countObjects(){return this._runTask({commands:[`count-objects`,`--verbose`],format:`utf-8`,parser(e){return K(_r(),[yr],e)}})}}}var yr,br=S({"src/lib/tasks/count-objects.ts"(){q(),yr=new H(/([a-z-]+): (\d+)$/,(e,[t,n])=>{let r=ot(t);Object.hasOwn(e,r)&&(e[r]=P(n))})}});function xr(e){return K({author:null,branch:``,commit:``,root:!1,summary:{changes:0,insertions:0,deletions:0}},Sr,e)}var Sr,Cr=S({"src/lib/parsers/parse-commit.ts"(){q(),Sr=[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 wr(e,t,n){return{commands:[`-c`,`core.abbrev=40`,`commit`,...F(e,`-m`),...t,...n],format:`utf-8`,parser:xr}}function Tr(){return{commit(t,...n){let r=G(arguments),i=e(t)||wr(M(t),M(B(n[0],gt,[])),[...N(B(n[1],mt,[])),...W(arguments,0,!0)]);return this._runTask(i,r)}};function e(e){return!gt(e)&&J(`git.commit: requires the commit message to be supplied as a string/string[]`)}}var Er=S({"src/lib/tasks/commit.ts"(){Cr(),q(),X()}});function Dr(){return{firstCommit(){return this._runTask(Y([`rev-list`,`--max-parents=0`,`HEAD`],!0),G(arguments))}}}var Or=S({"src/lib/tasks/first-commit.ts"(){q(),X()}});function kr(e,t){let n=[`hash-object`,e];return t&&n.push(`-w`),Y(n,!0)}var Ar=S({"src/lib/tasks/hash-object.ts"(){X()}});function jr(e,t,n){let r=String(n).trim(),i;if(i=Nr.exec(r))return new Mr(e,t,!1,i[1]);if(i=Pr.exec(r))return new Mr(e,t,!0,i[1]);let a=``,o=r.split(` `);for(;o.length;)if(o.shift()===`in`){a=o.join(` `);break}return new Mr(e,t,/^re/i.test(r),a)}var Mr,Nr,Pr,Fr=S({"src/lib/responses/InitSummary.ts"(){Mr=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},Nr=/^Init.+ repository in (.+)$/,Pr=/^Rein.+ in (.+)$/}});function Ir(e){return e.includes(Rr)}function Lr(e=!1,t,n){let r=[`init`,...n];return e&&!Ir(r)&&r.splice(1,0,Rr),{commands:r,format:`utf-8`,parser(e){return jr(r.includes(`--bare`),t,e)}}}var Rr,zr=S({"src/lib/tasks/init.ts"(){Fr(),Rr=`--bare`}});function Br(e){for(let t=0;t<e.length;t++){let n=Hr.exec(e[t]);if(n)return`--${n[1]}`}return``}function Vr(e){return Hr.test(e)}var Hr,Ur=S({"src/lib/args/log-format.ts"(){Hr=/^--(stat|numstat|name-only|name-status)(=|$)/}}),Wr,Gr=S({"src/lib/responses/DiffSummary.ts"(){Wr=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function Kr(e=``){let t=Zr[e];return e=>K(new Wr,t,e,!1)}var qr,Jr,Yr,Xr,Zr,Qr=S({"src/lib/parsers/parse-diff-summary.ts"(){Ur(),Gr(),Nn(),q(),qr=[new H(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,n,r=``])=>{e.files.push({file:t.trim(),changes:P(n),insertions:r.replace(/[^+]/g,``).length,deletions:r.replace(/[^-]/g,``).length,binary:!1})}),new H(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,n,r])=>{e.files.push({file:t.trim(),before:P(n),after:P(r),binary:!0})}),new H(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,n])=>{let r=/(\d+) i/.exec(n),i=/(\d+) d/.exec(n);e.changed=P(t),e.insertions=P(r?.[1]),e.deletions=P(i?.[1])})],Jr=[new H(/(\d+)\t(\d+)\t(.+)$/,(e,[t,n,r])=>{let i=P(t),a=P(n);e.changed++,e.insertions+=i,e.deletions+=a,e.files.push({file:r,changes:i+a,insertions:i,deletions:a,binary:!1})}),new H(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Yr=[new H(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],Xr=[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:lt(An(t)&&t),from:lt(!!a&&r!==a&&r),similarity:P(n)})})],Zr={"":qr,"--stat":qr,"--numstat":Jr,"--name-status":Xr,"--name-only":Yr}}});function $r(e,t){return t.reduce((t,n,r)=>(t[n]=e[r]||``,t),Object.create({diff:null}))}function ei(e=ri,t=ii,n=``){let r=Kr(n);return function(n){let i=A(n.trim(),!1,ti).map(function(n){let i=n.split(ni),a=$r(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 ti,ni,ri,ii,ai=S({"src/lib/parsers/parse-list-log-summary.ts"(){q(),Qr(),Ur(),ti=`òòòòòò `,ni=` òò`,ri=` ò `,ii=[`hash`,`date`,`message`,`refs`,`author_name`,`author_email`]}}),oi={};C(oi,{diffSummaryTask:()=>si,validateLogFormatConfig:()=>ci});function si(e){let t=Br(e),n=[`diff`];return t===``&&(t=`--stat`,n.push(`--stat=4096`)),n.push(...e),ci(n)||{commands:n,format:`utf-8`,parser:Kr(t)}}function ci(e){let t=e.filter(Vr);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 li=S({"src/lib/tasks/diff.ts"(){Ur(),Qr(),X()}});function ui(e,t){let n=[],r=[];return Object.keys(e).forEach(t=>{n.push(t),r.push(String(e[t]))}),[n,r.join(t)]}function di(e){return Object.keys(e).reduce((t,n)=>(n in hi||(t[n]=e[n]),t),{})}function fi(e={},t=[]){let n=B(e.splitter,V,ri),[r,i]=ui(ft(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:${ti}${i}${ni}`,...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`,ne(e.file)),Ot(di(e),o),{fields:r,splitter:n,commands:[...o,...a]}}function pi(e,t,n){let r=ei(e,t,Br(n));return{commands:[`log`,...n],format:`utf-8`,parser:r}}function mi(){return{log(...n){let r=G(arguments),i=fi(At(arguments),N(B(arguments[0],mt,[]))),a=t(...n)||ci(i.commands)||e(i);return this._runTask(a,r)}};function e(e){return pi(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 hi,gi=S({"src/lib/tasks/log.ts"(){Ur(),ai(),q(),X(),li(),hi=(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))(hi||{})}}),_i,vi,yi=S({"src/lib/responses/MergeSummary.ts"(){_i=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},vi=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`}}}}),bi,xi,Si=S({"src/lib/responses/PullSummary.ts"(){bi=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},xi=class{constructor(){this.remote=``,this.hash={local:``,remote:``},this.branch={local:``,remote:``},this.message=``}toString(){return this.message}}}});function Ci(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 wi(e){let t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:P(t&&t[1]||`0`),delta:P(n&&n[1]||`0`)}}var Ti,Ei=S({"src/lib/parsers/parse-remote-objects.ts"(){q(),Ti=[new U(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=Ci(e.remoteMessages);Object.assign(i,{[r]:P(n)})}),new U(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=Ci(e.remoteMessages);Object.assign(i,{[r]:P(n)})}),new U(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,n,r])=>{let i=Ci(e.remoteMessages);i.total=wi(t),i.reused=wi(n),i.packReused=P(r)})]}});function Di(e,t){return K({remoteMessages:new ki},Oi,t)}var Oi,ki,Ai=S({"src/lib/parsers/parse-remote-messages.ts"(){q(),Ei(),Oi=[new U(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...Ti,new U([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new U([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:P(t),summary:n,url:r}})],ki=class{constructor(){this.all=[]}}}});function ji(e,t){let n=K(new xi,Ii,[e,t]);return n.message&&n}var Mi,Ni,Pi,Fi,Ii,Li,Ri,zi=S({"src/lib/parsers/parse-pull.ts"(){Si(),q(),Ai(),Mi=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Ni=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Pi=/^(create|delete) mode \d+ (.+)/,Fi=[new H(Mi,(e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)}),new H(Ni,(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(Pi,(e,[t,n])=>{j(e.files,n),j(t===`create`?e.created:e.deleted,n)})],Ii=[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})],Li=(e,t)=>K(new bi,Fi,[e,t]),Ri=(e,t)=>Object.assign(new bi,Li(e,t),Di(e,t))}}),Bi,Vi,Hi,Ui=S({"src/lib/parsers/parse-merge.ts"(){yi(),q(),zi(),Bi=[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 _i(t,n))}),new H(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,n,r])=>{e.conflicts.push(new _i(t,n,{deleteRef:r}))}),new H(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new _i(t,null))}),new H(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Vi=(e,t)=>Object.assign(Hi(e,t),Ri(e,t)),Hi=e=>K(new vi,Bi,e)}});function Wi(e){return e.length?{commands:[`merge`,...e],format:`utf-8`,parser(e,t){let n=Vi(e,t);if(n.failed)throw new D(n);return n}}:J(`Git.merge requires at least one option`)}var Gi=S({"src/lib/tasks/merge.ts"(){O(),Ui(),X()}});function Ki(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,Ji,Yi,Xi=S({"src/lib/parsers/parse-push.ts"(){q(),Ai(),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(Ki(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}}})],Ji=(e,t)=>{let n=Yi(e,t),r=Di(e,t);return{...n,...r}},Yi=(e,t)=>K({pushed:[]},qi,[e,t])}}),Zi={};C(Zi,{pushTagsTask:()=>Qi,pushTask:()=>$i});function Qi(e={},t){return j(t,`--tags`),$i(e,t)}function $i(e={},t){let n=[`push`,...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),at(n,`-v`),j(n,`--verbose`),j(n,`--porcelain`),{commands:n,format:`utf-8`,parser:Ji}}var ea=S({"src/lib/tasks/push.ts"(){Xi(),q()}});function ta(){return{showBuffer(){let e=[`show`,...W(arguments,1)];return e.includes(`--binary`)||e.splice(1,0,`--binary`),this._runTask(Qt(e),G(arguments))},show(){let e=[`show`,...W(arguments,1)];return this._runTask(Y(e),G(arguments))}}}var na=S({"src/lib/tasks/show.ts"(){q(),X()}}),ra,ia,aa=S({"src/lib/responses/FileStatusSummary.ts"(){ra=/^(.+)\0(.+)$/,ia=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,t===`R`||n===`R`){let t=ra.exec(e)||[null,e,e];this.from=t[2]||``,this.path=t[1]||``}}}}});function oa(e){let[t,n]=e.split(L);return{from:n||t,to:t}}function Q(e,t,n){return[`${e}${t}`,n]}function sa(e,...t){return t.map(t=>Q(e,t,(e,t)=>e.conflicted.push(t)))}function ca(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=ua.get(i);a&&a(e,r),i!==`##`&&i!==`!!`&&e.files.push(new ia(r,t,n))}}var la,ua,da,fa=S({"src/lib/responses/StatusSummary.ts"(){q(),aa(),la=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}},ua=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(oa(t))}),Q(`R`,`M`,(e,t)=>{let n=oa(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)),...sa(`A`,`A`,`U`),...sa(`D`,`D`,`U`),...sa(`U`,`A`,`D`,`U`),[`##`,(e,t)=>{let n=/ahead (\d+)/,r=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,a=/\.{3}(\S*)/,o=/\son\s(\S+?)(?=\.{3}|$)/,s=n.exec(t);e.ahead=s&&+s[1]||0,s=r.exec(t),e.behind=s&&+s[1]||0,s=i.exec(t),e.current=B(s?.[1],V,null),s=a.exec(t),e.tracking=B(s?.[1],V,null),s=o.exec(t),s&&(e.current=B(s?.[1],V,e.current)),e.detached=/\(no branch\)/.test(t)}]]),da=function(e){let t=e.split(L),n=new la;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&(r.charAt(0)===`R`&&(r+=L+(t[e++]||``)),ca(n,r))}return n}}});function pa(e){return{format:`utf-8`,commands:[`status`,`--porcelain`,`-b`,`-u`,`--null`,...e.filter(e=>!ma.includes(e))],parser(e){return da(e)}}}var ma,ha=S({"src/lib/tasks/status.ts"(){fa(),ma=[`--null`,`-z`]}});function ga(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 _a(){return ga(0,0,0,``,!1)}function va(){return{version(){return this._runTask({commands:[`--version`],format:`utf-8`,parser:ya,onError(e,t,n,r){if(e.exitCode===-2)return n(Buffer.from(ba));r(t)}})}}}function ya(e){return e===ba?_a():K(ga(0,0,0,e),xa,e)}var ba,xa,Sa=S({"src/lib/tasks/version.ts"(){q(),ba=`installed=false`,xa=[new H(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,n,r,i=``])=>{Object.assign(e,ga(P(t),P(n),P(r),i))}),new H(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,n,r,i=``])=>{Object.assign(e,ga(P(t),P(n),r,i))})]}});function Ca(e,t,n,...r){return V(n)?t(n,B(r[0],V),W(arguments)):J(`git.${e}() requires a string 'repoPath'`)}function wa(){return{clone(e,...t){return this._runTask(Ca(`clone`,Ta,B(e,V),...t),G(arguments))},mirror(e,...t){return this._runTask(Ca(`mirror`,Ea,B(e,V),...t),G(arguments))}}}var Ta,Ea,Da=S({"src/lib/tasks/clone.ts"(){X(),q(),Ta=(e,t,n)=>{let r=[`clone`,...n];return V(e)&&r.push(ne(e)),V(t)&&r.push(ne(t)),Y(r)},Ea=(e,t,n)=>(j(n,`--mirror`),Ta(e,t,n))}}),Oa={};C(Oa,{SimpleGitApi:()=>ka});var ka,Aa=S({"src/lib/simple-git-api.ts"(){dr(),pr(),gr(),br(),Er(),kn(),Or(),Vn(),Ar(),zr(),gi(),Gi(),ea(),na(),ha(),X(),Sa(),q(),Da(),ka=class{constructor(e){this._executor=e}_runTask(e,t){let n=this._executor.chain(),r=n.push(e);return t&&lr(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(Y([`add`,...M(e)]),G(arguments))}cwd(e){let t=G(arguments);return typeof e==`string`?this._runTask(fr(e,this._executor),t):typeof e?.path==`string`?this._runTask(fr(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(kr(e,t===!0),G(arguments))}init(e){return this._runTask(Lr(e===!0,this._executor.cwd,W(arguments)),G(arguments))}merge(){return this._runTask(Wi(W(arguments)),G(arguments))}mergeFromTo(e,t){return V(e)&&V(t)?this._runTask(Wi([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=$i({remote:B(arguments[0],V),branch:B(arguments[1],V)},W(arguments));return this._runTask(e,G(arguments))}stash(){return this._runTask(Y([`stash`,...W(arguments)]),G(arguments))}status(){return this._runTask(pa(W(arguments)),G(arguments))}},Object.assign(ka.prototype,hr(),wa(),Tr(),Dn(),vr(),Dr(),In(),mi(),ta(),va())}}),ja={};C(ja,{Scheduler:()=>Na});var Ma,Na,Pa=S({"src/lib/runners/scheduler.ts"(){q(),$n(),Ma=(()=>{let e=0;return()=>{e++;let{promise:t,done:n}=(0,x.createDeferred)();return{promise:t,done:n,id:e}}})(),Na=class{constructor(e=2){this.concurrency=e,this.logger=Qn(``,`scheduler`),this.pending=[],this.running=[],this.logger(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}let e=j(this.running,this.pending.shift());this.logger(`Attempting id=%s`,e.id),e.done(()=>{this.logger(`Completing id=`,e.id),at(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=j(this.pending,Ma());return this.logger(`Scheduling id=%s`,t),this.schedule(),e}}}}),Fa={};C(Fa,{applyPatchTask:()=>Ia});function Ia(e,t){return Y([`apply`,...t,...e])}var La=S({"src/lib/tasks/apply-patch.ts"(){X()}});function Ra(e,t){return{branch:e,hash:t,success:!0}}function za(e){return{branch:e,hash:null,success:!1}}var Ba,Va=S({"src/lib/responses/BranchDeleteSummary.ts"(){Ba=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Ha(e,t){return t===1&&Wa.test(e)}var Ua,Wa,Ga,Ka,qa=S({"src/lib/parsers/parse-branch-delete.ts"(){Va(),q(),Ua=/(\S+)\s+\(\S+\s([^)]+)\)/,Wa=/^error[^']+'([^']+)'/m,Ga=[new H(Ua,(e,[t,n])=>{let r=Ra(t,n);e.all.push(r),e.branches[t]=r}),new H(Wa,(e,[t])=>{let n=za(t);e.errors.push(n),e.all.push(n),e.branches[t]=n})],Ka=(e,t)=>K(new Ba,Ga,[e,t])}}),Ja,Ya=S({"src/lib/responses/BranchSummary.ts"(){Ja=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 Xa(e){return e?e.charAt(0):``}function Za(e,t=!1){return K(new Ja,t?[$a]:Qa,e)}var Qa,$a,eo=S({"src/lib/parsers/parse-branch.ts"(){Ya(),q(),Qa=[new H(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,n,r,i])=>{e.push(Xa(t),!0,n,r,i)}),new H(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,n,r,i])=>{e.push(Xa(t),!1,n,r,i)})],$a=new H(/^(\S+)$/s,(e,[t])=>{e.push(`*`,!1,t,``,``)})}}),to={};C(to,{branchLocalTask:()=>io,branchTask:()=>ro,containsDeleteBranchCommand:()=>no,deleteBranchTask:()=>oo,deleteBranchesTask:()=>ao});function no(e){let t=[`-d`,`-D`,`--delete`];return e.some(e=>t.includes(e))}function ro(e){let t=no(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?Ka(e,r).all[0]:Za(e,n)}}}function io(){return{format:`utf-8`,commands:[`branch`,`-v`],parser(e){return Za(e)}}}function ao(e,t=!1){return{format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,...e],parser(e,t){return Ka(e,t)},onError({exitCode:e,stdOut:t},n,r,i){if(!Ha(String(n),e))return i(n);r(t)}}}function oo(e,t=!1){let n={format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,e],parser(t,n){return Ka(t,n).branches[e]},onError({exitCode:e,stdErr:t,stdOut:r},i,a,o){if(!Ha(String(i),e))return o(i);throw new D(n.parser(I(r),I(t)),String(i))}};return n}var so=S({"src/lib/tasks/branch.ts"(){O(),qa(),eo(),q()}});function co(e){let t=e.trim().replace(/^["']|["']$/g,``);return t&&r(t)}var lo,uo=S({"src/lib/responses/CheckIgnore.ts"(){lo=e=>e.split(/\n/g).map(co).filter(Boolean)}}),fo={};C(fo,{checkIgnoreTask:()=>po});function po(e){return{commands:[`check-ignore`,...e],format:`utf-8`,parser:lo}}var mo=S({"src/lib/tasks/check-ignore.ts"(){uo()}});function ho(e,t){return K({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},go,[e,t])}var go,_o=S({"src/lib/parsers/parse-fetch.ts"(){q(),go=[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})})]}}),vo={};C(vo,{fetchTask:()=>bo});function yo(e){return/^--upload-pack(=|$)/.test(e)}function bo(e,t,n){let r=[`fetch`,...n];return e&&t&&r.push(e,t),r.find(yo)?J(`git.fetch: potential exploit argument blocked.`):{commands:r,format:`utf-8`,parser:ho}}var xo=S({"src/lib/tasks/fetch.ts"(){_o(),X()}});function So(e){return K({moves:[]},Co,e)}var Co,wo=S({"src/lib/parsers/parse-move.ts"(){q(),Co=[new H(/^Renaming (.+) to (.+)$/,(e,[t,n])=>{e.moves.push({from:t,to:n})})]}}),To={};C(To,{moveTask:()=>Eo});function Eo(e,t){return{commands:[`mv`,`-v`,...M(e),t],format:`utf-8`,parser:So}}var Do=S({"src/lib/tasks/move.ts"(){wo(),q()}}),Oo={};C(Oo,{pullTask:()=>ko});function ko(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 Ri(e,t)},onError(e,t,n,r){let i=ji(I(e.stdOut),I(e.stdErr));if(i)return r(new D(i));r(t)}}}var Ao=S({"src/lib/tasks/pull.ts"(){O(),zi(),q()}});function jo(e){let t={};return No(e,([e])=>t[e]={name:e}),Object.values(t)}function Mo(e){let t={};return No(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 No(e,t){nt(e,e=>t(e.split(/\s+/)))}var Po=S({"src/lib/responses/GetRemoteSummary.ts"(){q()}}),Fo={};C(Fo,{addRemoteTask:()=>Io,getRemotesTask:()=>Lo,listRemotesTask:()=>Ro,remoteTask:()=>zo,removeRemoteTask:()=>Bo});function Io(e,t,n){return Y([`remote`,`add`,...n,e,t])}function Lo(e){let t=[`remote`];return e&&t.push(`-v`),{commands:t,format:`utf-8`,parser:e?Mo:jo}}function Ro(e){let t=[...e];return t[0]!==`ls-remote`&&t.unshift(`ls-remote`),Y(t)}function zo(e){let t=[...e];return t[0]!==`remote`&&t.unshift(`remote`),Y(t)}function Bo(e){return Y([`remote`,`remove`,e])}var Vo=S({"src/lib/tasks/remote.ts"(){Po(),X()}}),Ho={};C(Ho,{stashListTask:()=>Uo});function Uo(e={},t){let n=fi(e),r=[`stash`,`list`,...n.commands,...t],i=ei(n.splitter,n.fields,Br(r));return ci(r)||{commands:r,format:`utf-8`,parser:i}}var Wo=S({"src/lib/tasks/stash-list.ts"(){Ur(),ai(),li(),gi()}}),Go={};C(Go,{addSubModuleTask:()=>Ko,initSubModuleTask:()=>qo,subModuleTask:()=>Jo,updateSubModuleTask:()=>Yo});function Ko(e,t){return Jo([`add`,e,t])}function qo(e){return Jo([`init`,...e])}function Jo(e){let t=[...e];return t[0]!==`submodule`&&t.unshift(`submodule`),Y(t)}function Yo(e){return Jo([`update`,...e])}var Xo=S({"src/lib/tasks/sub-module.ts"(){X()}});function Zo(e,t){let n=Number.isNaN(e);return n===Number.isNaN(t)?n?Qo(e,t):0:n?1:-1}function Qo(e,t){return e===t?0:e>t?1:-1}function $o(e){return e.trim()}function es(e){return typeof e==`string`&&parseInt(e.replace(/^\D+/g,``),10)||0}var ts,ns,rs=S({"src/lib/responses/TagList.ts"(){ts=class{constructor(e,t){this.all=e,this.latest=t}},ns=function(e,t=!1){let n=e.split(`
9
- `).map($o).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return Zo(es(n[0]),es(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=Qo(es(n[e]),es(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new ts(n,r)}}}),is={};C(is,{addAnnotatedTagTask:()=>ss,addTagTask:()=>os,tagListTask:()=>as});function as(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return ns(e,t)}}}function os(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function ss(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var cs=S({"src/lib/tasks/tag.ts"(){rs()}}),ls=qe({"src/git.js"(e,t){var{GitExecutor:n}=(cr(),w(or)),{SimpleGitApi:r}=(Aa(),w(Oa)),{Scheduler:i}=(Pa(),w(ja)),{adhocExecTask:a,configurationErrorTask:o}=(X(),w(Xt)),{asArray:s,filterArray:c,filterPrimitives:l,filterString:u,filterStringOrStringArray:d,filterType:f,getTrailingOptions:p,trailingFunctionArgument:m,trailingOptionsArgument:ee}=(q(),w(Pt)),{applyPatchTask:te}=(La(),w(Fa)),{branchTask:ne,branchLocalTask:h,deleteBranchesTask:g,deleteBranchTask:re}=(so(),w(to)),{checkIgnoreTask:ie}=(mo(),w(fo)),{checkIsRepoTask:ae}=(Ut(),w(Ft)),{cleanWithOptionsTask:oe,isCleanOptionsArray:se}=(gn(),w(nn)),{diffSummaryTask:ce}=(li(),w(oi)),{fetchTask:le}=(xo(),w(vo)),{moveTask:_}=(Do(),w(To)),{pullTask:ue}=(Ao(),w(Oo)),{pushTagsTask:de}=(ea(),w(Zi)),{addRemoteTask:fe,getRemotesTask:pe,listRemotesTask:me,remoteTask:he,removeRemoteTask:ge}=(Vo(),w(Fo)),{getResetMode:_e,resetTask:ve}=(Jn(),w(Hn)),{stashListTask:ye}=(Wo(),w(Ho)),{addSubModuleTask:be,initSubModuleTask:xe,subModuleTask:Se,updateSubModuleTask:Ce}=(Xo(),w(Go)),{addAnnotatedTagTask:we,addTagTask:Te,tagListTask:Ee}=(cs(),w(is)),{straightThroughBufferTask:v,straightThroughStringTask:y}=(X(),w(Xt));function b(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(b.prototype=Object.create(r.prototype)).constructor=b,b.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},b.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},b.prototype.stashList=function(e){return this._runTask(ye(ee(arguments)||{},c(e)&&e||[]),m(arguments))},b.prototype.mv=function(e,t){return this._runTask(_(e,t),m(arguments))},b.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},b.prototype.pull=function(e,t,n,r){return this._runTask(ue(f(e,u),f(t,u),p(arguments)),m(arguments))},b.prototype.fetch=function(e,t){return this._runTask(le(f(e,u),f(t,u),p(arguments)),m(arguments))},b.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.")))},b.prototype.tags=function(e,t){return this._runTask(Ee(p(arguments)),m(arguments))},b.prototype.rebase=function(){return this._runTask(y([`rebase`,...p(arguments)]),m(arguments))},b.prototype.reset=function(e){return this._runTask(ve(_e(e),p(arguments)),m(arguments))},b.prototype.revert=function(e){let t=m(arguments);return typeof e==`string`?this._runTask(y([`revert`,...p(arguments,0,!0),e]),t):this._runTask(o(`Commit must be a string`),t)},b.prototype.addTag=function(e){let t=typeof e==`string`?Te(e):o(`Git.addTag requires a tag name`);return this._runTask(t,m(arguments))},b.prototype.addAnnotatedTag=function(e,t){return this._runTask(we(e,t),m(arguments))},b.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(re(e,typeof t==`boolean`?t:!1),m(arguments))},b.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(g(e,typeof t==`boolean`?t:!1),m(arguments))},b.prototype.branch=function(e,t){return this._runTask(ne(p(arguments)),m(arguments))},b.prototype.branchLocal=function(e){return this._runTask(h(),m(arguments))},b.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(y(n,this._trimmed),r):this._runTask(o(`Raw: must supply one or more command to execute`),r)},b.prototype.submoduleAdd=function(e,t,n){return this._runTask(be(e,t),m(arguments))},b.prototype.submoduleUpdate=function(e,t){return this._runTask(Ce(p(arguments,!0)),m(arguments))},b.prototype.submoduleInit=function(e,t){return this._runTask(xe(p(arguments,!0)),m(arguments))},b.prototype.subModule=function(e,t){return this._runTask(Se(p(arguments)),m(arguments))},b.prototype.listRemote=function(){return this._runTask(me(p(arguments)),m(arguments))},b.prototype.addRemote=function(e,t,n){return this._runTask(fe(e,t,p(arguments)),m(arguments))},b.prototype.removeRemote=function(e,t){return this._runTask(ge(e),m(arguments))},b.prototype.getRemotes=function(e,t){return this._runTask(pe(e===!0),m(arguments))},b.prototype.remote=function(e,t){return this._runTask(he(p(arguments)),m(arguments))},b.prototype.tag=function(e,t){let n=p(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(y(n),m(arguments))},b.prototype.updateServerInfo=function(e){return this._runTask(y([`update-server-info`]),m(arguments))},b.prototype.pushTags=function(e,t){let n=de({remote:f(e,u)},p(arguments));return this._runTask(n,m(arguments))},b.prototype.rm=function(e){return this._runTask(y([`rm`,`-f`,...s(e)]),m(arguments))},b.prototype.rmKeepLocal=function(e){return this._runTask(y([`rm`,`--cached`,...s(e)]),m(arguments))},b.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},b.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},b.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`?v(r):y(r);return this._runTask(a,n)},b.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`):y([`diff`,...p(arguments)]);return this._runTask(n,m(arguments))},b.prototype.diffSummary=function(){return this._runTask(ce(p(arguments,1)),m(arguments))},b.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))},b.prototype.revparse=function(){let e=[`rev-parse`,...p(arguments,!0)];return this._runTask(y(e,!0),m(arguments))},b.prototype.clean=function(e,t,n){let r=se(e),i=r&&e.join(``)||f(e,u)||``,a=p([].slice.call(arguments,r?1:0));return this._runTask(oe(i,a),m(arguments))},b.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},b.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.`)))},b.prototype.checkIgnore=function(e,t){return this._runTask(ie(s(f(e,d,[]))),m(arguments))},b.prototype.checkIsRepo=function(e,t){return this._runTask(ae(f(e,u)),m(arguments))},t.exports=b}});E();var us=class extends T{constructor(e,t){super(void 0,t),this.config=e}};E(),E();var $=class extends T{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};O(),Xe(),Ut(),gn(),kn(),Nn(),Vn(),Jn();function ds(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 fs(e={}){return{type:`spawn.args`,action(t,{env:n}){for(let r of Be(t,n))if(e[r.category]!==!0)throw new $(void 0,`unsafe`,r.message);return t}}}q();function ps(e){let t=F(e,`-c`);return{type:`spawn.args`,action(e){return[...t,...e]}}}q();var ms=(0,x.deferred)().promise;function hs({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?ms:i.closeTimeout.promise,t===!1?ms: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(()=>ct(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 ct(50),r(i.exitCode)}catch(e){r(i.exitCode,e)}}}}q();var gs=`Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`,_s=`Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;function vs(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(e)}function ys(e,t){if(e.length<1||e.length>2)throw new $(void 0,`binary`,gs);if(e.some(vs))if(t)console.warn(_s);else throw new $(void 0,`binary`,_s);let[n,r]=e;return{binary:n,prefix:r}}function bs(e,t=[`git`],n=!1){let r=ys(M(t),n);e.on(`binary`,e=>{r=ys(M(e),n)}),e.append(`spawn.binary`,()=>r.binary),e.append(`spawn.args`,e=>r.prefix?[r.prefix,...e]:e)}E();function xs(e){return!!(e.exitCode&&e.stdErr.length)}function Ss(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Cs(e=!1,t=xs,n=Ss){return(r,i)=>!e&&r||!t(i)?r:n(i)}function ws(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 Ts=class{constructor(){this.plugins=new Set,this.events=new o}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let n=j(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){let t=[];return M(e).forEach(e=>e&&this.plugins.add(j(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,n){let r=t,i=Object.freeze(Object.create(n));for(let t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};q();function Es(e){let t=`--progress`,n=[`checkout`,`clone`,`fetch`,`pull`,`push`];return[{type:`spawn.args`,action(e,r){return n.includes(r.method)?it(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:Ds(n[1]),progress:P(n[2]),processed:P(n[3]),total:P(n[4])})})}}]}function Ds(e){return String(e.toLowerCase().split(` `,1))||`unknown`}q();function Os(e){let t=st(e,[`uid`,`gid`]);return{type:`spawn.options`,action(e){return{...t,...e}}}}function ks({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 As(){return{type:`spawn.args`,action(e){let t=[],n;function r(e){(n||=[]).push(...e)}for(let n=0;n<e.length;n++){let i=e[n];if(h(i)){r(g(i));continue}if(i===`--`){r(e.slice(n+1).flatMap(e=>h(e)&&g(e)||e));break}t.push(i)}return n?[...t,`--`,...n.map(String)]:t}}}q();var js=ls();function Ms(e,t){let n=new Ts,r=Tt(e&&(typeof e==`string`?{baseDir:e}:e)||{},t);if(!rt(r.baseDir))throw new us(r,`Cannot use simple-git on a directory that does not exist`);return Array.isArray(r.config)&&n.add(ps(r.config)),n.add(fs(r.unsafe)),n.add(hs(r.completion)),r.abort&&n.add(ds(r.abort)),r.progress&&n.add(Es(r.progress)),r.timeout&&n.add(ks(r.timeout)),r.spawnOptions&&n.add(Os(r.spawnOptions)),n.add(As()),n.add(ws(Cs(!0))),r.errors&&n.add(ws(r.errors)),bs(n,r.binary,r.unsafe?.allowUnsafeCustomBinary),new js(r,n)}O();var Ns=Ms,Ps=Ms;const Fs=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function Is(e){return Fs.enqueue(e)}const Ls=[`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 Rs(e){let t={LANG:`C`,LC_ALL:`C`,GIT_TERMINAL_PROMPT:`0`},n=process.env.PATH??process.env.Path;n!==void 0&&(t.PATH=n);for(let e of Ls){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 zs(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 Bs(e){return e.split(`\0`).filter(e=>e.length>0)}function Vs(e,t={}){let{credentialArgs:n=[],gitIndexFile:r,ghToken:a,timeoutMs:o}=t,s=Rs(a);return r&&(s.GIT_INDEX_FILE=i(e,r)),{git:Ps({baseDir:e,config:[`commit.gpgsign=false`,`core.autocrlf=false`,...n.length>=2?[n[1]]:[]],unsafe:{allowUnsafeCredentialHelper:!0},...o===void 0?{}:{timeout:{block:o}}}).env(s),projectDir:e,credentialArgs:n,env:s}}export{Ps as a,Is as i,Vs as n,Ns as o,Bs as r,p as s,zs as t};
10
- //# sourceMappingURL=git-handle-Bhgrj9qX-DBwQr-02.mjs.map
9
+ `).map($o).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return Zo(es(n[0]),es(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=Qo(es(n[e]),es(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new ts(n,r)}}}),is={};C(is,{addAnnotatedTagTask:()=>ss,addTagTask:()=>os,tagListTask:()=>as});function as(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return ns(e,t)}}}function os(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function ss(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var cs=S({"src/lib/tasks/tag.ts"(){rs()}}),ls=qe({"src/git.js"(e,t){var{GitExecutor:n}=(cr(),w(or)),{SimpleGitApi:r}=(Aa(),w(Oa)),{Scheduler:i}=(Pa(),w(ja)),{adhocExecTask:a,configurationErrorTask:o}=(X(),w(Xt)),{asArray:s,filterArray:c,filterPrimitives:l,filterString:u,filterStringOrStringArray:d,filterType:f,getTrailingOptions:p,trailingFunctionArgument:m,trailingOptionsArgument:ee}=(q(),w(Pt)),{applyPatchTask:te}=(La(),w(Fa)),{branchTask:ne,branchLocalTask:h,deleteBranchesTask:g,deleteBranchTask:re}=(so(),w(to)),{checkIgnoreTask:ie}=(mo(),w(fo)),{checkIsRepoTask:ae}=(Ut(),w(Ft)),{cleanWithOptionsTask:oe,isCleanOptionsArray:se}=(gn(),w(nn)),{diffSummaryTask:ce}=(li(),w(oi)),{fetchTask:le}=(xo(),w(vo)),{moveTask:_}=(Do(),w(To)),{pullTask:ue}=(Ao(),w(Oo)),{pushTagsTask:de}=(ea(),w(Zi)),{addRemoteTask:fe,getRemotesTask:pe,listRemotesTask:me,remoteTask:he,removeRemoteTask:ge}=(Vo(),w(Fo)),{getResetMode:_e,resetTask:ve}=(Jn(),w(Hn)),{stashListTask:ye}=(Wo(),w(Ho)),{addSubModuleTask:be,initSubModuleTask:xe,subModuleTask:Se,updateSubModuleTask:Ce}=(Xo(),w(Go)),{addAnnotatedTagTask:we,addTagTask:Te,tagListTask:Ee}=(cs(),w(is)),{straightThroughBufferTask:v,straightThroughStringTask:y}=(X(),w(Xt));function b(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(b.prototype=Object.create(r.prototype)).constructor=b,b.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},b.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},b.prototype.stashList=function(e){return this._runTask(ye(ee(arguments)||{},c(e)&&e||[]),m(arguments))},b.prototype.mv=function(e,t){return this._runTask(_(e,t),m(arguments))},b.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},b.prototype.pull=function(e,t,n,r){return this._runTask(ue(f(e,u),f(t,u),p(arguments)),m(arguments))},b.prototype.fetch=function(e,t){return this._runTask(le(f(e,u),f(t,u),p(arguments)),m(arguments))},b.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.")))},b.prototype.tags=function(e,t){return this._runTask(Ee(p(arguments)),m(arguments))},b.prototype.rebase=function(){return this._runTask(y([`rebase`,...p(arguments)]),m(arguments))},b.prototype.reset=function(e){return this._runTask(ve(_e(e),p(arguments)),m(arguments))},b.prototype.revert=function(e){let t=m(arguments);return typeof e==`string`?this._runTask(y([`revert`,...p(arguments,0,!0),e]),t):this._runTask(o(`Commit must be a string`),t)},b.prototype.addTag=function(e){let t=typeof e==`string`?Te(e):o(`Git.addTag requires a tag name`);return this._runTask(t,m(arguments))},b.prototype.addAnnotatedTag=function(e,t){return this._runTask(we(e,t),m(arguments))},b.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(re(e,typeof t==`boolean`?t:!1),m(arguments))},b.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(g(e,typeof t==`boolean`?t:!1),m(arguments))},b.prototype.branch=function(e,t){return this._runTask(ne(p(arguments)),m(arguments))},b.prototype.branchLocal=function(e){return this._runTask(h(),m(arguments))},b.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(y(n,this._trimmed),r):this._runTask(o(`Raw: must supply one or more command to execute`),r)},b.prototype.submoduleAdd=function(e,t,n){return this._runTask(be(e,t),m(arguments))},b.prototype.submoduleUpdate=function(e,t){return this._runTask(Ce(p(arguments,!0)),m(arguments))},b.prototype.submoduleInit=function(e,t){return this._runTask(xe(p(arguments,!0)),m(arguments))},b.prototype.subModule=function(e,t){return this._runTask(Se(p(arguments)),m(arguments))},b.prototype.listRemote=function(){return this._runTask(me(p(arguments)),m(arguments))},b.prototype.addRemote=function(e,t,n){return this._runTask(fe(e,t,p(arguments)),m(arguments))},b.prototype.removeRemote=function(e,t){return this._runTask(ge(e),m(arguments))},b.prototype.getRemotes=function(e,t){return this._runTask(pe(e===!0),m(arguments))},b.prototype.remote=function(e,t){return this._runTask(he(p(arguments)),m(arguments))},b.prototype.tag=function(e,t){let n=p(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(y(n),m(arguments))},b.prototype.updateServerInfo=function(e){return this._runTask(y([`update-server-info`]),m(arguments))},b.prototype.pushTags=function(e,t){let n=de({remote:f(e,u)},p(arguments));return this._runTask(n,m(arguments))},b.prototype.rm=function(e){return this._runTask(y([`rm`,`-f`,...s(e)]),m(arguments))},b.prototype.rmKeepLocal=function(e){return this._runTask(y([`rm`,`--cached`,...s(e)]),m(arguments))},b.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},b.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},b.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`?v(r):y(r);return this._runTask(a,n)},b.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`):y([`diff`,...p(arguments)]);return this._runTask(n,m(arguments))},b.prototype.diffSummary=function(){return this._runTask(ce(p(arguments,1)),m(arguments))},b.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))},b.prototype.revparse=function(){let e=[`rev-parse`,...p(arguments,!0)];return this._runTask(y(e,!0),m(arguments))},b.prototype.clean=function(e,t,n){let r=se(e),i=r&&e.join(``)||f(e,u)||``,a=p([].slice.call(arguments,r?1:0));return this._runTask(oe(i,a),m(arguments))},b.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},b.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.`)))},b.prototype.checkIgnore=function(e,t){return this._runTask(ie(s(f(e,d,[]))),m(arguments))},b.prototype.checkIsRepo=function(e,t){return this._runTask(ae(f(e,u)),m(arguments))},t.exports=b}});E();var us=class extends T{constructor(e,t){super(void 0,t),this.config=e}};E(),E();var $=class extends T{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};O(),Xe(),Ut(),gn(),kn(),Nn(),Vn(),Jn();function ds(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 fs(e={}){return{type:`spawn.args`,action(t,{env:n}){for(let r of Be(t,n))if(e[r.category]!==!0)throw new $(void 0,`unsafe`,r.message);return t}}}q();function ps(e){let t=F(e,`-c`);return{type:`spawn.args`,action(e){return[...t,...e]}}}q();var ms=(0,x.deferred)().promise;function hs({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?ms:i.closeTimeout.promise,t===!1?ms: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(()=>ct(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 ct(50),r(i.exitCode)}catch(e){r(i.exitCode,e)}}}}q();var gs=`Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`,_s=`Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;function vs(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(e)}function ys(e,t){if(e.length<1||e.length>2)throw new $(void 0,`binary`,gs);if(e.some(vs))if(t)console.warn(_s);else throw new $(void 0,`binary`,_s);let[n,r]=e;return{binary:n,prefix:r}}function bs(e,t=[`git`],n=!1){let r=ys(M(t),n);e.on(`binary`,e=>{r=ys(M(e),n)}),e.append(`spawn.binary`,()=>r.binary),e.append(`spawn.args`,e=>r.prefix?[r.prefix,...e]:e)}E();function xs(e){return!!(e.exitCode&&e.stdErr.length)}function Ss(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Cs(e=!1,t=xs,n=Ss){return(r,i)=>!e&&r||!t(i)?r:n(i)}function ws(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 Ts=class{constructor(){this.plugins=new Set,this.events=new o}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let n=j(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){let t=[];return M(e).forEach(e=>e&&this.plugins.add(j(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,n){let r=t,i=Object.freeze(Object.create(n));for(let t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};q();function Es(e){let t=`--progress`,n=[`checkout`,`clone`,`fetch`,`pull`,`push`];return[{type:`spawn.args`,action(e,r){return n.includes(r.method)?it(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:Ds(n[1]),progress:P(n[2]),processed:P(n[3]),total:P(n[4])})})}}]}function Ds(e){return String(e.toLowerCase().split(` `,1))||`unknown`}q();function Os(e){let t=st(e,[`uid`,`gid`]);return{type:`spawn.options`,action(e){return{...t,...e}}}}function ks({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 As(){return{type:`spawn.args`,action(e){let t=[],n;function r(e){(n||=[]).push(...e)}for(let n=0;n<e.length;n++){let i=e[n];if(h(i)){r(g(i));continue}if(i===`--`){r(e.slice(n+1).flatMap(e=>h(e)&&g(e)||e));break}t.push(i)}return n?[...t,`--`,...n.map(String)]:t}}}q();var js=ls();function Ms(e,t){let n=new Ts,r=Tt(e&&(typeof e==`string`?{baseDir:e}:e)||{},t);if(!rt(r.baseDir))throw new us(r,`Cannot use simple-git on a directory that does not exist`);return Array.isArray(r.config)&&n.add(ps(r.config)),n.add(fs(r.unsafe)),n.add(hs(r.completion)),r.abort&&n.add(ds(r.abort)),r.progress&&n.add(Es(r.progress)),r.timeout&&n.add(ks(r.timeout)),r.spawnOptions&&n.add(Os(r.spawnOptions)),n.add(As()),n.add(ws(Cs(!0))),r.errors&&n.add(ws(r.errors)),bs(n,r.binary,r.unsafe?.allowUnsafeCustomBinary),new js(r,n)}O();var Ns=Ms,Ps=Ms;const Fs=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function Is(e){return Fs.enqueue(e)}const Ls=[`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 Rs(e){let t={LANG:`C`,LC_ALL:`C`,GIT_TERMINAL_PROMPT:`0`},n=process.env.PATH??process.env.Path;n!==void 0&&(t.PATH=n);for(let e of Ls){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 zs(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 Bs(e,t={}){let{credentialArgs:n=[],gitIndexFile:r,ghToken:a,timeoutMs:o}=t,s=Rs(a);return r&&(s.GIT_INDEX_FILE=i(e,r)),{git:Ps({baseDir:e,config:[`commit.gpgsign=false`,`core.autocrlf=false`,...n.length>=2?[n[1]]:[]],unsafe:{allowUnsafeCredentialHelper:!0},...o===void 0?{}:{timeout:{block:o}}}).env(s),projectDir:e,credentialArgs:n,env:s}}export{Ns as a,Ps as i,Bs as n,p as o,Is as r,zs as t};
10
+ //# sourceMappingURL=git-handle-B4hCEi7c-CXOP12Ds.mjs.map
@@ -0,0 +1 @@
1
+ import{n as e}from"./git-handle-B4hCEi7c-CXOP12Ds.mjs";export{e as createGitInstance};
@@ -0,0 +1 @@
1
+ import"./chunk-B74TABJS-DlbqoTuk.mjs";import"./chunk-DXB73IDG-Bx-Ikbnu.mjs";import"./chunk-SNN4IESC-C-P75V1I.mjs";import"./chunk-2TRDZQLB-C2G-sahM.mjs";import{o as e,r as t,t as n}from"./chunk-3H6UQG3A-DdNaIxPm.mjs";export{e as egrepCommand,t as fgrepCommand,n as grepCommand};
package/dist/index.d.mts CHANGED
@@ -278,6 +278,35 @@ declare function previewContent(opts: PreviewOptions): PreviewResult;
278
278
  * with `~/.cursor/mcp.json` (and friends) symlinked to a managed location.
279
279
  */
280
280
  declare function assertProjectPathSafe(targetPath: string, cwd: string): void;
281
+ interface ProjectSkillResult {
282
+ readonly editorId: EditorId;
283
+ readonly label: string;
284
+ readonly action: 'written' | 'overwritten' | 'skipped-unsupported' | 'failed';
285
+ readonly path: string;
286
+ readonly error?: string;
287
+ }
288
+ declare function writeProjectSkill(target: EditorMcpTarget, cwd: string): ProjectSkillResult;
289
+ interface ProjectSkillRemoveResult {
290
+ readonly editorId: EditorId;
291
+ readonly label: string;
292
+ readonly action: 'removed' | 'not-present' | 'skipped-unsupported' | 'failed';
293
+ readonly path: string;
294
+ readonly error?: string;
295
+ }
296
+ /**
297
+ * Targeted uninstall of the project-local runtime skill — the reverse of
298
+ * `writeProjectSkill`, for the Settings-driven per-component toggle.
299
+ *
300
+ * OpenKnowledge owns the whole `<host>/skills/open-knowledge/` directory (the
301
+ * write path `cpSync`s the bundle into it wholesale), so removal is
302
+ * whole-directory. The presence of the managed `SKILL.md` at
303
+ * `projectSkillPath` is the ownership marker: a directory at the managed path
304
+ * WITHOUT it is not something OK authored and is left untouched
305
+ * (`not-present`). The same symlink-escape guard the write path uses runs
306
+ * before the `rmSync`, so a symlinked ancestor (`.claude -> /etc`) can never
307
+ * route the recursive removal outside the project tree.
308
+ */
309
+ declare function removeProjectSkill(target: EditorMcpTarget, cwd: string): ProjectSkillRemoveResult;
281
310
  //#endregion
282
311
  //#region src/sharing/git-exclude.d.ts
283
312
  /**
@@ -1214,5 +1243,5 @@ interface ProjectAiIntegrationsResult {
1214
1243
  }
1215
1244
  declare function writeProjectAiIntegrations(projectDir: string, selectedEditorIds: readonly EditorId[], installOptions?: McpInstallOptions): ProjectAiIntegrationsResult;
1216
1245
  //#endregion
1217
- export { ALL_EDITOR_IDS, EDITOR_LABELS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type ExcludeWriteResult, type ExpectedShareRepo, type GhDetectResult, HOSTS_WITH_USER_SKILL_DIR, type IntegrationWriteOutcome, LAUNCH_CONFIG_NAME, LAUNCH_UI_CHAIN_SENTINEL, LAUNCH_UI_CHAIN_V1, type LaunchJsonResult, type LoadConfigResult, type McpConfigDeclineEvent, type McpConfigDeclineScope, type McpConfigMigrateEvent, type McpConfigMigrateScope, type McpDeclineReason, type McpEntryClassification, type McpInstallOptions, type McpRemoveOutcome, PATH_SHIM_BEGIN, PATH_SHIM_BLOCK_RE, PATH_SHIM_END, type ParsedGitHubBlobUrl, type ParsedGitHubShareTarget, type ParsedGitHubTreeUrl, type PathDiscovery, type PathInstallConsent, type PathInstallMarker, type PreviewResult, type ProjectAiIntegrationsResult, type ResolveProjectRootOptions, type ResolveProjectRootResult, type ShareFolderValidationResult, type SharingMode, type SkillBundleTarget, type TokenStore, type TrackedRefusal, type UserMcpConfigsOptions, addOkPathsToGitExclude, assertProjectPathSafe, buildManagedServerEntry, buildMcpConfigDeclineEvent, buildMcpConfigMigrateEvent, classifyExistingMcpEntry, createTokenStore, detectGh, detectInstalledEditors, formatTrackedRemediation, getExcludedOkPaths, getOkArtifactPaths, isEntryUpToDate, isOwnManagedEntry, loadConfig, makeLazyProbeTokenStore, parseGitHubBlobUrl, parseGitHubShareUrl, parseGitHubTreeUrl, parseGitUrl, pathInstallMarkerPath, previewContent, probeTrackedOkPaths, readExistingMcpEntry, readSharingMode, removeOkPathsFromGitExclude, removeOwnMcpEntry, removeUserGlobalSkillBundle, resolveProjectRoot, runStop, scaffoldLaunchJson, truncatePriorEntry, userGlobalSkillBundleTargets, validateLocalFolderForShare, writeEditorMcpConfig, writeProjectAiIntegrations, writeUserMcpConfigs };
1246
+ export { ALL_EDITOR_IDS, EDITOR_LABELS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type ExcludeWriteResult, type ExpectedShareRepo, type GhDetectResult, HOSTS_WITH_USER_SKILL_DIR, type IntegrationWriteOutcome, LAUNCH_CONFIG_NAME, LAUNCH_UI_CHAIN_SENTINEL, LAUNCH_UI_CHAIN_V1, type LaunchJsonResult, type LoadConfigResult, type McpConfigDeclineEvent, type McpConfigDeclineScope, type McpConfigMigrateEvent, type McpConfigMigrateScope, type McpDeclineReason, type McpEntryClassification, type McpInstallOptions, type McpRemoveOutcome, PATH_SHIM_BEGIN, PATH_SHIM_BLOCK_RE, PATH_SHIM_END, type ParsedGitHubBlobUrl, type ParsedGitHubShareTarget, type ParsedGitHubTreeUrl, type PathDiscovery, type PathInstallConsent, type PathInstallMarker, type PreviewResult, type ProjectAiIntegrationsResult, type ProjectSkillRemoveResult, type ProjectSkillResult, type ResolveProjectRootOptions, type ResolveProjectRootResult, type ShareFolderValidationResult, type SharingMode, type SkillBundleTarget, type TokenStore, type TrackedRefusal, type UserMcpConfigsOptions, addOkPathsToGitExclude, assertProjectPathSafe, buildManagedServerEntry, buildMcpConfigDeclineEvent, buildMcpConfigMigrateEvent, classifyExistingMcpEntry, createTokenStore, detectGh, detectInstalledEditors, formatTrackedRemediation, getExcludedOkPaths, getOkArtifactPaths, isEntryUpToDate, isOwnManagedEntry, loadConfig, makeLazyProbeTokenStore, parseGitHubBlobUrl, parseGitHubShareUrl, parseGitHubTreeUrl, parseGitUrl, pathInstallMarkerPath, previewContent, probeTrackedOkPaths, readExistingMcpEntry, readSharingMode, removeOkPathsFromGitExclude, removeOwnMcpEntry, removeProjectSkill, removeUserGlobalSkillBundle, resolveProjectRoot, runStop, scaffoldLaunchJson, truncatePriorEntry, userGlobalSkillBundleTargets, validateLocalFolderForShare, writeEditorMcpConfig, writeProjectAiIntegrations, writeProjectSkill, writeUserMcpConfigs };
1218
1247
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{i as e,r as t,t as n}from"./gh-detect-DSpFEO46.mjs";import{B as r,C as i,E as a,F as o,I as s,L as c,P as l,R as u,S as d,a as f,b as p,i as m,l as h,m as g,n as _,u as v,z as y}from"./init-ivEBwK7y.mjs";import{_ as b,b as x,d as S,f as C,i as w,l as T,m as E,n as D,r as O,t as k,u as A,v as j,y as M}from"./src-Cc1qY4l3.mjs";import{a as N,c as P,g as F,h as I,i as L,l as R,m as z,r as B,t as V,u as H}from"./write-project-skill-GLroKiE7.mjs";import{n as U}from"./loader-u0w9n8j8.mjs";import{n as W}from"./preview-DuGdXEFZ.mjs";import{n as G,t as K}from"./mcp-migrate-event-D0NrGjvc.mjs";export{N as ALL_EDITOR_IDS,P as EDITOR_LABELS,R as EDITOR_TARGETS,H as HOSTS_WITH_USER_SKILL_DIR,_ as LAUNCH_CONFIG_NAME,m as LAUNCH_UI_CHAIN_SENTINEL,f as LAUNCH_UI_CHAIN_V1,A as PATH_SHIM_BEGIN,S as PATH_SHIM_BLOCK_RE,C as PATH_SHIM_END,l as addOkPathsToGitExclude,V as assertProjectPathSafe,z as buildManagedServerEntry,O as buildMcpConfigDeclineEvent,K as buildMcpConfigMigrateEvent,h as classifyExistingMcpEntry,t as createTokenStore,n as detectGh,v as detectInstalledEditors,o as formatTrackedRemediation,s as getExcludedOkPaths,c as getOkArtifactPaths,I as isEntryUpToDate,F as isOwnManagedEntry,U as loadConfig,e as makeLazyProbeTokenStore,b as parseGitHubBlobUrl,j as parseGitHubShareUrl,M as parseGitHubTreeUrl,x as parseGitUrl,E as pathInstallMarkerPath,W as previewContent,u as probeTrackedOkPaths,g as readExistingMcpEntry,y as readSharingMode,r as removeOkPathsFromGitExclude,T as removeOwnMcpEntry,B as removeUserGlobalSkillBundle,a as resolveProjectRoot,w as runStop,p as scaffoldLaunchJson,G as truncatePriorEntry,L as userGlobalSkillBundleTargets,D as validateLocalFolderForShare,d as writeEditorMcpConfig,k as writeProjectAiIntegrations,i as writeUserMcpConfigs};
1
+ import{i as e,r as t,t as n}from"./gh-detect-DSpFEO46.mjs";import{B as r,C as i,E as a,F as o,I as s,L as c,P as l,R as u,S as d,a as f,b as p,i as m,l as h,m as g,n as _,u as v,z as y}from"./init-CylIL2_d.mjs";import{_ as b,b as x,d as S,f as C,i as w,l as T,m as E,n as D,r as O,t as k,u as A,v as j,y as M}from"./src-DL-hUlrv.mjs";import{_ as N,a as P,d as F,g as I,h as L,i as R,l as z,n as B,o as V,r as H,t as U,u as W}from"./write-project-skill-C7UNscN7.mjs";import{n as G}from"./loader-DL7cugZT.mjs";import{n as K}from"./preview-Bn8zUTY3.mjs";import{n as q,t as J}from"./mcp-migrate-event-D0NrGjvc.mjs";export{V as ALL_EDITOR_IDS,z as EDITOR_LABELS,W as EDITOR_TARGETS,F as HOSTS_WITH_USER_SKILL_DIR,_ as LAUNCH_CONFIG_NAME,m as LAUNCH_UI_CHAIN_SENTINEL,f as LAUNCH_UI_CHAIN_V1,A as PATH_SHIM_BEGIN,S as PATH_SHIM_BLOCK_RE,C as PATH_SHIM_END,l as addOkPathsToGitExclude,U as assertProjectPathSafe,L as buildManagedServerEntry,O as buildMcpConfigDeclineEvent,J as buildMcpConfigMigrateEvent,h as classifyExistingMcpEntry,t as createTokenStore,n as detectGh,v as detectInstalledEditors,o as formatTrackedRemediation,s as getExcludedOkPaths,c as getOkArtifactPaths,I as isEntryUpToDate,N as isOwnManagedEntry,G as loadConfig,e as makeLazyProbeTokenStore,b as parseGitHubBlobUrl,j as parseGitHubShareUrl,M as parseGitHubTreeUrl,x as parseGitUrl,E as pathInstallMarkerPath,K as previewContent,u as probeTrackedOkPaths,g as readExistingMcpEntry,y as readSharingMode,r as removeOkPathsFromGitExclude,T as removeOwnMcpEntry,B as removeProjectSkill,R as removeUserGlobalSkillBundle,a as resolveProjectRoot,w as runStop,p as scaffoldLaunchJson,q as truncatePriorEntry,P as userGlobalSkillBundleTargets,D as validateLocalFolderForShare,d as writeEditorMcpConfig,k as writeProjectAiIntegrations,H as writeProjectSkill,i as writeUserMcpConfigs};