@inkeep/open-knowledge 0.2.0 → 0.4.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +6097 -0
- package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
- package/dist/assets/skills/open-knowledge/SKILL.md +347 -0
- package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
- package/dist/banner-DdbR6AZr.mjs +3 -0
- package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
- package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
- package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
- package/dist/build-B6buVrsB.mjs +2 -0
- package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
- package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
- package/dist/chokidar-CxU7f6JW.mjs +4 -0
- package/dist/chunk-24IMIIXA-B6yIPkk2.mjs +2 -0
- package/dist/chunk-3THT3N7L-DztAF386.mjs +2 -0
- package/dist/chunk-3ZUFRYJ4-qsYuZX7b.mjs +2 -0
- package/dist/chunk-44UOCSGV-CaFxJDHm.mjs +2 -0
- package/dist/chunk-4GTNDTRF-PuLVuVJW.mjs +8 -0
- package/dist/chunk-4HHKTUW3-CQ53AiA_.mjs +3 -0
- package/dist/chunk-4Q4SM6WR-BlQvqCag.mjs +5 -0
- package/dist/chunk-55VFSPNA-DLwfww5b.mjs +3 -0
- package/dist/chunk-5QMZ5MUS-CAp625aG.mjs +5 -0
- package/dist/chunk-5QVNJEHU-dbrKfPGl.mjs +9 -0
- package/dist/chunk-5V6VZH6T-DMPvCPbn.mjs +2 -0
- package/dist/chunk-62RKD26F-B9la0pfD.mjs +21 -0
- package/dist/chunk-64BAICW3-D92CLSK-.mjs +2 -0
- package/dist/chunk-74CEPOFO-BcZUJMO1.mjs +23 -0
- package/dist/chunk-7L36YK2X-D7Z_Qw_C.mjs +3 -0
- package/dist/chunk-7TSDKFEO-DUQhJkDy.mjs +2 -0
- package/dist/chunk-A4HU7SVR-DKLaJeys.mjs +3 -0
- package/dist/chunk-A4JSPFCI-CEm2r8SB.mjs +7 -0
- package/dist/chunk-A5O5YHGN-DvJz5Cpw.mjs +2 -0
- package/dist/chunk-A65PWWJC-DV6RO_es.mjs +3 -0
- package/dist/chunk-A7A2DBEE-dTNL-45u.mjs +7 -0
- package/dist/chunk-A7ICOL4V-BvXPAaHu.mjs +14 -0
- package/dist/chunk-ALLTKNUZ-Cu6JFoC4.mjs +6 -0
- package/dist/chunk-APT7OOP2-DmUrFuRy.mjs +2 -0
- package/dist/chunk-BBXLRYSX-K758HlCs.mjs +6 -0
- package/dist/chunk-BRGMQKJV-BXc-9Cgj.mjs +63 -0
- package/dist/chunk-CR5AFCPT-DxNsgM0M.mjs +24 -0
- package/dist/chunk-CWQS3NFK-Co4ALolT.mjs +2 -0
- package/dist/chunk-D4J545R4-DkHLjHX6.mjs +12 -0
- package/dist/chunk-D6CWQ5DW-7lvT8dGP.mjs +6 -0
- package/dist/chunk-D7MEQ3VN-D8jJZr4A.mjs +5 -0
- package/dist/chunk-DCAAORBQ-C3s1D8OY.mjs +2 -0
- package/dist/chunk-DXB73IDG-DIKSLkPq.mjs +2 -0
- package/dist/chunk-EEXR5ZDP-CETL3_Uw.mjs +3 -0
- package/dist/chunk-EIZGF4BS-DOoQW9jQ.mjs +9 -0
- package/dist/chunk-F23WWYKW-BK2tpXPf.mjs +17 -0
- package/dist/chunk-F55TLFGB-Vy5RU2P3.mjs +10 -0
- package/dist/chunk-FEIOJCZD-C25Und0M.mjs +75 -0
- package/dist/chunk-FK9Q3tQk.mjs +1 -0
- package/dist/chunk-GCTKCWKD-Di-RB9Qt.mjs +4 -0
- package/dist/chunk-GFQRA5P5-DnjwTqP3.mjs +8 -0
- package/dist/chunk-GOV5EKKI-CKV9jOGv.mjs +10 -0
- package/dist/chunk-GXVXFKBA-CUKDClxt.mjs +6 -0
- package/dist/chunk-HDQ56CKY-MTQ75a8z.mjs +16 -0
- package/dist/chunk-HJQJAYMS-D-8Vc6Zb.mjs +3 -0
- package/dist/chunk-HJWBQKYG-XrOcsn2f.mjs +6 -0
- package/dist/chunk-HWBSOZZR-BZF8XsyZ.mjs +37 -0
- package/dist/chunk-HWKDQ44K-wgmyck2O.mjs +4 -0
- package/dist/chunk-I57KEIP3-DipCOPKf.mjs +11 -0
- package/dist/chunk-IPJHKYVM-C3IodQq7.mjs +2 -0
- package/dist/chunk-J642UCRS-YiNealfn.mjs +2 -0
- package/dist/chunk-JVPRLUMK-VMFWXimu.mjs +8 -0
- package/dist/chunk-KMEYNNUA-pRogdye4.mjs +16 -0
- package/dist/chunk-LL3S3NLB-ByBS5IDP.mjs +2 -0
- package/dist/chunk-LPQPILI2-FRQB9gt5.mjs +12 -0
- package/dist/chunk-LTZRCH7N-46S7WKw8.mjs +32 -0
- package/dist/chunk-LWEGUNWT-DdGmM3wr.mjs +8 -0
- package/dist/chunk-MDDMCKUK-CuRdI1Uv.mjs +7 -0
- package/dist/chunk-MDLLFABN-Wd1iVjXi.mjs +73 -0
- package/dist/chunk-MHTUABJP-BWrqic3t.mjs +9 -0
- package/dist/chunk-MIZPJHVH-DWdPvcYR.mjs +8 -0
- package/dist/chunk-MLXIYONF-CiCzoeGt.mjs +16 -0
- package/dist/chunk-MYE6AGBJ-DJo74dVC.mjs +17 -0
- package/dist/chunk-NAERJDUW-CIHrNgJB.mjs +9 -0
- package/dist/chunk-NCNPKYJZ-BVljycUZ.mjs +3 -0
- package/dist/chunk-NUYSJFDK-BTseBdxv.mjs +8 -0
- package/dist/chunk-NYQYO467-BgXuDHUQ.mjs +33 -0
- package/dist/chunk-OARHFVLG-Cr0x3Si_.mjs +21 -0
- package/dist/chunk-OCLXQMOG-BW6rwyzS.mjs +7 -0
- package/dist/chunk-OCS6LSEM-D7VAOziZ.mjs +14 -0
- package/dist/chunk-OJDRYQWQ-ikvLWpfV.mjs +2 -0
- package/dist/chunk-OL3S66CO-CQnF8cPH.mjs +100 -0
- package/dist/chunk-PBXLG62G-CgbPJTiw.mjs +9 -0
- package/dist/chunk-PP6PSHAB-CO4MYU__.mjs +5 -0
- package/dist/chunk-PYSFUGCK-DsRn64Ef.mjs +11 -0
- package/dist/chunk-QCDB2VPH-BUMOhlW7.mjs +7 -0
- package/dist/chunk-QJ7O6ZN3-F0_rcDPM.mjs +6 -0
- package/dist/chunk-R6QSAL5T-CeW6f7-x.mjs +2 -0
- package/dist/chunk-R6VWJ2ZL-FwG_Za20.mjs +2 -0
- package/dist/chunk-RPNGRAAP-BmkapBPD.mjs +8 -0
- package/dist/chunk-SDNKECQQ-DkebEzkd.mjs +6 -0
- package/dist/chunk-SYMJJMQ4-DOZMaECk.mjs +22 -0
- package/dist/chunk-T56QNPHK-DPXaSSfC.mjs +15 -0
- package/dist/chunk-TLSUDHID-BovZg0r1.mjs +7 -0
- package/dist/chunk-TOMNU26N-AAglMy4J.mjs +5 -0
- package/dist/chunk-TXBZCHCQ-WeVWfqYv.mjs +6 -0
- package/dist/chunk-UNYNJIFU-CqGlXAg7.mjs +140 -0
- package/dist/chunk-V7TAPXDL-DQgGPvBY.mjs +28 -0
- package/dist/chunk-VJFXDYWH-DIo0Ia0_.mjs +11 -0
- package/dist/chunk-VLGZJRPG-DymOu90-.mjs +17 -0
- package/dist/chunk-VOBGTVA6-Bfa1NTzt.mjs +7 -0
- package/dist/chunk-VYOJP4TV-PBsHe2md.mjs +14 -0
- package/dist/chunk-WKFATFPP-KO2zkfs2.mjs +5 -0
- package/dist/chunk-X2AJGDEF-D5w6wtaX.mjs +2 -0
- package/dist/chunk-XHM67O4N-akBjDPaR.mjs +2 -0
- package/dist/chunk-XKQRETAK-RHzVmuiF.mjs +2 -0
- package/dist/chunk-XORM457F-wr_DBBnV.mjs +288 -0
- package/dist/chunk-XVDPCNWR-DxaG1FfA.mjs +12 -0
- package/dist/chunk-YCFVLTST-Dzwevuc3.mjs +13 -0
- package/dist/chunk-YFG2CMIF-BoZQym0L.mjs +5 -0
- package/dist/chunk-YNYSPYQ5-DesxOVHh.mjs +34 -0
- package/dist/chunk-YS3AZT3J-CBc9LHIy.mjs +9 -0
- package/dist/chunk-YTNYSM6T-WMIf3AF8.mjs +12 -0
- package/dist/chunk-Z6LRHWXI-DGTVoTuf.mjs +14 -0
- package/dist/chunk-Z7JVV2SM-Cb4YKOCM.mjs +12 -0
- package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
- package/dist/cli.mjs +61 -593
- package/dist/colors-BNufdynn.mjs +2 -0
- package/dist/colors-T3xmlXQT.mjs +1 -0
- package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
- package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
- package/dist/config-schema.json +87 -0
- package/dist/config.project-local.schema.json +30 -0
- package/dist/config.project.schema.json +59 -0
- package/dist/config.user.schema.json +58 -0
- package/dist/constants-Dc6GZ6j9.mjs +2 -0
- package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
- package/dist/curl-47BFPSFW-C2kRcGkX.mjs +26 -0
- package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
- package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
- package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
- package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
- package/dist/dist-B6pNPboH.mjs +1609 -0
- package/dist/dist-DVM7wH81.mjs +359 -0
- package/dist/dist-DXLSMgBY.mjs +1 -0
- package/dist/dist-bundle-BSdjl7Rj.mjs +2 -0
- package/dist/dist-bundle-BmF5_Mcp.mjs +1 -0
- package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
- package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
- package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
- package/dist/esm-BbkJd7ro.mjs +2 -0
- package/dist/esm-CEs3LWY3.mjs +20 -0
- package/dist/execAsync-CulVJBMN.mjs +2 -0
- package/dist/execAsync-CzW9fUYQ.mjs +2 -0
- package/dist/execAsync-DuQoqWaW.mjs +2 -0
- package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
- package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
- package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
- package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
- package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
- package/dist/getMachineId-bsd-DAmB-Ym0.mjs +2 -0
- package/dist/getMachineId-bsd-FYDP9w5Q.mjs +2 -0
- package/dist/getMachineId-bsd-mPrX3ckm.mjs +2 -0
- package/dist/getMachineId-darwin-B0Qw-MTj.mjs +3 -0
- package/dist/getMachineId-darwin-C79HtyON.mjs +3 -0
- package/dist/getMachineId-darwin-Co8Jnu5v.mjs +3 -0
- package/dist/getMachineId-linux-BBORs2cS.mjs +2 -0
- package/dist/getMachineId-linux-BizmCjYq.mjs +2 -0
- package/dist/getMachineId-linux-BvLCCmKQ.mjs +2 -0
- package/dist/getMachineId-unsupported-Bgp-Es9j.mjs +2 -0
- package/dist/getMachineId-unsupported-CbR45h2D.mjs +2 -0
- package/dist/getMachineId-unsupported-DbGFOAw1.mjs +2 -0
- package/dist/getMachineId-win-CT_Y5i_4.mjs +2 -0
- package/dist/getMachineId-win-Cy0XHq4X.mjs +2 -0
- package/dist/getMachineId-win-D5gDnBHa.mjs +2 -0
- package/dist/git-handle-DwfYp_z--CfyPz4Dz.mjs +10 -0
- package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
- package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
- package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
- package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
- package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
- package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
- package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
- package/dist/index.d.mts +52 -76
- package/dist/index.mjs +1 -1
- package/dist/init-B7qJnXKB.mjs +397 -0
- package/dist/init-DiH9oQ6_.mjs +1 -0
- package/dist/{is-object-WgQ3abDo.mjs → is-object-DF0ZeuvD.mjs} +1 -1
- package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
- package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
- package/dist/js-exec-M6UR76J5-IyD-lpzv.mjs +97 -0
- package/dist/lib-BOCdCkg7.mjs +2 -0
- package/dist/libesm-YL3Bqolr.mjs +14 -0
- package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
- package/dist/loader-BQf8AJXb.mjs +4 -0
- package/dist/loader-C8lkPKn8.mjs +1 -0
- package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
- package/dist/lzma-vr8hBkhz.mjs +2 -0
- package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
- package/dist/mrmime-C2W7cgq2.mjs +2 -0
- package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
- package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
- package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
- package/dist/{open-browser-rbaiEzUy.mjs → open-browser-BZZK_gJj.mjs} +1 -1
- package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
- package/dist/preview-CN1rHXBb.mjs +1 -0
- package/dist/preview-DUTos2Es.mjs +3 -0
- package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
- package/dist/public/assets/ActivityPanelDiffView-DoHWP1ak.js +13 -0
- package/dist/public/assets/ActivityPanelDiffView-legcy4jI.css +1 -0
- package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
- package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
- package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
- package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
- package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
- package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
- package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
- package/dist/public/assets/agent-presence-Ds2n3U5P.js +1 -0
- package/dist/public/assets/arc-BL_OKZmE.js +1 -0
- package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
- package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
- package/dist/public/assets/array-X0JlPOfd.js +1 -0
- package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
- package/dist/public/assets/button-BsFpqlpT.js +1 -0
- package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
- package/dist/public/assets/channel-CR-xJel6.js +1 -0
- package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
- package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
- package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
- package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
- package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
- package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
- package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
- package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
- package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
- package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
- package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
- package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
- package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
- package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
- package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
- package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
- package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
- package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
- package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
- package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
- package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
- package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
- package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
- package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
- package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
- package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
- package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
- package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
- package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
- package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
- package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
- package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
- package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
- package/dist/public/assets/compiler-runtime-CVnuRdak.js +1 -0
- package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
- package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
- package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
- package/dist/public/assets/dagre-BEdPLXba.js +1 -0
- package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
- package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
- package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
- package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
- package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
- package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
- package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
- package/dist/public/assets/dist-B4kUko7n.js +9 -0
- package/dist/public/assets/dist-BH1b1nWB.js +1 -0
- package/dist/public/assets/dist-BOapDt7N.js +1 -0
- package/dist/public/assets/dist-CIRuNcH5.js +1 -0
- package/dist/public/assets/dist-D08h1pJc.js +1 -0
- package/dist/public/assets/dist-S8LJmtzL.js +1 -0
- package/dist/public/assets/dist-VyzSEzD4.js +1 -0
- package/dist/public/assets/dist-nPpvoMNC.js +13 -0
- package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
- package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
- package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
- package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
- package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
- package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
- package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
- package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
- package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
- package/dist/public/assets/index-B1y9QLHF.js +1858 -0
- package/dist/public/assets/index-DoXig4bf.css +1 -0
- package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
- package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
- package/dist/public/assets/init-CBj3ecIW.js +1 -0
- package/dist/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
- package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
- package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
- package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
- package/dist/public/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
- package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
- package/dist/public/assets/katex-qwlL5fSd.js +257 -0
- package/dist/public/assets/line-_p5Px7MV.js +1 -0
- package/dist/public/assets/linear-DwuDS4qT.js +1 -0
- package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
- package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
- package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
- package/dist/public/assets/min-HKuGSUqa.js +1 -0
- package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
- package/dist/public/assets/now-BBH4UqDm.js +1 -0
- package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
- package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
- package/dist/public/assets/panel-BgMqDESF.js +1 -0
- package/dist/public/assets/path-rUlDLHdA.js +1 -0
- package/dist/public/assets/pdf-a35ddrIO.js +54 -0
- package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
- package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
- package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
- package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
- package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
- package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
- package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
- package/dist/public/assets/reduce-DotyoGA7.js +1 -0
- package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
- package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
- package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
- package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
- package/dist/public/assets/src-C9jsS3p4.js +1 -0
- package/dist/public/assets/src-zyMpT2LE.js +1 -0
- package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
- package/dist/public/assets/stex-BKMR5xQj.js +1 -0
- package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
- package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
- package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
- package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
- package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
- package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
- package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
- package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
- package/dist/public/assets/w3c-keyname-Dfj2imOv.js +1 -0
- package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
- package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
- package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
- package/dist/public/favicon.svg +19 -4
- package/dist/public/index.html +57 -4
- package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
- package/dist/python3-AUFTPCU6-BaJugIdp.mjs +12 -0
- package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
- package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
- package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
- package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
- package/dist/rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs +2 -0
- package/dist/schemas/v0/config.project-local.schema.json +30 -0
- package/dist/schemas/v0/config.project.schema.json +59 -0
- package/dist/schemas/v0/config.user.schema.json +58 -0
- package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
- package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
- package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
- package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
- package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
- package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
- package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
- package/dist/src-Cak39c0B.mjs +1 -0
- package/dist/start-BXk7J0Kh.mjs +1 -0
- package/dist/start-D6Ip3u6P.mjs +3 -0
- package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
- package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
- package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
- package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
- package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
- package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
- package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
- package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
- package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
- package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
- package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
- package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
- package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
- package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
- package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
- package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
- package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
- package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
- package/package.json +25 -19
- package/scripts/build-config-schema.mjs +69 -0
- package/scripts/postinstall.mjs +33 -0
- package/scripts/probe-exec.ts +98 -0
- package/scripts/probe-read-document.ts +100 -0
- package/dist/banner-De2a4ivv.mjs +0 -3
- package/dist/colors-C2vrt_OY.mjs +0 -1
- package/dist/colors-CshxhXdR.mjs +0 -2
- package/dist/constants-yNFhYMHH.mjs +0 -2
- package/dist/git-handle-B5vQdmjQ.mjs +0 -2
- package/dist/git-handle-DGTzeK-H.mjs +0 -1
- package/dist/init-BFZ4vnnX.mjs +0 -1
- package/dist/init-BH38QtfV.mjs +0 -6
- package/dist/init-BzEVODBI.mjs +0 -230
- package/dist/init-DCZhpKSO.mjs +0 -1
- package/dist/keepalive-Bp0nJiwT.mjs +0 -2
- package/dist/loader-CoGCjTcI.mjs +0 -3
- package/dist/loader-D8pf7fi6.mjs +0 -1
- package/dist/paths-C7TuvND0.mjs +0 -2
- package/dist/paths-CWTmBbr0.mjs +0 -1
- package/dist/preview-C-NvAf2r.mjs +0 -1
- package/dist/preview-Cmt2vdUG.mjs +0 -3
- package/dist/public/assets/dist-BDfJLgAe.js +0 -1
- package/dist/public/assets/dist-BSbGs59J.js +0 -1
- package/dist/public/assets/dist-BXK-5ZOh.js +0 -1
- package/dist/public/assets/dist-BipKfxqO.js +0 -15
- package/dist/public/assets/dist-C9Jm0v8G.js +0 -1
- package/dist/public/assets/dist-CDCPrjhY.js +0 -1
- package/dist/public/assets/dist-CHAniM6T.js +0 -9
- package/dist/public/assets/dist-CYsaeLzc.js +0 -1
- package/dist/public/assets/dist-Cq9Fm8Xi.js +0 -1
- package/dist/public/assets/dist-Ct0eqVZy.js +0 -1
- package/dist/public/assets/dist-PgXBewk9.js +0 -23
- package/dist/public/assets/index-BbLzex1v.css +0 -2
- package/dist/public/assets/index-gSm49umN.js +0 -409
- package/dist/src-B7snRveE.mjs +0 -1
- package/dist/src-CEP6NuWY.mjs +0 -1
- package/dist/src-EGbU552u.mjs +0 -278
- package/dist/start-BYXBgVJW.mjs +0 -1
- package/dist/start-DqcFf-BT.mjs +0 -2
- /package/dist/public/assets/{go-IODVg4Ok.js → go-a33xvodr.js} +0 -0
- /package/dist/public/assets/{shell-COsTRxlr.js → shell-40VLet8r.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,F as t,Q as n,T as r,X as i,k as a,m as o}from"./dist-DVM7wH81.mjs";import{_ as s,a as c,c as l,d as u,f as d,g as f,i as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,u as S}from"./server-lock-D7DXNVql-BRVVzA6T.mjs";import{$ as C,$t as w,A as T,An as E,At as D,B as O,Bn as k,Bt as A,C as j,Cn as M,Ct as N,D as P,Dn as F,Dt as I,E as L,En as R,Et as z,F as B,Fn as V,Ft as H,G as U,Gn as W,Gt as G,H as K,Hn as q,Ht as J,I as Y,In as X,It as Z,J as Q,Jn as $,Jt as ee,K as te,Kn as ne,Kt as re,L as ie,Ln as ae,Lt as oe,M as se,Mn as ce,Mt as le,N as ue,Nn as de,Nt as fe,O as pe,On as me,Ot as he,P as ge,Pn as _e,Pt as ve,Q as ye,Qt as be,R as xe,Rn as Se,Rt as Ce,S as we,Sn as Te,St as Ee,T as De,Tn as Oe,Tt as ke,U as Ae,Un as je,Ut as Me,V as Ne,Vn as Pe,Vt as Fe,W as Ie,Wn as Le,Wt as Re,X as ze,Xn as Be,Xt as Ve,Y as He,Yn as Ue,Yt as We,Z as Ge,Zt as Ke,_ as qe,_n as Je,_t as Ye,a as Xe,an as Ze,ar as Qe,at as $e,b as et,bn as tt,bt as nt,c as rt,cn as it,ct as at,d as ot,dn as st,dt as ct,en as lt,et as ut,f as dt,fn as ft,ft as pt,g as mt,gn as ht,gt,h as _t,hn as vt,ht as yt,i as bt,in as xt,it as St,j as Ct,jn as wt,jt as Tt,k as Et,kn as Dt,kt as Ot,l as kt,ln as At,lt as jt,m as Mt,mn as Nt,mt as Pt,n as Ft,nn as It,nt as Lt,o as Rt,on as zt,or as Bt,ot as Vt,p as Ht,pn as Ut,pt as Wt,q as Gt,qn as Kt,qt,r as Jt,rn as Yt,rt as Xt,s as Zt,sn as Qt,st as $t,t as en,tn,tt as nn,u as rn,un as an,ut as on,v as sn,vn as cn,vt as ln,w as un,wn as dn,wt as fn,x as pn,xn as mn,xt as hn,y as gn,yn as _n,yt as vn,z as yn,zn as bn,zt as xn}from"./dist-B6pNPboH.mjs";export{en as AGENT_ID_MAX_LEN,Ft as AGENT_ID_RE,Jt as AGENT_WRITE_ORIGIN,bt as AgentFocusBroadcaster,Xe as AgentPresenceBroadcaster,Rt as AgentSessionCapacityError,Zt as AgentSessionManager,rt as BacklinkIndex,kt as CC1Broadcaster,o as CC1_CONTRACT_VERSION,rn as CONFLICT_MARKER_RE,ot as ConfigSchema,dt as DEFAULT_CHECKPOINT_RETENTION,Ht as FILE_SYSTEM_WRITER,Mt as FILE_WATCHER_ORIGIN,_t as GIT_UPSTREAM_WRITER,Qe as GitDirAccessError,mt as HOCUSPOCUS_AUTH_REJECTION_REASONS,qe as HocuspocusAuthRejection,sn as HocuspocusAuthTokenSchema,gn as LIVE_DERIVED_INDEX_DEBOUNCE_MS,et as LOG_MD_TEMPLATE,pn as MANAGED_RENAME_ORIGIN,we as MAX_AGENT_SESSIONS,j as MCP_SERVER_NAME,un as MISSING_OK_CONFIG_MESSAGE,Bt as MalformedGitPointerError,De as McpLogger,L as MissingOkConfigError,P as OBSERVER_SYNC_ORIGIN,r as ORPHAN_MODES,pe as PinoLogger,x as ProcessLockCollisionError,Et as ProjectGitInitError,T as ROLLBACK_ORIGIN,g as RUNTIME_VERSION,Ct as SERVICE_WRITER,se as SKILL_INSTALL_EVENTS_FILE_REL,e as SKILL_STATE_TARGETS,ue as STARTER_FOLDERS,ge as STARTER_FOLDER_FRONTMATTER_FILENAME,B as STARTER_TEMPLATES,Y as STATE_MANIFEST_FILENAME,y as STATE_SCHEMA_VERSION,a as SYSTEM_DOC_NAME,ie as SeedPrerequisiteError,xe as SeedRootDirError,p as ServerLockCollisionError,yn as StateManifestError,O as TagIndex,Ne as UiLockCollisionError,c as acquireProcessLock,_ as acquireServerLock,K as acquireUiLock,Ae as applyAgentMarkdownWrite,Ie as applyExternalChange,U as applySeed,te as assertCompatibleStateManifest,Gt as assertNeverDiskEvent,Q as attachIdleShutdown,He as bootServer,ze as buildAndOpenSkill,Ge as buildExecResult,ye as buildReadResult,C as buildSkillZip,ut as buildStarterFolderFrontmatterYaml,nn as buildWipTree,Lt as classifyEvents,Xt as clearContributors,t as colorFromSeed,St as commitUpstreamImport,$e as commitWip,Vt as commitWipFromTree,$t as containsConflictMarkers,at as contentHash,jt as contributorCount,on as createApiExtension,ct as createAssetServeMiddleware,pt as createContentFilter,Wt as createExternalChangeHandler,Pt as createLiveDerivedIndexExtension,yt as createMcpHttpHandler,gt as createPersistenceExtension,Ye as createServer,ln as createServerObserverExtension,vn as createTestLogger,nt as detectClaudeDesktopPresence,hn as detectProjectShape,Ee as ensureProjectGit,N as evictStaleTrackerEntries,fn as extractWikiLinksFromMarkdown,ke as formatContributors,z as gcCheckpointRefs,I as getCurrentMcpLogger,he as getLocalDir,Ot as getLogger,D as getMeter,Tt as getMetrics,le as getTracer,fe as handleCollabSocketError,i as iconFromClientName,ve as incrementCollabSocketFilteredError,H as incrementServerObserverFire,Z as initShadowRepo,oe as initTelemetry,Ce as installTestLoggers,xn as installUserSkill,A as isAllowedApiOrigin,Fe as isAllowedWorkspaceHostHeader,J as isConfigDoc,Me as isHocuspocusAuthRejectionReason,Re as isLoopbackAddress,n as isOrphanMode,G as isPairedWriteOrigin,b as isProcessAlive,re as isSelfWrite,qt as isSystemDoc,l as isValidLockPid,ee as lastKnownHash,We as listRescueCheckpoints,Ve as loadPrincipal,m as lockFilePath,Ke as loggerFactory,be as mountMcpAndApi,w as parseHocuspocusAuthToken,lt as parseKeepaliveConnectionId,tn as pathToDocName,It as planSeed,Yt as readAllTargets,xt as readBranchFromHead,S as readProcessLock,u as readProcessLockDetailed,d as readServerLock,Ze as readServerPackageVersion,zt as readSkillInstallStateSnapshot,Qt as readStateManifest,it as readTargetRecordedAt,At as readTargetVersion,an as readUiLock,st as reconcile,ft as recordContributor,Ut as recordSkillInstallEvent,Nt as registerWrite,v as releaseProcessLock,h as releaseServerLock,vt as releaseUiLock,ht as removeLastKnownHash,Je as resetMetrics,cn as resolveBundledSkillDir,_n as resolveContentDir,tt as resolveLockDir,mn as resolvePackageVersion,Te as rewriteMarkdownLinksForDocumentRename,M as rewriteWikiLinksForDocumentRename,dn as runAuthReposSubprocess,Oe as runAuthStatusSubprocess,R as runCloneSubprocess,F as runDeviceFlowSubprocess,me as runWithMcpLogger,Dt as safeContentPath,E as safeSubdir,wt as safetyCheckpoint,ce as saveInMemoryCheckpoint,de as saveVersion,_e as seedBasenameIndex,V as setActiveSpanAttributes,X as shadowGit,ae as shutdownTelemetry,Se as splitMarkdownBlocks,bn as startWatcher,k as toBroadcasterKey,Pe as updateLastKnownHash,f as updateProcessLockPort,s as updateServerLockPort,q as updateUiLockPort,je as validateAgentId,Le as validateCloneInputs,W as validateSkillZip,ne as withSpan,Kt as withSpanSync,$ as writeStateManifest,Ue as writeTargetVersion,Be as writeTracker};
|
|
@@ -0,0 +1,2 @@
|
|
|
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-BSdjl7Rj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./dist-bundle-BSdjl7Rj.mjs";export{e as request};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-RPNGRAAP-BmkapBPD.mjs";export{e as duCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-GCTKCWKD-Di-RB9Qt.mjs";export{e as echoCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-NAERJDUW-CIHrNgJB.mjs";export{e as envCommand,t as printenvCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
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)&>(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-BbkJd7ro.mjs.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{i as e,o as t,t as n}from"./chunk-FK9Q3tQk.mjs";var r=n((e=>{var t=class extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},n=class extends t{constructor(e){super(1,`commander.invalidArgument`,e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};e.CommanderError=t,e.InvalidArgumentError=n})),i=n((e=>{let{InvalidArgumentError:t}=r();var n=class{constructor(e,t){switch(this.description=t||``,this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case`<`:this.required=!0,this._name=e.slice(1,-1);break;case`[`:this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.endsWith(`...`)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function i(e){let t=e.name()+(e.variadic===!0?`...`:``);return e.required?`<`+t+`>`:`[`+t+`]`}e.Argument=n,e.humanReadableArgName=i})),a=n((e=>{let{humanReadableArgName:t}=i();var n=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){let n=e=>e.short?e.short.replace(/^-/,``):e.long.replace(/^--/,``);return n(e).localeCompare(n(t))}visibleOptions(e){let t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){let r=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);!r&&!i?t.push(n):n.long&&!i?t.push(e.createOption(n.long,n.description)):n.short&&!r&&t.push(e.createOption(n.short,n.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let n=e.parent;n;n=n.parent){let e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||``}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(e=>t(e)).join(` `);return e._name+(e._aliases[0]?`|`+e._aliases[0]:``)+(e.options.length?` [options]`:``)+(n?` `+n:``)}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+`|`+e._aliases[0]);let n=``;for(let t=e.parent;t;t=t.parent)n=t.name()+` `+n;return n+t+` `+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==`boolean`)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return t.length===0?[]:[n.styleTitle(e),...t,``]}groupItems(e,t,n){let r=new Map;return e.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[])}),t.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[]),r.get(t).push(e)}),r}formatHelp(e,t){let n=t.padWidth(e,t),r=t.helpWidth??80;function i(e,r){return t.formatItem(e,n,r,t)}let a=[`${t.styleTitle(`Usage:`)} ${t.styleUsage(t.commandUsage(e))}`,``],o=t.commandDescription(e);o.length>0&&(a=a.concat([t.boxWrap(t.styleCommandDescription(o),r),``]));let s=t.visibleArguments(e).map(e=>i(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(a=a.concat(this.formatItemList(`Arguments:`,s,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??`Options:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),t.showGlobalOptions){let n=t.visibleGlobalOptions(e).map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(`Global Options:`,n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||`Commands:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),a.join(`
|
|
2
|
+
`)}displayWidth(e){return r(e).length}styleTitle(e){return e}styleUsage(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e===`[command]`?this.styleSubcommandText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleCommandText(e)).join(` `)}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleSubcommandText(e)).join(` `)}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,r){let i=` `.repeat(2);if(!n)return i+e;let a=e.padEnd(t+e.length-r.displayWidth(e)),o=(this.helpWidth??80)-t-2-2,s;return s=o<this.minWidthToWrap||r.preformatted(n)?n:r.boxWrap(n,o).replace(/\n/g,`
|
|
3
|
+
`+` `.repeat(t+2)),i+a+` `.repeat(2)+s.replace(/\n/g,`\n${i}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let n=e.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,i=[];return n.forEach(e=>{let n=e.match(r);if(n===null){i.push(``);return}let a=[n.shift()],o=this.displayWidth(a[0]);n.forEach(e=>{let n=this.displayWidth(e);if(o+n<=t){a.push(e),o+=n;return}i.push(a.join(``));let r=e.trimStart();a=[r],o=this.displayWidth(r)}),i.push(a.join(``))}),i.join(`
|
|
4
|
+
`)}};function r(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,``)}e.Help=n,e.stripColor=r})),o=n((e=>{let{InvalidArgumentError:t}=r();var n=class{constructor(e,t){this.flags=e,this.description=t||``,this.required=e.includes(`<`),this.optional=e.includes(`[`),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=o(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith(`--no-`)),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e==`string`&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}name(){return this.long?this.long.replace(/^--/,``):this.short.replace(/^-/,``)}attributeName(){return this.negate?a(this.name().replace(/^no-/,``)):a(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},i=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){let n=t.attributeName();if(!this.dualOptions.has(n))return!0;let r=this.negativeOptions.get(n).presetArg,i=r===void 0?!1:r;return t.negate===(i===e)}};function a(e){return e.split(`-`).reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function o(e){let t,n,r=/^-[^-]$/,i=/^--[^-]/,a=e.split(/[ |,]+/).concat(`guard`);if(r.test(a[0])&&(t=a.shift()),i.test(a[0])&&(n=a.shift()),!t&&r.test(a[0])&&(t=a.shift()),!t&&i.test(a[0])&&(t=n,n=a.shift()),a[0].startsWith(`-`)){let t=a[0],n=`option creation failed due to '${t}' in option flags '${e}'`;throw/^-[^-][^-]/.test(t)?Error(`${n}
|
|
5
|
+
- a short flag is a single dash and a single character
|
|
6
|
+
- either use a single dash and a single character (for a short flag)
|
|
7
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):r.test(t)?Error(`${n}
|
|
8
|
+
- too many short flags`):i.test(t)?Error(`${n}
|
|
9
|
+
- too many long flags`):Error(`${n}
|
|
10
|
+
- unrecognised flag format`)}if(t===void 0&&n===void 0)throw Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}e.Option=n,e.DualOptions=i})),s=n((e=>{function t(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let n=[];for(let t=0;t<=e.length;t++)n[t]=[t];for(let e=0;e<=t.length;e++)n[0][e]=e;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++){let a=1;a=e[i-1]===t[r-1]?0:1,n[i][r]=Math.min(n[i-1][r]+1,n[i][r-1]+1,n[i-1][r-1]+a),i>1&&r>1&&e[i-1]===t[r-2]&&e[i-2]===t[r-1]&&(n[i][r]=Math.min(n[i][r],n[i-2][r-2]+1))}return n[e.length][t.length]}function n(e,n){if(!n||n.length===0)return``;n=Array.from(new Set(n));let r=e.startsWith(`--`);r&&(e=e.slice(2),n=n.map(e=>e.slice(2)));let i=[],a=3;return n.forEach(n=>{if(n.length<=1)return;let r=t(e,n),o=Math.max(e.length,n.length);(o-r)/o>.4&&(r<a?(a=r,i=[n]):r===a&&i.push(n))}),i.sort((e,t)=>e.localeCompare(t)),r&&(i=i.map(e=>`--${e}`)),i.length>1?`\n(Did you mean one of ${i.join(`, `)}?)`:i.length===1?`\n(Did you mean ${i[0]}?)`:``}e.suggestSimilar=n})),c=n((t=>{let n=e(`node:events`).EventEmitter,c=e(`node:child_process`),l=e(`node:path`),u=e(`node:fs`),d=e(`node:process`),{Argument:f,humanReadableArgName:p}=i(),{CommanderError:m}=r(),{Help:h,stripColor:g}=a(),{Option:_,DualOptions:v}=o(),{suggestSimilar:y}=s();var b=class e extends n{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||``,this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description=``,this._summary=``,this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>d.stdout.write(e),writeErr:e=>d.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>d.stdout.isTTY?d.stdout.columns:void 0,getErrHelpWidth:()=>d.stderr.isTTY?d.stderr.columns:void 0,getOutHasColors:()=>S()??(d.stdout.isTTY&&d.stdout.hasColors?.()),getErrHasColors:()=>S()??(d.stderr.isTTY&&d.stderr.hasColors?.()),stripColor:e=>g(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,n){let r=t,i=n;typeof r==`object`&&r&&(i=r,r=null),i||={};let[,a,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(a);return r&&(s.description(r),s._executableHandler=!0),i.isDefault&&(this._defaultCommandName=s._name),s._hidden=!!(i.noHelp||i.hidden),s._executableFile=i.executableFile||null,o&&s.arguments(o),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),r?this:s}createCommand(t){return new e(t)}createHelp(){return Object.assign(new h,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return typeof e!=`string`&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
11
|
+
- specify the name in Command constructor or using .name()`);return t||={},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new f(e,t)}argument(e,t,n,r){let i=this.createArgument(e,t);return typeof n==`function`?i.default(r).argParser(n):i.default(n),this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if(typeof e==`boolean`)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let[,n,r]=(e??`help [command]`).match(/([^ ]+) *(.*)/),i=t??`display help for command`,a=this.createCommand(n);return a.helpOption(!1),r&&a.arguments(r),i&&a.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=a,(e||t)&&this._initCommandGroup(a),this}addHelpCommand(e,t){return typeof e==`object`?(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this):(this.helpCommand(e,t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand(`help`))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let n=[`preSubcommand`,`preAction`,`postAction`];if(!n.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
|
|
12
|
+
Expecting one of '${n.join(`', '`)}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=e=>{if(e.code!==`commander.executeSubCommandAsync`)throw e},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new m(e,t,n)),d.exit(e)}action(e){return this._actionHandler=t=>{let n=this.registeredArguments.length,r=t.slice(0,n);return this._storeOptionsAsProperties?r[n]=this:r[n]=this.opts(),r.push(this),e.apply(this,r)},this}createOption(e,t){return new _(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code===`commander.invalidArgument`){let t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let n=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'
|
|
13
|
+
- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let t=e=>[e.name()].concat(e.aliases()),n=t(e).find(e=>this._findCommand(e));if(n){let r=t(this._findCommand(n)).join(`|`),i=t(e).join(`|`);throw Error(`cannot add command '${i}' as already have command '${r}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),n=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,`--`);this._findOption(t)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,`default`)}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,`default`);let r=(t,r,i)=>{t==null&&e.presetArg!==void 0&&(t=e.presetArg);let a=this.getOptionValue(n);t!==null&&e.parseArg?t=this._callParseArg(e,t,a,r):t!==null&&e.variadic&&(t=e._collectValue(t,a)),t??=e.negate?!1:e.isBoolean()||e.optional?!0:``,this.setOptionValueWithSource(n,t,i)};return this.on(`option:`+t,t=>{r(t,`error: option '${e.flags}' argument '${t}' is invalid.`,`cli`)}),e.envVar&&this.on(`optionEnv:`+t,t=>{r(t,`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`,`env`)}),this}_optionEx(e,t,n,r,i){if(typeof t==`object`&&t instanceof _)throw Error(`To add an Option object use addOption() instead of option() or requiredOption()`);let a=this.createOption(t,n);if(a.makeOptionMandatory(!!e.mandatory),typeof r==`function`)a.default(i).argParser(r);else if(r instanceof RegExp){let e=r;r=(t,n)=>{let r=e.exec(t);return r?r[0]:n},a.default(i).argParser(r)}else a.default(r);return this.addOption(a)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:!0},e,t,n,r)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error(`call .storeOptionsAsProperties() before adding options`);if(Object.keys(this._optionValues).length)throw Error(`call .storeOptionsAsProperties() before setting option values`);return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,n){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(t=n.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(e!==void 0&&!Array.isArray(e))throw Error(`first parameter to parse must be array or undefined`);if(t||={},e===void 0&&t.from===void 0){d.versions?.electron&&(t.from=`electron`);let e=d.execArgv??[];(e.includes(`-e`)||e.includes(`--eval`)||e.includes(`-p`)||e.includes(`--print`))&&(t.from=`eval`)}e===void 0&&(e=d.argv),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case`node`:this._scriptPath=e[1],n=e.slice(2);break;case`electron`:d.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case`user`:n=e.slice(0);break;case`eval`:n=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||`program`,n}parse(e,t){this._prepareForParse();let n=this._prepareUserArgs(e,t);return this._parseCommand([],n),this}async parseAsync(e,t){this._prepareForParse();let n=this._prepareUserArgs(e,t);return await this._parseCommand([],n),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
14
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,n){if(u.existsSync(e))return;let r=`'${e}' does not exist
|
|
15
|
+
- if '${n}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
16
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
17
|
+
- ${t?`searched for local subcommand relative to directory '${t}'`:`no directory for search for local subcommand, use .executableDir() to supply a custom directory`}`;throw Error(r)}_executeSubCommand(e,t){t=t.slice();let n=!1,r=[`.js`,`.ts`,`.tsx`,`.mjs`,`.cjs`];function i(e,t){let n=l.resolve(e,t);if(u.existsSync(n))return n;if(r.includes(l.extname(t)))return;let i=r.find(e=>u.existsSync(`${n}${e}`));if(i)return`${n}${i}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,o=this._executableDir||``;if(this._scriptPath){let e;try{e=u.realpathSync(this._scriptPath)}catch{e=this._scriptPath}o=l.resolve(l.dirname(e),o)}if(o){let t=i(o,a);if(!t&&!e._executableFile&&this._scriptPath){let n=l.basename(this._scriptPath,l.extname(this._scriptPath));n!==this._name&&(t=i(o,`${n}-${e._name}`))}a=t||a}n=r.includes(l.extname(a));let s;d.platform===`win32`?(this._checkForMissingExecutable(a,o,e._name),t.unshift(a),t=x(d.execArgv).concat(t),s=c.spawn(d.execPath,t,{stdio:`inherit`})):n?(t.unshift(a),t=x(d.execArgv).concat(t),s=c.spawn(d.argv[0],t,{stdio:`inherit`})):s=c.spawn(a,t,{stdio:`inherit`}),s.killed||[`SIGUSR1`,`SIGUSR2`,`SIGTERM`,`SIGINT`,`SIGHUP`].forEach(e=>{d.on(e,()=>{s.killed===!1&&s.exitCode===null&&s.kill(e)})});let f=this._exitCallback;s.on(`close`,e=>{e??=1,f?f(new m(e,`commander.executeSubCommandAsync`,`(close)`)):d.exit(e)}),s.on(`error`,t=>{if(t.code===`ENOENT`)this._checkForMissingExecutable(a,o,e._name);else if(t.code===`EACCES`)throw Error(`'${a}' not executable`);if(!f)d.exit(1);else{let e=new m(1,`commander.executeSubCommandAsync`,`(error)`);e.nestedError=t,f(e)}}),this.runningCommand=s}_dispatchSubcommand(e,t,n){let r=this._findCommand(e);r||this.help({error:!0}),r._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,r,`preSubcommand`),i=this._chainOrCall(i,()=>{if(r._executableHandler)this._executeSubCommand(r,t.concat(n));else return r._parseCommand(t,n)}),i}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??`--help`])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){let i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((n,r)=>{let i=n.defaultValue;n.variadic?r<this.args.length?(i=this.args.slice(r),n.parseArg&&(i=i.reduce((t,r)=>e(n,r,t),n.defaultValue))):i===void 0&&(i=[]):r<this.args.length&&(i=this.args[r],n.parseArg&&(i=e(n,i,n.defaultValue))),t[r]=i}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&typeof e.then==`function`?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e,r=[];return this._getCommandAndAncestors().reverse().filter(e=>e._lifeCycleHooks[t]!==void 0).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{r.push({hookedCommand:e,callback:t})})}),t===`postAction`&&r.reverse(),r.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let r=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(e=>{r=this._chainOrCall(r,()=>e(this,t))}),r}_parseCommand(e,t){let n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let r=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){r(),this._processArguments();let n;return n=this._chainOrCallHooks(n,`preAction`),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(i,e,t)})),n=this._chainOrCallHooks(n,`postAction`),n}if(this.parent?.listenerCount(i))r(),this._processArguments(),this.parent.emit(i,e,t);else if(e.length){if(this._findCommand(`*`))return this._dispatchSubcommand(`*`,e,t);this.listenerCount(`command:*`)?this.emit(`command:*`,e,t):this.commands.length?this.unknownCommand():(r(),this._processArguments())}else this.commands.length?(r(),this.help({error:!0})):(r(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(e=>{let t=e.attributeName();return this.getOptionValue(t)===void 0?!1:this.getOptionValueSource(t)!==`default`});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{let n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],n=[],r=t;function i(e){return e.length>1&&e[0]===`-`}let a=e=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)?!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e))):!1,o=null,s=null,c=0;for(;c<e.length||s;){let l=s??e[c++];if(s=null,l===`--`){r===n&&r.push(l),r.push(...e.slice(c));break}if(o&&(!i(l)||a(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,i(l)){let t=this._findOption(l);if(t){if(t.required){let n=e[c++];n===void 0&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!i(e[c])||a(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);o=t.variadic?t:null;continue}}if(l.length>2&&l[0]===`-`&&l[1]!==`-`){let e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),s=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let e=l.indexOf(`=`),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(r===t&&i(l)&&!(this.commands.length===0&&a(l))&&(r=n),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}else if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){r.push(l,...e.slice(c));break}r.push(l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==`string`?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
18
|
+
`),this.outputHelp({error:!0}));let n=t||{},r=n.exitCode||1,i=n.code||`commander.error`;this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in d.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||[`default`,`config`,`env`].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,d.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new v(this.options),t=e=>this.getOptionValue(e)!==void 0&&![`default`,`implied`].includes(this.getOptionValueSource(e));this.options.filter(n=>n.implied!==void 0&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],`implied`)})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:`commander.missingArgument`})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:`commander.optionMissingArgument`})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:`commander.missingMandatoryOptionValue`})}_conflictingOption(e,t){let n=e=>{let t=e.attributeName(),n=this.getOptionValue(t),r=this.options.find(e=>e.negate&&t===e.attributeName()),i=this.options.find(e=>!e.negate&&t===e.attributeName());return r&&(r.presetArg===void 0&&n===!1||r.presetArg!==void 0&&n===r.presetArg)?r:i||e},r=e=>{let t=n(e),r=t.attributeName();return this.getOptionValueSource(r)===`env`?`environment variable '${t.envVar}'`:`option '${t.flags}'`},i=`error: ${r(e)} cannot be used with ${r(t)}`;this.error(i,{code:`commander.conflictingOption`})}unknownOption(e){if(this._allowUnknownOption)return;let t=``;if(e.startsWith(`--`)&&this._showSuggestionAfterError){let n=[],r=this;do{let e=r.createHelp().visibleOptions(r).filter(e=>e.long).map(e=>e.long);n=n.concat(e),r=r.parent}while(r&&!r._enablePositionalOptions);t=y(e,n)}let n=`error: unknown option '${e}'${t}`;this.error(n,{code:`commander.unknownOption`})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,n=t===1?``:`s`,r=`error: too many arguments${this.parent?` for '${this.name()}'`:``}. Expected ${t} argument${n} but got ${e.length}.`;this.error(r,{code:`commander.excessArguments`})}unknownCommand(){let e=this.args[0],t=``;if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=y(e,n)}let n=`error: unknown command '${e}'${t}`;this.error(n,{code:`commander.unknownCommand`})}version(e,t,n){if(e===void 0)return this._version;this._version=e,t||=`-V, --version`,n||=`output the version number`;let r=this.createOption(t,n);return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on(`option:`+r.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,`commander.version`,e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw Error(`Command alias can't be the same as its name`);let n=this.parent?._findCommand(e);if(n){let t=[n.name()].concat(n.aliases()).join(`|`);throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let e=this.registeredArguments.map(e=>p(e));return[].concat(this.options.length||this._helpOption!==null?`[options]`:[],this.commands.length?`[command]`:[],this.registeredArguments.length?e:[]).join(` `)}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??``:(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??``:(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??``:(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=l.basename(e,l.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});let r=t.formatHelp(this,t);return n.hasColors?r:this._outputConfiguration.stripColor(r)}_getOutputContext(e){e||={};let t=!!e.error,n,r,i;return t?(n=e=>this._outputConfiguration.writeErr(e),r=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),r=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(r||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:r,helpWidth:i}}outputHelp(e){let t;typeof e==`function`&&(t=e,e=void 0);let n=this._getOutputContext(e),r={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit(`beforeAllHelp`,r)),this.emit(`beforeHelp`,r);let i=this.helpInformation({error:n.error});if(t&&(i=t(i),typeof i!=`string`&&!Buffer.isBuffer(i)))throw Error(`outputHelp callback must return a string or a Buffer`);n.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit(`afterHelp`,r),this._getCommandAndAncestors().forEach(e=>e.emit(`afterAllHelp`,r))}helpOption(e,t){return typeof e==`boolean`?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??`-h, --help`,t??`display help for command`),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(d.exitCode??0);t===0&&e&&typeof e!=`function`&&e.error&&(t=1),this._exit(t,`commander.help`,`(outputHelp)`)}addHelpText(e,t){let n=[`beforeAll`,`before`,`after`,`afterAll`];if(!n.includes(e))throw Error(`Unexpected value for position to addHelpText.
|
|
19
|
+
Expecting one of '${n.join(`', '`)}'`);let r=`${e}Help`;return this.on(r,e=>{let n;n=typeof t==`function`?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,`commander.helpDisplayed`,`(outputHelp)`))}};function x(e){return e.map(e=>{if(!e.startsWith(`--inspect`))return e;let t,n=`127.0.0.1`,r=`9229`,i;return(i=e.match(/^(--inspect(-brk)?)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],r=i[4]):(t=i[1],/^\d+$/.test(i[3])?r=i[3]:n=i[3]):t=i[1],t&&r!==`0`?`${t}=${n}:${parseInt(r)+1}`:e})}function S(){if(d.env.NO_COLOR||d.env.FORCE_COLOR===`0`||d.env.FORCE_COLOR===`false`)return!1;if(d.env.FORCE_COLOR||d.env.CLICOLOR_FORCE!==void 0)return!0}t.Command=b,t.useColor=S}));const{program:l,createCommand:u,createArgument:d,createOption:f,CommanderError:p,InvalidArgumentError:m,InvalidOptionArgumentError:h,Command:g,Argument:_,Option:v,Help:y}=t(n((e=>{let{Argument:t}=i(),{Command:n}=c(),{CommanderError:s,InvalidArgumentError:l}=r(),{Help:u}=a(),{Option:d}=o();e.program=new n,e.createCommand=e=>new n(e),e.createOption=(e,t)=>new d(e,t),e.createArgument=(e,n)=>new t(e,n),e.Command=n,e.Option=d,e.Argument=t,e.Help=u,e.CommanderError=s,e.InvalidArgumentError=l,e.InvalidOptionArgumentError=l}))(),1).default;export{m as n,v as r,g as t};
|
|
20
|
+
//# sourceMappingURL=esm-CEs3LWY3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-VJFXDYWH-DIo0Ia0_.mjs";export{e as expand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{w as e}from"./chunk-FEIOJCZD-C25Und0M.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";export{e as isArray};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-YFG2CMIF-BoZQym0L.mjs";export{e as exprCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-CR5AFCPT-DxNsgM0M.mjs";export{e as fileCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-J642UCRS-YiNealfn.mjs";import{n as e}from"./chunk-LPQPILI2-FRQB9gt5.mjs";export{e as findCommand};
|
|
@@ -0,0 +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-Bfa1NTzt.mjs";import{t as n}from"./chunk-OARHFVLG-Cr0x3Si_.mjs";import{n as r}from"./chunk-QJ7O6ZN3-F0_rcDPM.mjs";import{n as i}from"./chunk-ALLTKNUZ-Cu6JFoC4.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-7lvT8dGP.mjs";import{n as a}from"./chunk-TXBZCHCQ-WeVWfqYv.mjs";import{n as o}from"./chunk-4GTNDTRF-PuLVuVJW.mjs";import{t as s}from"./chunk-LL3S3NLB-ByBS5IDP.mjs";import{n as c}from"./chunk-LWEGUNWT-DdGmM3wr.mjs";import{n as l}from"./chunk-Z7JVV2SM-Cb4YKOCM.mjs";import{n as u}from"./chunk-NUYSJFDK-BTseBdxv.mjs";import{t as d}from"./chunk-SDNKECQQ-DkebEzkd.mjs";import{t as f}from"./chunk-D7MEQ3VN-D8jJZr4A.mjs";import{n as p}from"./chunk-TLSUDHID-BovZg0r1.mjs";import{t as m}from"./chunk-4Q4SM6WR-BlQvqCag.mjs";import{n as h}from"./chunk-RPNGRAAP-BmkapBPD.mjs";import{n as g}from"./chunk-GCTKCWKD-Di-RB9Qt.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-CIHrNgJB.mjs";import{n as y}from"./chunk-VJFXDYWH-DIo0Ia0_.mjs";import{t as b}from"./chunk-YFG2CMIF-BoZQym0L.mjs";import{n as x}from"./chunk-CR5AFCPT-DxNsgM0M.mjs";import"./chunk-J642UCRS-YiNealfn.mjs";import{t as S}from"./chunk-LPQPILI2-FRQB9gt5.mjs";import{t as C}from"./chunk-BRGMQKJV-BXc-9Cgj.mjs";import"./chunk-SYMJJMQ4-DOZMaECk.mjs";import"./chunk-7TSDKFEO-DUQhJkDy.mjs";import"./chunk-BBXLRYSX-K758HlCs.mjs";import{n as w}from"./chunk-XORM457F-wr_DBBnV.mjs";import"./chunk-F55TLFGB-Vy5RU2P3.mjs";import{t as T}from"./chunk-UNYNJIFU-CqGlXAg7.mjs";import{r as E}from"./chunk-HWBSOZZR-BZF8XsyZ.mjs";import{n as D}from"./chunk-MDLLFABN-Wd1iVjXi.mjs";import{n as O}from"./chunk-MLXIYONF-CiCzoeGt.mjs";import{n as k}from"./chunk-A65PWWJC-DV6RO_es.mjs";import{t as A}from"./chunk-MHTUABJP-BWrqic3t.mjs";import{n as j}from"./chunk-4HHKTUW3-CQ53AiA_.mjs";import{n as M}from"./chunk-HJQJAYMS-D-8Vc6Zb.mjs";import{n as N}from"./chunk-PP6PSHAB-CO4MYU__.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N-46S7WKw8.mjs";import{t as L}from"./chunk-YTNYSM6T-WMIf3AF8.mjs";import{t as R}from"./chunk-Z6LRHWXI-DGTVoTuf.mjs";import{n as z}from"./chunk-A7A2DBEE-dTNL-45u.mjs";import{t as B}from"./chunk-APT7OOP2-DmUrFuRy.mjs";import{n as V}from"./chunk-XKQRETAK-RHzVmuiF.mjs";import{n as H}from"./chunk-5V6VZH6T-DMPvCPbn.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-CeW6f7-x.mjs";import{n as G}from"./chunk-YCFVLTST-Dzwevuc3.mjs";import{t as K}from"./chunk-GOV5EKKI-CKV9jOGv.mjs";import{t as q}from"./chunk-XVDPCNWR-DxaG1FfA.mjs";import{n as J}from"./chunk-NCNPKYJZ-BVljycUZ.mjs";import{t as ne}from"./chunk-TOMNU26N-AAglMy4J.mjs";import{t as Y}from"./chunk-PYSFUGCK-DsRn64Ef.mjs";import{t as X}from"./chunk-VYOJP4TV-PBsHe2md.mjs";import{t as Z}from"./chunk-MYE6AGBJ-DJo74dVC.mjs";import{t as re}from"./chunk-A7ICOL4V-BvXPAaHu.mjs";import{t as ie}from"./chunk-55VFSPNA-DLwfww5b.mjs";import{n as ae}from"./chunk-WKFATFPP-KO2zkfs2.mjs";import{n as oe}from"./chunk-JVPRLUMK-VMFWXimu.mjs";import{t as se}from"./chunk-62RKD26F-B9la0pfD.mjs";import{t as ce}from"./chunk-QCDB2VPH-BUMOhlW7.mjs";import{t as le}from"./chunk-F23WWYKW-BK2tpXPf.mjs";import{n as ue}from"./chunk-D4J545R4-DkHLjHX6.mjs";import{t as de}from"./chunk-DCAAORBQ-C3s1D8OY.mjs";import{n as fe}from"./chunk-GXVXFKBA-CUKDClxt.mjs";import{n as pe}from"./chunk-5QVNJEHU-dbrKfPGl.mjs";import"./chunk-VLGZJRPG-DymOu90-.mjs";import{a as me,n as he,o as ge}from"./chunk-YS3AZT3J-CBc9LHIy.mjs";import{n as _e}from"./chunk-NYQYO467-BgXuDHUQ.mjs";import{n as ve}from"./chunk-OL3S66CO-CQnF8cPH.mjs";import{t as ye}from"./chunk-KMEYNNUA-pRogdye4.mjs";import{t as be}from"./chunk-MIZPJHVH-DWdPvcYR.mjs";import{n as xe}from"./chunk-A4JSPFCI-CEm2r8SB.mjs";import{t as Q}from"./chunk-PBXLG62G-CgbPJTiw.mjs";import{t as Se}from"./chunk-A4HU7SVR-DKLaJeys.mjs";import{t as Ce}from"./chunk-HJWBQKYG-XrOcsn2f.mjs";import{t as we}from"./chunk-64BAICW3-D92CLSK-.mjs";import{n as Te}from"./chunk-T56QNPHK-DPXaSSfC.mjs";import{n as Ee}from"./chunk-V7TAPXDL-DQgGPvBY.mjs";import{n as De}from"./chunk-MDDMCKUK-CuRdI1Uv.mjs";import{t as Oe}from"./chunk-OCS6LSEM-D7VAOziZ.mjs";import{n as ke}from"./chunk-OCLXQMOG-BW6rwyzS.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--nNG-HLV.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-D4J545R4-DkHLjHX6.mjs";export{e as fold};
|
|
@@ -0,0 +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-BbkJd7ro.mjs";import{t as a}from"./execAsync-CzW9fUYQ.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-DAmB-Ym0.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.mjs";import{t as a}from"./execAsync-CulVJBMN.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-FYDP9w5Q.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.mjs";import{t as a}from"./execAsync-DuQoqWaW.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-mPrX3ckm.mjs.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-BbkJd7ro.mjs";import{t as i}from"./execAsync-DuQoqWaW.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
|
+
`).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-B0Qw-MTj.mjs.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-BbkJd7ro.mjs";import{t as i}from"./execAsync-CzW9fUYQ.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
|
+
`).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-C79HtyON.mjs.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-BbkJd7ro.mjs";import{t as i}from"./execAsync-CulVJBMN.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
|
+
`).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-Co8Jnu5v.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.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-BBORs2cS.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.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-BizmCjYq.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.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-BvLCCmKQ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-BbkJd7ro.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-Bgp-Es9j.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-BbkJd7ro.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-CbR45h2D.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,t}from"./chunk-FK9Q3tQk.mjs";import{n,t as r}from"./esm-BbkJd7ro.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-DbGFOAw1.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.mjs";import{t as a}from"./execAsync-CulVJBMN.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-CT_Y5i_4.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.mjs";import{t as a}from"./execAsync-DuQoqWaW.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-Cy0XHq4X.mjs.map
|
|
@@ -0,0 +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-BbkJd7ro.mjs";import{t as a}from"./execAsync-CzW9fUYQ.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-D5gDnBHa.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{i as e,o as t,t as n}from"./chunk-FK9Q3tQk.mjs";import{t as r}from"./rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs";import{EventEmitter as i}from"node:events";import{normalize as a,resolve as o}from"node:path";import{spawn as s}from"child_process";var c=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),l=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=i,n.enabled=s,n.humanize=c(),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),u=n(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=l()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),d=n(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),f=n(((t,n)=>{let r=e(`os`),i=e(`tty`),a=d(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1),`FORCE_COLOR`in o&&(s=o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function c(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(s===0)return 0;if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2;if(e&&!t&&s===void 0)return 0;let n=s||0;if(o.TERM===`dumb`)return n;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:n}function u(e){return c(l(e,e&&e.isTTY))}n.exports={supportsColor:u,stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}})),p=n(((t,n)=>{let r=e(`tty`),i=e(`util`);t.init=p,t.log=c,t.formatArgs=o,t.save=u,t.load=d,t.useColors=a,t.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=f();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
2
|
+
`).join(`
|
|
3
|
+
`+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+t+` `+e[0]}function s(){return t.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+`
|
|
4
|
+
`)}function u(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function d(){return process.env.DEBUG}function p(e){e.inspectOpts={};let n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]}n.exports=l()(t);let{formatters:m}=n.exports;m.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
|
|
5
|
+
`).map(e=>e.trim()).join(` `)},m.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),m=n(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=u():t.exports=p()})),ee=n((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0});let r=e(`fs`),i=n(m()).default(`@kwsites/file-exists`);function a(e,t,n){i(`checking %s`,e);try{let a=r.statSync(e);return a.isFile()&&t?(i(`[OK] path represents a file`),!0):a.isDirectory()&&n?(i(`[OK] path represents a directory`),!0):(i(`[FAIL] path represents something other than a file or directory`),!1)}catch(e){if(e.code===`ENOENT`)return i(`[FAIL] path is not accessible: %o`,e),!1;throw i(`[FATAL] %o`,e),e}}function o(e,n=t.READABLE){return a(e,(n&t.FILE)>0,(n&t.FOLDER)>0)}t.exists=o,t.FILE=1,t.FOLDER=2,t.READABLE=t.FILE+t.FOLDER})),te=n((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,`__esModule`,{value:!0}),t(ee())}));const ne=new WeakMap;function re(...e){let t=new String(e);return ne.set(t,e),t}function h(e){return e instanceof String&&ne.has(e)}function g(e){return ne.get(e)??[]}var ie=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createDeferred=e.deferred=void 0;function t(){let e,t,n=`pending`;return{promise:new Promise((n,r)=>{e=n,t=r}),done(t){n===`pending`&&(n=`resolved`,e(t))},fail(e){n===`pending`&&(n=`rejected`,t(e))},get fulfilled(){return n!==`pending`},get status(){return n}}}e.deferred=t,e.createDeferred=t}));function*ae(e,t){let n=t===`global`;for(let t of e)t.isGlobal===n&&(yield t)}const oe=new Set([`--add`,`--edit`,`--remove-section`,`--rename-section`,`--replace-all`,`--unset`,`--unset-all`,`-e`]),se=new Set([`--get`,`--get-all`,`--get-color`,`--get-colorbool`,`--get-regexp`,`--get-urlmatch`,`--list`,`-l`]),ce=new Set([`edit`,`remove-section`,`rename-section`,`set`,`unset`]),le=new Set([`get`,`get-color`,`get-colorbool`,`list`]);function ue(e,t){for(let{name:n}of ae(e,`task`)){if(oe.has(n))return _(!0,t);if(se.has(n))return _(!1,t)}let n=t.at(0)?.toLowerCase();return n===void 0?null:ce.has(n)?_(!0,t.slice(1)):le.has(n)?_(!1,t.slice(1)):t.length===1?_(!1,t):_(!0,t)}function _(e=!1,t=[]){let n=t.at(0)?.toLowerCase();return n===void 0?null:{isWrite:e,isRead:!e,key:n,value:t.at(1)}}function de(e,t){return t.isWrite&&t.value!==void 0?{key:t.key,value:t.value,scope:e}:{key:t.key,scope:e}}function fe(e){let t=e?.indexOf(`=`)||-1;return!e||t<0?null:{key:e.slice(0,t).trim().toLowerCase(),value:e.slice(t+1)}}function pe(e){for(let{name:t}of ae(e,`task`))switch(t){case`--global`:return`global`;case`--system`:return`system`;case`--worktree`:return`worktree`;case`--local`:return`local`;case`--file`:case`-f`:return`file`}return`local`}function me({name:e}){if(e===`-c`||e===`--config`)return`inline`;if(e===`--config-env`)return`env`}function*he(e){for(let t of e){let e=me(t),n=e&&fe(t.value);n&&(yield{...n,scope:e})}}function ge(e,t,n){let r={read:[],write:[...he(t)]};return e===`config`&&_e(r,pe(t),ue(t,n)),r}function _e(e,t,n){if(n===null)return;let r=de(t,n);n.isWrite?e.write.push(r):e.read.push(r)}const ve={short:new Map([[`c`,!0]])},ye={short:new Map([[`C`,!0],[`P`,!1],[`h`,!1],[`p`,!1],[`v`,!1],...ve.short.entries()]),long:new Set([`attr-source`,`config-env`,`exec-path`,`git-dir`,`list-cmds`,`namespace`,`super-prefix`,`work-tree`])},be={clone:{short:new Map([[`b`,!0],[`j`,!0],[`l`,!1],[`n`,!1],[`o`,!0],[`q`,!1],[`s`,!1],[`u`,!0]]),long:new Set([`branch`,`config`,`jobs`,`origin`,`upload-pack`,`u`,`template`])},commit:{short:new Map([[`C`,!0],[`F`,!0],[`c`,!0],[`m`,!0],[`t`,!0]]),long:new Set([`file`,`message`,`reedit-message`,`reuse-message`,`template`])},config:{short:new Map([[`e`,!1],[`f`,!0],[`l`,!1]]),long:new Set([`blob`,`comment`,`default`,`file`,`type`,`value`])},fetch:{short:new Map,long:new Set([`upload-pack`])},init:{short:new Map,long:new Set([`template`])},pull:{short:new Map,long:new Set([`upload-pack`])},push:{short:new Map,long:new Set([`exec`,`receive-pack`])}},xe={short:new Map,long:new Set};function Se(e){let t=be[e??``]??xe;return{short:new Map([...ve.short.entries(),...t.short.entries()]),long:t.long}}function Ce(e,t=ye){if(e.startsWith(`--`)){let n=e.indexOf(`=`);if(n>2)return[{name:e.slice(0,n),value:e.slice(n+1),needsNext:!1}];let r=e.slice(2);return[{name:e,needsNext:t.long.has(r)}]}if(e.length===2){let n=e.charAt(1);return[{name:e,needsNext:t.short.get(n)===!0}]}return we(e,t.short)}function we(e,t){let n=e.slice(1).split(``),r=[];for(let i=0;i<n.length;i++){let a=n[i],o=t.get(a);if(o===void 0)return[{name:e,needsNext:!1}];if(o){let e=n.slice(i+1).join(``);if(e&&![...e].every(e=>t.has(e)))return r.push({name:`-${a}`,value:e,needsNext:!1}),r}r.push({name:`-${a}`,needsNext:o})}return r}function Te(e,t=[]){let n=0;for(;n<e.length;){let r=String(e[n]);if(!r.startsWith(`-`)||r.length<2)break;let i=Ce(r),a=n+1;for(let n of i){let r={name:n.name,value:n.value,absorbedNext:!1,isGlobal:!0};n.needsNext&&r.value===void 0&&a<e.length&&(r.value=String(e[a]),r.absorbedNext=!0,a++),t.push(r)}n=a}return{flags:t,taskIndex:n}}function Ee(e,t,n=[]){let r=Se(t),i=[],a=[],o=0;for(;o<e.length;){let t=e[o];if(h(t)){a.push(...g(t)),o++;continue}let s=String(t);if(s===`--`){for(let t=o+1;t<e.length;t++){let n=e[t];h(n)?a.push(...g(n)):a.push(String(n))}break}if(!s.startsWith(`-`)||s.length<2){i.push(s),o++;continue}let c=Ce(s,r),l=o+1;for(let t of c){let r={name:t.name,value:t.value,absorbedNext:!1,isGlobal:!1};t.needsNext&&r.value===void 0&&l<e.length&&!h(e[l])&&(r.value=String(e[l]),r.absorbedNext=!0,l++),n.push(r)}o=l}return{flags:n,positionals:i,pathspecs:a}}function*De({write:e}){for(let t of e)for(let e of Oe){let n=e(t.key);n&&(yield n)}}function v(e,t,n=String(e)){let r=typeof e==`string`?RegExp(`\\s*${e.toLowerCase()}`):e;return function(e){if(r.test(e))return{category:t,message:`Configuring ${n} is not permitted without enabling ${t}`}}}function y(e,t){return v(RegExp(`\\s*${e.toLowerCase().replace(/\./g,`(..+)?.`)}`),t,e)}const Oe=[v(`alias`,`allowUnsafeAlias`),v(`core.askPass`,`allowUnsafeAskPass`),v(`core.editor`,`allowUnsafeEditor`),v(`core.fsmonitor`,`allowUnsafeFsMonitor`),v(`core.gitProxy`,`allowUnsafeGitProxy`),v(`core.hooksPath`,`allowUnsafeHooksPath`),v(`core.pager`,`allowUnsafePager`),v(`core.sshCommand`,`allowUnsafeSshCommand`),y(`credential.helper`,`allowUnsafeCredentialHelper`),y(`diff.command`,`allowUnsafeDiffExternal`),v(`diff.external`,`allowUnsafeDiffExternal`),y(`diff.textconv`,`allowUnsafeDiffTextConv`),y(`filter.clean`,`allowUnsafeFilter`),y(`filter.smudge`,`allowUnsafeFilter`),y(`gpg.program`,`allowUnsafeGpgProgram`),v(`init.templateDir`,`allowUnsafeTemplateDir`),y(`merge.driver`,`allowUnsafeMergeDriver`),y(`mergetool.path`,`allowUnsafeMergeDriver`),y(`mergetool.cmd`,`allowUnsafeMergeDriver`),y(`protocol.allow`,`allowUnsafeProtocolOverride`),y(`remote.receivepack`,`allowUnsafePack`),y(`remote.uploadpack`,`allowUnsafePack`),v(`sequence.editor`,`allowUnsafeEditor`)];function*ke(e,t){for(let n of t)for(let t of Ae){let r=t(e,n.name);r&&(yield r)}}function b(e,t,n,r=String(t)){let i=typeof t==`string`?RegExp(`\\s*${t.toLowerCase()}`):t,a=`Use of ${e?`${e} with option `:``}${r} is not permitted without enabling ${n}`;return function(t,r){if((!e||t===e)&&i.test(r))return{category:n,message:a}}}const Ae=[b(null,/--(upload|receive)-pack/,`allowUnsafePack`,`--upload-pack or --receive-pack`),b(`clone`,/^-\w*u/,`allowUnsafePack`),b(`clone`,`--u`,`allowUnsafePack`),b(`push`,`--exec`,`allowUnsafePack`),b(null,`--template`,`allowUnsafeTemplateDir`)];function je(e,t,n){return[...ke(e,t),...De(n)]}function Me(...e){let{flags:t,taskIndex:n}=Te(e),r=n<e.length?String(e[n]).toLowerCase():null,{positionals:i,pathspecs:a}=Ee(r===null?[]:e.slice(n+1),r,t),o=ge(r,t,i);return{task:r,flags:t.map(Pe),paths:a,config:o,vulnerabilities:Ne(je(r,t,o))}}function Ne(e){return Object.defineProperty(e,`vulnerabilities`,{value:e})}function Pe({value:e,name:t}){return e===void 0?{name:t}:{name:t,value:e}}const Fe={editor:`allowUnsafeEditor`,git_askpass:`allowUnsafeAskPass`,git_config_global:`allowUnsafeConfigPaths`,git_config_system:`allowUnsafeConfigPaths`,git_config_count:`allowUnsafeConfigEnvCount`,git_config:`allowUnsafeConfigPaths`,git_editor:`allowUnsafeEditor`,git_exec_path:`allowUnsafeConfigPaths`,git_external_diff:`allowUnsafeDiffExternal`,git_pager:`allowUnsafePager`,git_proxy_command:`allowUnsafeGitProxy`,git_template_dir:`allowUnsafeTemplateDir`,git_sequence_editor:`allowUnsafeEditor`,git_ssh:`allowUnsafeSshCommand`,git_ssh_command:`allowUnsafeSshCommand`,pager:`allowUnsafePager`,prefix:`allowUnsafeConfigPaths`,ssh_askpass:`allowUnsafeAskPass`};function*Ie(e){let t=parseInt(e.git_config_count??`0`,10);for(let n=0;n<t;n++){let t=e[`git_config_key_${n}`],r=e[`git_config_value_${n}`];t!==void 0&&(yield{key:t.toLowerCase().trim(),value:r,scope:`env`})}}function*Le(e){for(let t of Object.keys(e))if(Re(t)){let e=Fe[t];yield{category:e,message:`Use of "${t.toUpperCase()}" is not permitted without enabling ${e}`}}}function Re(e){return Object.hasOwn(Fe,e)}function ze(e){let t={};for(let[n,r]of Object.entries(e)){let e=n.toLowerCase().trim();(Re(e)||e.startsWith(`git`))&&(t[e]=String(r))}return t}function Be(e){let t=ze(e),n={read:[],write:[...Ie(t)]};return{config:n,vulnerabilities:[...Le(t),...je(null,[],n)]}}function Ve(e,t){return[...Me(...e).vulnerabilities,...Be(t).vulnerabilities]}var He=te(),Ue=t(m()),x=ie(),We=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Ke=Object.getOwnPropertyNames,qe=Object.prototype.hasOwnProperty,S=(e,t)=>function(){return e&&(t=(0,e[Ke(e)[0]])(e=0)),t},Je=(e,t)=>function(){return t||(0,e[Ke(e)[0]])((t={exports:{}}).exports,t),t.exports},C=(e,t)=>{for(var n in t)We(e,n,{get:t[n],enumerable:!0})},Ye=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Ke(t))!qe.call(e,i)&&i!==n&&We(e,i,{get:()=>t[i],enumerable:!(r=Ge(t,i))||r.enumerable});return e},w=e=>Ye(We({},`__esModule`,{value:!0}),e),T,E=S({"src/lib/errors/git-error.ts"(){T=class extends Error{constructor(e,t){super(t),this.task=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),D,O=S({"src/lib/errors/git-response-error.ts"(){E(),D=class extends T{constructor(e,t){super(void 0,t||String(e)),this.git=e}}}}),Xe,Ze=S({"src/lib/errors/task-configuration-error.ts"(){E(),Xe=class extends T{constructor(e){super(void 0,e)}}}});function Qe(e){return typeof e==`function`?e:R}function $e(e){return typeof e==`function`&&e!==R}function et(e,t){let n=e.indexOf(t);return n<=0?[e,``]:[e.substr(0,n),e.substr(n+1)]}function tt(e,t=0){return nt(e)&&e.length>t?e[t]:void 0}function k(e,t=0){if(nt(e)&&e.length>t)return e[e.length-1-t]}function nt(e){return vt(e)}function A(e=``,t=!0,n=`
|
|
6
|
+
`){return e.split(n).reduce((e,n)=>{let r=t?n.trim():n;return r&&e.push(r),e},[])}function rt(e,t){return A(e,!0).map(e=>t(e))}function it(e){return(0,He.exists)(e,He.FOLDER)}function j(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function at(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function ot(e,t){if(Array.isArray(e)){let n=e.indexOf(t);n>=0&&e.splice(n,1)}else e.delete(t);return t}function M(e){return Array.isArray(e)?e:[e]}function st(e){return e.replace(/[\s-]+(.)/g,(e,t)=>t.toUpperCase())}function N(e){return M(e).map(e=>e instanceof String?e:String(e))}function P(e,t=0){if(e==null)return t;let n=parseInt(e,10);return Number.isNaN(n)?t:n}function F(e,t){let n=[];for(let r=0,i=e.length;r<i;r++)n.push(t,e[r]);return n}function I(e){return(Array.isArray(e)?Buffer.concat(e):e).toString(`utf-8`)}function ct(e,t){let n={};return t.forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function lt(e=0){return new Promise(t=>setTimeout(t,e))}function ut(e){if(e!==!1)return e}var L,R,z,dt=S({"src/lib/utils/util.ts"(){yt(),L=`\0`,R=()=>{},z=Object.prototype.toString.call.bind(Object.prototype.toString)}});function B(e,t,n){return t(e)?e:arguments.length>2?n:void 0}function ft(e,t){let n=h(e)?`string`:typeof e;return/number|string|boolean/.test(n)&&(!t||!t.includes(n))}function pt(e){return!!e&&z(e)===`[object Object]`}function mt(e){return typeof e==`function`}var ht,gt,V,_t,vt,yt=S({"src/lib/utils/argument-filters.ts"(){dt(),ht=e=>Array.isArray(e),gt=e=>typeof e==`number`,V=e=>typeof e==`string`||h(e),_t=e=>V(e)||Array.isArray(e)&&e.every(V),vt=e=>e==null||`number|boolean|function`.includes(typeof e)?!1:typeof e.length==`number`}}),bt,xt=S({"src/lib/utils/exit-codes.ts"(){bt=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e[e.ERROR=1]=`ERROR`,e[e.NOT_FOUND=-2]=`NOT_FOUND`,e[e.UNCLEAN=128]=`UNCLEAN`,e))(bt||{})}}),St,Ct=S({"src/lib/utils/git-output-streams.ts"(){St=class e{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new e(this.stdOut.toString(`utf8`),this.stdErr.toString(`utf8`))}}}});function wt(){throw Error(`LineParser:useMatches not implemented`)}var H,U,Tt=S({"src/lib/utils/line-parser.ts"(){H=class{constructor(e,t){this.matches=[],this.useMatches=wt,this.parse=(e,t)=>(this.resetMatches(),this._regExp.every((t,n)=>this.addMatch(t,n,e(n)))?this.useMatches(t,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,n){let r=n&&e.exec(n);return r&&this.pushMatch(t,r),!!r}pushMatch(e,t){this.matches.push(...t.slice(1))}},U=class extends H{addMatch(e,t,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,t,n)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function Et(...e){let t=process.cwd(),n=Object.assign({baseDir:t,...Dt},...e.filter(e=>typeof e==`object`&&e));return n.baseDir=n.baseDir||t,n.trimmed=n.trimmed===!0,n}var Dt,Ot=S({"src/lib/utils/simple-git-options.ts"(){Dt={binary:`git`,maxConcurrentProcesses:5,config:[],trimmed:!1}}});function kt(e,t=[]){return pt(e)?Object.keys(e).reduce((t,n)=>{let r=e[n];if(h(r))t.push(r);else if(ft(r,[`boolean`]))t.push(n+`=`+r);else if(Array.isArray(r))for(let e of r)ft(e,[`string`,`number`])||t.push(n+`=`+e);else t.push(n);return t},t):t}function W(e,t=0,n=!1){let r=[];for(let n=0,i=t<0?e.length:t;n<i;n++)`string|number`.includes(typeof e[n])&&r.push(String(e[n]));return kt(jt(e),r),n||r.push(...At(e)),r}function At(e){return N(B(k(e,typeof k(e)==`function`?1:0),ht,[]))}function jt(e){return B(k(e,mt(k(e))?1:0),pt)}function G(e,t=!0){let n=Qe(k(e));return t||$e(n)?n:void 0}var Mt=S({"src/lib/utils/task-options.ts"(){yt(),dt()}});function Nt(e,t){return e(t.stdOut,t.stdErr)}function K(e,t,n,r=!0){return M(n).forEach(n=>{for(let i=A(n,r),a=0,o=i.length;a<o;a++){let n=(e=0)=>{if(!(a+e>=o))return i[a+e]};t.some(({parse:t})=>t(n,e))}}),e}var Pt=S({"src/lib/utils/task-parser.ts"(){dt()}}),Ft={};C(Ft,{ExitCodes:()=>bt,GitOutputStreams:()=>St,LineParser:()=>H,NOOP:()=>R,NULL:()=>L,RemoteLineParser:()=>U,append:()=>j,appendTaskOptions:()=>kt,asArray:()=>M,asCamelCase:()=>st,asFunction:()=>Qe,asNumber:()=>P,asStringArray:()=>N,bufferToString:()=>I,callTaskParser:()=>Nt,createInstanceConfig:()=>Et,delay:()=>lt,filterArray:()=>ht,filterFunction:()=>mt,filterHasLength:()=>vt,filterNumber:()=>gt,filterPlainObject:()=>pt,filterPrimitives:()=>ft,filterString:()=>V,filterStringOrStringArray:()=>_t,filterType:()=>B,first:()=>tt,folderExists:()=>it,forEachLineWithContent:()=>rt,getTrailingOptions:()=>W,including:()=>at,isUserFunction:()=>$e,last:()=>k,objectToString:()=>z,orVoid:()=>ut,parseStringResponse:()=>K,pick:()=>ct,prefixedArray:()=>F,remove:()=>ot,splitOn:()=>et,toLinesWithContent:()=>A,trailingFunctionArgument:()=>G,trailingOptionsArgument:()=>jt});var q=S({"src/lib/utils/index.ts"(){yt(),xt(),Ct(),Tt(),Ot(),Mt(),Pt(),dt()}}),It={};C(It,{CheckRepoActions:()=>Vt,checkIsBareRepoTask:()=>zt,checkIsRepoRootTask:()=>Rt,checkIsRepoTask:()=>Lt});function Lt(e){switch(e){case`bare`:return zt();case`root`:return Rt()}return{commands:[`rev-parse`,`--is-inside-work-tree`],format:`utf-8`,onError:Ht,parser:Ut}}function Rt(){return{commands:[`rev-parse`,`--git-dir`],format:`utf-8`,onError:Ht,parser(e){return/^\.(git)?$/.test(e.trim())}}}function zt(){return{commands:[`rev-parse`,`--is-bare-repository`],format:`utf-8`,onError:Ht,parser:Ut}}function Bt(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var Vt,Ht,Ut,Wt=S({"src/lib/tasks/check-is-repo.ts"(){q(),Vt=(e=>(e.BARE=`bare`,e.IN_TREE=`tree`,e.IS_REPO_ROOT=`root`,e))(Vt||{}),Ht=({exitCode:e},t,n,r)=>{if(e===128&&Bt(t))return n(Buffer.from(`false`));r(t)},Ut=e=>e.trim()===`true`}});function Gt(e,t){let n=new Kt(e),r=e?Jt:qt;return A(t).forEach(e=>{let t=e.replace(r,``);n.paths.push(t),(Yt.test(t)?n.folders:n.files).push(t)}),n}var Kt,qt,Jt,Yt,Xt=S({"src/lib/responses/CleanSummary.ts"(){q(),Kt=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},qt=/^[a-z]+\s*/i,Jt=/^[a-z]+\s+[a-z]+\s*/i,Yt=/\/$/}}),Zt={};C(Zt,{EMPTY_COMMANDS:()=>nn,adhocExecTask:()=>Qt,configurationErrorTask:()=>J,isBufferTask:()=>en,isEmptyTask:()=>tn,straightThroughBufferTask:()=>$t,straightThroughStringTask:()=>Y});function Qt(e){return{commands:nn,format:`empty`,parser:e}}function J(e){return{commands:nn,format:`empty`,parser(){throw typeof e==`string`?new Xe(e):e}}}function Y(e,t=!1){return{commands:e,format:`utf-8`,parser(e){return t?String(e).trim():e}}}function $t(e){return{commands:e,format:`buffer`,parser(e){return e}}}function en(e){return e.format===`buffer`}function tn(e){return e.format===`empty`||!e.commands.length}var nn,X=S({"src/lib/tasks/task.ts"(){Ze(),nn=[]}}),rn={};C(rn,{CONFIG_ERROR_INTERACTIVE_MODE:()=>fn,CONFIG_ERROR_MODE_REQUIRED:()=>pn,CONFIG_ERROR_UNKNOWN_OPTION:()=>mn,CleanOptions:()=>hn,cleanTask:()=>on,cleanWithOptionsTask:()=>an,isCleanOptionsArray:()=>sn});function an(e,t){let{cleanMode:n,options:r,valid:i}=cn(e);return n?i.options?(r.push(...t),r.some(dn)?J(fn):on(n,r)):J(mn+JSON.stringify(e)):J(pn)}function on(e,t){return{commands:[`clean`,`-${e}`,...t],format:`utf-8`,parser(t){return Gt(e===`n`,t)}}}function sn(e){return Array.isArray(e)&&e.every(e=>gn.has(e))}function cn(e){let t,n=[],r={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,``).split(``).forEach(e=>{ln(e)?(t=e,r.cleanMode=!0):r.options=r.options&&un(n[n.length]=`-${e}`)}),{cleanMode:t,options:n,valid:r}}function ln(e){return e===`f`||e===`n`}function un(e){return/^-[a-z]$/i.test(e)&&gn.has(e.charAt(1))}function dn(e){return/^-[^\-]/.test(e)?e.indexOf(`i`)>0:e===`--interactive`}var fn,pn,mn,hn,gn,_n=S({"src/lib/tasks/clean.ts"(){Xt(),q(),X(),fn=`Git clean interactive mode is not supported`,pn=`Git clean mode parameter ("n" or "f") is required`,mn=`Git clean unknown option found in: `,hn=(e=>(e.DRY_RUN=`n`,e.FORCE=`f`,e.IGNORED_INCLUDED=`x`,e.IGNORED_ONLY=`X`,e.EXCLUDING=`e`,e.QUIET=`q`,e.RECURSIVE=`d`,e))(hn||{}),gn=new Set([`i`,...N(Object.values(hn))])}});function vn(e){let t=new Sn;for(let n of xn(e))t.addValue(n.file,String(n.key),n.value);return t}function yn(e,t){let n=null,r=[],i=new Map;for(let a of xn(e,t))a.key===t&&(r.push(n=a.value),i.has(a.file)||i.set(a.file,[]),i.get(a.file).push(n));return{key:t,paths:Array.from(i.keys()),scopes:i,value:n,values:r}}function bn(e){return e.replace(/^(file):/,``)}function*xn(e,t=null){let n=e.split(`\0`);for(let e=0,r=n.length-1;e<r;){let r=bn(n[e++]),i=n[e++],a=t;if(i.includes(`
|
|
7
|
+
`)){let e=et(i,`
|
|
8
|
+
`);a=e[0],i=e[1]}yield{file:r,key:a,value:i}}}var Sn,Cn=S({"src/lib/responses/ConfigList.ts"(){q(),Sn=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{}),this._all}addFile(e){if(!(e in this.values)){let t=k(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){let r=this.addFile(e);Object.hasOwn(r,t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}});function wn(e,t){return typeof e==`string`&&Object.hasOwn(kn,e)?e:t}function Tn(e,t,n,r){let i=[`config`,`--${r}`];return n&&i.push(`--add`),i.push(e,t),{commands:i,format:`utf-8`,parser(e){return e}}}function En(e,t){let n=[`config`,`--null`,`--show-origin`,`--get-all`,e];return t&&n.splice(1,0,`--${t}`),{commands:n,format:`utf-8`,parser(t){return yn(t,e)}}}function Dn(e){let t=[`config`,`--list`,`--show-origin`,`--null`];return e&&t.push(`--${e}`),{commands:t,format:`utf-8`,parser(e){return vn(e)}}}function On(){return{addConfig(e,t,...n){return this._runTask(Tn(e,t,n[0]===!0,wn(n[1],`local`)),G(arguments))},getConfig(e,t){return this._runTask(En(e,wn(t,void 0)),G(arguments))},listConfig(...e){return this._runTask(Dn(wn(e[0],void 0)),G(arguments))}}}var kn,An=S({"src/lib/tasks/config.ts"(){Cn(),q(),kn=(e=>(e.system=`system`,e.global=`global`,e.local=`local`,e.worktree=`worktree`,e))(kn||{})}});function jn(e){return Nn.has(e)}var Mn,Nn,Pn=S({"src/lib/tasks/diff-name-status.ts"(){Mn=(e=>(e.ADDED=`A`,e.COPIED=`C`,e.DELETED=`D`,e.MODIFIED=`M`,e.RENAMED=`R`,e.CHANGED=`T`,e.UNMERGED=`U`,e.UNKNOWN=`X`,e.BROKEN=`B`,e))(Mn||{}),Nn=new Set(Object.values(Mn))}});function Fn(...e){return new Vn().param(...e)}function In(e){let t=new Set,n={};return rt(e,e=>{let[r,i,a]=e.split(L);t.add(r),(n[r]=n[r]||[]).push({line:P(i),path:r,preview:a})}),{paths:t,results:n}}function Ln(){return{grep(e){let t=G(arguments),n=W(arguments);for(let e of Rn)if(n.includes(e))return this._runTask(J(`git.grep: use of "${e}" is not supported.`),t);typeof e==`string`&&(e=Fn().param(e));let r=[`grep`,`--null`,`-n`,`--full-name`,...n,...e];return this._runTask({commands:r,format:`utf-8`,parser(e){return In(e)}},t)}}}var Rn,zn,Bn,Vn,Hn=S({"src/lib/tasks/grep.ts"(){q(),X(),Rn=[`-h`],zn=Symbol(`grepQuery`),Vn=class{constructor(){this[Bn]=[]}*[(Bn=zn,Symbol.iterator)](){for(let e of this[zn])yield e}and(...e){return e.length&&this[zn].push(`--and`,`(`,...F(e,`-e`),`)`),this}param(...e){return this[zn].push(...F(e,`-e`)),this}}}}),Un={};C(Un,{ResetMode:()=>qn,getResetMode:()=>Gn,resetTask:()=>Wn});function Wn(e,t){let n=[`reset`];return Kn(e)&&n.push(`--${e}`),n.push(...t),Y(n)}function Gn(e){if(Kn(e))return e;switch(typeof e){case`string`:case`undefined`:return`soft`}}function Kn(e){return typeof e==`string`&&Jn.includes(e)}var qn,Jn,Yn=S({"src/lib/tasks/reset.ts"(){q(),X(),qn=(e=>(e.MIXED=`mixed`,e.SOFT=`soft`,e.HARD=`hard`,e.MERGE=`merge`,e.KEEP=`keep`,e))(qn||{}),Jn=N(Object.values(qn))}});function Xn(){return(0,Ue.default)(`simple-git`)}function Zn(e,t,n){return!t||!String(t).replace(/\s*/,``)?n?(t,...r)=>{e(t,...r),n(t,...r)}:e:(r,...i)=>{e(`%s ${r}`,t,...i),n&&n(r,...i)}}function Qn(e,t,{namespace:n}){if(typeof e==`string`)return e;let r=t&&t.namespace||``;return r.startsWith(n)?r.substr(n.length+1):r||n}function $n(e,t,n,r=Xn()){let i=e&&`[${e}]`||``,a=[],o=typeof t==`string`?r.extend(t):t,s=Qn(B(t,V),o,r);return l(n);function c(t,n){return j(a,$n(e,s.replace(/^[^:]+/,t),n,r))}function l(t){let n=t&&`[${t}]`||``,a=o&&Zn(o,n)||R,s=Zn(r,`${i} ${n}`,a);return Object.assign(o?a:s,{label:e,sibling:c,info:s,step:l})}}var er=S({"src/lib/git-logger.ts"(){q(),Ue.default.formatters.L=e=>String(vt(e)?e.length:`-`),Ue.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString(`utf8`):z(e)}}),tr,nr=S({"src/lib/runners/tasks-pending-queue.ts"(){E(),er(),tr=class e{constructor(e=`GitExecutor`){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(t){let n=e.getName(t.commands[0]);return{task:t,logger:$n(this.logLabel,n),name:n}}push(e){let t=this.createProgress(e);return t.logger(`Adding task to the queue, commands = %o`,e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:n}]of Array.from(this._queue.entries()))t===e.task?(n.info(`Failed %o`,e),n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)):n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message),this.complete(t);if(this._queue.size!==0)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new T(void 0,`TasksPendingQueue: attempt called for an unknown task`);return t.logger(`Starting task`),t}static getName(t=`empty`){return`task:${t}:${++e.counter}`}static{this.counter=0}}}});function Z(e,t){return{method:tt(e.commands)||``,commands:t}}function rr(e,t){return n=>{t(`[ERROR] child process exception %o`,n),e.push(Buffer.from(String(n.stack),`ascii`))}}function ir(e,t,n,r){return i=>{n(`%s received %L bytes`,t,i),r(`%B`,i),e.push(i)}}var ar,or=S({"src/lib/runners/git-executor-chain.ts"(){E(),X(),q(),nr(),ar=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new tr}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}async attemptTask(e){let t=await this._scheduler.next(),n=()=>this._queue.complete(e);try{let{logger:t}=this._queue.attempt(e);return await(tn(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t))}catch(t){throw this.onFatalException(e,t)}finally{n(),t()}}onFatalException(e,t){let n=t instanceof T?Object.assign(t,{task:e}):new T(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(n),n}async attemptRemoteTask(e,t){let n=this._plugins.exec(`spawn.binary`,``,Z(e,e.commands)),r=this._plugins.exec(`spawn.args`,[...e.commands],{...Z(e,e.commands),env:{...this.env}}),i=await this.gitResponse(e,n,r,this.outputHandler,t.step(`SPAWN`)),a=await this.handleTaskData(e,r,i,t.step(`HANDLE`));return t(`passing response to task's parser as a %s`,e.format),en(e)?Nt(e.parser,a):Nt(e.parser,a.asStrings())}async attemptEmptyTask(e,t){return t(`empty task bypassing child process to call to task's parser`),e.parser(this)}handleTaskData(e,t,n,r){let{exitCode:i,rejection:a,stdOut:o,stdErr:s}=n;return new Promise((c,l)=>{r(`Preparing to handle process response exitCode=%d stdOut=`,i);let{error:u}=this._plugins.exec(`task.error`,{error:a},{...Z(e,t),...n});if(u&&e.onError)return r.info(`exitCode=%s handling with custom error handler`),e.onError(n,u,e=>{r.info(`custom error handler treated as success`),r(`custom error returned a %s`,z(e)),c(new St(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(s)))},l);if(u)return r.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,i,s.length,a),l(u);r.info(`retrieving task output complete`),c(new St(Buffer.concat(o),Buffer.concat(s)))})}async gitResponse(e,t,n,r,i){let a=i.sibling(`output`),o=this._plugins.exec(`spawn.options`,{cwd:this.cwd,env:this.env,windowsHide:!0},Z(e,e.commands));return new Promise(c=>{let l=[],u=[];i.info(`%s %o`,t,n),i(`%O`,o);let d=this._beforeSpawn(e,n);if(d)return c({stdOut:l,stdErr:u,exitCode:9901,rejection:d});this._plugins.exec(`spawn.before`,void 0,{...Z(e,n),kill(e){d=e||d}});let f=s(t,n,o);f.stdout.on(`data`,ir(l,`stdOut`,i,a.step(`stdOut`))),f.stderr.on(`data`,ir(u,`stdErr`,i,a.step(`stdErr`))),f.on(`error`,rr(u,i)),r&&(i(`Passing child process stdOut/stdErr to custom outputHandler`),r(t,f.stdout,f.stderr,[...n])),this._plugins.exec(`spawn.after`,void 0,{...Z(e,n),spawned:f,close(e,t){c({stdOut:l,stdErr:u,exitCode:e,rejection:d||t})},kill(e){f.killed||(d=e,f.kill(`SIGINT`))}})})}_beforeSpawn(e,t){let n;return this._plugins.exec(`spawn.before`,void 0,{...Z(e,t),kill(e){n=e||n}}),n}}}}),sr={};C(sr,{GitExecutor:()=>cr});var cr,lr=S({"src/lib/runners/git-executor.ts"(){or(),cr=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new ar(this,this._scheduler,this._plugins)}chain(){return new ar(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function ur(e,t,n=R){t.then(e=>{n(null,e)},t=>{t?.task===e&&n(t instanceof D?dr(t):t,void 0)})}function dr(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=R};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(n,{}));function n(n,r){return r in e||(n[r]={enumerable:!1,configurable:!1,get(){return t(r),e.git[r]}}),n}}var fr=S({"src/lib/task-callback.ts"(){O(),q()}});function pr(e,t){return Qt(n=>{if(!it(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e})}var mr=S({"src/lib/tasks/change-working-directory.ts"(){q(),X()}});function hr(e){let t=[`checkout`,...e];return t[1]===`-b`&&t.includes(`-B`)&&(t[1]=ot(t,`-B`)),Y(t)}function gr(){return{checkout(){return this._runTask(hr(W(arguments,1)),G(arguments))},checkoutBranch(e,t){return this._runTask(hr([`-b`,e,t,...W(arguments)]),G(arguments))},checkoutLocalBranch(e){return this._runTask(hr([`-b`,e,...W(arguments)]),G(arguments))}}}var _r=S({"src/lib/tasks/checkout.ts"(){q(),X()}});function vr(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function yr(){return{countObjects(){return this._runTask({commands:[`count-objects`,`--verbose`],format:`utf-8`,parser(e){return K(vr(),[br],e)}})}}}var br,xr=S({"src/lib/tasks/count-objects.ts"(){q(),br=new H(/([a-z-]+): (\d+)$/,(e,[t,n])=>{let r=st(t);Object.hasOwn(e,r)&&(e[r]=P(n))})}});function Sr(e){return K({author:null,branch:``,commit:``,root:!1,summary:{changes:0,insertions:0,deletions:0}},Cr,e)}var Cr,wr=S({"src/lib/parsers/parse-commit.ts"(){q(),Cr=[new H(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,n,r])=>{e.branch=t,e.commit=r,e.root=!!n}),new H(/\s*Author:\s(.+)/i,(e,[t])=>{let n=t.split(`<`),r=n.pop();!r||!r.includes(`@`)||(e.author={email:r.substr(0,r.length-1),name:n.join(`<`).trim()})}),new H(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(n,10)||0,e.summary.deletions=parseInt(r,10)||0}),new H(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0;let i=parseInt(n,10)||0;r===`-`?e.summary.deletions=i:r===`+`&&(e.summary.insertions=i)})]}});function Tr(e,t,n){return{commands:[`-c`,`core.abbrev=40`,`commit`,...F(e,`-m`),...t,...n],format:`utf-8`,parser:Sr}}function Er(){return{commit(t,...n){let r=G(arguments),i=e(t)||Tr(M(t),M(B(n[0],_t,[])),[...N(B(n[1],ht,[])),...W(arguments,0,!0)]);return this._runTask(i,r)}};function e(e){return!_t(e)&&J(`git.commit: requires the commit message to be supplied as a string/string[]`)}}var Dr=S({"src/lib/tasks/commit.ts"(){wr(),q(),X()}});function Or(){return{firstCommit(){return this._runTask(Y([`rev-list`,`--max-parents=0`,`HEAD`],!0),G(arguments))}}}var kr=S({"src/lib/tasks/first-commit.ts"(){q(),X()}});function Ar(e,t){let n=[`hash-object`,e];return t&&n.push(`-w`),Y(n,!0)}var jr=S({"src/lib/tasks/hash-object.ts"(){X()}});function Mr(e,t,n){let r=String(n).trim(),i;if(i=Pr.exec(r))return new Nr(e,t,!1,i[1]);if(i=Fr.exec(r))return new Nr(e,t,!0,i[1]);let a=``,o=r.split(` `);for(;o.length;)if(o.shift()===`in`){a=o.join(` `);break}return new Nr(e,t,/^re/i.test(r),a)}var Nr,Pr,Fr,Ir=S({"src/lib/responses/InitSummary.ts"(){Nr=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},Pr=/^Init.+ repository in (.+)$/,Fr=/^Rein.+ in (.+)$/}});function Lr(e){return e.includes(zr)}function Rr(e=!1,t,n){let r=[`init`,...n];return e&&!Lr(r)&&r.splice(1,0,zr),{commands:r,format:`utf-8`,parser(e){return Mr(r.includes(`--bare`),t,e)}}}var zr,Br=S({"src/lib/tasks/init.ts"(){Ir(),zr=`--bare`}});function Vr(e){for(let t=0;t<e.length;t++){let n=Ur.exec(e[t]);if(n)return`--${n[1]}`}return``}function Hr(e){return Ur.test(e)}var Ur,Wr=S({"src/lib/args/log-format.ts"(){Ur=/^--(stat|numstat|name-only|name-status)(=|$)/}}),Gr,Kr=S({"src/lib/responses/DiffSummary.ts"(){Gr=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function qr(e=``){let t=Qr[e];return e=>K(new Gr,t,e,!1)}var Jr,Yr,Xr,Zr,Qr,$r=S({"src/lib/parsers/parse-diff-summary.ts"(){Wr(),Kr(),Pn(),q(),Jr=[new H(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,n,r=``])=>{e.files.push({file:t.trim(),changes:P(n),insertions:r.replace(/[^+]/g,``).length,deletions:r.replace(/[^-]/g,``).length,binary:!1})}),new H(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,n,r])=>{e.files.push({file:t.trim(),before:P(n),after:P(r),binary:!0})}),new H(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,n])=>{let r=/(\d+) i/.exec(n),i=/(\d+) d/.exec(n);e.changed=P(t),e.insertions=P(r?.[1]),e.deletions=P(i?.[1])})],Yr=[new H(/(\d+)\t(\d+)\t(.+)$/,(e,[t,n,r])=>{let i=P(t),a=P(n);e.changed++,e.insertions+=i,e.deletions+=a,e.files.push({file:r,changes:i+a,insertions:i,deletions:a,binary:!1})}),new H(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],Xr=[new H(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],Zr=[new H(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,n,r,i,a])=>{e.changed++,e.files.push({file:a??r,changes:0,insertions:0,deletions:0,binary:!1,status:ut(jn(t)&&t),from:ut(!!a&&r!==a&&r),similarity:P(n)})})],Qr={"":Jr,"--stat":Jr,"--numstat":Yr,"--name-status":Zr,"--name-only":Xr}}});function ei(e,t){return t.reduce((t,n,r)=>(t[n]=e[r]||``,t),Object.create({diff:null}))}function ti(e=ii,t=ai,n=``){let r=qr(n);return function(n){let i=A(n.trim(),!1,ni).map(function(n){let i=n.split(ri),a=ei(i[0].split(e),t);return i.length>1&&i[1].trim()&&(a.diff=r(i[1])),a});return{all:i,latest:i.length&&i[0]||null,total:i.length}}}var ni,ri,ii,ai,oi=S({"src/lib/parsers/parse-list-log-summary.ts"(){q(),$r(),Wr(),ni=`òòòòòò `,ri=` òò`,ii=` ò `,ai=[`hash`,`date`,`message`,`refs`,`author_name`,`author_email`]}}),si={};C(si,{diffSummaryTask:()=>ci,validateLogFormatConfig:()=>li});function ci(e){let t=Vr(e),n=[`diff`];return t===``&&(t=`--stat`,n.push(`--stat=4096`)),n.push(...e),li(n)||{commands:n,format:`utf-8`,parser:qr(t)}}function li(e){let t=e.filter(Hr);if(t.length>1)return J(`Summary flags are mutually exclusive - pick one of ${t.join(`,`)}`);if(t.length&&e.includes(`-z`))return J(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var ui=S({"src/lib/tasks/diff.ts"(){Wr(),$r(),X()}});function di(e,t){let n=[],r=[];return Object.keys(e).forEach(t=>{n.push(t),r.push(String(e[t]))}),[n,r.join(t)]}function fi(e){return Object.keys(e).reduce((t,n)=>(n in gi||(t[n]=e[n]),t),{})}function pi(e={},t=[]){let n=B(e.splitter,V,ii),[r,i]=di(pt(e.format)?e.format:{hash:`%H`,date:e.strictDate===!1?`%ai`:`%aI`,message:`%s`,refs:`%D`,body:e.multiLine?`%B`:`%b`,author_name:e.mailMap===!1?`%an`:`%aN`,author_email:e.mailMap===!1?`%ae`:`%aE`},n),a=[],o=[`--pretty=format:${ni}${i}${ri}`,...t],s=e.n||e[`max-count`]||e.maxCount;if(s&&o.push(`--max-count=${s}`),e.from||e.to){let t=e.symmetric===!1?`..`:`...`;a.push(`${e.from||``}${t}${e.to||``}`)}return V(e.file)&&o.push(`--follow`,re(e.file)),kt(fi(e),o),{fields:r,splitter:n,commands:[...o,...a]}}function mi(e,t,n){let r=ti(e,t,Vr(n));return{commands:[`log`,...n],format:`utf-8`,parser:r}}function hi(){return{log(...n){let r=G(arguments),i=pi(jt(arguments),N(B(arguments[0],ht,[]))),a=t(...n)||li(i.commands)||e(i);return this._runTask(a,r)}};function e(e){return mi(e.splitter,e.fields,e.commands)}function t(e,t){return V(e)&&V(t)&&J(`git.log(string, string) should be replaced with git.log({ from: string, to: string })`)}}var gi,_i=S({"src/lib/tasks/log.ts"(){Wr(),oi(),q(),X(),ui(),gi=(e=>(e[e[`--pretty`]=0]=`--pretty`,e[e[`max-count`]=1]=`max-count`,e[e.maxCount=2]=`maxCount`,e[e.n=3]=`n`,e[e.file=4]=`file`,e[e.format=5]=`format`,e[e.from=6]=`from`,e[e.to=7]=`to`,e[e.splitter=8]=`splitter`,e[e.symmetric=9]=`symmetric`,e[e.mailMap=10]=`mailMap`,e[e.multiLine=11]=`multiLine`,e[e.strictDate=12]=`strictDate`,e))(gi||{})}}),vi,yi,bi=S({"src/lib/responses/MergeSummary.ts"(){vi=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},yi=class{constructor(){this.conflicts=[],this.merges=[],this.result=`success`}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(`, `)}`:`OK`}}}}),xi,Si,Ci=S({"src/lib/responses/PullSummary.ts"(){xi=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},Si=class{constructor(){this.remote=``,this.hash={local:``,remote:``},this.branch={local:``,remote:``},this.message=``}toString(){return this.message}}}});function wi(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Ti(e){let t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:P(t&&t[1]||`0`),delta:P(n&&n[1]||`0`)}}var Ei,Di=S({"src/lib/parsers/parse-remote-objects.ts"(){q(),Ei=[new U(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=wi(e.remoteMessages);Object.assign(i,{[r]:P(n)})}),new U(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=wi(e.remoteMessages);Object.assign(i,{[r]:P(n)})}),new U(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,n,r])=>{let i=wi(e.remoteMessages);i.total=Ti(t),i.reused=Ti(n),i.packReused=P(r)})]}});function Oi(e,t){return K({remoteMessages:new Ai},ki,t)}var ki,Ai,ji=S({"src/lib/parsers/parse-remote-messages.ts"(){q(),Di(),ki=[new U(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...Ei,new U([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new U([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:P(t),summary:n,url:r}})],Ai=class{constructor(){this.all=[]}}}});function Mi(e,t){let n=K(new Si,Li,[e,t]);return n.message&&n}var Ni,Pi,Fi,Ii,Li,Ri,zi,Bi=S({"src/lib/parsers/parse-pull.ts"(){Ci(),q(),ji(),Ni=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Pi=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Fi=/^(create|delete) mode \d+ (.+)/,Ii=[new H(Ni,(e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)}),new H(Pi,(e,[t,,n,,r])=>n!==void 0||r!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+n||0,e.summary.deletions=+r||0,!0):!1),new H(Fi,(e,[t,n])=>{j(e.files,n),j(t===`create`?e.created:e.deleted,n)})],Li=[new H(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new H(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new H(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,n,r,i])=>{e.branch.local=r,e.hash.local=t,e.branch.remote=i,e.hash.remote=n})],Ri=(e,t)=>K(new xi,Ii,[e,t]),zi=(e,t)=>Object.assign(new xi,Ri(e,t),Oi(e,t))}}),Vi,Hi,Ui,Wi=S({"src/lib/parsers/parse-merge.ts"(){bi(),q(),Bi(),Vi=[new H(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new H(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,n])=>{e.conflicts.push(new vi(t,n))}),new H(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,n,r])=>{e.conflicts.push(new vi(t,n,{deleteRef:r}))}),new H(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new vi(t,null))}),new H(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Hi=(e,t)=>Object.assign(Ui(e,t),zi(e,t)),Ui=e=>K(new yi,Vi,e)}});function Gi(e){return e.length?{commands:[`merge`,...e],format:`utf-8`,parser(e,t){let n=Hi(e,t);if(n.failed)throw new D(n);return n}}:J(`Git.merge requires at least one option`)}var Ki=S({"src/lib/tasks/merge.ts"(){O(),Wi(),X()}});function qi(e,t,n){let r=n.includes(`deleted`),i=n.includes(`tag`)||/^refs\/tags/.test(e),a=!n.includes(`new`);return{deleted:r,tag:i,branch:!i,new:!a,alreadyUpdated:a,local:e,remote:t}}var Ji,Yi,Xi,Zi=S({"src/lib/parsers/parse-push.ts"(){q(),ji(),Ji=[new H(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new H(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref={...e.ref||{},local:t}}),new H(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,n,r])=>{e.pushed.push(qi(t,n,r))}),new H(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,n,r])=>{e.branch={...e.branch||{},local:t,remote:n,remoteName:r}}),new H(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,n,r,i])=>{e.update={head:{local:t,remote:n},hash:{from:r,to:i}}})],Yi=(e,t)=>{let n=Xi(e,t),r=Oi(e,t);return{...n,...r}},Xi=(e,t)=>K({pushed:[]},Ji,[e,t])}}),Qi={};C(Qi,{pushTagsTask:()=>$i,pushTask:()=>ea});function $i(e={},t){return j(t,`--tags`),ea(e,t)}function ea(e={},t){let n=[`push`,...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),ot(n,`-v`),j(n,`--verbose`),j(n,`--porcelain`),{commands:n,format:`utf-8`,parser:Yi}}var ta=S({"src/lib/tasks/push.ts"(){Zi(),q()}});function na(){return{showBuffer(){let e=[`show`,...W(arguments,1)];return e.includes(`--binary`)||e.splice(1,0,`--binary`),this._runTask($t(e),G(arguments))},show(){let e=[`show`,...W(arguments,1)];return this._runTask(Y(e),G(arguments))}}}var ra=S({"src/lib/tasks/show.ts"(){q(),X()}}),ia,aa,oa=S({"src/lib/responses/FileStatusSummary.ts"(){ia=/^(.+)\0(.+)$/,aa=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,t===`R`||n===`R`){let t=ia.exec(e)||[null,e,e];this.from=t[2]||``,this.path=t[1]||``}}}}});function sa(e){let[t,n]=e.split(L);return{from:n||t,to:t}}function Q(e,t,n){return[`${e}${t}`,n]}function ca(e,...t){return t.map(t=>Q(e,t,(e,t)=>e.conflicted.push(t)))}function la(e,t){let n=t.trim();switch(` `){case n.charAt(2):return r(n.charAt(0),n.charAt(1),n.slice(3));case n.charAt(1):return r(` `,n.charAt(0),n.slice(2));default:return}function r(t,n,r){let i=`${t}${n}`,a=da.get(i);a&&a(e,r),i!==`##`&&i!==`!!`&&e.files.push(new aa(r,t,n))}}var ua,da,fa,pa=S({"src/lib/responses/StatusSummary.ts"(){q(),oa(),ua=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},da=new Map([Q(` `,`A`,(e,t)=>e.created.push(t)),Q(` `,`D`,(e,t)=>e.deleted.push(t)),Q(` `,`M`,(e,t)=>e.modified.push(t)),Q(`A`,` `,(e,t)=>{e.created.push(t),e.staged.push(t)}),Q(`A`,`M`,(e,t)=>{e.created.push(t),e.staged.push(t),e.modified.push(t)}),Q(`D`,` `,(e,t)=>{e.deleted.push(t),e.staged.push(t)}),Q(`M`,` `,(e,t)=>{e.modified.push(t),e.staged.push(t)}),Q(`M`,`M`,(e,t)=>{e.modified.push(t),e.staged.push(t)}),Q(`R`,` `,(e,t)=>{e.renamed.push(sa(t))}),Q(`R`,`M`,(e,t)=>{let n=sa(t);e.renamed.push(n),e.modified.push(n.to)}),Q(`!`,`!`,(e,t)=>{(e.ignored=e.ignored||[]).push(t)}),Q(`?`,`?`,(e,t)=>e.not_added.push(t)),...ca(`A`,`A`,`U`),...ca(`D`,`D`,`U`),...ca(`U`,`A`,`D`,`U`),[`##`,(e,t)=>{let n=/ahead (\d+)/,r=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,a=/\.{3}(\S*)/,o=/\son\s(\S+?)(?=\.{3}|$)/,s=n.exec(t);e.ahead=s&&+s[1]||0,s=r.exec(t),e.behind=s&&+s[1]||0,s=i.exec(t),e.current=B(s?.[1],V,null),s=a.exec(t),e.tracking=B(s?.[1],V,null),s=o.exec(t),s&&(e.current=B(s?.[1],V,e.current)),e.detached=/\(no branch\)/.test(t)}]]),fa=function(e){let t=e.split(L),n=new ua;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&(r.charAt(0)===`R`&&(r+=L+(t[e++]||``)),la(n,r))}return n}}});function ma(e){return{format:`utf-8`,commands:[`status`,`--porcelain`,`-b`,`-u`,`--null`,...e.filter(e=>!ha.includes(e))],parser(e){return fa(e)}}}var ha,ga=S({"src/lib/tasks/status.ts"(){pa(),ha=[`--null`,`-z`]}});function _a(e=0,t=0,n=0,r=``,i=!0){return Object.defineProperty({major:e,minor:t,patch:n,agent:r,installed:i},`toString`,{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function va(){return _a(0,0,0,``,!1)}function ya(){return{version(){return this._runTask({commands:[`--version`],format:`utf-8`,parser:ba,onError(e,t,n,r){if(e.exitCode===-2)return n(Buffer.from(xa));r(t)}})}}}function ba(e){return e===xa?va():K(_a(0,0,0,e),Sa,e)}var xa,Sa,Ca=S({"src/lib/tasks/version.ts"(){q(),xa=`installed=false`,Sa=[new H(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,n,r,i=``])=>{Object.assign(e,_a(P(t),P(n),P(r),i))}),new H(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,n,r,i=``])=>{Object.assign(e,_a(P(t),P(n),r,i))})]}});function wa(e,t,n,...r){return V(n)?t(n,B(r[0],V),W(arguments)):J(`git.${e}() requires a string 'repoPath'`)}function Ta(){return{clone(e,...t){return this._runTask(wa(`clone`,Ea,B(e,V),...t),G(arguments))},mirror(e,...t){return this._runTask(wa(`mirror`,Da,B(e,V),...t),G(arguments))}}}var Ea,Da,Oa=S({"src/lib/tasks/clone.ts"(){X(),q(),Ea=(e,t,n)=>{let r=[`clone`,...n];return V(e)&&r.push(re(e)),V(t)&&r.push(re(t)),Y(r)},Da=(e,t,n)=>(j(n,`--mirror`),Ea(e,t,n))}}),ka={};C(ka,{SimpleGitApi:()=>Aa});var Aa,ja=S({"src/lib/simple-git-api.ts"(){fr(),mr(),_r(),xr(),Dr(),An(),kr(),Hn(),jr(),Br(),_i(),Ki(),ta(),ra(),ga(),X(),Ca(),q(),Oa(),Aa=class{constructor(e){this._executor=e}_runTask(e,t){let n=this._executor.chain(),r=n.push(e);return t&&ur(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(Y([`add`,...M(e)]),G(arguments))}cwd(e){let t=G(arguments);return typeof e==`string`?this._runTask(pr(e,this._executor),t):typeof e?.path==`string`?this._runTask(pr(e.path,e.root&&this._executor||void 0),t):this._runTask(J(`Git.cwd: workingDirectory must be supplied as a string`),t)}hashObject(e,t){return this._runTask(Ar(e,t===!0),G(arguments))}init(e){return this._runTask(Rr(e===!0,this._executor.cwd,W(arguments)),G(arguments))}merge(){return this._runTask(Gi(W(arguments)),G(arguments))}mergeFromTo(e,t){return V(e)&&V(t)?this._runTask(Gi([e,t,...W(arguments)]),G(arguments,!1)):this._runTask(J(`Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings`))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=ea({remote:B(arguments[0],V),branch:B(arguments[1],V)},W(arguments));return this._runTask(e,G(arguments))}stash(){return this._runTask(Y([`stash`,...W(arguments)]),G(arguments))}status(){return this._runTask(ma(W(arguments)),G(arguments))}},Object.assign(Aa.prototype,gr(),Ta(),Er(),On(),yr(),Or(),Ln(),hi(),na(),ya())}}),Ma={};C(Ma,{Scheduler:()=>Pa});var Na,Pa,Fa=S({"src/lib/runners/scheduler.ts"(){q(),er(),Na=(()=>{let e=0;return()=>{e++;let{promise:t,done:n}=(0,x.createDeferred)();return{promise:t,done:n,id:e}}})(),Pa=class{constructor(e=2){this.concurrency=e,this.logger=$n(``,`scheduler`),this.pending=[],this.running=[],this.logger(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}let e=j(this.running,this.pending.shift());this.logger(`Attempting id=%s`,e.id),e.done(()=>{this.logger(`Completing id=`,e.id),ot(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=j(this.pending,Na());return this.logger(`Scheduling id=%s`,t),this.schedule(),e}}}}),Ia={};C(Ia,{applyPatchTask:()=>La});function La(e,t){return Y([`apply`,...t,...e])}var Ra=S({"src/lib/tasks/apply-patch.ts"(){X()}});function za(e,t){return{branch:e,hash:t,success:!0}}function Ba(e){return{branch:e,hash:null,success:!1}}var Va,Ha=S({"src/lib/responses/BranchDeleteSummary.ts"(){Va=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Ua(e,t){return t===1&&Ga.test(e)}var Wa,Ga,Ka,qa,Ja=S({"src/lib/parsers/parse-branch-delete.ts"(){Ha(),q(),Wa=/(\S+)\s+\(\S+\s([^)]+)\)/,Ga=/^error[^']+'([^']+)'/m,Ka=[new H(Wa,(e,[t,n])=>{let r=za(t,n);e.all.push(r),e.branches[t]=r}),new H(Ga,(e,[t])=>{let n=Ba(t);e.errors.push(n),e.all.push(n),e.branches[t]=n})],qa=(e,t)=>K(new Va,Ka,[e,t])}}),Ya,Xa=S({"src/lib/responses/BranchSummary.ts"(){Ya=class{constructor(){this.all=[],this.branches={},this.current=``,this.detached=!1}push(e,t,n,r,i){e===`*`&&(this.detached=t,this.current=n),this.all.push(n),this.branches[n]={current:e===`*`,linkedWorkTree:e===`+`,name:n,commit:r,label:i}}}}});function Za(e){return e?e.charAt(0):``}function Qa(e,t=!1){return K(new Ya,t?[eo]:$a,e)}var $a,eo,to=S({"src/lib/parsers/parse-branch.ts"(){Xa(),q(),$a=[new H(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,n,r,i])=>{e.push(Za(t),!0,n,r,i)}),new H(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,n,r,i])=>{e.push(Za(t),!1,n,r,i)})],eo=new H(/^(\S+)$/s,(e,[t])=>{e.push(`*`,!1,t,``,``)})}}),no={};C(no,{branchLocalTask:()=>ao,branchTask:()=>io,containsDeleteBranchCommand:()=>ro,deleteBranchTask:()=>so,deleteBranchesTask:()=>oo});function ro(e){let t=[`-d`,`-D`,`--delete`];return e.some(e=>t.includes(e))}function io(e){let t=ro(e),n=e.includes(`--show-current`),r=[`branch`,...e];return r.length===1&&r.push(`-a`),r.includes(`-v`)||r.splice(1,0,`-v`),{format:`utf-8`,commands:r,parser(e,r){return t?qa(e,r).all[0]:Qa(e,n)}}}function ao(){return{format:`utf-8`,commands:[`branch`,`-v`],parser(e){return Qa(e)}}}function oo(e,t=!1){return{format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,...e],parser(e,t){return qa(e,t)},onError({exitCode:e,stdOut:t},n,r,i){if(!Ua(String(n),e))return i(n);r(t)}}}function so(e,t=!1){let n={format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,e],parser(t,n){return qa(t,n).branches[e]},onError({exitCode:e,stdErr:t,stdOut:r},i,a,o){if(!Ua(String(i),e))return o(i);throw new D(n.parser(I(r),I(t)),String(i))}};return n}var co=S({"src/lib/tasks/branch.ts"(){O(),Ja(),to(),q()}});function lo(e){let t=e.trim().replace(/^["']|["']$/g,``);return t&&a(t)}var uo,fo=S({"src/lib/responses/CheckIgnore.ts"(){uo=e=>e.split(/\n/g).map(lo).filter(Boolean)}}),po={};C(po,{checkIgnoreTask:()=>mo});function mo(e){return{commands:[`check-ignore`,...e],format:`utf-8`,parser:uo}}var ho=S({"src/lib/tasks/check-ignore.ts"(){fo()}});function go(e,t){return K({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},_o,[e,t])}var _o,vo=S({"src/lib/parsers/parse-fetch.ts"(){q(),_o=[new H(/From (.+)$/,(e,[t])=>{e.remote=t}),new H(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.branches.push({name:t,tracking:n})}),new H(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.tags.push({name:t,tracking:n})}),new H(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new H(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,n,r,i])=>{e.updated.push({name:r,tracking:i,to:n,from:t})})]}}),yo={};C(yo,{fetchTask:()=>xo});function bo(e){return/^--upload-pack(=|$)/.test(e)}function xo(e,t,n){let r=[`fetch`,...n];return e&&t&&r.push(e,t),r.find(bo)?J(`git.fetch: potential exploit argument blocked.`):{commands:r,format:`utf-8`,parser:go}}var So=S({"src/lib/tasks/fetch.ts"(){vo(),X()}});function Co(e){return K({moves:[]},wo,e)}var wo,To=S({"src/lib/parsers/parse-move.ts"(){q(),wo=[new H(/^Renaming (.+) to (.+)$/,(e,[t,n])=>{e.moves.push({from:t,to:n})})]}}),Eo={};C(Eo,{moveTask:()=>Do});function Do(e,t){return{commands:[`mv`,`-v`,...M(e),t],format:`utf-8`,parser:Co}}var Oo=S({"src/lib/tasks/move.ts"(){To(),q()}}),ko={};C(ko,{pullTask:()=>Ao});function Ao(e,t,n){let r=[`pull`,...n];return e&&t&&r.splice(1,0,e,t),{commands:r,format:`utf-8`,parser(e,t){return zi(e,t)},onError(e,t,n,r){let i=Mi(I(e.stdOut),I(e.stdErr));if(i)return r(new D(i));r(t)}}}var jo=S({"src/lib/tasks/pull.ts"(){O(),Bi(),q()}});function Mo(e){let t={};return Po(e,([e])=>t[e]={name:e}),Object.values(t)}function No(e){let t={};return Po(e,([e,n,r])=>{Object.hasOwn(t,e)||(t[e]={name:e,refs:{fetch:``,push:``}}),r&&n&&(t[e].refs[r.replace(/[^a-z]/g,``)]=n)}),Object.values(t)}function Po(e,t){rt(e,e=>t(e.split(/\s+/)))}var Fo=S({"src/lib/responses/GetRemoteSummary.ts"(){q()}}),Io={};C(Io,{addRemoteTask:()=>Lo,getRemotesTask:()=>Ro,listRemotesTask:()=>zo,remoteTask:()=>Bo,removeRemoteTask:()=>Vo});function Lo(e,t,n){return Y([`remote`,`add`,...n,e,t])}function Ro(e){let t=[`remote`];return e&&t.push(`-v`),{commands:t,format:`utf-8`,parser:e?No:Mo}}function zo(e){let t=[...e];return t[0]!==`ls-remote`&&t.unshift(`ls-remote`),Y(t)}function Bo(e){let t=[...e];return t[0]!==`remote`&&t.unshift(`remote`),Y(t)}function Vo(e){return Y([`remote`,`remove`,e])}var Ho=S({"src/lib/tasks/remote.ts"(){Fo(),X()}}),Uo={};C(Uo,{stashListTask:()=>Wo});function Wo(e={},t){let n=pi(e),r=[`stash`,`list`,...n.commands,...t],i=ti(n.splitter,n.fields,Vr(r));return li(r)||{commands:r,format:`utf-8`,parser:i}}var Go=S({"src/lib/tasks/stash-list.ts"(){Wr(),oi(),ui(),_i()}}),Ko={};C(Ko,{addSubModuleTask:()=>qo,initSubModuleTask:()=>Jo,subModuleTask:()=>Yo,updateSubModuleTask:()=>Xo});function qo(e,t){return Yo([`add`,e,t])}function Jo(e){return Yo([`init`,...e])}function Yo(e){let t=[...e];return t[0]!==`submodule`&&t.unshift(`submodule`),Y(t)}function Xo(e){return Yo([`update`,...e])}var Zo=S({"src/lib/tasks/sub-module.ts"(){X()}});function Qo(e,t){let n=Number.isNaN(e);return n===Number.isNaN(t)?n?$o(e,t):0:n?1:-1}function $o(e,t){return e===t?0:e>t?1:-1}function es(e){return e.trim()}function ts(e){return typeof e==`string`&&parseInt(e.replace(/^\D+/g,``),10)||0}var ns,rs,is=S({"src/lib/responses/TagList.ts"(){ns=class{constructor(e,t){this.all=e,this.latest=t}},rs=function(e,t=!1){let n=e.split(`
|
|
9
|
+
`).map(es).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return Qo(ts(n[0]),ts(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=$o(ts(n[e]),ts(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new ns(n,r)}}}),as={};C(as,{addAnnotatedTagTask:()=>cs,addTagTask:()=>ss,tagListTask:()=>os});function os(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return rs(e,t)}}}function ss(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function cs(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var ls=S({"src/lib/tasks/tag.ts"(){is()}}),us=Je({"src/git.js"(e,t){var{GitExecutor:n}=(lr(),w(sr)),{SimpleGitApi:r}=(ja(),w(ka)),{Scheduler:i}=(Fa(),w(Ma)),{adhocExecTask:a,configurationErrorTask:o}=(X(),w(Zt)),{asArray:s,filterArray:c,filterPrimitives:l,filterString:u,filterStringOrStringArray:d,filterType:f,getTrailingOptions:p,trailingFunctionArgument:m,trailingOptionsArgument:ee}=(q(),w(Ft)),{applyPatchTask:te}=(Ra(),w(Ia)),{branchTask:ne,branchLocalTask:re,deleteBranchesTask:h,deleteBranchTask:g}=(co(),w(no)),{checkIgnoreTask:ie}=(ho(),w(po)),{checkIsRepoTask:ae}=(Wt(),w(It)),{cleanWithOptionsTask:oe,isCleanOptionsArray:se}=(_n(),w(rn)),{diffSummaryTask:ce}=(ui(),w(si)),{fetchTask:le}=(So(),w(yo)),{moveTask:ue}=(Oo(),w(Eo)),{pullTask:_}=(jo(),w(ko)),{pushTagsTask:de}=(ta(),w(Qi)),{addRemoteTask:fe,getRemotesTask:pe,listRemotesTask:me,remoteTask:he,removeRemoteTask:ge}=(Ho(),w(Io)),{getResetMode:_e,resetTask:ve}=(Yn(),w(Un)),{stashListTask:ye}=(Go(),w(Uo)),{addSubModuleTask:be,initSubModuleTask:xe,subModuleTask:Se,updateSubModuleTask:Ce}=(Zo(),w(Ko)),{addAnnotatedTagTask:we,addTagTask:Te,tagListTask:Ee}=(ls(),w(as)),{straightThroughBufferTask:De,straightThroughStringTask:v}=(X(),w(Zt));function y(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(y.prototype=Object.create(r.prototype)).constructor=y,y.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},y.prototype.env=function(e,t){return arguments.length===1&&typeof e==`object`?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},y.prototype.stashList=function(e){return this._runTask(ye(ee(arguments)||{},c(e)&&e||[]),m(arguments))},y.prototype.mv=function(e,t){return this._runTask(ue(e,t),m(arguments))},y.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},y.prototype.pull=function(e,t,n,r){return this._runTask(_(f(e,u),f(t,u),p(arguments)),m(arguments))},y.prototype.fetch=function(e,t){return this._runTask(le(f(e,u),f(t,u),p(arguments)),m(arguments))},y.prototype.silent=function(e){return this._runTask(a(()=>console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this method will be removed.")))},y.prototype.tags=function(e,t){return this._runTask(Ee(p(arguments)),m(arguments))},y.prototype.rebase=function(){return this._runTask(v([`rebase`,...p(arguments)]),m(arguments))},y.prototype.reset=function(e){return this._runTask(ve(_e(e),p(arguments)),m(arguments))},y.prototype.revert=function(e){let t=m(arguments);return typeof e==`string`?this._runTask(v([`revert`,...p(arguments,0,!0),e]),t):this._runTask(o(`Commit must be a string`),t)},y.prototype.addTag=function(e){let t=typeof e==`string`?Te(e):o(`Git.addTag requires a tag name`);return this._runTask(t,m(arguments))},y.prototype.addAnnotatedTag=function(e,t){return this._runTask(we(e,t),m(arguments))},y.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(g(e,typeof t==`boolean`?t:!1),m(arguments))},y.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(h(e,typeof t==`boolean`?t:!1),m(arguments))},y.prototype.branch=function(e,t){return this._runTask(ne(p(arguments)),m(arguments))},y.prototype.branchLocal=function(e){return this._runTask(re(),m(arguments))},y.prototype.raw=function(e){let t=!Array.isArray(e),n=[].slice.call(t?arguments:e,0);for(let e=0;e<n.length&&t;e++)if(!l(n[e])){n.splice(e,n.length-e);break}n.push(...p(arguments,0,!0));var r=m(arguments);return n.length?this._runTask(v(n,this._trimmed),r):this._runTask(o(`Raw: must supply one or more command to execute`),r)},y.prototype.submoduleAdd=function(e,t,n){return this._runTask(be(e,t),m(arguments))},y.prototype.submoduleUpdate=function(e,t){return this._runTask(Ce(p(arguments,!0)),m(arguments))},y.prototype.submoduleInit=function(e,t){return this._runTask(xe(p(arguments,!0)),m(arguments))},y.prototype.subModule=function(e,t){return this._runTask(Se(p(arguments)),m(arguments))},y.prototype.listRemote=function(){return this._runTask(me(p(arguments)),m(arguments))},y.prototype.addRemote=function(e,t,n){return this._runTask(fe(e,t,p(arguments)),m(arguments))},y.prototype.removeRemote=function(e,t){return this._runTask(ge(e),m(arguments))},y.prototype.getRemotes=function(e,t){return this._runTask(pe(e===!0),m(arguments))},y.prototype.remote=function(e,t){return this._runTask(he(p(arguments)),m(arguments))},y.prototype.tag=function(e,t){let n=p(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(v(n),m(arguments))},y.prototype.updateServerInfo=function(e){return this._runTask(v([`update-server-info`]),m(arguments))},y.prototype.pushTags=function(e,t){let n=de({remote:f(e,u)},p(arguments));return this._runTask(n,m(arguments))},y.prototype.rm=function(e){return this._runTask(v([`rm`,`-f`,...s(e)]),m(arguments))},y.prototype.rmKeepLocal=function(e){return this._runTask(v([`rm`,`--cached`,...s(e)]),m(arguments))},y.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},y.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},y.prototype._catFile=function(e,t){var n=m(t),r=[`cat-file`],i=t[0];if(typeof i==`string`)return this._runTask(o(`Git.catFile: options must be supplied as an array of strings`),n);Array.isArray(i)&&r.push.apply(r,i);let a=e===`buffer`?De(r):v(r);return this._runTask(a,n)},y.prototype.diff=function(e,t){let n=u(e)?o(`git.diff: supplying options as a single string is no longer supported, switch to an array of strings`):v([`diff`,...p(arguments)]);return this._runTask(n,m(arguments))},y.prototype.diffSummary=function(){return this._runTask(ce(p(arguments,1)),m(arguments))},y.prototype.applyPatch=function(e){let t=d(e)?te(s(e),p([].slice.call(arguments,1))):o(`git.applyPatch requires one or more string patches as the first argument`);return this._runTask(t,m(arguments))},y.prototype.revparse=function(){let e=[`rev-parse`,...p(arguments,!0)];return this._runTask(v(e,!0),m(arguments))},y.prototype.clean=function(e,t,n){let r=se(e),i=r&&e.join(``)||f(e,u)||``,a=p([].slice.call(arguments,r?1:0));return this._runTask(oe(i,a),m(arguments))},y.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},y.prototype.clearQueue=function(){return this._runTask(a(()=>console.warn(`simple-git deprecation notice: clearQueue() is deprecated and will be removed, switch to using the abortPlugin instead.`)))},y.prototype.checkIgnore=function(e,t){return this._runTask(ie(s(f(e,d,[]))),m(arguments))},y.prototype.checkIsRepo=function(e,t){return this._runTask(ae(f(e,u)),m(arguments))},t.exports=y}});E();var ds=class extends T{constructor(e,t){super(void 0,t),this.config=e}};E(),E();var $=class extends T{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};O(),Ze(),Wt(),_n(),An(),Pn(),Hn(),Yn();function fs(e){if(e)return[{type:`spawn.before`,action(t,n){e.aborted&&n.kill(new $(void 0,`abort`,`Abort already signaled`))}},{type:`spawn.after`,action(t,n){function r(){n.kill(new $(void 0,`abort`,`Abort signal received`))}e.addEventListener(`abort`,r),n.spawned.on(`close`,()=>e.removeEventListener(`abort`,r))}}]}function ps(e={}){return{type:`spawn.args`,action(t,{env:n}){for(let r of Ve(t,n))if(e[r.category]!==!0)throw new $(void 0,`unsafe`,r.message);return t}}}q();function ms(e){let t=F(e,`-c`);return{type:`spawn.args`,action(e){return[...t,...e]}}}q();var hs=(0,x.deferred)().promise;function gs({onClose:e=!0,onExit:t=50}={}){function n(){let n=-1,i={close:(0,x.deferred)(),closeTimeout:(0,x.deferred)(),exit:(0,x.deferred)(),exitTimeout:(0,x.deferred)()},a=Promise.race([e===!1?hs:i.closeTimeout.promise,t===!1?hs:i.exitTimeout.promise]);return r(e,i.close,i.closeTimeout),r(t,i.exit,i.exitTimeout),{close(e){n=e,i.close.done()},exit(e){n=e,i.exit.done()},get exitCode(){return n},result:a}}function r(e,t,n){e!==!1&&(e===!0?t.promise:t.promise.then(()=>lt(e))).then(n.done)}return{type:`spawn.after`,async action(e,{spawned:t,close:r}){let i=n(),a=!0,o=()=>void(a=!1);t.stdout?.on(`data`,o),t.stderr?.on(`data`,o),t.on(`error`,o),t.on(`close`,e=>i.close(e)),t.on(`exit`,e=>i.exit(e));try{await i.result,a&&await lt(50),r(i.exitCode)}catch(e){r(i.exitCode,e)}}}}q();var _s=`Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`,vs=`Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;function ys(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(e)}function bs(e,t){if(e.length<1||e.length>2)throw new $(void 0,`binary`,_s);if(e.some(ys))if(t)console.warn(vs);else throw new $(void 0,`binary`,vs);let[n,r]=e;return{binary:n,prefix:r}}function xs(e,t=[`git`],n=!1){let r=bs(M(t),n);e.on(`binary`,e=>{r=bs(M(e),n)}),e.append(`spawn.binary`,()=>r.binary),e.append(`spawn.args`,e=>r.prefix?[r.prefix,...e]:e)}E();function Ss(e){return!!(e.exitCode&&e.stdErr.length)}function Cs(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function ws(e=!1,t=Ss,n=Cs){return(r,i)=>!e&&r||!t(i)?r:n(i)}function Ts(e){return{type:`task.error`,action(t,n){let r=e(t.error,{stdErr:n.stdErr,stdOut:n.stdOut,exitCode:n.exitCode});return Buffer.isBuffer(r)?{error:new T(void 0,r.toString(`utf-8`))}:{error:r}}}}q();var Es=class{constructor(){this.plugins=new Set,this.events=new i}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let n=j(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){let t=[];return M(e).forEach(e=>e&&this.plugins.add(j(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,n){let r=t,i=Object.freeze(Object.create(n));for(let t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};q();function Ds(e){let t=`--progress`,n=[`checkout`,`clone`,`fetch`,`pull`,`push`];return[{type:`spawn.args`,action(e,r){return n.includes(r.method)?at(e,t):e}},{type:`spawn.after`,action(n,r){r.commands.includes(t)&&r.spawned.stderr?.on(`data`,t=>{let n=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString(`utf8`));n&&e({method:r.method,stage:Os(n[1]),progress:P(n[2]),processed:P(n[3]),total:P(n[4])})})}}]}function Os(e){return String(e.toLowerCase().split(` `,1))||`unknown`}q();function ks(e){let t=ct(e,[`uid`,`gid`]);return{type:`spawn.options`,action(e){return{...t,...e}}}}function As({block:e,stdErr:t=!0,stdOut:n=!0}){if(e>0)return{type:`spawn.after`,action(r,i){let a;function o(){a&&clearTimeout(a),a=setTimeout(c,e)}function s(){i.spawned.stdout?.off(`data`,o),i.spawned.stderr?.off(`data`,o),i.spawned.off(`exit`,s),i.spawned.off(`close`,s),a&&clearTimeout(a)}function c(){s(),i.kill(new $(void 0,`timeout`,`block timeout reached`))}n&&i.spawned.stdout?.on(`data`,o),t&&i.spawned.stderr?.on(`data`,o),i.spawned.on(`exit`,s),i.spawned.on(`close`,s),o()}}}function js(){return{type:`spawn.args`,action(e){let t=[],n;function r(e){(n||=[]).push(...e)}for(let n=0;n<e.length;n++){let i=e[n];if(h(i)){r(g(i));continue}if(i===`--`){r(e.slice(n+1).flatMap(e=>h(e)&&g(e)||e));break}t.push(i)}return n?[...t,`--`,...n.map(String)]:t}}}q();var Ms=us();function Ns(e,t){let n=new Es,r=Et(e&&(typeof e==`string`?{baseDir:e}:e)||{},t);if(!it(r.baseDir))throw new ds(r,`Cannot use simple-git on a directory that does not exist`);return Array.isArray(r.config)&&n.add(ms(r.config)),n.add(ps(r.unsafe)),n.add(gs(r.completion)),r.abort&&n.add(fs(r.abort)),r.progress&&n.add(Ds(r.progress)),r.timeout&&n.add(As(r.timeout)),r.spawnOptions&&n.add(ks(r.spawnOptions)),n.add(js()),n.add(Ts(ws(!0))),r.errors&&n.add(Ts(r.errors)),xs(n,r.binary,r.unsafe?.allowUnsafeCustomBinary),new Ms(r,n)}O();var Ps=Ns;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)}var Ls=r({createGitInstance:()=>Rs});function Rs(e,t={}){let{credentialArgs:n=[],gitIndexFile:r}=t,i={};return r&&(i.GIT_INDEX_FILE=o(e,r)),{git:Ps({baseDir:e,config:n.length>=2?[n[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env(i),projectDir:e,credentialArgs:n}}export{m as a,Ps as i,Ls as n,Is as r,Rs as t};
|
|
10
|
+
//# sourceMappingURL=git-handle-DwfYp_z--CfyPz4Dz.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./git-handle-DwfYp_z--CfyPz4Dz.mjs";export{e as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-J642UCRS-YiNealfn.mjs";import"./chunk-VLGZJRPG-DymOu90-.mjs";import{i as e,r as t,t as n}from"./chunk-YS3AZT3J-CBc9LHIy.mjs";export{t as egrepCommand,n as fgrepCommand,e as grepCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{a as e,r as t,t as n}from"./chunk-LTZRCH7N-46S7WKw8.mjs";export{t as gunzipCommand,n as gzipCommand,e as zcatCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-64BAICW3-D92CLSK-.mjs";export{e as headCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-MLXIYONF-CiCzoeGt.mjs";export{e as helpCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-NCNPKYJZ-BVljycUZ.mjs";export{e as historyCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-4HHKTUW3-CQ53AiA_.mjs";export{e as hostname};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-MDLLFABN-Wd1iVjXi.mjs";export{e as htmlToMarkdownCommand};
|