@inkeep/open-knowledge 0.11.0-beta.1 → 0.11.0-beta.11

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 (294) hide show
  1. package/dist/alias-JE7RI5QX-oTDRHt3W.mjs +1 -0
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/awk2-POPGKRAI-BZ_7e8H1.mjs +1 -0
  5. package/dist/base64-4YMZCVJ5-BhIrz6He.mjs +1 -0
  6. package/dist/basename-AA2KJYZQ-C5R0pcfV.mjs +1 -0
  7. package/dist/bash-IJWYRKFO-DywpGlyx.mjs +1 -0
  8. package/dist/{build-Dt6UA4sF.mjs → build-CJEQ0nGy.mjs} +1 -1
  9. package/dist/build-CZpdADQB.mjs +1 -0
  10. package/dist/cat-RDUMLXKC-BNwer8pK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-BN-B1xmG.mjs +1 -0
  12. package/dist/{chunk-24IMIIXA-B6yIPkk2.mjs → chunk-24IMIIXA-C-Zyd2K_.mjs} +2 -2
  13. package/dist/{chunk-3THT3N7L-DztAF386.mjs → chunk-3THT3N7L-Ce6LrnIA.mjs} +1 -1
  14. package/dist/{chunk-44UOCSGV-CaFxJDHm.mjs → chunk-44UOCSGV-uErOrz7G.mjs} +1 -1
  15. package/dist/{chunk-5QMZ5MUS-CAp625aG.mjs → chunk-5QMZ5MUS-BfIuRNkK.mjs} +2 -2
  16. package/dist/{chunk-62RKD26F-CBIDfuTL.mjs → chunk-62RKD26F-CvuML91F.mjs} +2 -2
  17. package/dist/{chunk-A4JSPFCI-v5lUtffG.mjs → chunk-A4JSPFCI-k-tJSZgB.mjs} +2 -2
  18. package/dist/{chunk-A5O5YHGN-DvJz5Cpw.mjs → chunk-A5O5YHGN-C6ngIqYR.mjs} +2 -2
  19. package/dist/{chunk-BBXLRYSX-DHx5dxhT.mjs → chunk-BBXLRYSX-Oks1GMhO.mjs} +2 -2
  20. package/dist/{chunk-BRGMQKJV-CD9YvPOS.mjs → chunk-BRGMQKJV-CHO764qS.mjs} +2 -2
  21. package/dist/{chunk-CR5AFCPT-BWXo8X-o.mjs → chunk-CR5AFCPT-CH8ZGz3B.mjs} +2 -2
  22. package/dist/{chunk-CWQS3NFK-Co4ALolT.mjs → chunk-CWQS3NFK-BP3kiNgH.mjs} +1 -1
  23. package/dist/{chunk-D6CWQ5DW-Cik2LGX1.mjs → chunk-D6CWQ5DW-BgQGt8eQ.mjs} +2 -2
  24. package/dist/{chunk-DXB73IDG-DIKSLkPq.mjs → chunk-DXB73IDG-C2RuFAAY.mjs} +1 -1
  25. package/dist/{chunk-F55TLFGB-oTuag-aK.mjs → chunk-F55TLFGB-Bkfd8ak_.mjs} +2 -2
  26. package/dist/{chunk-FEIOJCZD-C25Und0M.mjs → chunk-FEIOJCZD-DmvuPNqm.mjs} +2 -2
  27. package/dist/{chunk-GFQRA5P5-DnjwTqP3.mjs → chunk-GFQRA5P5-ePq2jelx.mjs} +1 -1
  28. package/dist/{chunk-GOV5EKKI-i-yw_7Ty.mjs → chunk-GOV5EKKI-CyL1eJ32.mjs} +2 -2
  29. package/dist/{chunk-HWBSOZZR-Bw5kf-cE.mjs → chunk-HWBSOZZR-BeVrNfQw.mjs} +2 -2
  30. package/dist/{chunk-I57KEIP3-DwNGEmJW.mjs → chunk-I57KEIP3-5RFY25TO.mjs} +2 -2
  31. package/dist/{chunk-IPJHKYVM-C3IodQq7.mjs → chunk-IPJHKYVM-D6H6ZTtk.mjs} +1 -1
  32. package/dist/{chunk-J642UCRS-DuJ82Ao2.mjs → chunk-J642UCRS-D87gHOLP.mjs} +2 -2
  33. package/dist/{chunk-LPQPILI2-CfDX1Tyv.mjs → chunk-LPQPILI2-DyyhWSR7.mjs} +2 -2
  34. package/dist/{chunk-MDDMCKUK-BrBgeH_z.mjs → chunk-MDDMCKUK-poQ25EjI.mjs} +2 -2
  35. package/dist/{chunk-MIZPJHVH-D3ET6RI_.mjs → chunk-MIZPJHVH-BdoPqh_Y.mjs} +2 -2
  36. package/dist/{chunk-MLXIYONF-dOe6Iqcc.mjs → chunk-MLXIYONF-DwewZM3r.mjs} +2 -2
  37. package/dist/{chunk-NAERJDUW-CYdostkt.mjs → chunk-NAERJDUW-BFcmkHme.mjs} +2 -2
  38. package/dist/{chunk-NUYSJFDK-CU1FKadr.mjs → chunk-NUYSJFDK-DAvAseHr.mjs} +2 -2
  39. package/dist/{chunk-NYQYO467-DUxnOnNG.mjs → chunk-NYQYO467-_2947cgi.mjs} +2 -2
  40. package/dist/{chunk-OARHFVLG-CpUL83N9.mjs → chunk-OARHFVLG-vxL5zuWx.mjs} +2 -2
  41. package/dist/{chunk-OCLXQMOG-LAs82g00.mjs → chunk-OCLXQMOG-C7k2qEN6.mjs} +2 -2
  42. package/dist/{chunk-OCS6LSEM-y5pQiBQp.mjs → chunk-OCS6LSEM-Lh1p0H-V.mjs} +2 -2
  43. package/dist/{chunk-OJDRYQWQ-ikvLWpfV.mjs → chunk-OJDRYQWQ-DWhg7YHU.mjs} +1 -1
  44. package/dist/{chunk-OL3S66CO-DjFShiWt.mjs → chunk-OL3S66CO-B3hSNlNP.mjs} +2 -2
  45. package/dist/{chunk-PBXLG62G-CU755yEQ.mjs → chunk-PBXLG62G-MmAqjdXR.mjs} +2 -2
  46. package/dist/{chunk-R6VWJ2ZL-FwG_Za20.mjs → chunk-R6VWJ2ZL-D1Ufj9fh.mjs} +1 -1
  47. package/dist/{chunk-SYMJJMQ4-tl6Dz6VW.mjs → chunk-SYMJJMQ4-DLPoQaug.mjs} +2 -2
  48. package/dist/{chunk-T56QNPHK-Dzjonwlk.mjs → chunk-T56QNPHK-TppyesRp.mjs} +2 -2
  49. package/dist/{chunk-TLSUDHID-DYvzalvd.mjs → chunk-TLSUDHID-B2VV2ufQ.mjs} +2 -2
  50. package/dist/{chunk-TOMNU26N-DYqwg_75.mjs → chunk-TOMNU26N-DfLjxpHW.mjs} +2 -2
  51. package/dist/{chunk-UNYNJIFU-B6KF1Gqq.mjs → chunk-UNYNJIFU--HT-3lrq.mjs} +3 -3
  52. package/dist/{chunk-VLGZJRPG-ChVasMna.mjs → chunk-VLGZJRPG-DbWYxLfI.mjs} +2 -2
  53. package/dist/{chunk-XHM67O4N-53eJIPK0.mjs → chunk-XHM67O4N-BWGDFyz_.mjs} +1 -1
  54. package/dist/{chunk-XORM457F-BlSrSdGX.mjs → chunk-XORM457F-D-QrjagQ.mjs} +2 -2
  55. package/dist/{chunk-YCFVLTST-uJkMN44i.mjs → chunk-YCFVLTST-CFJxSbsH.mjs} +2 -2
  56. package/dist/{chunk-YFG2CMIF-DYVCRkoM.mjs → chunk-YFG2CMIF-DkT4NiqV.mjs} +2 -2
  57. package/dist/{chunk-YNYSPYQ5-DesxOVHh.mjs → chunk-YNYSPYQ5-iQGTFdx0.mjs} +1 -1
  58. package/dist/{chunk-YS3AZT3J-DqU1hDNV.mjs → chunk-YS3AZT3J-w6Dw8reo.mjs} +2 -2
  59. package/dist/{chunk-YTNYSM6T-ChSQxUVG.mjs → chunk-YTNYSM6T-Cz_dxkBy.mjs} +2 -2
  60. package/dist/{chunk-Z6LRHWXI-CEAGkbzj.mjs → chunk-Z6LRHWXI-BcgkPhhu.mjs} +2 -2
  61. package/dist/clear-5CZ5X4YR-B6kVcfOw.mjs +1 -0
  62. package/dist/cli.mjs +49 -49
  63. package/dist/column-WLPMMSTS-CEev_e2R.mjs +1 -0
  64. package/dist/comm-5SLSESQG-BXsiD7To.mjs +1 -0
  65. package/dist/config-schema.json +9 -0
  66. package/dist/config.project-local.schema.json +9 -0
  67. package/dist/constants-CYbUNjOm.mjs +2 -0
  68. package/dist/cp-XOYR4ABJ-Dy5aHk72.mjs +1 -0
  69. package/dist/{curl-47BFPSFW-CseKVLFy.mjs → curl-47BFPSFW-CdMFK7aW.mjs} +2 -2
  70. package/dist/cut-OPC3VAGB-GohHdbJ4.mjs +1 -0
  71. package/dist/date-DD7FVA2V-RM_vdvCh.mjs +1 -0
  72. package/dist/diff-HJF2MPDN-DTuHZGVW.mjs +1 -0
  73. package/dist/dirname-LEMTZZFS-C6aDcxLl.mjs +1 -0
  74. package/dist/dist-B2QcMC3d.mjs +1 -0
  75. package/dist/{dist-C0xnaEtj.mjs → dist-Bms63Kbz.mjs} +30 -33
  76. package/dist/{dist-bundle-BK4P1EQn.mjs → dist-bundle-B3l-HkEL.mjs} +1 -1
  77. package/dist/dist-bundle-XlngXUNr.mjs +1 -0
  78. package/dist/du-WO2ENHXQ-Da1HuQkH.mjs +1 -0
  79. package/dist/echo-O45JWWI2-Cr9jHdYm.mjs +1 -0
  80. package/dist/env-5EPCWSXR-6RSqo9Bn.mjs +1 -0
  81. package/dist/{esm-s2X3YAg-.mjs → esm-k1YlZnpm.mjs} +1 -1
  82. package/dist/expand-DTNXU4LQ-D4dbwBrD.mjs +1 -0
  83. package/dist/expansion-ENLSRCXJ-Bv6RV19y.mjs +1 -0
  84. package/dist/expr-5T3UU5KE-D7ekHiOy.mjs +1 -0
  85. package/dist/file-ZIGAJ4YS-DzKHvjCj.mjs +1 -0
  86. package/dist/find-TPUOAIUQ-DuBwOGWI.mjs +1 -0
  87. package/dist/{flag-coverage-QT4N2Z44-C7XMLkDY.mjs → flag-coverage-QT4N2Z44-DmAL_7h5.mjs} +2 -2
  88. package/dist/fold-LDSORVYE-BQyKAmCr.mjs +1 -0
  89. package/dist/{getMachineId-bsd-BCJXEJCn.mjs → getMachineId-bsd-CzP05Ffc.mjs} +2 -2
  90. package/dist/{getMachineId-bsd-GIcY1fmf.mjs → getMachineId-bsd-D0erQsHH.mjs} +2 -2
  91. package/dist/{getMachineId-bsd-D7C80Q-x.mjs → getMachineId-bsd-Dp2q7huT.mjs} +2 -2
  92. package/dist/{getMachineId-darwin-C9wsuHP1.mjs → getMachineId-darwin-C4PiguA-.mjs} +2 -2
  93. package/dist/{getMachineId-darwin-D9y6ky_l.mjs → getMachineId-darwin-COcA_c6l.mjs} +2 -2
  94. package/dist/{getMachineId-darwin-DG876t7S.mjs → getMachineId-darwin-CywdnyvB.mjs} +2 -2
  95. package/dist/{getMachineId-linux-Bt9mk0EE.mjs → getMachineId-linux-BRPjBsHg.mjs} +2 -2
  96. package/dist/{getMachineId-linux-D9atImpV.mjs → getMachineId-linux-CQZJR55S.mjs} +2 -2
  97. package/dist/{getMachineId-linux-BJESQahL.mjs → getMachineId-linux-DcN5tfI_.mjs} +2 -2
  98. package/dist/{getMachineId-unsupported-Dabs3aBp.mjs → getMachineId-unsupported-BokXsjFr.mjs} +2 -2
  99. package/dist/{getMachineId-unsupported-cApRznzG.mjs → getMachineId-unsupported-DZAxq-oW.mjs} +2 -2
  100. package/dist/{getMachineId-unsupported-DAbsbHrs.mjs → getMachineId-unsupported-GPbM_evk.mjs} +2 -2
  101. package/dist/{getMachineId-win-CU_iAQo9.mjs → getMachineId-win-B20yaCSB.mjs} +2 -2
  102. package/dist/{getMachineId-win-CH98qgwX.mjs → getMachineId-win-BXWDfxLS.mjs} +2 -2
  103. package/dist/{getMachineId-win-1MPHaim9.mjs → getMachineId-win-BfSvDvM7.mjs} +2 -2
  104. package/dist/gh-detect-TiuAfW0N.mjs +3 -0
  105. package/dist/git-handle-CTJE6H8P-aY9Efmma.mjs +1 -0
  106. package/dist/{git-handle-BSAUg1L_-Bn2h-fYS.mjs → git-handle-Cd7K54Co-D4vPl00M.mjs} +2 -2
  107. package/dist/grep-3AIAIJVR-DhLMPK9o.mjs +1 -0
  108. package/dist/gzip-AQXSGOVS-kzAFjO_Y.mjs +1 -0
  109. package/dist/head-HT2B6D2J-BR-dv_ar.mjs +1 -0
  110. package/dist/help-VVWX7SA5-jdvqGfQj.mjs +1 -0
  111. package/dist/history-J4QRNGRO-jb5B-tWQ.mjs +1 -0
  112. package/dist/hostname-BK6HG2DE-CVVAGatl.mjs +1 -0
  113. package/dist/html-to-markdown-TFCECAGV-B5yiu2Qr.mjs +1 -0
  114. package/dist/index.d.mts +12 -1
  115. package/dist/index.mjs +1 -1
  116. package/dist/init-2AE5caiR.mjs +1 -0
  117. package/dist/{init-DQkMCwLp.mjs → init-cagPMbeu.mjs} +16 -16
  118. package/dist/join-GG2LDHE5-BLgXAHZ_.mjs +1 -0
  119. package/dist/jq-ODXZBPLY-JpgGenzN.mjs +1 -0
  120. package/dist/{js-exec-M6UR76J5-Cw-W_H_2.mjs → js-exec-M6UR76J5-Bo7dCQVP.mjs} +3 -3
  121. package/dist/{libesm-B_qVEpZ1.mjs → libesm-D3nlnq5U.mjs} +2 -2
  122. package/dist/ln-4TRFBYAT-C7xn5Rqr.mjs +1 -0
  123. package/dist/loader-ClGn0TDc.mjs +1 -0
  124. package/dist/{loader-nhfOe5Do.mjs → loader-tSk9esYV.mjs} +2 -2
  125. package/dist/ls-KSXFZCWH-BFVVAoBi.mjs +1 -0
  126. package/dist/md5sum-INMIK4DX-0GZIz1Ci.mjs +1 -0
  127. package/dist/mkdir-TDEMSB6C-DTyG__G-.mjs +1 -0
  128. package/dist/mv-Z6MORUFL-CmjBk72Q.mjs +1 -0
  129. package/dist/nl-U5YJDM32-5XaxKjVN.mjs +1 -0
  130. package/dist/od-VJEF2UR5-BYZOEzSd.mjs +1 -0
  131. package/dist/paste-7N6AFSDS-BnDgUhuq.mjs +1 -0
  132. package/dist/{preview-Dfy7-7fh.mjs → preview-Chq9tssd.mjs} +2 -2
  133. package/dist/preview-DQQINwsJ.mjs +1 -0
  134. package/dist/printf-CX64KX2P-0abCeF-D.mjs +1 -0
  135. package/dist/public/assets/{ActivityModeContent-UY1y3Xj6.js → ActivityModeContent-KaD_XXZl.js} +1 -1
  136. package/dist/public/assets/DocumentContext-Dd9Tvaq6.js +61 -0
  137. package/dist/public/assets/{GraphPanel-_BCbvLM6.js → GraphPanel-DLvT2Kzo.js} +3 -3
  138. package/dist/public/assets/SettingsDialogBody-CtMAdAjr.js +7 -0
  139. package/dist/public/assets/SourceEditor-CyBDS1Na.js +2 -0
  140. package/dist/public/assets/config-validation-events-C1REp51y.js +12 -0
  141. package/dist/public/assets/index-Bt-jLYAb.css +1 -0
  142. package/dist/public/assets/index-Ylb_me_X.js +1915 -0
  143. package/dist/public/assets/{keyboard-shortcuts-D1ntCgJI.js → keyboard-shortcuts-BgxXrRkA.js} +1 -1
  144. package/dist/public/assets/{prop-types-3UnRySkO.js → prop-types-CKBOLBuy.js} +75 -73
  145. package/dist/public/assets/{target-navigation-intent-SROx-nlb.js → target-navigation-intent-J4G_G74p.js} +1 -1
  146. package/dist/public/assets/{typing-burst-detector-o75X2Euj.js → typing-burst-detector-Thi66kKF.js} +2 -2
  147. package/dist/public/index.html +8 -8
  148. package/dist/pwd-D4OZ7N27-AYS4A9o1.mjs +1 -0
  149. package/dist/{python3-AUFTPCU6-C02r6EXI.mjs → python3-AUFTPCU6-1PPUn2I7.mjs} +2 -2
  150. package/dist/readlink-MI4GCHJF-BvzND_DT.mjs +1 -0
  151. package/dist/{repair-launch-json-qbdZSh4d.mjs → repair-launch-json-CtbY6LQU.mjs} +2 -2
  152. package/dist/{repair-mcp-configs-BYbDaaNh.mjs → repair-mcp-configs-C1bZyxKZ.mjs} +2 -2
  153. package/dist/{repair-skills-BRxi0rRb.mjs → repair-skills-B9dEoHjt.mjs} +2 -2
  154. package/dist/repair-skills-BsQTjR1m.mjs +1 -0
  155. package/dist/rev-XOSYPP45-Bqdhxuez.mjs +1 -0
  156. package/dist/rg-FOQSCCX3-CrVzsut-.mjs +1 -0
  157. package/dist/rm-RTZG23RL-DVQCHLUL.mjs +1 -0
  158. package/dist/rmdir-XTQXT7RK-DrUUkxCF.mjs +1 -0
  159. package/dist/schemas/v0/config.project-local.schema.json +9 -0
  160. package/dist/sed-VFTTATXJ-QHemmbCP.mjs +1 -0
  161. package/dist/seq-RN5ZUASB-BBSGpJq5.mjs +1 -0
  162. package/dist/{server-lock-BpjJj3OD-BYyEdzAD.mjs → server-lock-BpjJj3OD-CfUjMF3O.mjs} +24 -22
  163. package/dist/server-lock-CyhBidkz-D9A193jJ.mjs +1 -0
  164. package/dist/sha1sum-VJPNLNU6-D6-7B21n.mjs +1 -0
  165. package/dist/sha256sum-PI32XWXY-BYVtIJOS.mjs +1 -0
  166. package/dist/sleep-VZFPZFWA-C-x_VGtG.mjs +1 -0
  167. package/dist/sort-DCNRDA7U-BTlvuG7X.mjs +1 -0
  168. package/dist/split-SITCSYCZ-BmGbaiMe.mjs +1 -0
  169. package/dist/sqlite3-56UMWEY3-Cjvsy5Oo.mjs +1 -0
  170. package/dist/src-B6M69Qz7.mjs +7 -0
  171. package/dist/{start-BKV0slgg.mjs → start-CntjqOE1.mjs} +2 -2
  172. package/dist/start-D3iJxx2A.mjs +1 -0
  173. package/dist/stat-BT5A227F-BjNsVAze.mjs +1 -0
  174. package/dist/strings-7PLOGTPD-B6_kjNM-.mjs +1 -0
  175. package/dist/tac-SJGXQ4T2-BEQ9sZmi.mjs +1 -0
  176. package/dist/tail-S5ULNTJU-DSe2aEO8.mjs +1 -0
  177. package/dist/tar-ANUBEFJY-HbwMpE1g.mjs +1 -0
  178. package/dist/tee-O7VXZDCO-BD6QXg_b.mjs +1 -0
  179. package/dist/time-DEUO3QV2-CRnH51wk.mjs +1 -0
  180. package/dist/timeout-VRKMCG72-D_oS0IDg.mjs +1 -0
  181. package/dist/touch-DX2IJOQ4-4yR1M9Nd.mjs +1 -0
  182. package/dist/tr-2HXZRDSW-Ca-NmLk7.mjs +1 -0
  183. package/dist/tree-LYXBS7DC-CR3kfmh6.mjs +1 -0
  184. package/dist/true-WHJNXCHG-x85l8vsW.mjs +1 -0
  185. package/dist/unexpand-RGTMIGZM-D-1EwjbB.mjs +1 -0
  186. package/dist/uniq-SUNANL47-DtBj3lmA.mjs +1 -0
  187. package/dist/wc-TQB3VNOX-Qw6WjSl1.mjs +1 -0
  188. package/dist/which-XZHEH76L-B-Xo178d.mjs +1 -0
  189. package/dist/whoami-DGKU3D2X-_Mgzu6ty.mjs +1 -0
  190. package/dist/{write-project-skill-AEaG6bcq.mjs → write-project-skill-CoFl-uBP.mjs} +2 -2
  191. package/dist/xan-BXDXYEIB-qijhj_cA.mjs +1 -0
  192. package/dist/xan-view-ECQUO7AJ-BfZejrY6.mjs +1 -0
  193. package/dist/xargs-I6EZUCYF-aS184J1w.mjs +1 -0
  194. package/dist/{yazl-DjRp4wSy.mjs → yazl-CB0sfSbo.mjs} +1 -1
  195. package/dist/yazl-Dqnhfxk7.mjs +1 -0
  196. package/dist/yq-MJMAR36V-Cgql6fKu.mjs +1 -0
  197. package/package.json +1 -1
  198. package/dist/alias-JE7RI5QX-DvXqsNuT.mjs +0 -1
  199. package/dist/awk2-POPGKRAI-DjdS5H9u.mjs +0 -1
  200. package/dist/base64-4YMZCVJ5-KM4zCU91.mjs +0 -1
  201. package/dist/basename-AA2KJYZQ-623KrTZh.mjs +0 -1
  202. package/dist/bash-IJWYRKFO-Czh-Vt61.mjs +0 -1
  203. package/dist/build-CcnIXJkq.mjs +0 -1
  204. package/dist/cat-RDUMLXKC-BcPFfXNy.mjs +0 -1
  205. package/dist/chmod-SYMGL4JA-DNQ-_FB-.mjs +0 -1
  206. package/dist/clear-5CZ5X4YR-DQDNPZFX.mjs +0 -1
  207. package/dist/column-WLPMMSTS-D7ZdQMYX.mjs +0 -1
  208. package/dist/comm-5SLSESQG-D314YMTX.mjs +0 -1
  209. package/dist/constants-Bbx3CslM.mjs +0 -2
  210. package/dist/cp-XOYR4ABJ-BoeqT96E.mjs +0 -1
  211. package/dist/cut-OPC3VAGB-BduNLBmG.mjs +0 -1
  212. package/dist/date-DD7FVA2V-CXtS-UgC.mjs +0 -1
  213. package/dist/diff-HJF2MPDN-BIBcfzYf.mjs +0 -1
  214. package/dist/dirname-LEMTZZFS-y-nYlas9.mjs +0 -1
  215. package/dist/dist-DglAcTUx.mjs +0 -1
  216. package/dist/dist-bundle-CjV1Pdeo.mjs +0 -1
  217. package/dist/du-WO2ENHXQ-DxBFDhE9.mjs +0 -1
  218. package/dist/echo-O45JWWI2-D2qFOnG-.mjs +0 -1
  219. package/dist/env-5EPCWSXR-3enSMuUq.mjs +0 -1
  220. package/dist/expand-DTNXU4LQ-ByrWF7LC.mjs +0 -1
  221. package/dist/expansion-ENLSRCXJ-ZEK-CtLJ.mjs +0 -1
  222. package/dist/expr-5T3UU5KE-DslbMHGH.mjs +0 -1
  223. package/dist/file-ZIGAJ4YS-5ydJB32I.mjs +0 -1
  224. package/dist/find-TPUOAIUQ-B-6hQsZ1.mjs +0 -1
  225. package/dist/fold-LDSORVYE-BcrX-J9k.mjs +0 -1
  226. package/dist/gh-detect-CA44spgV.mjs +0 -3
  227. package/dist/git-handle-CvT4CaVU-HAzuhDq0.mjs +0 -1
  228. package/dist/grep-3AIAIJVR-Gk5ggptS.mjs +0 -1
  229. package/dist/gzip-AQXSGOVS-DVhom50G.mjs +0 -1
  230. package/dist/head-HT2B6D2J-ahSJqSiq.mjs +0 -1
  231. package/dist/help-VVWX7SA5-DWuklTmV.mjs +0 -1
  232. package/dist/history-J4QRNGRO-DF-FzAzf.mjs +0 -1
  233. package/dist/hostname-BK6HG2DE-BduSSI6z.mjs +0 -1
  234. package/dist/html-to-markdown-TFCECAGV-Dyh1D0fg.mjs +0 -1
  235. package/dist/init-Bvp1gTJk.mjs +0 -1
  236. package/dist/join-GG2LDHE5-DbbozPoG.mjs +0 -1
  237. package/dist/jq-ODXZBPLY-DDNFO29H.mjs +0 -1
  238. package/dist/ln-4TRFBYAT-D-c9GUlv.mjs +0 -1
  239. package/dist/loader-Ds_DEa61.mjs +0 -1
  240. package/dist/ls-KSXFZCWH-Cpvwn_RB.mjs +0 -1
  241. package/dist/md5sum-INMIK4DX-ysJE_fRH.mjs +0 -1
  242. package/dist/mkdir-TDEMSB6C-Doj-uc1V.mjs +0 -1
  243. package/dist/mv-Z6MORUFL-CB3JJwR7.mjs +0 -1
  244. package/dist/nl-U5YJDM32-DNpHPr0D.mjs +0 -1
  245. package/dist/od-VJEF2UR5-CU4HUmLC.mjs +0 -1
  246. package/dist/paste-7N6AFSDS-CRLhW5JD.mjs +0 -1
  247. package/dist/preview-IXy_ShtP.mjs +0 -1
  248. package/dist/printf-CX64KX2P-BRDA91sv.mjs +0 -1
  249. package/dist/public/assets/DocumentContext-Cnk29mEx.js +0 -61
  250. package/dist/public/assets/SettingsDialogBody-uxQ8ZYQ7.js +0 -7
  251. package/dist/public/assets/SourceEditor-C9msETk8.js +0 -2
  252. package/dist/public/assets/config-validation-events-_a6CKYRG.js +0 -12
  253. package/dist/public/assets/index-BIvhuHUD.css +0 -1
  254. package/dist/public/assets/index-BUu5UhsY.js +0 -1915
  255. package/dist/pwd-D4OZ7N27-DOBMwDAQ.mjs +0 -1
  256. package/dist/readlink-MI4GCHJF-C7jxdmka.mjs +0 -1
  257. package/dist/repair-skills-LlCrfK-2.mjs +0 -1
  258. package/dist/rev-XOSYPP45-BrzxRIO9.mjs +0 -1
  259. package/dist/rg-FOQSCCX3-D0ctWk6O.mjs +0 -1
  260. package/dist/rm-RTZG23RL-DZt78fCD.mjs +0 -1
  261. package/dist/rmdir-XTQXT7RK-CJJKrOdm.mjs +0 -1
  262. package/dist/sed-VFTTATXJ-Cv8KiT35.mjs +0 -1
  263. package/dist/seq-RN5ZUASB-BD6p5vId.mjs +0 -1
  264. package/dist/server-lock-CyhBidkz-BKGV8zdF.mjs +0 -1
  265. package/dist/sha1sum-VJPNLNU6-DukJfnER.mjs +0 -1
  266. package/dist/sha256sum-PI32XWXY-QlLE_NGo.mjs +0 -1
  267. package/dist/sleep-VZFPZFWA-gwZmptDS.mjs +0 -1
  268. package/dist/sort-DCNRDA7U-Bnmzizlk.mjs +0 -1
  269. package/dist/split-SITCSYCZ-NsOC8k0n.mjs +0 -1
  270. package/dist/sqlite3-56UMWEY3-URg2-QXI.mjs +0 -1
  271. package/dist/src-E0JWHkgx.mjs +0 -7
  272. package/dist/start-CgfKGhMD.mjs +0 -1
  273. package/dist/stat-BT5A227F-Di81wqB8.mjs +0 -1
  274. package/dist/strings-7PLOGTPD-DKTG3t3M.mjs +0 -1
  275. package/dist/tac-SJGXQ4T2-CMuGqDl5.mjs +0 -1
  276. package/dist/tail-S5ULNTJU-CxhswWhX.mjs +0 -1
  277. package/dist/tar-ANUBEFJY-BBFrIW8E.mjs +0 -1
  278. package/dist/tee-O7VXZDCO-DwJ0hUpW.mjs +0 -1
  279. package/dist/time-DEUO3QV2-W5vzutuD.mjs +0 -1
  280. package/dist/timeout-VRKMCG72-wW3XOtt7.mjs +0 -1
  281. package/dist/touch-DX2IJOQ4-C7eGjNGd.mjs +0 -1
  282. package/dist/tr-2HXZRDSW-DlafN6SW.mjs +0 -1
  283. package/dist/tree-LYXBS7DC-Ou8JkGQ1.mjs +0 -1
  284. package/dist/true-WHJNXCHG-B4B4ZHqp.mjs +0 -1
  285. package/dist/unexpand-RGTMIGZM-D6xZmTWp.mjs +0 -1
  286. package/dist/uniq-SUNANL47-Ce9L4IzE.mjs +0 -1
  287. package/dist/wc-TQB3VNOX-dwG38U4n.mjs +0 -1
  288. package/dist/which-XZHEH76L-Cw9SQliE.mjs +0 -1
  289. package/dist/whoami-DGKU3D2X-hzRI9gvz.mjs +0 -1
  290. package/dist/xan-BXDXYEIB-loWv9Mk3.mjs +0 -1
  291. package/dist/xan-view-ECQUO7AJ-8Lt55NoE.mjs +0 -1
  292. package/dist/xargs-I6EZUCYF-CG6axhMW.mjs +0 -1
  293. package/dist/yazl-CJayzk0b.mjs +0 -1
  294. package/dist/yq-MJMAR36V-CsEAtdgj.mjs +0 -1
@@ -1,2 +1,2 @@
1
1
  import{t as e}from"./chunk-FK9Q3tQk.mjs";function t(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:`<environment undetectable>`}var n=`octokit-endpoint.js/0.0.0-development ${t()}`,r={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":n},mediaType:{format:``}};function i(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function a(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function o(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{a(t[r])&&r in e?n[r]=o(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function s(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function c(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=i(n.headers),s(n),s(n.headers);let r=o(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function l(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var u=/\{[^{}}]+\}/g;function d(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,``).split(/,/)}function f(e){let t=e.match(u);return t?t.map(d).reduce((e,t)=>e.concat(t),[]):[]}function p(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function m(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function h(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function g(e,t,n){return t=e===`+`||e===`#`?m(t):h(t),n?h(n)+`=`+t:t}function _(e){return e!=null}function v(e){return e===`;`||e===`&`||e===`?`}function y(e,t,n,r){var i=e[n],a=[];if(_(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(g(t,i,v(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(_).forEach(function(e){a.push(g(t,e,v(t)?n:``))}):Object.keys(i).forEach(function(e){_(i[e])&&a.push(g(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(_).forEach(function(n){e.push(g(t,n))}):Object.keys(i).forEach(function(n){_(i[n])&&(e.push(h(n)),e.push(g(t,i[n].toString())))}),v(t)?a.push(h(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?_(i)&&a.push(h(n)):i===``&&(t===`&`||t===`?`)?a.push(h(n)+`=`):i===``&&a.push(``);return a}function b(e){return{expand:ee.bind(null,e)}}function ee(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(y(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return m(i)}),e===`/`?e:e.replace(/\/$/,``)}function x(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=p(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=f(n);n=b(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=p(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[]).concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=l(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function S(e,t,n){return x(c(e,t,n))}function C(e,t){let n=c(e,t),r=S.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:C.bind(null,n),merge:c.bind(null,n),parse:x})}var w=C(null,r),T=e(((e,t)=>{let n=function(){};n.prototype=Object.create(null);let r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,i=/\\([\v\u0020-\u00ff])/gu,a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:``,parameters:new n};Object.freeze(o.parameters),Object.freeze(o);function s(e){if(typeof e!=`string`)throw TypeError(`argument header is required and must be a string`);let t=e.indexOf(`;`),o=t===-1?e.trim():e.slice(0,t).trim();if(a.test(o)===!1)throw TypeError(`invalid media type`);let s={type:o.toLowerCase(),parameters:new n};if(t===-1)return s;let c,l,u;for(r.lastIndex=t;l=r.exec(e);){if(l.index!==t)throw TypeError(`invalid parameter format`);t+=l[0].length,c=l[1].toLowerCase(),u=l[2],u[0]===`"`&&(u=u.slice(1,u.length-1),i.test(u)&&(u=u.replace(i,`$1`))),s.parameters[c]=u}if(t!==e.length)throw TypeError(`invalid parameter format`);return s}function c(e){if(typeof e!=`string`)return o;let t=e.indexOf(`;`),s=t===-1?e.trim():e.slice(0,t).trim();if(a.test(s)===!1)return o;let c={type:s.toLowerCase(),parameters:new n};if(t===-1)return c;let l,u,d;for(r.lastIndex=t;u=r.exec(e);){if(u.index!==t)return o;t+=u[0].length,l=u[1].toLowerCase(),d=u[2],d[0]===`"`&&(d=d.slice(1,d.length-1),i.test(d)&&(d=d.replace(i,`$1`))),c.parameters[l]=d}return t===e.length?c:o}t.exports.default={parse:s,safeParse:c},t.exports.parse=s,t.exports.safeParse=c,t.exports.defaultContentType=o}));const E=/^-?\d+$/,D=/^-?\d+n+$/,O=JSON.stringify,k=JSON.parse,A=/^-?\d+n$/,j=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,M=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,N=(e,t,n)=>`rawJSON`in JSON?O(e,(e,n)=>typeof n==`bigint`?JSON.rawJSON(n.toString()):typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n):e?O(e,(e,n)=>typeof n==`string`&&D.test(n)||typeof n==`bigint`?n.toString()+`n`:typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n).replace(j,`$1$2$3`).replace(M,`$1$2$3`):O(e,t,n),P=new Map,F=()=>{let e=JSON.parse.toString();if(P.has(e))return P.get(e);try{let t=JSON.parse(`1`,(e,t,n)=>!!n?.source&&n.source===`1`);return P.set(e,t),t}catch{return P.set(e,!1),!1}},I=(e,t,n,r)=>typeof t==`string`&&A.test(t)?BigInt(t.slice(0,-1)):typeof t==`string`&&D.test(t)?t.slice(0,-1):typeof r==`function`?r(e,t,n):t,L=(e,t)=>JSON.parse(e,(e,n,r)=>{let i=typeof n==`number`&&(n>2**53-1||n<-(2**53-1)),a=r&&E.test(r.source);return i&&a?BigInt(r.source):typeof t==`function`?t(e,n,r):n}),R=(2**53-1).toString(),z=R.length,B=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,V=/^"-?\d+n+"$/,H=(e,t)=>e?F()?L(e,t):k(e.replace(B,(e,t,n,r)=>{let i=e[0]===`"`;if(i&&V.test(e))return e.substring(0,e.length-1)+`n"`;let a=n||r,o=t&&(t.length<z||t.length===z&&t<=R);return i||a||o?e:`"`+e+`n"`}),(e,n,r)=>I(e,n,r,t)):k(e,t);var U=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/,` [REDACTED]`)})),r.url=r.url.replace(/\bclient_secret=\w+/g,`client_secret=[REDACTED]`).replace(/\baccess_token=\w+/g,`access_token=[REDACTED]`),this.request=r}},W=T(),G=`10.0.8`,K={headers:{"user-agent":`octokit-request.js/${G} ${t()}`}};function q(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var J=()=>``;async function Y(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw Error(`fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=q(e.body)||Array.isArray(e.body)?N(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new U(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new U(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await X(o),new U(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await X(o),new U(Q(u.data),s,{response:u,request:e});return u.data=r?await X(o):o.body,u}async function X(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(J);let n=(0,W.safeParse)(t);if(Z(n)){let t=``;try{return t=await e.text(),H(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(J);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function Z(e){return e.type===`application/json`||e.type===`application/scim+json`}function Q(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function $(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return Y(n.parse(r));let i=(e,t)=>Y(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:$.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:$.bind(null,n)})}var te=$(w,K);export{U as n,t as r,te as t};
2
- //# sourceMappingURL=dist-bundle-BK4P1EQn.mjs.map
2
+ //# sourceMappingURL=dist-bundle-B3l-HkEL.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./dist-bundle-B3l-HkEL.mjs";export{e as request};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-RPNGRAAP-BughPjdR.mjs";export{e as duCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-GCTKCWKD-Deqi1D_N.mjs";export{e as echoCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{i as e,t}from"./chunk-NAERJDUW-BFcmkHme.mjs";export{e as envCommand,t as printenvCommand};
@@ -1,2 +1,2 @@
1
1
  import{n as e,r as t}from"./chunk-FK9Q3tQk.mjs";var n,r=e((()=>{n=`1.9.1`}));function i(e){let t=new Set([e]),n=new Set,r=e.match(a);if(!r)return()=>!1;let i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function o(e){return n.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;let r=e.match(a);if(!r)return o(e);let c={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return c.prerelease!=null||i.major!==c.major?o(e):i.major===0?i.minor===c.minor&&i.patch<=c.patch?s(e):o(e):i.minor<=c.minor?s(e):o(e)}}var a,o,s=e((()=>{r(),a=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,o=i(n)}));function c(e,t,r,i=!1){let a=f[d]=f[d]??{version:n};if(!i&&a[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(a.version!==`1.9.1`){let t=Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${n}`);return r.error(t.stack||t.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${n}.`),!0}function l(e){let t=f[d]?.version;if(!(!t||!o(t)))return f[d]?.[e]}function u(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${n}.`);let r=f[d];r&&delete r[e]}var ee,d,f,p=e((()=>{r(),s(),ee=n.split(`.`)[0],d=Symbol.for(`opentelemetry.js.api.${ee}`),f=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{}}));function m(e,t,n){let r=l(`diag`);if(r)return r[e](t,...n)}var te,ne=e((()=>{p(),te=class{constructor(e){this._namespace=e.namespace||`DiagComponentLogger`}debug(...e){return m(`debug`,this._namespace,e)}error(...e){return m(`error`,this._namespace,e)}info(...e){return m(`info`,this._namespace,e)}warn(...e){return m(`warn`,this._namespace,e)}verbose(...e){return m(`verbose`,this._namespace,e)}}})),h,g=e((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(h||={})}));function re(e,t){e<h.NONE?e=h.NONE:e>h.ALL&&(e=h.ALL),t||={};function n(n,r){let i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,h.ERROR),warn:n(`warn`,h.WARN),info:n(`info`,h.INFO),debug:n(`debug`,h.DEBUG),verbose:n(`verbose`,h.VERBOSE)}}var ie=e((()=>{g()})),ae,_,v=e((()=>{ne(),ie(),g(),p(),ae=`diag`,_=class e{static instance(){return this._instance||=new e,this._instance}constructor(){function e(e){return function(...t){let n=l(`diag`);if(n)return n[e](...t)}}let t=this;t.setLogger=(e,n={logLevel:h.INFO})=>{if(e===t){let e=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(e.stack??e.message),!1}typeof n==`number`&&(n={logLevel:n});let r=l(`diag`),i=re(n.logLevel??h.INFO,e);if(r&&!n.suppressOverrideMessage){let e=Error().stack??`<failed to generate stacktrace>`;r.warn(`Current logger will be overwritten from ${e}`),i.warn(`Current logger will overwrite one already registered from ${e}`)}return c(`diag`,i,t,!0)},t.disable=()=>{u(ae,t)},t.createComponentLogger=e=>new te(e),t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}}})),oe,se=e((()=>{oe=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}}})),ce,le=e((()=>{ce=Symbol(`BaggageEntryMetadata`)}));function ue(e={}){return new oe(new Map(Object.entries(e)))}function de(e){return typeof e!=`string`&&(fe.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:ce,toString(){return e}}}var fe,pe=e((()=>{v(),se(),le(),fe=_.instance()}));function me(e){return Symbol.for(e)}var he,y,b=e((()=>{he=class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=e=>n._currentContext.get(e),n.setValue=(t,r)=>{let i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=t=>{let r=new e(n._currentContext);return r._currentContext.delete(t),r}}},y=new he})),x,S,ge,_e=e((()=>{if(x=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],S={},typeof console<`u`)for(let e of[`error`,`warn`,`info`,`debug`,`trace`,`log`])typeof console[e]==`function`&&(S[e]=console[e]);ge=class{constructor(){function e(e){return function(...t){let n=S[e];if(typeof n!=`function`&&(n=S.log),typeof n!=`function`&&console&&(n=console[e],typeof n!=`function`&&(n=console.log)),typeof n==`function`)return n.apply(console,t)}}for(let t=0;t<x.length;t++)this[x[t].n]=e(x[t].c)}}}));function ve(){return T}var ye,C,be,xe,Se,Ce,w,we,Te,Ee,T,De,Oe,ke,Ae,je,Me,Ne,Pe=e((()=>{ye=class{constructor(){}createGauge(e,t){return Oe}createHistogram(e,t){return ke}createCounter(e,t){return De}createUpDownCounter(e,t){return Ae}createObservableGauge(e,t){return Me}createObservableCounter(e,t){return je}createObservableUpDownCounter(e,t){return Ne}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},C=class{},be=class extends C{add(e,t){}},xe=class extends C{add(e,t){}},Se=class extends C{record(e,t){}},Ce=class extends C{record(e,t){}},w=class{addCallback(e){}removeCallback(e){}},we=class extends w{},Te=class extends w{},Ee=class extends w{},T=new ye,De=new be,Oe=new Se,ke=new Ce,Ae=new xe,je=new we,Me=new Te,Ne=new Ee})),Fe,Ie=e((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(Fe||={})})),E,D,Le=e((()=>{E={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},D={set(e,t,n){e!=null&&(e[t]=n)}}})),Re,ze=e((()=>{b(),Re=class{active(){return y}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}}})),O,Be,k,A=e((()=>{ze(),p(),v(),O=`context`,Be=new Re,k=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalContextManager(e){return c(O,e,_.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return l(O)||Be}disable(){this._getContextManager().disable(),u(O,_.instance())}}})),j,Ve=e((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(j||={})})),M,N,P,F=e((()=>{Ve(),M=`0000000000000000`,N=`00000000000000000000000000000000`,P={traceId:N,spanId:M,traceFlags:j.NONE}})),I,L=e((()=>{F(),I=class{constructor(e=P){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}}));function R(e){return e.getValue(z)||void 0}function He(){return R(k.getInstance().active())}function Ue(e,t){return e.setValue(z,t)}function We(e){return e.deleteValue(z)}function Ge(e,t){return Ue(e,new I(t))}function Ke(e){return R(e)?.spanContext()}var z,qe=e((()=>{b(),L(),A(),z=me(`OpenTelemetry Context Key SPAN`)}));function Je(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(V[e.charCodeAt(t)]|0)+(V[e.charCodeAt(t+1)]|0)+(V[e.charCodeAt(t+2)]|0)+(V[e.charCodeAt(t+3)]|0);return n===t}function Ye(e){return Je(e,32)&&e!==`00000000000000000000000000000000`}function Xe(e){return Je(e,16)&&e!==`0000000000000000`}function B(e){return Ye(e.traceId)&&Xe(e.spanId)}function Ze(e){return new I(e)}var V,Qe=e((()=>{F(),L(),V=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1])}));function $e(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}var H,et,tt=e((()=>{A(),qe(),L(),Qe(),H=k.getInstance(),et=class{startSpan(e,t,n=H.active()){if(t?.root)return new I;let r=n&&Ke(n);return $e(r)&&B(r)?new I(r):new I}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??H.active(),c=this.startSpan(e,i,s),l=Ue(s,c);return H.with(l,o,void 0,c)}}})),nt,rt,it=e((()=>{tt(),nt=new et,rt=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):nt}}})),at,ot=e((()=>{tt(),at=class{getTracer(e,t,n){return new et}}})),st,U,ct=e((()=>{it(),ot(),st=new at,U=class{getTracer(e,t,n){return this.getDelegateTracer(e,t,n)??new rt(this,e,t,n)}getDelegate(){return this._delegate??st}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){return this._delegate?.getTracer(e,t,n)}}})),lt,ut=e((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(lt||={})})),dt,ft=e((()=>{(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(dt||={})})),pt,mt=e((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(pt||={})}));function ht(e){return yt.test(e)}function gt(e){return bt.test(e)&&!xt.test(e)}var W,_t,vt,yt,bt,xt,St=e((()=>{W=`[_0-9a-z-*/]`,_t=`[a-z]${W}{0,255}`,vt=`[a-z0-9]${W}{0,240}@[a-z]${W}{0,13}`,yt=RegExp(`^(?:${_t}|${vt})$`),bt=/^[ -~]{0,255}[!-~]$/,xt=/,|=/})),Ct,wt,Tt,Et,Dt,Ot=e((()=>{St(),Ct=32,wt=512,Tt=`,`,Et=`=`,Dt=class e{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return Array.from(this._internalState.keys()).reduceRight((e,t)=>(e.push(t+Et+this.get(t)),e),[]).join(Tt)}_parse(e){e.length>wt||(this._internalState=e.split(Tt).reduceRight((e,t)=>{let n=t.trim(),r=n.indexOf(Et);if(r!==-1){let i=n.slice(0,r),a=n.slice(r+1,t.length);ht(i)&&gt(a)&&e.set(i,a)}return e},new Map),this._internalState.size>Ct&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Ct))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}}}));function kt(e){return new Dt(e)}var At=e((()=>{Ot()})),G,jt=e((()=>{A(),G=k.getInstance()})),K,Mt=e((()=>{v(),K=_.instance()})),Nt,Pt,Ft=e((()=>{Pe(),Nt=class{getMeter(e,t,n){return T}},Pt=new Nt})),q,It,Lt=e((()=>{Ft(),p(),v(),q=`metrics`,It=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalMeterProvider(e){return c(q,e,_.instance())}getMeterProvider(){return l(q)||Pt}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){u(q,_.instance())}}})),J,Rt=e((()=>{Lt(),J=It.getInstance()})),zt,Bt=e((()=>{zt=class{inject(e,t){}extract(e,t){return e}fields(){return[]}}}));function Vt(e){return e.getValue(Y)||void 0}function Ht(){return Vt(k.getInstance().active())}function Ut(e,t){return e.setValue(Y,t)}function Wt(e){return e.deleteValue(Y)}var Y,Gt=e((()=>{A(),b(),Y=me(`OpenTelemetry Baggage Key`)})),X,Kt,qt,Jt=e((()=>{p(),Bt(),Le(),Gt(),pe(),v(),X=`propagation`,Kt=new zt,qt=class e{constructor(){this.createBaggage=ue,this.getBaggage=Vt,this.getActiveBaggage=Ht,this.setBaggage=Ut,this.deleteBaggage=Wt}static getInstance(){return this._instance||=new e,this._instance}setGlobalPropagator(e){return c(X,e,_.instance())}inject(e,t,n=D){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=E){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){u(X,_.instance())}_getGlobalPropagator(){return l(X)||Kt}}})),Z,Yt=e((()=>{Jt(),Z=qt.getInstance()})),Q,Xt,Zt=e((()=>{p(),ct(),Qe(),qe(),v(),Q=`trace`,Xt=class e{constructor(){this._proxyTracerProvider=new U,this.wrapSpanContext=Ze,this.isSpanContextValid=B,this.deleteSpan=We,this.getSpan=R,this.getActiveSpan=He,this.getSpanContext=Ke,this.setSpan=Ue,this.setSpanContext=Ge}static getInstance(){return this._instance||=new e,this._instance}setGlobalTracerProvider(e){let t=c(Q,this._proxyTracerProvider,_.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return l(Q)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){u(Q,_.instance()),this._proxyTracerProvider=new U}}})),$,Qt=e((()=>{Zt(),$=Xt.getInstance()})),$t=t({DiagConsoleLogger:()=>ge,DiagLogLevel:()=>h,INVALID_SPANID:()=>M,INVALID_SPAN_CONTEXT:()=>P,INVALID_TRACEID:()=>N,ProxyTracer:()=>rt,ProxyTracerProvider:()=>U,ROOT_CONTEXT:()=>y,SamplingDecision:()=>lt,SpanKind:()=>dt,SpanStatusCode:()=>pt,TraceFlags:()=>j,ValueType:()=>Fe,baggageEntryMetadataFromString:()=>de,context:()=>G,createContextKey:()=>me,createNoopMeter:()=>ve,createTraceState:()=>kt,default:()=>en,defaultTextMapGetter:()=>E,defaultTextMapSetter:()=>D,diag:()=>K,isSpanContextValid:()=>B,isValidSpanId:()=>Xe,isValidTraceId:()=>Ye,metrics:()=>J,propagation:()=>Z,trace:()=>$}),en,tn=e((()=>{pe(),b(),_e(),g(),Pe(),Ie(),Le(),it(),ct(),ut(),ft(),mt(),Ve(),At(),Qe(),F(),jt(),Mt(),Rt(),Yt(),Qt(),en={context:G,diag:K,metrics:J,propagation:Z,trace:$}}));export{J as a,pt as c,Z as i,dt as l,tn as n,K as o,$ as r,G as s,$t as t};
2
- //# sourceMappingURL=esm-s2X3YAg-.mjs.map
2
+ //# sourceMappingURL=esm-k1YlZnpm.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-VJFXDYWH-IiUXkKX0.mjs";export{e as expand};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import{w as e}from"./chunk-FEIOJCZD-DmvuPNqm.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";export{e as isArray};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-YFG2CMIF-DkT4NiqV.mjs";export{e as exprCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-CR5AFCPT-CH8ZGz3B.mjs";export{e as fileCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-J642UCRS-D87gHOLP.mjs";import{n as e}from"./chunk-LPQPILI2-DyyhWSR7.mjs";export{e as findCommand};
@@ -1,2 +1,2 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-CWQS3NFK-Co4ALolT.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-BT7gUxqf.mjs";import{t as n}from"./chunk-OARHFVLG-CpUL83N9.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BH67tCjg.mjs";import{n as i}from"./chunk-ALLTKNUZ-BMiTDN50.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-Cik2LGX1.mjs";import{n as a}from"./chunk-TXBZCHCQ-l48TczF5.mjs";import{n as o}from"./chunk-4GTNDTRF-_OVmXcJ-.mjs";import{t as s}from"./chunk-LL3S3NLB-DxXgE3kY.mjs";import{n as c}from"./chunk-LWEGUNWT-BALY4RLC.mjs";import{n as l}from"./chunk-Z7JVV2SM-BzR-yvwK.mjs";import{n as u}from"./chunk-NUYSJFDK-CU1FKadr.mjs";import{t as d}from"./chunk-SDNKECQQ-C3GEf3VZ.mjs";import{t as f}from"./chunk-D7MEQ3VN-Csvth_Ss.mjs";import{n as p}from"./chunk-TLSUDHID-DYvzalvd.mjs";import{t as m}from"./chunk-4Q4SM6WR-DDQRsilN.mjs";import{n as h}from"./chunk-RPNGRAAP-BughPjdR.mjs";import{n as g}from"./chunk-GCTKCWKD-Deqi1D_N.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-CYdostkt.mjs";import{n as y}from"./chunk-VJFXDYWH-IiUXkKX0.mjs";import{t as b}from"./chunk-YFG2CMIF-DYVCRkoM.mjs";import{n as x}from"./chunk-CR5AFCPT-BWXo8X-o.mjs";import"./chunk-J642UCRS-DuJ82Ao2.mjs";import{t as S}from"./chunk-LPQPILI2-CfDX1Tyv.mjs";import{t as C}from"./chunk-BRGMQKJV-CD9YvPOS.mjs";import"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DHx5dxhT.mjs";import{n as w}from"./chunk-XORM457F-BlSrSdGX.mjs";import"./chunk-F55TLFGB-oTuag-aK.mjs";import{t as T}from"./chunk-UNYNJIFU-B6KF1Gqq.mjs";import{r as E}from"./chunk-HWBSOZZR-Bw5kf-cE.mjs";import{n as D}from"./chunk-MDLLFABN-oBQf6bGE.mjs";import{n as O}from"./chunk-MLXIYONF-dOe6Iqcc.mjs";import{n as k}from"./chunk-A65PWWJC-D7J5l9eq.mjs";import{t as A}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";import{n as j}from"./chunk-4HHKTUW3-Dm69hDaZ.mjs";import{n as M}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";import{n as N}from"./chunk-PP6PSHAB-DMC_XCfO.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-GAjTFNwG.mjs";import{t as L}from"./chunk-YTNYSM6T-ChSQxUVG.mjs";import{t as R}from"./chunk-Z6LRHWXI-CEAGkbzj.mjs";import{n as z}from"./chunk-A7A2DBEE-PLfkXLI4.mjs";import{t as B}from"./chunk-APT7OOP2-CXHnSuct.mjs";import{n as V}from"./chunk-XKQRETAK-cVWA9gEB.mjs";import{n as H}from"./chunk-5V6VZH6T-BCr5_GDF.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";import{n as G}from"./chunk-YCFVLTST-uJkMN44i.mjs";import{t as K}from"./chunk-GOV5EKKI-i-yw_7Ty.mjs";import{t as q}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";import{n as J}from"./chunk-NCNPKYJZ-BFGan4lR.mjs";import{t as ne}from"./chunk-TOMNU26N-DYqwg_75.mjs";import{t as Y}from"./chunk-PYSFUGCK-CY7pclEB.mjs";import{t as X}from"./chunk-VYOJP4TV-BvibOnKG.mjs";import{t as Z}from"./chunk-MYE6AGBJ-B4pRo9ma.mjs";import{t as re}from"./chunk-A7ICOL4V-Drb3XsEL.mjs";import{t as ie}from"./chunk-55VFSPNA-DVZfQAzN.mjs";import{n as ae}from"./chunk-WKFATFPP-DCZdrA8x.mjs";import{n as oe}from"./chunk-JVPRLUMK-DnQCNjpq.mjs";import{t as se}from"./chunk-62RKD26F-CBIDfuTL.mjs";import{t as ce}from"./chunk-QCDB2VPH-D1RuXtOm.mjs";import{t as le}from"./chunk-F23WWYKW-DST0dB7V.mjs";import{n as ue}from"./chunk-D4J545R4-C8nMOauR.mjs";import{t as de}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";import{n as fe}from"./chunk-GXVXFKBA-993FoPmq.mjs";import{n as pe}from"./chunk-5QVNJEHU-BvsipSFW.mjs";import"./chunk-VLGZJRPG-ChVasMna.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-DqU1hDNV.mjs";import{n as _e}from"./chunk-NYQYO467-DUxnOnNG.mjs";import{n as ve}from"./chunk-OL3S66CO-DjFShiWt.mjs";import{t as ye}from"./chunk-KMEYNNUA-DfdK88O_.mjs";import{t as be}from"./chunk-MIZPJHVH-D3ET6RI_.mjs";import{n as xe}from"./chunk-A4JSPFCI-v5lUtffG.mjs";import{t as Q}from"./chunk-PBXLG62G-CU755yEQ.mjs";import{t as Se}from"./chunk-A4HU7SVR-hefV_YmW.mjs";import{t as Ce}from"./chunk-HJWBQKYG-UZig4wUt.mjs";import{t as we}from"./chunk-64BAICW3-CTJNEx4Q.mjs";import{n as Te}from"./chunk-T56QNPHK-Dzjonwlk.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CnKUp2df.mjs";import{n as De}from"./chunk-MDDMCKUK-BrBgeH_z.mjs";import{t as Oe}from"./chunk-OCS6LSEM-y5pQiBQp.mjs";import{n as ke}from"./chunk-OCLXQMOG-LAs82g00.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-C7XMLkDY.mjs.map
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-CWQS3NFK-BP3kiNgH.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import"./chunk-A5O5YHGN-C6ngIqYR.mjs";import"./chunk-24IMIIXA-C-Zyd2K_.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-BT7gUxqf.mjs";import{t as n}from"./chunk-OARHFVLG-vxL5zuWx.mjs";import{n as r}from"./chunk-QJ7O6ZN3-BH67tCjg.mjs";import{n as i}from"./chunk-ALLTKNUZ-BMiTDN50.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-BgQGt8eQ.mjs";import{n as a}from"./chunk-TXBZCHCQ-l48TczF5.mjs";import{n as o}from"./chunk-4GTNDTRF-_OVmXcJ-.mjs";import{t as s}from"./chunk-LL3S3NLB-DxXgE3kY.mjs";import{n as c}from"./chunk-LWEGUNWT-BALY4RLC.mjs";import{n as l}from"./chunk-Z7JVV2SM-BzR-yvwK.mjs";import{n as u}from"./chunk-NUYSJFDK-DAvAseHr.mjs";import{t as d}from"./chunk-SDNKECQQ-C3GEf3VZ.mjs";import{t as f}from"./chunk-D7MEQ3VN-Csvth_Ss.mjs";import{n as p}from"./chunk-TLSUDHID-B2VV2ufQ.mjs";import{t as m}from"./chunk-4Q4SM6WR-DDQRsilN.mjs";import{n as h}from"./chunk-RPNGRAAP-BughPjdR.mjs";import{n as g}from"./chunk-GCTKCWKD-Deqi1D_N.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-BFcmkHme.mjs";import{n as y}from"./chunk-VJFXDYWH-IiUXkKX0.mjs";import{t as b}from"./chunk-YFG2CMIF-DkT4NiqV.mjs";import{n as x}from"./chunk-CR5AFCPT-CH8ZGz3B.mjs";import"./chunk-J642UCRS-D87gHOLP.mjs";import{t as S}from"./chunk-LPQPILI2-DyyhWSR7.mjs";import{t as C}from"./chunk-BRGMQKJV-CHO764qS.mjs";import"./chunk-SYMJJMQ4-DLPoQaug.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-Oks1GMhO.mjs";import{n as w}from"./chunk-XORM457F-D-QrjagQ.mjs";import"./chunk-F55TLFGB-Bkfd8ak_.mjs";import{t as T}from"./chunk-UNYNJIFU--HT-3lrq.mjs";import{r as E}from"./chunk-HWBSOZZR-BeVrNfQw.mjs";import{n as D}from"./chunk-MDLLFABN-oBQf6bGE.mjs";import{n as O}from"./chunk-MLXIYONF-DwewZM3r.mjs";import{n as k}from"./chunk-A65PWWJC-D7J5l9eq.mjs";import{t as A}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";import{n as j}from"./chunk-4HHKTUW3-Dm69hDaZ.mjs";import{n as M}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";import{n as N}from"./chunk-PP6PSHAB-DMC_XCfO.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-GAjTFNwG.mjs";import{t as L}from"./chunk-YTNYSM6T-Cz_dxkBy.mjs";import{t as R}from"./chunk-Z6LRHWXI-BcgkPhhu.mjs";import{n as z}from"./chunk-A7A2DBEE-PLfkXLI4.mjs";import{t as B}from"./chunk-APT7OOP2-CXHnSuct.mjs";import{n as V}from"./chunk-XKQRETAK-cVWA9gEB.mjs";import{n as H}from"./chunk-5V6VZH6T-BCr5_GDF.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";import{n as G}from"./chunk-YCFVLTST-CFJxSbsH.mjs";import{t as K}from"./chunk-GOV5EKKI-CyL1eJ32.mjs";import{t as q}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";import{n as J}from"./chunk-NCNPKYJZ-BFGan4lR.mjs";import{t as ne}from"./chunk-TOMNU26N-DfLjxpHW.mjs";import{t as Y}from"./chunk-PYSFUGCK-CY7pclEB.mjs";import{t as X}from"./chunk-VYOJP4TV-BvibOnKG.mjs";import{t as Z}from"./chunk-MYE6AGBJ-B4pRo9ma.mjs";import{t as re}from"./chunk-A7ICOL4V-Drb3XsEL.mjs";import{t as ie}from"./chunk-55VFSPNA-DVZfQAzN.mjs";import{n as ae}from"./chunk-WKFATFPP-DCZdrA8x.mjs";import{n as oe}from"./chunk-JVPRLUMK-DnQCNjpq.mjs";import{t as se}from"./chunk-62RKD26F-CvuML91F.mjs";import{t as ce}from"./chunk-QCDB2VPH-D1RuXtOm.mjs";import{t as le}from"./chunk-F23WWYKW-DST0dB7V.mjs";import{n as ue}from"./chunk-D4J545R4-C8nMOauR.mjs";import{t as de}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";import{n as fe}from"./chunk-GXVXFKBA-993FoPmq.mjs";import{n as pe}from"./chunk-5QVNJEHU-BvsipSFW.mjs";import"./chunk-VLGZJRPG-DbWYxLfI.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-w6Dw8reo.mjs";import{n as _e}from"./chunk-NYQYO467-_2947cgi.mjs";import{n as ve}from"./chunk-OL3S66CO-B3hSNlNP.mjs";import{t as ye}from"./chunk-KMEYNNUA-DfdK88O_.mjs";import{t as be}from"./chunk-MIZPJHVH-BdoPqh_Y.mjs";import{n as xe}from"./chunk-A4JSPFCI-k-tJSZgB.mjs";import{t as Q}from"./chunk-PBXLG62G-MmAqjdXR.mjs";import{t as Se}from"./chunk-A4HU7SVR-hefV_YmW.mjs";import{t as Ce}from"./chunk-HJWBQKYG-UZig4wUt.mjs";import{t as we}from"./chunk-64BAICW3-CTJNEx4Q.mjs";import{n as Te}from"./chunk-T56QNPHK-TppyesRp.mjs";import{n as Ee}from"./chunk-V7TAPXDL-CnKUp2df.mjs";import{n as De}from"./chunk-MDDMCKUK-poQ25EjI.mjs";import{t as Oe}from"./chunk-OCS6LSEM-Lh1p0H-V.mjs";import{n as ke}from"./chunk-OCLXQMOG-C7k2qEN6.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-DmAL_7h5.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-D4J545R4-C8nMOauR.mjs";export{e as fold};
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";import{t as a}from"./execAsync-0jii24p9.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`fs`),s=a(),c=(r(),e(i));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
- //# sourceMappingURL=getMachineId-bsd-BCJXEJCn.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";import{t as a}from"./execAsync-0jii24p9.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`fs`),s=a(),c=(r(),e(i));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
+ //# sourceMappingURL=getMachineId-bsd-CzP05Ffc.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";import{t as a}from"./execAsync-DgmLXmTx.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`fs`),s=a(),c=(r(),e(i));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
- //# sourceMappingURL=getMachineId-bsd-GIcY1fmf.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";import{t as a}from"./execAsync-DgmLXmTx.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`fs`),s=a(),c=(r(),e(i));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
+ //# sourceMappingURL=getMachineId-bsd-D0erQsHH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";import{t as a}from"./execAsync-Czqc-yAz.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`fs`),s=a(),c=(r(),e(i));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
- //# sourceMappingURL=getMachineId-bsd-D7C80Q-x.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";import{t as a}from"./execAsync-Czqc-yAz.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`fs`),s=a(),c=(r(),e(i));async function l(){try{return(await o.promises.readFile(`/etc/hostid`,{encoding:`utf8`})).trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,s.execAsync)(`kenv -q smbios.system.uuid`)).stdout.trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
+ //# sourceMappingURL=getMachineId-bsd-Dp2q7huT.mjs.map
@@ -1,3 +1,3 @@
1
- import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-s2X3YAg-.mjs";import{t as i}from"./execAsync-Czqc-yAz.mjs";var a=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let a=i(),o=(n(),e(r));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
1
+ import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-k1YlZnpm.mjs";import{t as i}from"./execAsync-Czqc-yAz.mjs";var a=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let a=i(),o=(n(),e(r));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
2
2
  `).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}t.getMachineId=s}));export default a();export{};
3
- //# sourceMappingURL=getMachineId-darwin-C9wsuHP1.mjs.map
3
+ //# sourceMappingURL=getMachineId-darwin-C4PiguA-.mjs.map
@@ -1,3 +1,3 @@
1
- import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-s2X3YAg-.mjs";import{t as i}from"./execAsync-0jii24p9.mjs";var a=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let a=i(),o=(n(),e(r));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
1
+ import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-k1YlZnpm.mjs";import{t as i}from"./execAsync-0jii24p9.mjs";var a=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let a=i(),o=(n(),e(r));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
2
2
  `).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}t.getMachineId=s}));export default a();export{};
3
- //# sourceMappingURL=getMachineId-darwin-D9y6ky_l.mjs.map
3
+ //# sourceMappingURL=getMachineId-darwin-COcA_c6l.mjs.map
@@ -1,3 +1,3 @@
1
- import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-s2X3YAg-.mjs";import{t as i}from"./execAsync-DgmLXmTx.mjs";var a=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let a=i(),o=(n(),e(r));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
1
+ import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-k1YlZnpm.mjs";import{t as i}from"./execAsync-DgmLXmTx.mjs";var a=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let a=i(),o=(n(),e(r));async function s(){try{let e=(await(0,a.execAsync)(`ioreg -rd1 -c "IOPlatformExpertDevice"`)).stdout.split(`
2
2
  `).find(e=>e.includes(`IOPlatformUUID`));if(!e)return;let t=e.split(`" = "`);if(t.length===2)return t[1].slice(0,-1)}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}t.getMachineId=s}));export default a();export{};
3
- //# sourceMappingURL=getMachineId-darwin-DG876t7S.mjs.map
3
+ //# sourceMappingURL=getMachineId-darwin-CywdnyvB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";var a=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let a=t(`fs`),o=(r(),e(i));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=s}));export default a();export{};
2
- //# sourceMappingURL=getMachineId-linux-Bt9mk0EE.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";var a=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let a=t(`fs`),o=(r(),e(i));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=s}));export default a();export{};
2
+ //# sourceMappingURL=getMachineId-linux-BRPjBsHg.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";var a=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let a=t(`fs`),o=(r(),e(i));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=s}));export default a();export{};
2
- //# sourceMappingURL=getMachineId-linux-D9atImpV.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";var a=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let a=t(`fs`),o=(r(),e(i));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=s}));export default a();export{};
2
+ //# sourceMappingURL=getMachineId-linux-CQZJR55S.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";var a=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let a=t(`fs`),o=(r(),e(i));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=s}));export default a();export{};
2
- //# sourceMappingURL=getMachineId-linux-BJESQahL.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";var a=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let a=t(`fs`),o=(r(),e(i));async function s(){for(let e of[`/etc/machine-id`,`/var/lib/dbus/machine-id`])try{return(await a.promises.readFile(e,{encoding:`utf8`})).trim()}catch(e){o.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=s}));export default a();export{};
2
+ //# sourceMappingURL=getMachineId-linux-DcN5tfI_.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-s2X3YAg-.mjs";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
2
- //# sourceMappingURL=getMachineId-unsupported-Dabs3aBp.mjs.map
1
+ import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-k1YlZnpm.mjs";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
2
+ //# sourceMappingURL=getMachineId-unsupported-BokXsjFr.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-s2X3YAg-.mjs";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
2
- //# sourceMappingURL=getMachineId-unsupported-cApRznzG.mjs.map
1
+ import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-k1YlZnpm.mjs";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
2
+ //# sourceMappingURL=getMachineId-unsupported-DZAxq-oW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-s2X3YAg-.mjs";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
2
- //# sourceMappingURL=getMachineId-unsupported-DAbsbHrs.mjs.map
1
+ import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-k1YlZnpm.mjs";var i=t((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getMachineId=void 0;let i=(n(),e(r));async function a(){i.diag.debug(`could not read machine-id: unsupported platform`)}t.getMachineId=a}));export default i();export{};
2
+ //# sourceMappingURL=getMachineId-unsupported-GPbM_evk.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";import{t as a}from"./execAsync-DgmLXmTx.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
- //# sourceMappingURL=getMachineId-win-CU_iAQo9.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";import{t as a}from"./execAsync-DgmLXmTx.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
+ //# sourceMappingURL=getMachineId-win-B20yaCSB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";import{t as a}from"./execAsync-0jii24p9.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
- //# sourceMappingURL=getMachineId-win-CH98qgwX.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";import{t as a}from"./execAsync-0jii24p9.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
+ //# sourceMappingURL=getMachineId-win-BXWDfxLS.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-s2X3YAg-.mjs";import{t as a}from"./execAsync-Czqc-yAz.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
- //# sourceMappingURL=getMachineId-win-1MPHaim9.mjs.map
1
+ import{a as e,i as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{n as r,t as i}from"./esm-k1YlZnpm.mjs";import{t as a}from"./execAsync-Czqc-yAz.mjs";var o=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getMachineId=void 0;let o=t(`process`),s=a(),c=(r(),e(i));async function l(){let e=`%windir%\\System32\\REG.exe`;o.arch===`ia32`&&`PROCESSOR_ARCHITEW6432`in o.env&&(e=`%windir%\\sysnative\\cmd.exe /c `+e);try{let t=(await(0,s.execAsync)(`${e} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split(`REG_SZ`);if(t.length===2)return t[1].trim()}catch(e){c.diag.debug(`error reading machine id: ${e}`)}}n.getMachineId=l}));export default o();export{};
2
+ //# sourceMappingURL=getMachineId-win-BfSvDvM7.mjs.map
@@ -0,0 +1,3 @@
1
+ import{ya as e}from"./server-lock-BpjJj3OD-CfUjMF3O.mjs";import{execFileSync as t}from"node:child_process";import{existsSync as n,mkdirSync as r,readFileSync as i,writeFileSync as a}from"node:fs";import{dirname as o,join as s}from"node:path";import{homedir as c}from"node:os";var l=e();const u=`open-knowledge`;function d(e){try{e()}catch{}}var f=class{backend=`keyring`;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(u,e).getPassword()}catch(t){return d(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return d(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return d(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(u,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(u,e).deletePassword()}catch{}}},p=class{backend=`file`;authFile;constructor(e){this.authFile=e??s(c(),`.ok`,`auth.yml`)}read(){if(!n(this.authFile))return{};try{return(0,l.parse)(i(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=o(this.authFile);n(t)||r(t,{recursive:!0,mode:448}),a(this.authFile,(0,l.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},m=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function h(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(u,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
2
+ `),d(()=>t?.onBackendSelected?.({backend:`keyring`})),new m(new f(t?.onKeychainRead),new p(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${r}\n`),d(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new p(e)}}function g(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new p(e))},n)});try{return await Promise.race([h(e),r])}catch{return new p(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function _(e){let t=g(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token}}}}function v(e){let t=g(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function y(e,t){let n=[],r=new p(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(u,`__probe__`);let r=new f;await r.get(e)!=null&&(await r.clear(e),n.push(`keychain`))}catch{}return{touched:n}}const b=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`];function x(e,r={}){let i=r._exec??t,a=r._fileExists??n,o=[`auth`,`token`,...e?[`--hostname`,e]:[]],s=[`gh`,...b.filter(a)];for(let e of s)try{let t=i(e,o,{encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3}).toString().trim();if(t.length>0)return{available:!0,token:t}}catch{}return{available:!1}}export{v as a,_ as i,y as n,h as r,x as t};
3
+ //# sourceMappingURL=gh-detect-TiuAfW0N.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./git-handle-Cd7K54Co-D4vPl00M.mjs";export{e as createGitInstance};
@@ -6,5 +6,5 @@ import{i as e,o as t,t as n}from"./chunk-FK9Q3tQk.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 a=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=o(t,n,s);f.stdout.on(`data`,rr(l,`stdOut`,i,a.step(`stdOut`))),f.stderr.on(`data`,rr(u,`stdErr`,i,a.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 a}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)}function Ls(){let e={LANG:`C`,LC_ALL:`C`};return process.env.PATH!==void 0&&(e.PATH=process.env.PATH),process.env.ELECTRON_RUN_AS_NODE!==void 0&&(e.ELECTRON_RUN_AS_NODE=process.env.ELECTRON_RUN_AS_NODE),e}function Rs(e,t={}){let{credentialArgs:n=[],gitIndexFile:r}=t,a=Ls();return r&&(a.GIT_INDEX_FILE=i(e,r)),{git:Ps({baseDir:e,config:n.length>=2?[n[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env(a),projectDir:e,credentialArgs:n}}export{p as a,Ns as i,Is as n,Ps as r,Rs as t};
10
- //# sourceMappingURL=git-handle-BSAUg1L_-Bn2h-fYS.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 a}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)}function Ls(){let e={LANG:`C`,LC_ALL:`C`,GIT_TERMINAL_PROMPT:`0`};return process.env.PATH!==void 0&&(e.PATH=process.env.PATH),process.env.ELECTRON_RUN_AS_NODE!==void 0&&(e.ELECTRON_RUN_AS_NODE=process.env.ELECTRON_RUN_AS_NODE),e}function Rs(e,t={}){let{credentialArgs:n=[],gitIndexFile:r}=t,a=Ls();return r&&(a.GIT_INDEX_FILE=i(e,r)),{git:Ps({baseDir:e,config:n.length>=2?[n[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env(a),projectDir:e,credentialArgs:n}}export{p as a,Ns as i,Is as n,Ps as r,Rs as t};
10
+ //# sourceMappingURL=git-handle-Cd7K54Co-D4vPl00M.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-J642UCRS-D87gHOLP.mjs";import"./chunk-VLGZJRPG-DbWYxLfI.mjs";import{i as e,r as t,t as n}from"./chunk-YS3AZT3J-w6Dw8reo.mjs";export{t as egrepCommand,n as fgrepCommand,e as grepCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{a as e,r as t,t as n}from"./chunk-LTZRCH7N-GAjTFNwG.mjs";export{t as gunzipCommand,n as gzipCommand,e as zcatCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-64BAICW3-CTJNEx4Q.mjs";export{e as headCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-MLXIYONF-DwewZM3r.mjs";export{e as helpCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-NCNPKYJZ-BFGan4lR.mjs";export{e as historyCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-4HHKTUW3-Dm69hDaZ.mjs";export{e as hostname};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-MDLLFABN-oBQf6bGE.mjs";export{e as htmlToMarkdownCommand};
package/dist/index.d.mts CHANGED
@@ -27,7 +27,18 @@ interface TokenStore {
27
27
  set(host: string, login: string, token: string, extra?: Pick<TokenEntry, 'gitProtocol' | 'name' | 'email'>): Promise<void>;
28
28
  clear(host: string): Promise<void>;
29
29
  }
30
- declare function createTokenStore(authFile?: string): Promise<TokenStore>;
30
+ interface TokenStoreDiagnostics {
31
+ onKeychainRead?: (info: {
32
+ kind: 'absent' | 'read-error' | 'corrupt-entry';
33
+ host: string;
34
+ error?: string;
35
+ }) => void;
36
+ onBackendSelected?: (info: {
37
+ backend: 'keyring' | 'file';
38
+ reason?: string;
39
+ }) => void;
40
+ }
41
+ declare function createTokenStore(authFile?: string, diag?: TokenStoreDiagnostics): Promise<TokenStore>;
31
42
  declare function makeLazyProbeTokenStore(authFile?: string): {
32
43
  get: (host: string) => Promise<{
33
44
  token?: string;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{i as e,r as t,t as n}from"./gh-detect-CA44spgV.mjs";import{A as r,C as i,D as a,E as o,O as s,S as c,T as l,_ as u,b as d,d as f,g as p,h as m,i as h,j as g,k as _,o as v,r as y,s as b,t as x,w as S,x as C,y as w}from"./init-DQkMCwLp.mjs";import{d as T,f as E,l as D,n as O,r as k,t as A,u as j}from"./src-E0JWHkgx.mjs";import{n as M}from"./loader-nhfOe5Do.mjs";import{n as N}from"./preview-Dfy7-7fh.mjs";import{n as P,t as F}from"./mcp-migrate-event-BF8ILHwp.mjs";export{a as ALL_EDITOR_IDS,s as EDITOR_LABELS,_ as EDITOR_TARGETS,x as LAUNCH_CONFIG_NAME,y as LAUNCH_UI_CHAIN_SENTINEL,h as LAUNCH_UI_CHAIN_V1,d as addOkPathsToGitExclude,r as buildManagedServerEntry,F as buildMcpConfigMigrateEvent,v as classifyExistingMcpEntry,t as createTokenStore,n as detectGh,b as detectInstalledEditors,C as formatTrackedRemediation,c as getExcludedOkPaths,i as getOkArtifactPaths,g as isEntryUpToDate,M as loadConfig,e as makeLazyProbeTokenStore,D as parseGitHubBlobUrl,j as parseGitHubShareUrl,T as parseGitHubTreeUrl,E as parseGitUrl,N as previewContent,S as probeTrackedOkPaths,f as readExistingMcpEntry,l as readSharingMode,o as removeOkPathsFromGitExclude,w as resolveProjectRoot,k as runStop,m as scaffoldLaunchJson,P as truncatePriorEntry,O as validateLocalFolderForShare,p as writeEditorMcpConfig,A as writeProjectAiIntegrations,u as writeUserMcpConfigs};
1
+ import{i as e,r as t,t as n}from"./gh-detect-TiuAfW0N.mjs";import{A as r,C as i,D as a,E as o,O as s,S as c,T as l,_ as u,b as d,d as f,g as p,h as m,i as h,j as g,k as _,o as v,r as y,s as b,t as x,w as S,x as C,y as w}from"./init-cagPMbeu.mjs";import{d as T,f as E,m as D,n as O,p as k,r as A,t as j}from"./src-B6M69Qz7.mjs";import{n as M}from"./loader-tSk9esYV.mjs";import{n as N}from"./preview-Chq9tssd.mjs";import{n as P,t as F}from"./mcp-migrate-event-BF8ILHwp.mjs";export{a as ALL_EDITOR_IDS,s as EDITOR_LABELS,_ as EDITOR_TARGETS,x as LAUNCH_CONFIG_NAME,y as LAUNCH_UI_CHAIN_SENTINEL,h as LAUNCH_UI_CHAIN_V1,d as addOkPathsToGitExclude,r as buildManagedServerEntry,F as buildMcpConfigMigrateEvent,v as classifyExistingMcpEntry,t as createTokenStore,n as detectGh,b as detectInstalledEditors,C as formatTrackedRemediation,c as getExcludedOkPaths,i as getOkArtifactPaths,g as isEntryUpToDate,M as loadConfig,e as makeLazyProbeTokenStore,T as parseGitHubBlobUrl,E as parseGitHubShareUrl,k as parseGitHubTreeUrl,D as parseGitUrl,N as previewContent,S as probeTrackedOkPaths,f as readExistingMcpEntry,l as readSharingMode,o as removeOkPathsFromGitExclude,w as resolveProjectRoot,A as runStop,m as scaffoldLaunchJson,P as truncatePriorEntry,O as validateLocalFolderForShare,p as writeEditorMcpConfig,j as writeProjectAiIntegrations,u as writeUserMcpConfigs};
@@ -0,0 +1 @@
1
+ import{m as e}from"./init-cagPMbeu.mjs";export{e as runInit};