@vercel/cli-support 0.0.0 → 65.4.0
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/LICENSE +202 -0
- package/README.md +100 -3
- package/dist/chunks/add-7NS6HIWC.js +8 -0
- package/dist/chunks/add-NMYFDVXW.js +8 -0
- package/dist/chunks/add-PMJ5BECU.js +8 -0
- package/dist/chunks/build-BCY6HQJG.js +7 -0
- package/dist/chunks/chunk-25565AGS.js +7 -0
- package/dist/chunks/chunk-2EYYB6YN.js +7 -0
- package/dist/chunks/chunk-2GHZGOWT.js +7 -0
- package/dist/chunks/chunk-2K3ISCQ6.js +7 -0
- package/dist/chunks/chunk-2NABMKFV.js +29 -0
- package/dist/chunks/chunk-2S6PE6GB.js +7 -0
- package/dist/chunks/chunk-2TUVL6WE.js +12 -0
- package/dist/chunks/chunk-363SJ4TN.js +7 -0
- package/dist/chunks/chunk-3G3FQYMW.js +7 -0
- package/dist/chunks/chunk-3LIKVGFT.js +8 -0
- package/dist/chunks/chunk-3XW7N4W3.js +9 -0
- package/dist/chunks/chunk-462YCCJZ.js +7 -0
- package/dist/chunks/chunk-4CACOKMS.js +7 -0
- package/dist/chunks/chunk-4N6LMERQ.js +57 -0
- package/dist/chunks/chunk-4NTBYNFR.js +17 -0
- package/dist/chunks/chunk-4SAVH3H7.js +7 -0
- package/dist/chunks/chunk-4VFYJU37.js +7 -0
- package/dist/chunks/chunk-527GBU3K.js +7 -0
- package/dist/chunks/chunk-5IWFRZQT.js +10 -0
- package/dist/chunks/chunk-5KUUMQ3M.js +7 -0
- package/dist/chunks/chunk-5RMIM4S2.js +7 -0
- package/dist/chunks/chunk-5V53NA6C.js +7 -0
- package/dist/chunks/chunk-67GZ5REA.js +7 -0
- package/dist/chunks/chunk-6I6QJHCY.js +7 -0
- package/dist/chunks/chunk-6IDNVZZR.js +7 -0
- package/dist/chunks/chunk-6OVX3PWM.js +7 -0
- package/dist/chunks/chunk-6QKS6QK7.js +7 -0
- package/dist/chunks/chunk-6TXEVQA4.js +7 -0
- package/dist/chunks/chunk-6VH56CX2.js +19 -0
- package/dist/chunks/chunk-6Y2ZL5XJ.js +98 -0
- package/dist/chunks/chunk-6YXIWZ3X.js +25 -0
- package/dist/chunks/chunk-773GOZIR.js +13 -0
- package/dist/chunks/chunk-7E3WREH5.js +7 -0
- package/dist/chunks/chunk-7EJQLVWX.js +7 -0
- package/dist/chunks/chunk-7L2K4OKM.js +63 -0
- package/dist/chunks/chunk-7L5QUDUR.js +8 -0
- package/dist/chunks/chunk-7QAGSRCU.js +7 -0
- package/dist/chunks/chunk-7R6TRRG5.js +7 -0
- package/dist/chunks/chunk-7YKFF6CE.js +7 -0
- package/dist/chunks/chunk-A2RZZQEP.js +7 -0
- package/dist/chunks/chunk-ADLBLGT3.js +8 -0
- package/dist/chunks/chunk-AM46JVVN.js +7 -0
- package/dist/chunks/chunk-ANMDN3EG.js +9 -0
- package/dist/chunks/chunk-AYUUSAB7.js +7 -0
- package/dist/chunks/chunk-BLUPZPAS.js +7 -0
- package/dist/chunks/chunk-BPUANOGW.js +7 -0
- package/dist/chunks/chunk-BRQUZ5NC.js +7 -0
- package/dist/chunks/chunk-BS32OUOC.js +7 -0
- package/dist/chunks/chunk-BTI5TG6Q.js +7 -0
- package/dist/chunks/chunk-BUJITHGZ.js +8 -0
- package/dist/chunks/chunk-BVGGTBYE.js +7 -0
- package/dist/chunks/chunk-BVH2AEFE.js +7 -0
- package/dist/chunks/chunk-BZENIQ7N.js +7 -0
- package/dist/chunks/chunk-C6GY2G73.js +7 -0
- package/dist/chunks/chunk-C7FQMC6D.js +7 -0
- package/dist/chunks/chunk-CBVKB3DT.js +21 -0
- package/dist/chunks/chunk-CC6FLKIP.js +11 -0
- package/dist/chunks/chunk-COD3WAUI.js +7 -0
- package/dist/chunks/chunk-CR3NBTHV.js +7 -0
- package/dist/chunks/chunk-CWM2F235.js +7 -0
- package/dist/chunks/chunk-CZSOZKHX.js +7 -0
- package/dist/chunks/chunk-D3AHZ5LI.js +7 -0
- package/dist/chunks/chunk-D6REP5QQ.js +15 -0
- package/dist/chunks/chunk-DFVNL5ML.js +7 -0
- package/dist/chunks/chunk-DKJL2KV7.js +7 -0
- package/dist/chunks/chunk-DQ2SVW4R.js +12 -0
- package/dist/chunks/chunk-DWZBL4NK.js +7 -0
- package/dist/chunks/chunk-EAUDC24V.js +9 -0
- package/dist/chunks/chunk-EAXMWCOL.js +63 -0
- package/dist/chunks/chunk-ECEDD646.js +8 -0
- package/dist/chunks/chunk-ECQIO5K3.js +7 -0
- package/dist/chunks/chunk-EEUJLJEJ.js +7 -0
- package/dist/chunks/chunk-EGNR2DEI.js +7 -0
- package/dist/chunks/chunk-EISD3RG7.js +11 -0
- package/dist/chunks/chunk-EKZTFGDX.js +7 -0
- package/dist/chunks/chunk-ETV3C2CV.js +7 -0
- package/dist/chunks/chunk-EU2GBIPC.js +7 -0
- package/dist/chunks/chunk-F4KY2TOK.js +7 -0
- package/dist/chunks/chunk-F53OKXYI.js +7 -0
- package/dist/chunks/chunk-F6EBOT64.js +7 -0
- package/dist/chunks/chunk-F7AVGV4Y.js +7 -0
- package/dist/chunks/chunk-FBYA6LLM.js +7 -0
- package/dist/chunks/chunk-FGFLTLEA.js +7 -0
- package/dist/chunks/chunk-FHU2O7ZJ.js +8 -0
- package/dist/chunks/chunk-FLHO75XC.js +8 -0
- package/dist/chunks/chunk-FSPPKNKN.js +7 -0
- package/dist/chunks/chunk-FUX6LKNP.js +7 -0
- package/dist/chunks/chunk-GA277JFB.js +20 -0
- package/dist/chunks/chunk-GCZVIDNG.js +86 -0
- package/dist/chunks/chunk-GD7AV7BO.js +9 -0
- package/dist/chunks/chunk-GG5RME4X.js +7 -0
- package/dist/chunks/chunk-GHAY4PSD.js +7 -0
- package/dist/chunks/chunk-GYVJIIYL.js +7 -0
- package/dist/chunks/chunk-GZNDA6SV.js +8 -0
- package/dist/chunks/chunk-HCRD3JFL.js +7 -0
- package/dist/chunks/chunk-HEGJZJO7.js +7 -0
- package/dist/chunks/chunk-HRR57QNP.js +7 -0
- package/dist/chunks/chunk-HSFKISDH.js +9 -0
- package/dist/chunks/chunk-HTXDC7E2.js +10 -0
- package/dist/chunks/chunk-ID663OJ7.js +7 -0
- package/dist/chunks/chunk-IOZ3I765.js +7 -0
- package/dist/chunks/chunk-IQ7FPAI4.js +7 -0
- package/dist/chunks/chunk-IQKGQ2Y2.js +15 -0
- package/dist/chunks/chunk-ISWW3DKF.js +7 -0
- package/dist/chunks/chunk-IVSSTHB6.js +7 -0
- package/dist/chunks/chunk-J24BABG4.js +21 -0
- package/dist/chunks/chunk-JALVF3C2.js +7 -0
- package/dist/chunks/chunk-JELLVPCM.js +8 -0
- package/dist/chunks/chunk-JESNVRVR.js +7 -0
- package/dist/chunks/chunk-JLE7K4SY.js +9 -0
- package/dist/chunks/chunk-JLEJB6KM.js +7 -0
- package/dist/chunks/chunk-JP33AIDQ.js +7 -0
- package/dist/chunks/chunk-JRPNHWA3.js +7 -0
- package/dist/chunks/chunk-JUSR7V2L.js +7 -0
- package/dist/chunks/chunk-JWCEHQQF.js +29 -0
- package/dist/chunks/chunk-K5U47EVH.js +7 -0
- package/dist/chunks/chunk-KCKYPLIH.js +7 -0
- package/dist/chunks/chunk-KGBIRIFF.js +7 -0
- package/dist/chunks/chunk-KJA2GKPT.js +7 -0
- package/dist/chunks/chunk-KPQLUGFI.js +32 -0
- package/dist/chunks/chunk-KQCFC2JL.js +7 -0
- package/dist/chunks/chunk-KQCROPL3.js +8 -0
- package/dist/chunks/chunk-KRPY5FHJ.js +7 -0
- package/dist/chunks/chunk-KW6GSQXV.js +7 -0
- package/dist/chunks/chunk-KY335KWI.js +7 -0
- package/dist/chunks/chunk-L3JYCXVB.js +23 -0
- package/dist/chunks/chunk-LFOWP74R.js +7 -0
- package/dist/chunks/chunk-LOBA3E72.js +7 -0
- package/dist/chunks/chunk-LQVSU5HR.js +7 -0
- package/dist/chunks/chunk-LSF7FY6X.js +7 -0
- package/dist/chunks/chunk-LSQREJXO.js +11 -0
- package/dist/chunks/chunk-LW4N3CW6.js +9 -0
- package/dist/chunks/chunk-M2NXKZKX.js +16 -0
- package/dist/chunks/chunk-MBEKRUTQ.js +8 -0
- package/dist/chunks/chunk-MCRKBVZA.js +7 -0
- package/dist/chunks/chunk-MVGTMPMI.js +23 -0
- package/dist/chunks/chunk-MXTC4ZAQ.js +7 -0
- package/dist/chunks/chunk-N2FLYCCO.js +9 -0
- package/dist/chunks/chunk-N6JBQMOF.js +20 -0
- package/dist/chunks/chunk-NAX6IARA.js +11 -0
- package/dist/chunks/chunk-NB2WLB3J.js +12 -0
- package/dist/chunks/chunk-NGKO2OOU.js +8 -0
- package/dist/chunks/chunk-NW7WWUCQ.js +9 -0
- package/dist/chunks/chunk-NWGBDBZI.js +7 -0
- package/dist/chunks/chunk-NZ2TFADV.js +7 -0
- package/dist/chunks/chunk-O4WNSKQR.js +15 -0
- package/dist/chunks/chunk-O72YDZKD.js +10 -0
- package/dist/chunks/chunk-OAM5NJCU.js +9 -0
- package/dist/chunks/chunk-OCR5CRTH.js +10 -0
- package/dist/chunks/chunk-OFDTADPQ.js +7 -0
- package/dist/chunks/chunk-OHEOYFBU.js +9 -0
- package/dist/chunks/chunk-OO572JUC.js +7 -0
- package/dist/chunks/chunk-OPORM35X.js +7 -0
- package/dist/chunks/chunk-OZCQTXI4.js +7 -0
- package/dist/chunks/chunk-PADL3C6Z.js +7 -0
- package/dist/chunks/chunk-PFD7LETF.js +7 -0
- package/dist/chunks/chunk-PFPJLIFF.js +33 -0
- package/dist/chunks/chunk-PSOVLGHP.js +7 -0
- package/dist/chunks/chunk-PUKYAALC.js +7 -0
- package/dist/chunks/chunk-PVASGBEF.js +7 -0
- package/dist/chunks/chunk-Q4KTAQB3.js +7 -0
- package/dist/chunks/chunk-Q5ODLDCU.js +7 -0
- package/dist/chunks/chunk-Q7D7RGXM.js +7 -0
- package/dist/chunks/chunk-QB7F3UAP.js +7 -0
- package/dist/chunks/chunk-QHJLRTVY.js +7 -0
- package/dist/chunks/chunk-QIVX6SCR.js +27 -0
- package/dist/chunks/chunk-QVHXFHBV.js +14 -0
- package/dist/chunks/chunk-QVXS234E.js +7 -0
- package/dist/chunks/chunk-QVZAAMGQ.js +39 -0
- package/dist/chunks/chunk-R2BUF6Z7.js +7 -0
- package/dist/chunks/chunk-R2XHJDAP.js +7 -0
- package/dist/chunks/chunk-R6BEOVTU.js +7 -0
- package/dist/chunks/chunk-RLKS5G6C.js +12 -0
- package/dist/chunks/chunk-RM3ZDRYE.js +7 -0
- package/dist/chunks/chunk-RMZTB2IU.js +7 -0
- package/dist/chunks/chunk-RRDNKB2X.js +7 -0
- package/dist/chunks/chunk-RW3X523R.js +8 -0
- package/dist/chunks/chunk-S3L2OHPO.js +7 -0
- package/dist/chunks/chunk-SACGQMVQ.js +13 -0
- package/dist/chunks/chunk-SCV7XEEO.js +7 -0
- package/dist/chunks/chunk-SF4E3AQ3.js +7 -0
- package/dist/chunks/chunk-SLGUYM42.js +10 -0
- package/dist/chunks/chunk-SYFG2RM6.js +10 -0
- package/dist/chunks/chunk-T6243EDS.js +7 -0
- package/dist/chunks/chunk-TAAWMNNL.js +7 -0
- package/dist/chunks/chunk-TAISZMA2.js +7 -0
- package/dist/chunks/chunk-TEYREL44.js +7 -0
- package/dist/chunks/chunk-TG2RCYTH.js +7 -0
- package/dist/chunks/chunk-TIPQQ4TG.js +17 -0
- package/dist/chunks/chunk-U2OBPULW.js +7 -0
- package/dist/chunks/chunk-U4Z2MMOF.js +301 -0
- package/dist/chunks/chunk-U56NHYAH.js +7 -0
- package/dist/chunks/chunk-UGNIIDHR.js +32 -0
- package/dist/chunks/chunk-UHBMX3OK.js +7 -0
- package/dist/chunks/chunk-UVHKXCR5.js +11 -0
- package/dist/chunks/chunk-V6Y6UK6B.js +43 -0
- package/dist/chunks/chunk-VNIKIQVE.js +10 -0
- package/dist/chunks/chunk-VT6RIZJH.js +7 -0
- package/dist/chunks/chunk-WDXW6A4H.js +10 -0
- package/dist/chunks/chunk-WEH6XC4Y.js +22 -0
- package/dist/chunks/chunk-WKZ6JSGZ.js +7 -0
- package/dist/chunks/chunk-WVHCBDTB.js +7 -0
- package/dist/chunks/chunk-XC46OAAT.js +9 -0
- package/dist/chunks/chunk-XGTKHQTT.js +7 -0
- package/dist/chunks/chunk-XOETL6DB.js +96 -0
- package/dist/chunks/chunk-XP3FT56R.js +27 -0
- package/dist/chunks/chunk-XR6QY7RR.js +7 -0
- package/dist/chunks/chunk-XVDRGWXM.js +16 -0
- package/dist/chunks/chunk-Y5ZMKL7E.js +7 -0
- package/dist/chunks/chunk-YEZJNXQX.js +7 -0
- package/dist/chunks/chunk-YHPPP3SF.js +7 -0
- package/dist/chunks/chunk-YHULP2KK.js +7 -0
- package/dist/chunks/chunk-YMZ6WBKB.js +21 -0
- package/dist/chunks/chunk-ZF27J6FQ.js +7 -0
- package/dist/chunks/chunk-ZFRNVIHI.js +7 -0
- package/dist/chunks/chunk-ZN6CQWVP.js +7 -0
- package/dist/chunks/chunk-ZQBSAMFL.js +24 -0
- package/dist/chunks/cjs-2SMN43VH.js +54 -0
- package/dist/chunks/clear-FKVWDCVA.js +8 -0
- package/dist/chunks/compile-vercel-config-GWAJE44R.js +7 -0
- package/dist/chunks/config-5WVLG5SE.js +8 -0
- package/dist/chunks/config-RMOHN5YT.js +7 -0
- package/dist/chunks/config-validator.mjs +1 -0
- package/dist/chunks/connect-git-provider-FS5Q2HO4.js +7 -0
- package/dist/chunks/constants-JAB7MRSK.js +7 -0
- package/dist/chunks/create-project-IKCB6MB2.js +7 -0
- package/dist/chunks/delete-5WMB4WFR.js +9 -0
- package/dist/chunks/delete-EM4JZPFA.js +10 -0
- package/dist/chunks/detect-projects-OD4JEAW2.js +7 -0
- package/dist/chunks/detect-services-BSJGB4RM.js +7 -0
- package/dist/chunks/disable-QOM7UHQC.js +7 -0
- package/dist/chunks/discard-L5ZH7P5B.js +14 -0
- package/dist/chunks/dist-33WTJLVQ.js +7 -0
- package/dist/chunks/dist-RXYNZPEA.js +7 -0
- package/dist/chunks/edit-F3VJGCG2.js +9 -0
- package/dist/chunks/edit-TM7YCWBU.js +8 -0
- package/dist/chunks/enable-72C3QX34.js +7 -0
- package/dist/chunks/esm-33752ISR.js +7 -0
- package/dist/chunks/esm-4JKEE7PC.js +7 -0
- package/dist/chunks/esm-BYG5BWYH.js +9 -0
- package/dist/chunks/esm-DFFBNKNU.js +20 -0
- package/dist/chunks/esm-IF453UWS.js +7 -0
- package/dist/chunks/esm-LABWDJ72.js +7 -0
- package/dist/chunks/esm-TG37FXTU.js +9 -0
- package/dist/chunks/exec-OZSY46V6.js +16372 -0
- package/dist/chunks/export-EPLYZF2Q.js +19 -0
- package/dist/chunks/fetch-proxy-45DGILKR.js +67 -0
- package/dist/chunks/future-V77DRMQG.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-Y3YHBMPU.js +7 -0
- package/dist/chunks/image-CVXEXU5R.js +7 -0
- package/dist/chunks/import-builders-PGRKJOOE.js +7 -0
- package/dist/chunks/inspect-BTRNXRJT.js +9 -0
- package/dist/chunks/inspect-CZ7WXYE5.js +20 -0
- package/dist/chunks/inspect-FGDVWAQP.js +13 -0
- package/dist/chunks/inspect-HFDGZNWC.js +15 -0
- package/dist/chunks/inspect-T2AIREYK.js +19 -0
- package/dist/chunks/list-CKRRHAOE.js +12 -0
- package/dist/chunks/list-FLREMGJR.js +16 -0
- package/dist/chunks/list-ON4YTQRN.js +10 -0
- package/dist/chunks/login-55LJ5ZA6.js +9 -0
- package/dist/chunks/login-DQRZSD4Z.js +7 -0
- package/dist/chunks/logs-2HQXWOHM.js +7 -0
- package/dist/chunks/ls-2HUJHVLA.js +12 -0
- package/dist/chunks/ls-3DVM5HLK.js +12 -0
- package/dist/chunks/ls-4B3QYHCI.js +8 -0
- package/dist/chunks/ls-A7K4XDQB.js +8 -0
- package/dist/chunks/ls-FK5XEJEU.js +12 -0
- package/dist/chunks/ls-QGUKJJY5.js +12 -0
- package/dist/chunks/ls-VTKHPDWS.js +11 -0
- package/dist/chunks/mutate-7ADZBCZM.js +9 -0
- package/dist/chunks/notifications-XZJXE2K4.js +7 -0
- package/dist/chunks/open-EE5IZQD7.js +7 -0
- package/dist/chunks/openapi-QBX62ZXC.js +7 -0
- package/dist/chunks/permissions-VYJ4LL5R.js +7 -0
- package/dist/chunks/pkg-EDJQLCNP.js +7 -0
- package/dist/chunks/plugin-offer-TEGYA3TA.js +9 -0
- package/dist/chunks/prompt-missing-credentials-VP6OVCFM.js +7 -0
- package/dist/chunks/publish-2HEK5UMJ.js +15 -0
- package/dist/chunks/pull-WRTTSY7J.js +7 -0
- package/dist/chunks/purchase-domain-if-available-6S3NLTUI.js +7 -0
- package/dist/chunks/push-L3QRGGLC.js +7 -0
- package/dist/chunks/query-FXXLX6UB.js +12 -0
- package/dist/chunks/reauthenticate-IXQDC4UZ.js +7 -0
- package/dist/chunks/reorder-B4OXSYCI.js +10 -0
- package/dist/chunks/reply-F637K6XH.js +9 -0
- package/dist/chunks/repo-info-to-url-XQSULSEO.js +7 -0
- package/dist/chunks/resolve-E3F6NYQZ.js +12 -0
- package/dist/chunks/resolve-agent-team-EIPCH766.js +7 -0
- package/dist/chunks/resolve-deployment-framework-preset-AXXYBFCL.js +7 -0
- package/dist/chunks/restore-Q25KRZPH.js +16 -0
- package/dist/chunks/rm-FWD2NUGX.js +8 -0
- package/dist/chunks/rm-JMQ4QKCC.js +8 -0
- package/dist/chunks/rm-PPG7P3GN.js +8 -0
- package/dist/chunks/rm-SH3DYKNS.js +8 -0
- package/dist/chunks/rm-UEBLKFVC.js +8 -0
- package/dist/chunks/routes-PKTWMDWQ.js +7 -0
- package/dist/chunks/rule-inspect-LKQA5I4V.js +8 -0
- package/dist/chunks/schema-FBV42W7N.js +14 -0
- package/dist/chunks/schema-ZWE5MNMG.js +44 -0
- package/dist/chunks/select-org-WMB752Z6.js +7 -0
- package/dist/chunks/set-UTYIPOLC.js +7 -0
- package/dist/chunks/setup-and-link-ZLY5XQW5.js +7 -0
- package/dist/chunks/skills-RKIGVVNM.js +590 -0
- package/dist/chunks/slugify-NMMUASYK.js +7 -0
- package/dist/chunks/stamp-TKONNIJ5.js +7 -0
- package/dist/chunks/tags-UCLZ5UMX.js +7 -0
- package/dist/chunks/token-W6P2KNI5.js +7 -0
- package/dist/chunks/token-util-JDQI37VN.js +7 -0
- package/dist/chunks/types-YM7TMHXW.js +14 -0
- package/dist/chunks/update-BGDQ5TXO.js +8 -0
- package/dist/chunks/update-route-version-KWK5S4UW.js +7 -0
- package/dist/chunks/utils-IQZEE4DT.js +86 -0
- package/dist/chunks/vlt-builder-graph-XL2XRO4V.js +7 -0
- package/dist/chunks/vlt-builder-importer-RBUPAB6J.js +11 -0
- package/dist/chunks/zod-2C2SXNIK.js +7 -0
- package/dist/commands/build/builder-worker.cjs +281 -0
- package/dist/commands/build/index.js +34 -0
- package/dist/commands/deploy/index.js +72 -0
- package/dist/commands/dev/builder-worker.cjs +110 -0
- package/dist/commands/dev/index.js +157 -0
- package/dist/commands/env/index.js +40 -0
- package/dist/commands/link/index.js +10 -0
- package/dist/commands/list/index.js +14 -0
- package/dist/commands/project/index.js +113 -0
- package/dist/commands-account.js +209 -0
- package/dist/commands-ai.js +200 -0
- package/dist/commands-blob.js +107 -0
- package/dist/commands-core.js +222 -0
- package/dist/commands-deployments.js +84 -0
- package/dist/commands-flags.js +377 -0
- package/dist/commands-integrations.js +143 -0
- package/dist/commands-observability.js +122 -0
- package/dist/commands-routing.js +273 -0
- package/dist/fetch-dist-tags.cjs +60 -0
- package/dist/get-latest-worker.cjs +222 -0
- package/dist/help.js +7 -0
- package/dist/index.js +27 -0
- package/dist/internal-build-worker.js +10 -0
- package/dist/internal-build.js +11 -0
- package/dist/package.json +264 -0
- package/dist/root-help-commands.mjs +1 -0
- package/dist/runtime-assets/dev-tunnel/api/tunnel.ts +443 -0
- package/dist/runtime-assets/dev-tunnel/lib/env.ts +25 -0
- package/dist/runtime-assets/dev-tunnel/lib/tunnel_pb.ts +505 -0
- package/dist/runtime-assets/node-preloads/next-dev-websocket.cjs +220 -0
- package/dist/vc.js +404 -0
- package/dist/version.mjs +2 -0
- package/package.json +224 -14
- package/index.js +0 -1
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import{__esm}from"./chunk-BZENIQ7N.js";function getLineColFromPtr(string,ptr){let lines=string.slice(0,ptr).split(/\r\n|\n|\r/g);return[lines.length,lines.pop().length+1]}function makeCodeBlock(string,line,column){let lines=string.split(/\r\n|\n|\r/g),codeblock="",numberLen=(Math.log10(line+1)|0)+1;for(let i=line-1;i<=line+1;i++){let l=lines[i-1];l&&(codeblock+=i.toString().padEnd(numberLen," "),codeblock+=": ",codeblock+=l,codeblock+=`
|
|
8
|
+
`,i===line&&(codeblock+=" ".repeat(numberLen+column+2),codeblock+=`^
|
|
9
|
+
`))}return codeblock}var TomlError,init_error=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/error.js"(){TomlError=class extends Error{line;column;codeblock;constructor(message,options){let[line,column]=getLineColFromPtr(options.toml,options.ptr),codeblock=makeCodeBlock(options.toml,line,column);super(`Invalid TOML document: ${message}
|
|
10
|
+
|
|
11
|
+
${codeblock}`,options),this.line=line,this.column=column,this.codeblock=codeblock}}}});function isEscaped(str,ptr){let i=0;for(;str[ptr-++i]==="\\";);return--i&&i%2}function indexOfNewline(str,start=0,end=str.length){let idx=str.indexOf(`
|
|
12
|
+
`,start);return str[idx-1]==="\r"&&idx--,idx<=end?idx:-1}function skipComment(str,ptr){for(let i=ptr;i<str.length;i++){let c=str[i];if(c===`
|
|
13
|
+
`)return i;if(c==="\r"&&str[i+1]===`
|
|
14
|
+
`)return i+1;if(c<" "&&c!==" "||c==="\x7F")throw new TomlError("control characters are not allowed in comments",{toml:str,ptr})}return str.length}function skipVoid(str,ptr,banNewLines,banComments){let c;for(;(c=str[ptr])===" "||c===" "||!banNewLines&&(c===`
|
|
15
|
+
`||c==="\r"&&str[ptr+1]===`
|
|
16
|
+
`);)ptr++;return banComments||c!=="#"?ptr:skipVoid(str,skipComment(str,ptr),banNewLines)}function skipUntil(str,ptr,sep,end,banNewLines=!1){if(!end)return ptr=indexOfNewline(str,ptr),ptr<0?str.length:ptr;for(let i=ptr;i<str.length;i++){let c=str[i];if(c==="#")i=indexOfNewline(str,i);else{if(c===sep)return i+1;if(c===end||banNewLines&&(c===`
|
|
17
|
+
`||c==="\r"&&str[i+1]===`
|
|
18
|
+
`))return i}}throw new TomlError("cannot find end of structure",{toml:str,ptr})}function getStringEnd(str,seek){let first=str[seek],target=first===str[seek+1]&&str[seek+1]===str[seek+2]?str.slice(seek,seek+3):first;seek+=target.length-1;do seek=str.indexOf(target,++seek);while(seek>-1&&first!=="'"&&isEscaped(str,seek));return seek>-1&&(seek+=target.length,target.length>1&&(str[seek]===first&&seek++,str[seek]===first&&seek++)),seek}var init_util=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/util.js"(){init_error();}});var DATE_TIME_RE,TomlDate,init_date=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/date.js"(){DATE_TIME_RE=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i,TomlDate=class _TomlDate extends Date{#hasDate=!1;#hasTime=!1;#offset=null;constructor(date){let hasDate=!0,hasTime=!0,offset="Z";if(typeof date=="string"){let match=date.match(DATE_TIME_RE);match?(match[1]||(hasDate=!1,date=`0000-01-01T${date}`),hasTime=!!match[2],hasTime&&date[10]===" "&&(date=date.replace(" ","T")),match[2]&&+match[2]>23?date="":(offset=match[3]||null,date=date.toUpperCase(),!offset&&hasTime&&(date+="Z"))):date=""}super(date),isNaN(this.getTime())||(this.#hasDate=hasDate,this.#hasTime=hasTime,this.#offset=offset)}isDateTime(){return this.#hasDate&&this.#hasTime}isLocal(){return!this.#hasDate||!this.#hasTime||!this.#offset}isDate(){return this.#hasDate&&!this.#hasTime}isTime(){return this.#hasTime&&!this.#hasDate}isValid(){return this.#hasDate||this.#hasTime}toISOString(){let iso=super.toISOString();if(this.isDate())return iso.slice(0,10);if(this.isTime())return iso.slice(11,23);if(this.#offset===null)return iso.slice(0,-1);if(this.#offset==="Z")return iso;let offset=+this.#offset.slice(1,3)*60+ +this.#offset.slice(4,6);return offset=this.#offset[0]==="-"?offset:-offset,new Date(this.getTime()-offset*6e4).toISOString().slice(0,-1)+this.#offset}static wrapAsOffsetDateTime(jsDate,offset="Z"){let date=new _TomlDate(jsDate);return date.#offset=offset,date}static wrapAsLocalDateTime(jsDate){let date=new _TomlDate(jsDate);return date.#offset=null,date}static wrapAsLocalDate(jsDate){let date=new _TomlDate(jsDate);return date.#hasTime=!1,date.#offset=null,date}static wrapAsLocalTime(jsDate){let date=new _TomlDate(jsDate);return date.#hasDate=!1,date.#offset=null,date}}}});function parseString(str,ptr=0,endPtr=str.length){let isLiteral=str[ptr]==="'",isMultiline=str[ptr++]===str[ptr]&&str[ptr]===str[ptr+1];isMultiline&&(endPtr-=2,str[ptr+=2]==="\r"&&ptr++,str[ptr]===`
|
|
19
|
+
`&&ptr++);let tmp=0,isEscape,parsed="",sliceStart=ptr;for(;ptr<endPtr-1;){let c=str[ptr++];if(c===`
|
|
20
|
+
`||c==="\r"&&str[ptr]===`
|
|
21
|
+
`){if(!isMultiline)throw new TomlError("newlines are not allowed in strings",{toml:str,ptr:ptr-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new TomlError("control characters are not allowed in strings",{toml:str,ptr:ptr-1});if(isEscape){if(isEscape=!1,c==="u"||c==="U"){let code=str.slice(ptr,ptr+=c==="u"?4:8);if(!ESCAPE_REGEX.test(code))throw new TomlError("invalid unicode escape",{toml:str,ptr:tmp});try{parsed+=String.fromCodePoint(parseInt(code,16))}catch{throw new TomlError("invalid unicode escape",{toml:str,ptr:tmp})}}else if(isMultiline&&(c===`
|
|
22
|
+
`||c===" "||c===" "||c==="\r")){if(ptr=skipVoid(str,ptr-1,!0),str[ptr]!==`
|
|
23
|
+
`&&str[ptr]!=="\r")throw new TomlError("invalid escape: only line-ending whitespace may be escaped",{toml:str,ptr:tmp});ptr=skipVoid(str,ptr)}else if(c in ESC_MAP)parsed+=ESC_MAP[c];else throw new TomlError("unrecognized escape sequence",{toml:str,ptr:tmp});sliceStart=ptr}else!isLiteral&&c==="\\"&&(tmp=ptr-1,isEscape=!0,parsed+=str.slice(sliceStart,tmp))}return parsed+str.slice(sliceStart,endPtr-1)}function parseValue(value,toml,ptr,integersAsBigInt){if(value==="true")return!0;if(value==="false")return!1;if(value==="-inf")return-1/0;if(value==="inf"||value==="+inf")return 1/0;if(value==="nan"||value==="+nan"||value==="-nan")return NaN;if(value==="-0")return integersAsBigInt?0n:0;let isInt=INT_REGEX.test(value);if(isInt||FLOAT_REGEX.test(value)){if(LEADING_ZERO.test(value))throw new TomlError("leading zeroes are not allowed",{toml,ptr});value=value.replace(/_/g,"");let numeric=+value;if(isNaN(numeric))throw new TomlError("invalid number",{toml,ptr});if(isInt){if((isInt=!Number.isSafeInteger(numeric))&&!integersAsBigInt)throw new TomlError("integer value cannot be represented losslessly",{toml,ptr});(isInt||integersAsBigInt===!0)&&(numeric=BigInt(value))}return numeric}let date=new TomlDate(value);if(!date.isValid())throw new TomlError("invalid value",{toml,ptr});return date}var INT_REGEX,FLOAT_REGEX,LEADING_ZERO,ESCAPE_REGEX,ESC_MAP,init_primitive=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/primitive.js"(){init_util();init_date();init_error();INT_REGEX=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,FLOAT_REGEX=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,LEADING_ZERO=/^[+-]?0[0-9_]/,ESCAPE_REGEX=/^[0-9a-f]{4,8}$/i,ESC_MAP={b:"\b",t:" ",n:`
|
|
24
|
+
`,f:"\f",r:"\r",'"':'"',"\\":"\\"}}});function sliceAndTrimEndOf(str,startPtr,endPtr,allowNewLines){let value=str.slice(startPtr,endPtr),commentIdx=value.indexOf("#");commentIdx>-1&&(skipComment(str,commentIdx),value=value.slice(0,commentIdx));let trimmed=value.trimEnd();if(!allowNewLines){let newlineIdx=value.indexOf(`
|
|
25
|
+
`,trimmed.length);if(newlineIdx>-1)throw new TomlError("newlines are not allowed in inline tables",{toml:str,ptr:startPtr+newlineIdx})}return[trimmed,commentIdx]}function extractValue(str,ptr,end,depth,integersAsBigInt){if(depth===0)throw new TomlError("document contains excessively nested structures. aborting.",{toml:str,ptr});let c=str[ptr];if(c==="["||c==="{"){let[value,endPtr2]=c==="["?parseArray(str,ptr,depth,integersAsBigInt):parseInlineTable(str,ptr,depth,integersAsBigInt),newPtr=end?skipUntil(str,endPtr2,",",end):endPtr2;if(endPtr2-newPtr&&end==="}"){let nextNewLine=indexOfNewline(str,endPtr2,newPtr);if(nextNewLine>-1)throw new TomlError("newlines are not allowed in inline tables",{toml:str,ptr:nextNewLine})}return[value,newPtr]}let endPtr;if(c==='"'||c==="'"){endPtr=getStringEnd(str,ptr);let parsed=parseString(str,ptr,endPtr);if(end){if(endPtr=skipVoid(str,endPtr,end!=="]"),str[endPtr]&&str[endPtr]!==","&&str[endPtr]!==end&&str[endPtr]!==`
|
|
26
|
+
`&&str[endPtr]!=="\r")throw new TomlError("unexpected character encountered",{toml:str,ptr:endPtr});endPtr+=+(str[endPtr]===",")}return[parsed,endPtr]}endPtr=skipUntil(str,ptr,",",end);let slice=sliceAndTrimEndOf(str,ptr,endPtr-+(str[endPtr-1]===","),end==="]");if(!slice[0])throw new TomlError("incomplete key-value declaration: no value specified",{toml:str,ptr});return end&&slice[1]>-1&&(endPtr=skipVoid(str,ptr+slice[1]),endPtr+=+(str[endPtr]===",")),[parseValue(slice[0],str,ptr,integersAsBigInt),endPtr]}var init_extract=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/extract.js"(){init_primitive();init_struct();init_util();init_error();}});function parseKey(str,ptr,end="="){let dot=ptr-1,parsed=[],endPtr=str.indexOf(end,ptr);if(endPtr<0)throw new TomlError("incomplete key-value: cannot find end of key",{toml:str,ptr});do{let c=str[ptr=++dot];if(c!==" "&&c!==" ")if(c==='"'||c==="'"){if(c===str[ptr+1]&&c===str[ptr+2])throw new TomlError("multiline strings are not allowed in keys",{toml:str,ptr});let eos=getStringEnd(str,ptr);if(eos<0)throw new TomlError("unfinished string encountered",{toml:str,ptr});dot=str.indexOf(".",eos);let strEnd=str.slice(eos,dot<0||dot>endPtr?endPtr:dot),newLine=indexOfNewline(strEnd);if(newLine>-1)throw new TomlError("newlines are not allowed in keys",{toml:str,ptr:ptr+dot+newLine});if(strEnd.trimStart())throw new TomlError("found extra tokens after the string part",{toml:str,ptr:eos});if(endPtr<eos&&(endPtr=str.indexOf(end,eos),endPtr<0))throw new TomlError("incomplete key-value: cannot find end of key",{toml:str,ptr});parsed.push(parseString(str,ptr,eos))}else{dot=str.indexOf(".",ptr);let part=str.slice(ptr,dot<0||dot>endPtr?endPtr:dot);if(!KEY_PART_RE.test(part))throw new TomlError("only letter, numbers, dashes and underscores are allowed in keys",{toml:str,ptr});parsed.push(part.trimEnd())}}while(dot+1&&dot<endPtr);return[parsed,skipVoid(str,endPtr+1,!0,!0)]}function parseInlineTable(str,ptr,depth,integersAsBigInt){let res={},seen=new Set,c,comma=0;for(ptr++;(c=str[ptr++])!=="}"&&c;){let err={toml:str,ptr:ptr-1};if(c===`
|
|
27
|
+
`)throw new TomlError("newlines are not allowed in inline tables",err);if(c==="#")throw new TomlError("inline tables cannot contain comments",err);if(c===",")throw new TomlError("expected key-value, found comma",err);if(c!==" "&&c!==" "){let k,t=res,hasOwn=!1,[key,keyEndPtr]=parseKey(str,ptr-1);for(let i=0;i<key.length;i++){if(i&&(t=hasOwn?t[k]:t[k]={}),k=key[i],(hasOwn=Object.hasOwn(t,k))&&(typeof t[k]!="object"||seen.has(t[k])))throw new TomlError("trying to redefine an already defined value",{toml:str,ptr});!hasOwn&&k==="__proto__"&&Object.defineProperty(t,k,{enumerable:!0,configurable:!0,writable:!0})}if(hasOwn)throw new TomlError("trying to redefine an already defined value",{toml:str,ptr});let[value,valueEndPtr]=extractValue(str,keyEndPtr,"}",depth-1,integersAsBigInt);seen.add(value),t[k]=value,ptr=valueEndPtr,comma=str[ptr-1]===","?ptr-1:0}}if(comma)throw new TomlError("trailing commas are not allowed in inline tables",{toml:str,ptr:comma});if(!c)throw new TomlError("unfinished table encountered",{toml:str,ptr});return[res,ptr]}function parseArray(str,ptr,depth,integersAsBigInt){let res=[],c;for(ptr++;(c=str[ptr++])!=="]"&&c;){if(c===",")throw new TomlError("expected value, found comma",{toml:str,ptr:ptr-1});if(c==="#")ptr=skipComment(str,ptr);else if(c!==" "&&c!==" "&&c!==`
|
|
28
|
+
`&&c!=="\r"){let e=extractValue(str,ptr-1,"]",depth-1,integersAsBigInt);res.push(e[0]),ptr=e[1]}}if(!c)throw new TomlError("unfinished array encountered",{toml:str,ptr});return[res,ptr]}var KEY_PART_RE,init_struct=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/struct.js"(){init_primitive();init_extract();init_util();init_error();KEY_PART_RE=/^[a-zA-Z0-9-_]+[ \t]*$/}});function peekTable(key,table,meta,type){let t=table,m=meta,k,hasOwn=!1,state;for(let i=0;i<key.length;i++){if(i){if(t=hasOwn?t[k]:t[k]={},m=(state=m[k]).c,type===0&&(state.t===1||state.t===2))return null;if(state.t===2){let l=t.length-1;t=t[l],m=m[l].c}}if(k=key[i],(hasOwn=Object.hasOwn(t,k))&&m[k]?.t===0&&m[k]?.d)return null;hasOwn||(k==="__proto__"&&(Object.defineProperty(t,k,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(m,k,{enumerable:!0,configurable:!0,writable:!0})),m[k]={t:i<key.length-1&&type===2?3:type,d:!1,i:0,c:{}})}if(state=m[k],state.t!==type&&!(type===1&&state.t===3)||(type===2&&(state.d||(state.d=!0,t[k]=[]),t[k].push(t={}),state.c[state.i++]=state={t:1,d:!1,i:0,c:{}}),state.d))return null;if(state.d=!0,type===1)t=hasOwn?t[k]:t[k]={};else if(type===0&&hasOwn)return null;return[k,t,state.c]}function parse(toml,{maxDepth=1e3,integersAsBigInt}={}){let res={},meta={},tbl=res,m=meta;for(let ptr=skipVoid(toml,0);ptr<toml.length;){if(toml[ptr]==="["){let isTableArray=toml[++ptr]==="[",k=parseKey(toml,ptr+=+isTableArray,"]");if(isTableArray){if(toml[k[1]-1]!=="]")throw new TomlError("expected end of table declaration",{toml,ptr:k[1]-1});k[1]++}let p=peekTable(k[0],res,meta,isTableArray?2:1);if(!p)throw new TomlError("trying to redefine an already defined table or value",{toml,ptr});m=p[2],tbl=p[1],ptr=k[1]}else{let k=parseKey(toml,ptr),p=peekTable(k[0],tbl,m,0);if(!p)throw new TomlError("trying to redefine an already defined table or value",{toml,ptr});let v=extractValue(toml,k[1],void 0,maxDepth,integersAsBigInt);p[1][p[0]]=v[0],ptr=v[1]}if(ptr=skipVoid(toml,ptr,!0),toml[ptr]&&toml[ptr]!==`
|
|
29
|
+
`&&toml[ptr]!=="\r")throw new TomlError("each key-value declaration must be followed by an end-of-line",{toml,ptr});ptr=skipVoid(toml,ptr)}return res}var init_parse=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/parse.js"(){init_struct();init_extract();init_util();init_error();}});function extendedTypeOf(obj){let type=typeof obj;if(type==="object"){if(Array.isArray(obj))return"array";if(obj instanceof Date)return"date"}return type}function isArrayOfTables(obj){for(let i=0;i<obj.length;i++)if(extendedTypeOf(obj[i])!=="object")return!1;return obj.length!=0}function formatString(s){return JSON.stringify(s).replace(/\x7f/g,"\\u007f")}function stringifyValue(val,type,depth,numberAsFloat){if(depth===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(type==="number")return isNaN(val)?"nan":val===1/0?"inf":val===-1/0?"-inf":numberAsFloat&&Number.isInteger(val)?val.toFixed(1):val.toString();if(type==="bigint"||type==="boolean")return val.toString();if(type==="string")return formatString(val);if(type==="date"){if(isNaN(val.getTime()))throw new TypeError("cannot serialize invalid date");return val.toISOString()}if(type==="object")return stringifyInlineTable(val,depth,numberAsFloat);if(type==="array")return stringifyArray(val,depth,numberAsFloat)}function stringifyInlineTable(obj,depth,numberAsFloat){let keys=Object.keys(obj);if(keys.length===0)return"{}";let res="{ ";for(let i=0;i<keys.length;i++){let k=keys[i];i&&(res+=", "),res+=BARE_KEY.test(k)?k:formatString(k),res+=" = ",res+=stringifyValue(obj[k],extendedTypeOf(obj[k]),depth-1,numberAsFloat)}return res+" }"}function stringifyArray(array,depth,numberAsFloat){if(array.length===0)return"[]";let res="[ ";for(let i=0;i<array.length;i++){if(i&&(res+=", "),array[i]===null||array[i]===void 0)throw new TypeError("arrays cannot contain null or undefined values");res+=stringifyValue(array[i],extendedTypeOf(array[i]),depth-1,numberAsFloat)}return res+" ]"}function stringifyArrayTable(array,key,depth,numberAsFloat){if(depth===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let res="";for(let i=0;i<array.length;i++)res+=`${res&&`
|
|
30
|
+
`}[[${key}]]
|
|
31
|
+
`,res+=stringifyTable(0,array[i],key,depth,numberAsFloat);return res}function stringifyTable(tableKey,obj,prefix,depth,numberAsFloat){if(depth===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let preamble="",tables="",keys=Object.keys(obj);for(let i=0;i<keys.length;i++){let k=keys[i];if(obj[k]!==null&&obj[k]!==void 0){let type=extendedTypeOf(obj[k]);if(type==="symbol"||type==="function")throw new TypeError(`cannot serialize values of type '${type}'`);let key=BARE_KEY.test(k)?k:formatString(k);if(type==="array"&&isArrayOfTables(obj[k]))tables+=(tables&&`
|
|
32
|
+
`)+stringifyArrayTable(obj[k],prefix?`${prefix}.${key}`:key,depth-1,numberAsFloat);else if(type==="object"){let tblKey=prefix?`${prefix}.${key}`:key;tables+=(tables&&`
|
|
33
|
+
`)+stringifyTable(tblKey,obj[k],tblKey,depth-1,numberAsFloat)}else preamble+=key,preamble+=" = ",preamble+=stringifyValue(obj[k],type,depth,numberAsFloat),preamble+=`
|
|
34
|
+
`}}return tableKey&&(preamble||!tables)&&(preamble=preamble?`[${tableKey}]
|
|
35
|
+
${preamble}`:`[${tableKey}]`),preamble&&tables?`${preamble}
|
|
36
|
+
${tables}`:preamble||tables}function stringify(obj,{maxDepth=1e3,numbersAsFloat=!1}={}){if(extendedTypeOf(obj)!=="object")throw new TypeError("stringify can only be called with an object");let str=stringifyTable(0,obj,"",maxDepth,numbersAsFloat);return str[str.length-1]!==`
|
|
37
|
+
`?str+`
|
|
38
|
+
`:str}var BARE_KEY,init_stringify=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/stringify.js"(){BARE_KEY=/^[a-z0-9-_]+$/i}});var dist_default,init_dist=__esm({"../../node_modules/.pnpm/smol-toml@1.5.2/node_modules/smol-toml/dist/index.js"(){init_parse();init_stringify();init_date();init_error();dist_default={parse,stringify,TomlDate,TomlError}}});export{TomlError,TomlDate,parse,stringify,dist_default,init_dist};
|
|
39
|
+
/*! Bundled license information:
|
|
40
|
+
|
|
41
|
+
smol-toml/dist/error.js:
|
|
42
|
+
(*!
|
|
43
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*
|
|
46
|
+
* Redistribution and use in source and binary forms, with or without
|
|
47
|
+
* modification, are permitted provided that the following conditions are met:
|
|
48
|
+
*
|
|
49
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
50
|
+
* list of conditions and the following disclaimer.
|
|
51
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
52
|
+
* this list of conditions and the following disclaimer in the
|
|
53
|
+
* documentation and/or other materials provided with the distribution.
|
|
54
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
55
|
+
* may be used to endorse or promote products derived from this software without
|
|
56
|
+
* specific prior written permission.
|
|
57
|
+
*
|
|
58
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
59
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
60
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
61
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
62
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
63
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
64
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
65
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
66
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
67
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
68
|
+
*)
|
|
69
|
+
|
|
70
|
+
smol-toml/dist/util.js:
|
|
71
|
+
(*!
|
|
72
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
73
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
+
*
|
|
75
|
+
* Redistribution and use in source and binary forms, with or without
|
|
76
|
+
* modification, are permitted provided that the following conditions are met:
|
|
77
|
+
*
|
|
78
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
79
|
+
* list of conditions and the following disclaimer.
|
|
80
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
81
|
+
* this list of conditions and the following disclaimer in the
|
|
82
|
+
* documentation and/or other materials provided with the distribution.
|
|
83
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
84
|
+
* may be used to endorse or promote products derived from this software without
|
|
85
|
+
* specific prior written permission.
|
|
86
|
+
*
|
|
87
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
88
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
89
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
90
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
91
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
92
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
93
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
94
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
95
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
96
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
97
|
+
*)
|
|
98
|
+
|
|
99
|
+
smol-toml/dist/date.js:
|
|
100
|
+
(*!
|
|
101
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
102
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
+
*
|
|
104
|
+
* Redistribution and use in source and binary forms, with or without
|
|
105
|
+
* modification, are permitted provided that the following conditions are met:
|
|
106
|
+
*
|
|
107
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
108
|
+
* list of conditions and the following disclaimer.
|
|
109
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
110
|
+
* this list of conditions and the following disclaimer in the
|
|
111
|
+
* documentation and/or other materials provided with the distribution.
|
|
112
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
113
|
+
* may be used to endorse or promote products derived from this software without
|
|
114
|
+
* specific prior written permission.
|
|
115
|
+
*
|
|
116
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
117
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
118
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
119
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
120
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
121
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
122
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
123
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
124
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
125
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
126
|
+
*)
|
|
127
|
+
|
|
128
|
+
smol-toml/dist/primitive.js:
|
|
129
|
+
(*!
|
|
130
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
131
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
|
+
*
|
|
133
|
+
* Redistribution and use in source and binary forms, with or without
|
|
134
|
+
* modification, are permitted provided that the following conditions are met:
|
|
135
|
+
*
|
|
136
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
137
|
+
* list of conditions and the following disclaimer.
|
|
138
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
139
|
+
* this list of conditions and the following disclaimer in the
|
|
140
|
+
* documentation and/or other materials provided with the distribution.
|
|
141
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
142
|
+
* may be used to endorse or promote products derived from this software without
|
|
143
|
+
* specific prior written permission.
|
|
144
|
+
*
|
|
145
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
146
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
147
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
148
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
149
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
150
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
151
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
152
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
153
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
154
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
155
|
+
*)
|
|
156
|
+
|
|
157
|
+
smol-toml/dist/extract.js:
|
|
158
|
+
(*!
|
|
159
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
160
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
161
|
+
*
|
|
162
|
+
* Redistribution and use in source and binary forms, with or without
|
|
163
|
+
* modification, are permitted provided that the following conditions are met:
|
|
164
|
+
*
|
|
165
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
166
|
+
* list of conditions and the following disclaimer.
|
|
167
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
168
|
+
* this list of conditions and the following disclaimer in the
|
|
169
|
+
* documentation and/or other materials provided with the distribution.
|
|
170
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
171
|
+
* may be used to endorse or promote products derived from this software without
|
|
172
|
+
* specific prior written permission.
|
|
173
|
+
*
|
|
174
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
175
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
176
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
177
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
178
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
179
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
180
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
181
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
182
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
183
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
184
|
+
*)
|
|
185
|
+
|
|
186
|
+
smol-toml/dist/struct.js:
|
|
187
|
+
(*!
|
|
188
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
189
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
190
|
+
*
|
|
191
|
+
* Redistribution and use in source and binary forms, with or without
|
|
192
|
+
* modification, are permitted provided that the following conditions are met:
|
|
193
|
+
*
|
|
194
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
195
|
+
* list of conditions and the following disclaimer.
|
|
196
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
197
|
+
* this list of conditions and the following disclaimer in the
|
|
198
|
+
* documentation and/or other materials provided with the distribution.
|
|
199
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
200
|
+
* may be used to endorse or promote products derived from this software without
|
|
201
|
+
* specific prior written permission.
|
|
202
|
+
*
|
|
203
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
204
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
205
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
206
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
207
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
208
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
209
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
210
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
211
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
212
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
213
|
+
*)
|
|
214
|
+
|
|
215
|
+
smol-toml/dist/parse.js:
|
|
216
|
+
(*!
|
|
217
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
218
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
219
|
+
*
|
|
220
|
+
* Redistribution and use in source and binary forms, with or without
|
|
221
|
+
* modification, are permitted provided that the following conditions are met:
|
|
222
|
+
*
|
|
223
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
224
|
+
* list of conditions and the following disclaimer.
|
|
225
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
226
|
+
* this list of conditions and the following disclaimer in the
|
|
227
|
+
* documentation and/or other materials provided with the distribution.
|
|
228
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
229
|
+
* may be used to endorse or promote products derived from this software without
|
|
230
|
+
* specific prior written permission.
|
|
231
|
+
*
|
|
232
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
233
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
234
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
235
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
236
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
237
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
238
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
239
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
240
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
241
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
242
|
+
*)
|
|
243
|
+
|
|
244
|
+
smol-toml/dist/stringify.js:
|
|
245
|
+
(*!
|
|
246
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
247
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
248
|
+
*
|
|
249
|
+
* Redistribution and use in source and binary forms, with or without
|
|
250
|
+
* modification, are permitted provided that the following conditions are met:
|
|
251
|
+
*
|
|
252
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
253
|
+
* list of conditions and the following disclaimer.
|
|
254
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
255
|
+
* this list of conditions and the following disclaimer in the
|
|
256
|
+
* documentation and/or other materials provided with the distribution.
|
|
257
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
258
|
+
* may be used to endorse or promote products derived from this software without
|
|
259
|
+
* specific prior written permission.
|
|
260
|
+
*
|
|
261
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
262
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
263
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
264
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
265
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
266
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
267
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
268
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
269
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
270
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
271
|
+
*)
|
|
272
|
+
|
|
273
|
+
smol-toml/dist/index.js:
|
|
274
|
+
(*!
|
|
275
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
276
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
|
+
*
|
|
278
|
+
* Redistribution and use in source and binary forms, with or without
|
|
279
|
+
* modification, are permitted provided that the following conditions are met:
|
|
280
|
+
*
|
|
281
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
282
|
+
* list of conditions and the following disclaimer.
|
|
283
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
284
|
+
* this list of conditions and the following disclaimer in the
|
|
285
|
+
* documentation and/or other materials provided with the distribution.
|
|
286
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
287
|
+
* may be used to endorse or promote products derived from this software without
|
|
288
|
+
* specific prior written permission.
|
|
289
|
+
*
|
|
290
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
291
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
292
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
293
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
294
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
295
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
296
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
297
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
298
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
299
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
300
|
+
*)
|
|
301
|
+
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
function progress(current,total,opts={}){let{width=20,complete="=",incomplete="-"}=opts;if(total<=0||current<0||current>total)return null;let unit=total/width,pos=Math.floor(current/unit);return`${complete.repeat(pos)}${incomplete.repeat(width-pos)}`}export{progress};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import{require_dist as require_dist2,validateConfig}from"./chunk-R2BUF6Z7.js";import{compileVercelConfig,findSourceVercelConfigFile}from"./chunk-QVHXFHBV.js";import{applyEdits,findNodeAtLocation,init_main,modify,parse,parseTree}from"./chunk-J24BABG4.js";import{init_dist,stringify}from"./chunk-U4Z2MMOF.js";import{require_dist2 as require_dist}from"./chunk-7L2K4OKM.js";import{printAlignedLabel}from"./chunk-ADLBLGT3.js";import{code}from"./chunk-6VH56CX2.js";import{link_default,output_manager_default,require_build_utils}from"./chunk-XP3FT56R.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);init_main();init_dist();var import_build_utils=__toESM(require_build_utils(),1),import_fs_detectors=__toESM(require_dist(),1),import_service_topology=__toESM(require_dist2(),1);import{readFile,writeFile}from"fs/promises";import{basename}from"path";var EXPERIMENTAL_SERVICES_DOCS_URL="https://vercel.com/docs/services/experimental";async function prepareExperimentalServicesMigration(cwd,detectServicesResult){let compileResult=await compileVercelConfig(cwd);if(!compileResult.configPath)return null;let rawConfig=await readFile(compileResult.configPath,"utf8"),config=parse(rawConfig);if(!config||!(0,import_service_topology.hasLegacyServicesConfig)(config))return null;let resolvedServices=detectServicesResult?.resolved?.source==="configured"?detectServicesResult.services.filter(s=>(0,import_build_utils.isExperimentalService)(s)):void 0,plan=await(0,import_service_topology.migrateExperimentalServices)({fs:new import_fs_detectors.LocalFileSystemDetector(cwd),config,resolvedServices:resolvedServices&&resolvedServices.length>0?resolvedServices:void 0}),sourceFile=compileResult.sourceFile??basename(compileResult.configPath),preparation={plan,sourceFile,snippet:renderSnippet(sourceFile,plan)};if(plan.errors.length>0)return preparation;if(compileResult.wasCompiled)return preparation.writeBlocker=`${sourceFile} can't be updated automatically.`,preparation;let content=applyPlanToJson(rawConfig,config,plan),parseErrors=[],nextConfig=parse(content,parseErrors);if(parseErrors.length>0)return preparation.writeBlocker=`Couldn't produce a valid ${sourceFile}.`,preparation;let validationError=validateConfig(nextConfig);return validationError?(preparation.writeBlocker=validationError.message,preparation):(preparation.write={configPath:compileResult.configPath,content},preparation)}function applyPlanToJson(rawConfig,config,plan){let eol=rawConfig.includes(`\r
|
|
8
|
+
`)?`\r
|
|
9
|
+
`:`
|
|
10
|
+
`,indent2=/^([ \t]+)\S/m.exec(rawConfig)?.[1]??" ",formattingOptions={eol,insertSpaces:!indent2.startsWith(" "),tabSize:indent2.startsWith(" ")?1:indent2.length},legacyKey=config.experimentalServices?"experimentalServices":"experimentalServicesV2",key=findNodeAtLocation(parseTree(rawConfig),[legacyKey]).parent.children[0],text=applyEdits(rawConfig,[{offset:key.offset,length:key.length,content:'"services"'}]);text=applyEdits(text,modify(text,["services"],plan.patch.services,{formattingOptions}));for(let key2 of plan.removeKeys)key2!==legacyKey&&(text=applyEdits(text,modify(text,[key2],void 0,{formattingOptions})));for(let[key2,value]of Object.entries(plan.patch.build?.env??{}))text=applyEdits(text,modify(text,["build","env",key2],value,{formattingOptions}));if(plan.patch.rewrites.length>0)if(Array.isArray(config.rewrites))for(let rewrite of plan.patch.rewrites)text=applyEdits(text,modify(text,["rewrites",-1],rewrite,{formattingOptions}));else text=applyEdits(text,modify(text,["rewrites"],plan.patch.rewrites,{formattingOptions,getInsertionIndex:keys=>keys.indexOf("services")+1}));return text.endsWith(`
|
|
11
|
+
`)?text:`${text}${eol}`}function renderSnippet(sourceFile,plan){let patch={services:plan.patch.services};return plan.patch.rewrites.length>0&&(patch.rewrites=plan.patch.rewrites),plan.patch.build&&(patch.build=plan.patch.build),sourceFile==="vercel.toml"?stringify(patch).trimEnd():JSON.stringify(patch,null,2)}function displayExperimentalServicesMigration(preparation){let{plan,sourceFile,snippet}=preparation,legacyKey=plan.removeKeys.includes("experimentalServices")?"experimentalServices":"experimentalServicesV2";if(output_manager_default.print(`${import_chalk.default.yellow("!")} ${sourceFile} uses ${code(legacyKey)}, which is replaced by ${code("services")}. ${link_default(EXPERIMENTAL_SERVICES_DOCS_URL)}
|
|
12
|
+
`),plan.errors.length>0){output_manager_default.print(` ${import_chalk.default.bold(`Can't migrate ${sourceFile} automatically:`)}
|
|
13
|
+
`);for(let error of plan.errors)output_manager_default.print(` ${import_chalk.default.red("\u2717")} ${error.message}
|
|
14
|
+
`);return}output_manager_default.print(`
|
|
15
|
+
${import_chalk.default.bold(`Suggested ${sourceFile} configuration:`)}
|
|
16
|
+
`),output_manager_default.print(`${indent(snippet,2)}
|
|
17
|
+
`),plan.patch.build&&!preparation.write&&output_manager_default.print(" Merge these `build.env` defaults with any existing build settings.\n");let removed=plan.removeKeys.filter(k=>k!==legacyKey);removed.length>0&&output_manager_default.print(`
|
|
18
|
+
Also removes top-level ${removed.map(k=>code(k)).join(", ")}.
|
|
19
|
+
`);for(let rename of plan.renamedServices)output_manager_default.print(` Service ${code(rename.from)} is renamed to ${code(rename.to)}.
|
|
20
|
+
`);for(let[heading,notes]of[["Review before deploying:",plan.warnings],["Not migrated:",plan.unmigrated]])if(notes.length>0){output_manager_default.print(`
|
|
21
|
+
${import_chalk.default.bold(heading)}
|
|
22
|
+
`);for(let note of notes){let link=note.link?` ${link_default(note.link)}`:"";output_manager_default.print(`${import_chalk.default.yellow("!")} ${note.message}${link}
|
|
23
|
+
`)}}output_manager_default.print(`
|
|
24
|
+
`)}function indent(text,spaces){let pad=" ".repeat(spaces);return text.split(`
|
|
25
|
+
`).map(line=>`${pad}${line}`).join(`
|
|
26
|
+
`)}async function promptExperimentalServicesMigration({client,cwd,autoConfirm=!1,nonInteractive=!1,allowConfigExecution=!0,detectServicesResult}){let preparation;try{if(!allowConfigExecution){let sourceFile=await findSourceVercelConfigFile(cwd);if(sourceFile&&sourceFile!=="vercel.toml")return!1}preparation=await prepareExperimentalServicesMigration(cwd,detectServicesResult)}catch(error){return output_manager_default.debug(`Skipping services migration suggestion: ${error}`),!1}if(!preparation||(displayExperimentalServicesMigration(preparation),preparation.plan.errors.length>0))return!1;if(!preparation.write)return preparation.writeBlocker&&output_manager_default.print(` ${preparation.writeBlocker} Apply the configuration above to ${preparation.sourceFile} manually.
|
|
27
|
+
|
|
28
|
+
`),!1;let interactive=client.stdin.isTTY&&!nonInteractive,confirmed=autoConfirm;return!confirmed&&interactive&&(confirmed=await client.input.confirm(`Update ${preparation.sourceFile} with this configuration?`,!0)),confirmed?(await writeFile(preparation.write.configPath,preparation.write.content,"utf8"),printAlignedLabel("Updated",preparation.sourceFile,{gutter:"\u2713"}),preparation.plan.unmigrated.length>0&&output_manager_default.print(` ${preparation.plan.unmigrated.length} service${preparation.plan.unmigrated.length===1?" was":"s were"} left out. Migrate ${preparation.plan.unmigrated.length===1?"it":"them"} manually before deploying.
|
|
29
|
+
`),output_manager_default.print(`
|
|
30
|
+
`),!0):(!interactive&&!autoConfirm&&output_manager_default.print(` Run this command in a terminal to apply it, pass ${code("--yes")} to accept the migration, or update ${preparation.sourceFile} manually.
|
|
31
|
+
|
|
32
|
+
`),!1)}export{promptExperimentalServicesMigration};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import{formatOption,jsonOption,limitOption,projectOption,sinceOption,untilOption}from"./chunk-QVXS234E.js";import{packageName}from"./chunk-JESNVRVR.js";var listSubcommand={name:"ls",aliases:["list"],description:"",default:!0,hidden:!0,arguments:[],options:[],examples:[]},inspectSubcommand={name:"inspect",aliases:[],description:"Show details for a single alert group",arguments:[{name:"groupId",required:!0}],options:[formatOption,jsonOption,{...projectOption,shorthand:"p",description:"Filter by project (overrides auto-detected linked project)."},{name:"all",shorthand:"a",type:Boolean,deprecated:!1,description:"Use team-wide scope (ignore linked project auto-scoping)."}],examples:[{name:"Inspect a group in the linked project",value:`${packageName} alerts inspect grp_abc123`},{name:"Inspect as JSON",value:`${packageName} alerts inspect grp_abc123 --json`}]},alertsCommand={name:"alerts",aliases:[],description:"List alert groups or inspect a group. To manage alert rules, see `vercel monitors`.",arguments:[],subcommands:[listSubcommand,inspectSubcommand],options:[{name:"type",shorthand:null,type:[String],argument:"TYPE",deprecated:!1,description:"Filter by alert type. Repeatable and comma-separated (for example --type usage_anomaly,error_anomaly)."},{...projectOption,shorthand:"p",description:"Filter by project (overrides auto-detected linked project)."},{name:"all",shorthand:"a",type:Boolean,deprecated:!1,description:"Show team-wide alerts (ignore linked project auto-scoping)."},{name:"ai",shorthand:null,type:Boolean,deprecated:!1,description:"Print AI-focused sections (title, resolved time, summary, key findings) instead of table output."},{...sinceOption,description:`${sinceOption.description} (default: 24h ago)`},untilOption,limitOption,formatOption,jsonOption],examples:[{name:"List alerts for the linked project",value:`${packageName} alerts`},{name:"List team-wide alerts",value:`${packageName} alerts --all`},{name:"Filter by type",value:`${packageName} alerts --type usage_anomaly --type error_anomaly`},{name:"Output JSON",value:`${packageName} alerts --json`},{name:"Custom time range",value:`${packageName} alerts --since 2026-03-01T00:00:00.000Z --until 2026-03-02T00:00:00.000Z`}]};export{listSubcommand,inspectSubcommand,alertsCommand};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import{require_cross_spawn,require_is_stream,require_merge_stream,require_npm_run_path,require_onetime,require_strip_final_newline}from"./chunk-GD7AV7BO.js";import{require_signal_exit}from"./chunk-BLUPZPAS.js";import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_errors=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errors_exports={};__export(errors_exports,{VercelCliError:()=>VercelCliError2,assertValidCwd:()=>assertValidCwd,getCliNotFoundMessage:()=>getCliNotFoundMessage,toVercelCliError:()=>toVercelCliError});module.exports=__toCommonJS(errors_exports);var import_promises=__require("node:fs/promises"),VercelCliError2=class extends Error{constructor(options){super(options.message),this.name="VercelCliError",this.code=options.code,this.invocation=options.invocation,this.stdout=options.stdout,this.stderr=options.stderr,this.exitCode=options.exitCode,options.cause!==void 0&&(this.cause=options.cause)}};function getCliNotFoundMessage(diagnostics){let details=[],{localBinSearch}=diagnostics;localBinSearch.stopReason==="project-root-marker"?details.push(`Local bin lookup stopped at ${JSON.stringify(localBinSearch.stoppedAt)} (${JSON.stringify(localBinSearch.markerPath)}).`):localBinSearch.stopReason==="filesystem-root"&&details.push(`No project root marker was found from ${JSON.stringify(localBinSearch.searchRoot)}; local bin lookup reached the filesystem root.`);for(let skippedNodeModules of localBinSearch.skippedNodeModules)details.push(`Skipped ${JSON.stringify(skippedNodeModules.directory)}: ${skippedNodeModules.reason}.`);for(let skippedLocalBin of diagnostics.skippedLocalBins)details.push(`Skipped ${JSON.stringify(skippedLocalBin.candidate)}: ${skippedLocalBin.reason}.`);return details.length===0?"Unable to find a usable Vercel CLI installation.":["Unable to find a usable Vercel CLI installation.",...details].join(`
|
|
8
|
+
`)}async function assertValidCwd(cwd){try{if(!(await(0,import_promises.stat)(cwd)).isDirectory())throw new Error("not a directory")}catch{throw new VercelCliError2({code:"VERCEL_CLI_INVALID_CWD",message:`Working directory ${JSON.stringify(cwd)} does not exist or is not a directory.`})}}function toVercelCliError(invocation,error){if(typeof error=="object"&&error!==null){let execaError=error;if(execaError.code==="ENOENT")return new VercelCliError2({code:"VERCEL_CLI_NOT_FOUND",message:`Unable to find Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error});if(execaError.code==="EACCES"||execaError.code==="EPERM")return new VercelCliError2({code:"VERCEL_CLI_PERMISSION_DENIED",message:`Permission denied while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error});if(execaError.timedOut)return new VercelCliError2({code:"VERCEL_CLI_TIMED_OUT",message:`Timed out while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(execaError.isCanceled)return new VercelCliError2({code:"VERCEL_CLI_CANCELED",message:`Canceled while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(execaError.signal)return new VercelCliError2({code:"VERCEL_CLI_SIGNALED",message:`Vercel CLI command ${JSON.stringify(invocation.command)} exited due to signal ${execaError.signal}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(typeof execaError.exitCode=="number")return new VercelCliError2({code:"VERCEL_CLI_ERRORED",message:execaError.shortMessage??execaError.message??`Vercel CLI command ${JSON.stringify(invocation.command)} exited with code ${execaError.exitCode}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,exitCode:execaError.exitCode,cause:error})}return new VercelCliError2({code:"VERCEL_CLI_EXEC_FAILED",message:`Could not execute Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error})}}});var require_core=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGNALS=void 0;var SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];exports.SIGNALS=SIGNALS}});var require_realtime=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;var getRealtimeSignals=function(){let length=SIGRTMAX-SIGRTMIN+1;return Array.from({length},getRealtimeSignal)};exports.getRealtimeSignals=getRealtimeSignals;var getRealtimeSignal=function(value,index){return{name:`SIGRT${index+1}`,number:SIGRTMIN+index,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},SIGRTMIN=34,SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX}});var require_signals=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.getSignals=void 0;var _os=__require("os"),_core=require_core(),_realtime=require_realtime(),getSignals=function(){let realtimeSignals=(0,_realtime.getRealtimeSignals)();return[..._core.SIGNALS,...realtimeSignals].map(normalizeSignal)};exports.getSignals=getSignals;var normalizeSignal=function({name,number:defaultNumber,description,action,forced=!1,standard}){let{signals:{[name]:constantSignal}}=_os.constants,supported=constantSignal!==void 0;return{name,number:supported?constantSignal:defaultNumber,description,supported,action,forced,standard}}}});var require_main=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.signalsByNumber=exports.signalsByName=void 0;var _os=__require("os"),_signals=require_signals(),_realtime=require_realtime(),getSignalsByName=function(){return(0,_signals.getSignals)().reduce(getSignalByName,{})},getSignalByName=function(signalByNameMemo,{name,number,description,supported,action,forced,standard}){return{...signalByNameMemo,[name]:{name,number,description,supported,action,forced,standard}}},signalsByName=getSignalsByName();exports.signalsByName=signalsByName;var getSignalsByNumber=function(){let signals=(0,_signals.getSignals)(),length=_realtime.SIGRTMAX+1,signalsA=Array.from({length},(value,number)=>getSignalByNumber(number,signals));return Object.assign({},...signalsA)},getSignalByNumber=function(number,signals){let signal=findSignalByNumber(number,signals);if(signal===void 0)return{};let{name,description,supported,action,forced,standard}=signal;return{[number]:{name,number,description,supported,action,forced,standard}}},findSignalByNumber=function(number,signals){let signal=signals.find(({name})=>_os.constants.signals[name]===number);return signal!==void 0?signal:signals.find(signalA=>signalA.number===number)},signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumber}});var require_error=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports,module){"use strict";var{signalsByName}=require_main(),getErrorPrefix=({timedOut,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})=>timedOut?`timed out after ${timeout} milliseconds`:isCanceled?"was canceled":errorCode!==void 0?`failed with ${errorCode}`:signal!==void 0?`was killed with ${signal} (${signalDescription})`:exitCode!==void 0?`failed with exit code ${exitCode}`:"failed",makeError=({stdout,stderr,all,error,signal,exitCode,command,escapedCommand,timedOut,isCanceled,killed,parsed:{options:{timeout}}})=>{exitCode=exitCode===null?void 0:exitCode,signal=signal===null?void 0:signal;let signalDescription=signal===void 0?void 0:signalsByName[signal].description,errorCode=error&&error.code,execaMessage=`Command ${getErrorPrefix({timedOut,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})}: ${command}`,isError=Object.prototype.toString.call(error)==="[object Error]",shortMessage=isError?`${execaMessage}
|
|
9
|
+
${error.message}`:execaMessage,message=[shortMessage,stderr,stdout].filter(Boolean).join(`
|
|
10
|
+
`);return isError?(error.originalMessage=error.message,error.message=message):error=new Error(message),error.shortMessage=shortMessage,error.command=command,error.escapedCommand=escapedCommand,error.exitCode=exitCode,error.signal=signal,error.signalDescription=signalDescription,error.stdout=stdout,error.stderr=stderr,all!==void 0&&(error.all=all),"bufferedData"in error&&delete error.bufferedData,error.failed=!0,error.timedOut=!!timedOut,error.isCanceled=isCanceled,error.killed=killed&&!timedOut,error};module.exports=makeError}});var require_stdio=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports,module){"use strict";var aliases=["stdin","stdout","stderr"],hasAlias=options=>aliases.some(alias=>options[alias]!==void 0),normalizeStdio=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases.map(alias=>options[alias]);if(hasAlias(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases.length);return Array.from({length},(value,index)=>stdio[index])};module.exports=normalizeStdio;module.exports.node=options=>{let stdio=normalizeStdio(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]}}});var require_kill=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports,module){"use strict";var os=__require("os"),onExit=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT=1e3*5,spawnedKill=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout(kill,signal,options,killResult),killResult},setKillTimeout=(kill,signal,options,killResult)=>{if(!shouldForceKill(signal,options,killResult))return;let timeout=getForceKillAfterTimeout(options),t=setTimeout(()=>{kill("SIGKILL")},timeout);t.unref&&t.unref()},shouldForceKill=(signal,{forceKillAfterTimeout},killResult)=>isSigterm(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm=signal=>signal===os.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0)},timeoutKill=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}))},setupTimeout=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve,reject)=>{timeoutId=setTimeout(()=>{timeoutKill(spawned,killSignal,reject)},timeout)}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId)});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit(()=>{spawned.kill()});return timedPromise.finally(()=>{removeExitHandler()})};module.exports={spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}}});var require_buffer_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports,module){"use strict";var{PassThrough:PassThroughStream}=__require("stream");module.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream=new PassThroughStream({objectMode});encoding&&stream.setEncoding(encoding);let length=0,chunks=[];return stream.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length}),stream.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream.getBufferedLength=()=>length,stream}}});var require_get_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports,module){"use strict";var{constants:BufferConstants}=__require("buffer"),stream=__require("stream"),{promisify}=__require("util"),bufferStream=require_buffer_stream(),streamPipelinePromisified=promisify(stream.pipeline),MaxBufferError=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream2=bufferStream(options);return await new Promise((resolve,reject)=>{let rejectPromise=error=>{error&&stream2.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error.bufferedData=stream2.getBufferedValue()),reject(error)};(async()=>{try{await streamPipelinePromisified(inputStream,stream2),resolve()}catch(error){rejectPromise(error)}})(),stream2.on("data",()=>{stream2.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError)})}),stream2.getBufferedValue()}module.exports=getStream;module.exports.buffer=(stream2,options)=>getStream(stream2,{...options,encoding:"buffer"});module.exports.array=(stream2,options)=>getStream(stream2,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError}});var require_stream=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports,module){"use strict";var isStream=require_is_stream(),getStream=require_get_stream(),mergeStream=require_merge_stream(),handleInput=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream(input)?input.pipe(spawned.stdin):spawned.stdin.end(input))},makeAllStream=(spawned,{all})=>{if(!all||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData=async(stream,streamPromise)=>{if(stream){stream.destroy();try{return await streamPromise}catch(error){return error.bufferedData}}},getStreamPromise=(stream,{encoding,buffer,maxBuffer})=>{if(!(!stream||!buffer))return encoding?getStream(stream,{encoding,maxBuffer}):getStream.buffer(stream,{maxBuffer})},getSpawnedResult=async({stdout,stderr,all},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise(all,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error){return Promise.all([{error,signal:error.signal,timedOut:error.timedOut},getBufferedData(stdout,stdoutPromise),getBufferedData(stderr,stderrPromise),getBufferedData(all,allPromise)])}},validateInputSync=({input})=>{if(isStream(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module.exports={handleInput,makeAllStream,getSpawnedResult,validateInputSync}}});var require_promise=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports,module){"use strict";var nativePromisePrototype=(async()=>{})().constructor.prototype,descriptors=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype,property)]),mergePromise=(spawned,promise)=>{for(let[property,descriptor]of descriptors){let value=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value})}return spawned},getSpawnedPromise=spawned=>new Promise((resolve,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve({exitCode,signal})}),spawned.on("error",error=>{reject(error)}),spawned.stdin&&spawned.stdin.on("error",error=>{reject(error)})});module.exports={mergePromise,getSpawnedPromise}}});var require_command=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports,module){"use strict";var normalizeArgs=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand=(file,args)=>normalizeArgs(file,args).join(" "),getEscapedCommand=(file,args)=>normalizeArgs(file,args).map(arg=>escapeArg(arg)).join(" "),SPACES_REGEXP=/ +/g,parseCommand=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token)}return tokens};module.exports={joinCommand,getEscapedCommand,parseCommand}}});var require_execa=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports,module){"use strict";var path=__require("path"),childProcess=__require("child_process"),crossSpawn=require_cross_spawn(),stripFinalNewline=require_strip_final_newline(),npmRunPath=require_npm_run_path(),onetime=require_onetime(),makeError=require_error(),normalizeStdio=require_stdio(),{spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}=require_kill(),{handleInput,getSpawnedResult,makeAllStream,validateInputSync}=require_stream(),{mergePromise,getSpawnedPromise}=require_promise(),{joinCommand,parseCommand,getEscapedCommand}=require_command(),DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath.env({env,cwd:localDir,execPath}):env},handleArguments=(file,args,options={})=>{let parsed=crossSpawn._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),process.platform==="win32"&&path.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value,error)=>typeof value!="string"&&!Buffer.isBuffer(value)?error===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value):value,execa=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateTimeout(parsed.options);let spawned;try{spawned=childProcess.spawn(parsed.file,parsed.args,parsed.options)}catch(error){let dummySpawned=new childProcess.ChildProcess,errorPromise=Promise.reject(makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime(async()=>{let[{error,exitCode,signal,timedOut},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all=handleOutput(parsed.options,allResult);if(error||exitCode!==0||signal!==null){let returnedError=makeError({error,exitCode,signal,stdout,stderr,all,command,escapedCommand,parsed,timedOut,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return{command,escapedCommand,exitCode:0,stdout,stderr,all,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options.input),spawned.all=makeAllStream(spawned,parsed.options),mergePromise(spawned,handlePromiseOnce)};module.exports=execa;module.exports.sync=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateInputSync(parsed.options);let result;try{result=childProcess.spawnSync(parsed.file,parsed.args,parsed.options)}catch(error){throw makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error;throw error}return{command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand(command);return execa(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand(command);return execa.sync(file,args,options)};module.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})}}});var require_envpath=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/envpath.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),envpath_exports={};__export(envpath_exports,{getEnvPath:()=>getEnvPath,prependPathEntries:()=>prependPathEntries,setEnvPath:()=>setEnvPath,splitPath:()=>splitPath});module.exports=__toCommonJS(envpath_exports);var import_node_path=__toESM(__require("node:path"));function prependPathEntries(pathValue,directories){let pathParts=pathValue.split(import_node_path.default.delimiter).filter(Boolean),prepended=[];for(let directory of directories)!pathParts.includes(directory)&&!prepended.includes(directory)&&prepended.push(directory);return prepended.length===0?pathValue:pathValue===""||pathValue===import_node_path.default.delimiter?`${prepended.join(import_node_path.default.delimiter)}${pathValue}`:[...prepended,pathValue].join(import_node_path.default.delimiter)}function splitPath(pathValue){return pathValue.split(import_node_path.default.delimiter).filter(Boolean)}function getEnvPath(env=process.env){if(process.platform!=="win32")return env.PATH??"";let pathKeys=Object.keys(env).filter(key=>key.toLowerCase()==="path");for(let index=pathKeys.length-1;index>=0;index--){let value=env[pathKeys[index]];if(value!==void 0)return value}return""}function setEnvPath(env=process.env,pathValue){if(process.platform!=="win32")return{...env,PATH:pathValue};let normalizedEnv={...env};for(let key of Object.keys(normalizedEnv))key!=="PATH"&&key.toLowerCase()==="path"&&delete normalizedEnv[key];return normalizedEnv.PATH=pathValue,normalizedEnv}}});var require_errutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errutils.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errutils_exports={};__export(errutils_exports,{getErrorMessage:()=>getErrorMessage,isMissingPathError:()=>isMissingPathError});module.exports=__toCommonJS(errutils_exports);function getErrorMessage(error){return error instanceof Error?error.message:String(error)}function isMissingPathError(error){return typeof error=="object"&&error!==null&&"code"in error&&(error.code==="ENOENT"||error.code==="ENOTDIR")}}});var require_fsutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/fsutils.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),fsutils_exports={};__export(fsutils_exports,{getCanonicalPath:()=>getCanonicalPath,getCommandBase:()=>getCommandBase,getDirectoriesBetween:()=>getDirectoriesBetween,isNodeScript:()=>isNodeScript,isSubpath:()=>isSubpath,statIfExists:()=>statIfExists});module.exports=__toCommonJS(fsutils_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils();async function getCanonicalPath(filePath){try{return await(0,import_promises.realpath)(filePath)}catch{return filePath}}function getDirectoriesBetween(parent,child){let directories=[],current=import_node_path.default.resolve(child),resolvedParent=import_node_path.default.resolve(parent);for(;;){if(directories.push(current),current===resolvedParent)return directories.reverse();let next=import_node_path.default.dirname(current);if(next===current)return[];current=next}}async function statIfExists(filePath){try{return{stats:await(0,import_promises.stat)(filePath)}}catch(error){return(0,import_errutils.isMissingPathError)(error)?{missing:!0}:{reason:`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}}}function isNodeScript(filePath){return[".js",".cjs",".mjs"].includes(import_node_path.default.extname(filePath))}function isSubpath(parent,child){let relativePath=import_node_path.default.relative(parent,child);return relativePath===""||relativePath!==""&&!relativePath.startsWith("..")&&!import_node_path.default.isAbsolute(relativePath)}function getCommandBase(command){let extension=import_node_path.default.extname(command).toLowerCase();return process.platform==="win32"&&[".cmd",".exe"].includes(extension)?import_node_path.default.basename(command,extension):import_node_path.default.basename(command)}}});var require_safety=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/safety.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),safety_exports={};__export(safety_exports,{getSkippedNodeModulesReason:()=>getSkippedNodeModulesReason,getUnsafeDirectoryReason:()=>getUnsafeDirectoryReason,getUnsafePackageBinReason:()=>getUnsafePackageBinReason,getUnsafePackageDirectoryReason:()=>getUnsafePackageDirectoryReason,getUnsafePackageFileReason:()=>getUnsafePackageFileReason,getUnsafeStatsReason:()=>getUnsafeStatsReason});module.exports=__toCommonJS(safety_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils(),import_fsutils=require_fsutils();async function getSkippedNodeModulesReason(nodeModulesDirectory,parentDirectories){let parentDirectory=import_node_path.default.dirname(nodeModulesDirectory);parentDirectories??=[parentDirectory];for(let directory of parentDirectories){let unsafeParentReason;try{unsafeParentReason=await getUnsafeDirectoryReason(directory)}catch(error){unsafeParentReason=`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}if(unsafeParentReason)return`${directory} is ${unsafeParentReason}`}let result=await(0,import_fsutils.statIfExists)(nodeModulesDirectory);if("missing"in result)return null;if("reason"in result)return result.reason;if(!result.stats.isDirectory())return"not a directory";let unsafeNodeModulesReason=getUnsafeStatsReason(result.stats);return unsafeNodeModulesReason||await getSkippedLocalBinDirectoryReason(import_node_path.default.join(nodeModulesDirectory,".bin"))}async function getSkippedLocalBinDirectoryReason(localBinDirectory){let result=await(0,import_fsutils.statIfExists)(localBinDirectory);if("missing"in result)return null;if("reason"in result)return`${localBinDirectory} ${result.reason}`;if(!result.stats.isDirectory())return`${localBinDirectory} is not a directory`;let unsafeLocalBinReason=getUnsafeStatsReason(result.stats);return unsafeLocalBinReason?`${localBinDirectory} is ${unsafeLocalBinReason}`:null}async function getUnsafePackageBinReason(nodeModulesDirectory,packageDirectory,binPath){let unsafePackageDirectoryReason=await getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory);return unsafePackageDirectoryReason||await getUnsafePackageFileReason(packageDirectory,binPath)}async function getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(nodeModulesDirectory,packageDirectory);if(directoriesToCheck.length===0)return`${packageDirectory} resolves outside local node_modules`;for(let directory of directoriesToCheck){let reason=await getUnsafeDirectoryReason(directory);if(reason)return`${directory} is ${reason}`}return null}async function getUnsafePackageFileReason(packageDirectory,filePath){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(packageDirectory,import_node_path.default.dirname(filePath));if(directoriesToCheck.length===0)return`${filePath} resolves outside package`;for(let directory of directoriesToCheck){let reason2=await getUnsafeDirectoryReason(directory);if(reason2)return`${directory} is ${reason2}`}let reason=await getUnsafeFileReason(filePath);return reason?`${filePath} is ${reason}`:null}async function getUnsafeDirectoryReason(directory){let stats=await(0,import_promises.stat)(directory);return stats.isDirectory()?getUnsafeStatsReason(stats):"not a directory"}async function getUnsafeFileReason(filePath){let stats=await(0,import_promises.stat)(filePath);return stats.isFile()?getUnsafeStatsReason(stats):"not a file"}function getUnsafeStatsReason(stats){let getuid=process.geteuid??process.getuid;if(typeof getuid!="function")return null;let uid=getuid();return stats.mode&18?stats.mode&2?"world-writable":"group-writable":stats.uid!==uid?`owned by uid ${stats.uid}, current uid is ${uid}`:null}}});var require_lookup=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/lookup.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),lookup_exports={};__export(lookup_exports,{clearCachedCliInvocation:()=>clearCachedCliInvocation,clearVercelCliLookupCache:()=>clearVercelCliLookupCache2,findVercelCli:()=>findVercelCli2,getLocalBinSearch:()=>getLocalBinSearch,resolveCachedCliInvocation:()=>resolveCachedCliInvocation,toVercelCliInvocation:()=>toVercelCliInvocation});module.exports=__toCommonJS(lookup_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_envpath=require_envpath(),import_errutils=require_errutils(),import_fsutils=require_fsutils(),import_safety=require_safety(),cliInvocationCache=new Map;async function findVercelCli2(options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd()),pathValue=options.path??(0,import_envpath.getEnvPath)(process.env),resolution=await resolveCachedCliInvocation(cwd,pathValue);return resolution.found?toVercelCliInvocation(resolution):null}function resolveCachedCliInvocation(cwd,pathValue){let cacheKey=getCliInvocationCacheKey(cwd,pathValue);if(cliInvocationCache.has(cacheKey))return cliInvocationCache.get(cacheKey);let resolution=resolveCliInvocation(cwd,pathValue).catch(error=>{throw cliInvocationCache.delete(cacheKey),error});return cliInvocationCache.set(cacheKey,resolution),resolution}function toVercelCliInvocation(resolution){return{command:resolution.command,commandArgs:resolution.commandArgs,source:resolution.source}}function clearVercelCliLookupCache2(){cliInvocationCache.clear()}function clearCachedCliInvocation(cwd,pathValue){cliInvocationCache.delete(getCliInvocationCacheKey(cwd,pathValue))}async function resolveCliInvocation(cwd,pathValue){let localBinSearch=await getLocalBinSearch(cwd),diagnostics={localBinSearch:localBinSearch.diagnostics,skippedLocalBins:[]},resolvedPath=(0,import_envpath.prependPathEntries)(pathValue,localBinSearch.directories);for(let command of getVercelCommandNames()){let resolvedCommand=await findCommandInPath(command,resolvedPath,cwd,localBinSearch,diagnostics);if(resolvedCommand)return(0,import_fsutils.isNodeScript)(resolvedCommand.realPath)?{found:!0,command:process.execPath,commandArgs:[resolvedCommand.realPath],source:resolvedCommand.source,diagnostics}:{found:!0,command:resolvedCommand.realPath,commandArgs:[],source:resolvedCommand.source,diagnostics}}return{found:!1,diagnostics}}async function findCommandInPath(command,pathValue,cwd,localBinSearch,diagnostics){for(let directory of(0,import_envpath.splitPath)(pathValue)){let candidate=getPathCommandCandidate(directory,command,cwd);try{if(await canAccessCommandCandidate(candidate,localBinSearch,diagnostics)){let resolvedCommand=await resolveCommandCandidate(command,candidate,localBinSearch,diagnostics);if(resolvedCommand)return resolvedCommand}}catch{}}return null}function getPathCommandCandidate(directory,command,cwd){let candidateDirectory=import_node_path.default.isAbsolute(directory)?directory:import_node_path.default.resolve(cwd,directory);return import_node_path.default.join(candidateDirectory,command)}async function canAccessCommandCandidate(candidate,localBinSearch,diagnostics){try{return await(0,import_promises.access)(candidate,process.platform==="win32"?import_promises.constants.F_OK:import_promises.constants.F_OK|import_promises.constants.X_OK),!0}catch(error){return(0,import_errutils.isMissingPathError)(error)||await recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics),!1}}async function recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics){let localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);localBinCandidate&&recordSkippedLocalBin(diagnostics,candidate,"reason"in localBinCandidate?localBinCandidate.reason:`local bin is not accessible: ${(0,import_errutils.getErrorMessage)(error)}`)}async function resolveCommandCandidate(command,candidate,localBinSearch,diagnostics){if(!(await(0,import_promises.stat)(candidate)).isFile())return null;let realPath=await(0,import_promises.realpath)(candidate),localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);if(!localBinCandidate)return{realPath,source:"path"};if("reason"in localBinCandidate)return recordSkippedLocalBin(diagnostics,candidate,localBinCandidate.reason),null;let localPackageBinResult=await getLocalVercelPackageBin(command,localBinCandidate.directory);return"reason"in localPackageBinResult?(recordSkippedLocalBin(diagnostics,candidate,localPackageBinResult.reason),null):{realPath:localPackageBinResult.binPath,source:"local-bin"}}function recordSkippedLocalBin(diagnostics,candidate,reason){diagnostics.skippedLocalBins.push({candidate,reason})}function getVercelCommandNames(){let commandBases=["vercel"];if(process.platform!=="win32")return commandBases;let extensions=[".cmd",".exe",""];return commandBases.flatMap(command=>extensions.map(extension=>`${command}${extension}`))}async function getLocalBinSearch(cwd){let searchRoot=await(0,import_fsutils.getCanonicalPath)(import_node_path.default.resolve(cwd)),ancestorSearch=await getAncestorDirectorySearch(searchRoot),skippedNodeModules=[],directories=[];for(let directory of ancestorSearch.directories){let nodeModulesDirectory=import_node_path.default.join(directory,"node_modules"),parentDirectories=ancestorSearch.stopReason==="project-root-marker"?(0,import_fsutils.getDirectoriesBetween)(ancestorSearch.stoppedAt,directory):(0,import_fsutils.getDirectoriesBetween)(directory,searchRoot),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory,parentDirectories);if(skippedReason){skippedNodeModules.push({directory:nodeModulesDirectory,reason:skippedReason});continue}directories.push(import_node_path.default.join(nodeModulesDirectory,".bin"))}return{directories,diagnostics:{searchRoot,stoppedAt:ancestorSearch.stoppedAt,stopReason:ancestorSearch.stopReason,markerPath:ancestorSearch.markerPath,skippedNodeModules}}}async function getAncestorDirectorySearch(cwd){let directories=[],current=import_node_path.default.resolve(cwd);for(;;){directories.push(current);let marker=await getProjectRootMarker(current);if(marker)return{directories,stoppedAt:current,stopReason:"project-root-marker",markerPath:marker.path};let parent=import_node_path.default.dirname(current);if(parent===current)return{directories,stoppedAt:current,stopReason:"filesystem-root"};current=parent}}async function getProjectRootMarker(directory){let gitPath=import_node_path.default.join(directory,".git");try{return await(0,import_promises.stat)(gitPath),{path:gitPath}}catch{}return null}async function getLocalBinDirectory(filePath,localBinDirectories){let resolvedFilePath=import_node_path.default.resolve(filePath),canonicalFilePath=resolvedFilePath;try{canonicalFilePath=import_node_path.default.join(await(0,import_promises.realpath)(import_node_path.default.dirname(resolvedFilePath)),import_node_path.default.basename(resolvedFilePath))}catch{}for(let localBinDirectory of localBinDirectories){try{localBinDirectory=await(0,import_promises.realpath)(localBinDirectory)}catch{}if(canonicalFilePath.startsWith(`${localBinDirectory}${import_node_path.default.sep}`))return localBinDirectory}return null}async function getNodeModulesBinDirectory(filePath){let candidateDirectory=import_node_path.default.resolve(import_node_path.default.dirname(filePath)),directories=[candidateDirectory];try{let canonicalDirectory=await(0,import_promises.realpath)(candidateDirectory);directories.includes(canonicalDirectory)||directories.push(canonicalDirectory)}catch{}for(let directory of directories)if(import_node_path.default.basename(directory)===".bin"&&import_node_path.default.basename(import_node_path.default.dirname(directory))==="node_modules")return directory;return null}async function classifyPathLocalBinCandidate(filePath,localBinDirectories){let localBinDirectory=await getLocalBinDirectory(filePath,localBinDirectories);if(localBinDirectory)return{directory:localBinDirectory};let nodeModulesBinDirectory=await getNodeModulesBinDirectory(filePath);if(!nodeModulesBinDirectory)return null;let nodeModulesDirectory=import_node_path.default.dirname(nodeModulesBinDirectory),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory);return skippedReason?{reason:`local node_modules is ${skippedReason}`}:{reason:"local bin is outside project lookup boundary"}}async function getLocalVercelPackageBin(command,localBinDirectory){let commandBase=(0,import_fsutils.getCommandBase)(command),nodeModulesDirectory=import_node_path.default.dirname(localBinDirectory);if(commandBase!=="vercel"||import_node_path.default.basename(nodeModulesDirectory)!=="node_modules")return{reason:"not a local vercel bin"};try{let localPackage=await getLocalVercelPackage(nodeModulesDirectory);if("reason"in localPackage)return localPackage;let packageJsonResult=await readLocalVercelPackageJson(localPackage.realPackageDirectory);return"reason"in packageJsonResult?packageJsonResult:(localPackage.packageJson=packageJsonResult.packageJson,await getDeclaredLocalVercelPackageBin(localPackage,commandBase))}catch(error){return{reason:`could not validate local vercel package: ${(0,import_errutils.getErrorMessage)(error)}`}}}async function getLocalVercelPackage(nodeModulesDirectory){let packageDirectory=import_node_path.default.join(nodeModulesDirectory,"vercel"),realNodeModulesDirectory=await(0,import_promises.realpath)(nodeModulesDirectory),realPackageDirectory=await(0,import_promises.realpath)(packageDirectory);if(!(0,import_fsutils.isSubpath)(realNodeModulesDirectory,realPackageDirectory))return{reason:"local vercel package resolves outside local node_modules"};let unsafePackageDirectoryReason=await(0,import_safety.getUnsafePackageDirectoryReason)(realNodeModulesDirectory,realPackageDirectory);return unsafePackageDirectoryReason?{reason:`local vercel package is unsafe: ${unsafePackageDirectoryReason}`}:{realNodeModulesDirectory,realPackageDirectory,packageJson:{}}}async function readLocalVercelPackageJson(realPackageDirectory){let packageJsonPath=import_node_path.default.join(realPackageDirectory,"package.json"),realPackageJsonPath=await(0,import_promises.realpath)(packageJsonPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realPackageJsonPath))return{reason:"local vercel package.json resolves outside package"};let unsafePackageJsonReason=await(0,import_safety.getUnsafePackageFileReason)(realPackageDirectory,realPackageJsonPath);if(unsafePackageJsonReason)return{reason:`local vercel package.json is unsafe: ${unsafePackageJsonReason}`};let packageJson=JSON.parse(await(0,import_promises.readFile)(realPackageJsonPath,"utf8"));return packageJson.name!=="vercel"?{reason:'local vercel package.json does not have name "vercel"'}:{packageJson}}async function getDeclaredLocalVercelPackageBin(localPackage,commandBase){let{packageJson,realNodeModulesDirectory,realPackageDirectory}=localPackage,binTarget=getPackageBinTarget(packageJson,commandBase);if(!binTarget)return{reason:"local vercel package does not declare bin.vercel"};let declaredBinPath=import_node_path.default.resolve(realPackageDirectory,binTarget),realDeclaredBinPath=await(0,import_promises.realpath)(declaredBinPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realDeclaredBinPath))return{reason:"local vercel package bin resolves outside package"};let unsafePackageBinReason=await(0,import_safety.getUnsafePackageBinReason)(realNodeModulesDirectory,realPackageDirectory,realDeclaredBinPath);if(unsafePackageBinReason)return{reason:`local vercel package bin is unsafe: ${unsafePackageBinReason}`};if(process.platform!=="win32"&&!(0,import_fsutils.isNodeScript)(realDeclaredBinPath))try{await(0,import_promises.access)(realDeclaredBinPath,import_promises.constants.F_OK|import_promises.constants.X_OK)}catch(error){return{reason:`local vercel package bin is not executable: ${(0,import_errutils.getErrorMessage)(error)}`}}return{binPath:realDeclaredBinPath}}function getPackageBinTarget(packageJson,command){let bin=packageJson.bin;if(typeof bin=="string")return command==="vercel"?bin:null;if(bin&&typeof bin=="object"){let target=bin[command];if(typeof target=="string")return target}return null}function getCliInvocationCacheKey(cwd,pathValue){return`${cwd}\0${pathValue}`}}});var require_exec=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/exec.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),exec_exports={};__export(exec_exports,{execVercelCli:()=>execVercelCli2});module.exports=__toCommonJS(exec_exports);var import_node_path=__toESM(__require("node:path")),import_execa=__toESM(require_execa()),import_envpath=require_envpath(),import_errors=require_errors(),import_lookup=require_lookup();async function execVercelCli2(args,options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd());await(0,import_errors.assertValidCwd)(cwd);let env=mergeExecEnv(options.env),pathValue=(0,import_envpath.getEnvPath)(env);try{return await execResolvedVercelCli(args,options,cwd,env,pathValue)}catch(error){if(error instanceof import_errors.VercelCliError&&error.code==="VERCEL_CLI_NOT_FOUND")return(0,import_lookup.clearCachedCliInvocation)(cwd,pathValue),await execResolvedVercelCli(args,options,cwd,env,pathValue);throw error}}async function execResolvedVercelCli(args,options,cwd,env,pathValue){let invocation=await resolveInvocationOrThrow(cwd,pathValue);try{let execaOptions={input:options.input,stdio:options.stdio,stdin:options.stdin,stdout:options.stdout,stderr:options.stderr,timeout:options.timeout,cwd,env:await prependLocalBinsToEnvPath(cwd,env),windowsHide:!0};options.signal&&(execaOptions.signal=options.signal);let{stdout,stderr}=await(0,import_execa.default)(invocation.command,[...invocation.commandArgs,...args],execaOptions);return{stdout,stderr,invocation}}catch(error){throw(0,import_errors.toVercelCliError)(invocation,error)}}async function resolveInvocationOrThrow(cwd,pathValue){let resolution=await(0,import_lookup.resolveCachedCliInvocation)(cwd,pathValue);if(!resolution.found)throw new import_errors.VercelCliError({code:"VERCEL_CLI_NOT_FOUND",message:(0,import_errors.getCliNotFoundMessage)(resolution.diagnostics)});return(0,import_lookup.toVercelCliInvocation)(resolution)}function mergeExecEnv(env){return env?{...process.env,...env}:process.env}async function prependLocalBinsToEnvPath(cwd,env=process.env){let localPath=await prependLocalBinsToPath(cwd,(0,import_envpath.getEnvPath)(env));return(0,import_envpath.setEnvPath)(env,(0,import_envpath.prependPathEntries)(localPath,[import_node_path.default.dirname(process.execPath)]))}async function prependLocalBinsToPath(cwd,pathValue=""){return(0,import_envpath.prependPathEntries)(pathValue,(await(0,import_lookup.getLocalBinSearch)(cwd)).directories)}}});var require_dist=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/index.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),src_exports={};__export(src_exports,{VercelCliError:()=>import_errors.VercelCliError,clearVercelCliLookupCache:()=>import_lookup.clearVercelCliLookupCache,execVercelCli:()=>import_exec.execVercelCli,findVercelCli:()=>import_lookup.findVercelCli});module.exports=__toCommonJS(src_exports);var import_errors=require_errors(),import_exec=require_exec(),import_lookup=require_lookup()}});var require_token_error=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.2/node_modules/@vercel/oidc/dist/token-error.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_error_exports={};__export(token_error_exports,{VercelOidcTokenError:()=>VercelOidcTokenError});module.exports=__toCommonJS(token_error_exports);var VercelOidcTokenError=class extends Error{constructor(message,cause){super(message),this.name="VercelOidcTokenError",this.cause=cause}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}}});var require_token_io=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.2/node_modules/@vercel/oidc/dist/token-io.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_io_exports={};__export(token_io_exports,{findRootDir:()=>findRootDir,getUserDataDir:()=>getUserDataDir});module.exports=__toCommonJS(token_io_exports);var import_path=__toESM(__require("path")),import_fs=__toESM(__require("fs")),import_os=__toESM(__require("os")),import_token_error=require_token_error();function findRootDir(){try{let dir=process.cwd();for(;dir!==import_path.default.dirname(dir);){let pkgPath=import_path.default.join(dir,".vercel");if(import_fs.default.existsSync(pkgPath))return dir;dir=import_path.default.dirname(dir)}}catch{throw new import_token_error.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function getUserDataDir(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(import_os.default.platform()){case"darwin":return import_path.default.join(import_os.default.homedir(),"Library/Application Support");case"linux":return import_path.default.join(import_os.default.homedir(),".local/share");case"win32":return process.env.LOCALAPPDATA?process.env.LOCALAPPDATA:null;default:return null}}}});var require_oauth=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.2/node_modules/@vercel/oidc/dist/oauth.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),oauth_exports={};__export(oauth_exports,{processTokenResponse:()=>processTokenResponse,refreshTokenRequest:()=>refreshTokenRequest});module.exports=__toCommonJS(oauth_exports);var import_os=__require("os"),VERCEL_ISSUER="https://vercel.com",VERCEL_CLI_CLIENT_ID="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",userAgent=`@vercel/oidc node-${process.version} ${(0,import_os.platform)()} (${(0,import_os.arch)()}) ${(0,import_os.hostname)()}`,_tokenEndpoint=null;async function getTokenEndpoint(){if(_tokenEndpoint)return _tokenEndpoint;let discoveryUrl=`${VERCEL_ISSUER}/.well-known/openid-configuration`,response=await fetch(discoveryUrl,{headers:{"user-agent":userAgent}});if(!response.ok)throw new Error("Failed to discover OAuth endpoints");let metadata=await response.json();if(!metadata||typeof metadata.token_endpoint!="string")throw new Error("Invalid OAuth discovery response");let endpoint=metadata.token_endpoint;return _tokenEndpoint=endpoint,endpoint}async function refreshTokenRequest(options){let tokenEndpoint=await getTokenEndpoint();return await fetch(tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":userAgent},body:new URLSearchParams({client_id:VERCEL_CLI_CLIENT_ID,grant_type:"refresh_token",...options})})}async function processTokenResponse(response){let json=await response.json();if(!response.ok){let errorMsg=typeof json=="object"&&json&&"error"in json?String(json.error):"Token refresh failed";return[new Error(errorMsg)]}return typeof json!="object"||json===null?[new Error("Invalid token response")]:typeof json.access_token!="string"?[new Error("Missing access_token in response")]:json.token_type!=="Bearer"?[new Error("Invalid token_type in response")]:typeof json.expires_in!="number"?[new Error("Missing expires_in in response")]:[null,json]}}});var require_auth_errors=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.2/node_modules/@vercel/oidc/dist/auth-errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),auth_errors_exports={};__export(auth_errors_exports,{AccessTokenMissingError:()=>AccessTokenMissingError,RefreshAccessTokenFailedError:()=>RefreshAccessTokenFailedError});module.exports=__toCommonJS(auth_errors_exports);var AccessTokenMissingError=class extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}},RefreshAccessTokenFailedError=class extends Error{constructor(cause){super("Failed to refresh authentication token."),this.name="RefreshAccessTokenFailedError",cause!==void 0&&(this.cause=cause)}}}});var require_token_util=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.2/node_modules/@vercel/oidc/dist/token-util.js"(exports,module){var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_util_exports={};__export(token_util_exports,{assertVercelOidcTokenResponse:()=>assertVercelOidcTokenResponse,findProjectInfo:()=>findProjectInfo,getTokenPayload:()=>getTokenPayload,getVercelOidcToken:()=>getVercelOidcToken,getVercelOidcTokenFromCli:()=>getVercelOidcTokenFromCli,getVercelToken:()=>getVercelToken,isExpired:()=>isExpired,loadToken:()=>loadToken,saveToken:()=>saveToken});module.exports=__toCommonJS(token_util_exports);var path=__toESM(__require("path")),fs=__toESM(__require("fs")),import_cli_exec=require_dist(),import_cli_config=__require("@vercel/cli-config"),import_token_error=require_token_error(),import_token_io=require_token_io(),import_oauth=require_oauth(),import_auth_errors=require_auth_errors();async function getVercelToken(options){let configDir=(0,import_cli_config.getGlobalPathConfig)(),authConfig=(0,import_cli_config.tryReadAuthConfig)(configDir);if(!authConfig||!authConfig.token&&!authConfig.refreshToken)throw new import_auth_errors.AccessTokenMissingError;if(isValidAccessToken(authConfig,options?.expirationBufferMs))return authConfig.token;if(!authConfig.refreshToken)throw(0,import_cli_config.writeAuthConfig)(configDir,{}),new import_auth_errors.RefreshAccessTokenFailedError("No refresh token available");try{let tokenResponse=await(0,import_oauth.refreshTokenRequest)({refresh_token:authConfig.refreshToken}),[tokensError,tokens]=await(0,import_oauth.processTokenResponse)(tokenResponse);if(tokensError||!tokens)throw(0,import_cli_config.writeAuthConfig)(configDir,{}),new import_auth_errors.RefreshAccessTokenFailedError(tokensError);let updatedConfig={token:tokens.access_token,expiresAt:Math.floor(Date.now()/1e3)+tokens.expires_in,refreshToken:tokens.refresh_token};return(0,import_cli_config.writeAuthConfig)(configDir,updatedConfig),updatedConfig.token}catch(error){throw(0,import_cli_config.writeAuthConfig)(configDir,{}),error instanceof import_auth_errors.AccessTokenMissingError||error instanceof import_auth_errors.RefreshAccessTokenFailedError?error:new import_auth_errors.RefreshAccessTokenFailedError(error)}}function isValidAccessToken(authConfig,expirationBufferMs=0){if(!authConfig.token)return!1;if(typeof authConfig.expiresAt!="number")return!0;let nowInSeconds=Math.floor(Date.now()/1e3),bufferInSeconds=expirationBufferMs/1e3;return authConfig.expiresAt>=nowInSeconds+bufferInSeconds}async function getVercelOidcTokenFromCli(projectId,teamId){let args=["project","token",projectId,"--format=json"];teamId&&args.push("--scope",teamId);try{let{stdout}=await(0,import_cli_exec.execVercelCli)(args),parsedOutput;if(typeof stdout!="string")throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: `vercel project token` did not return stdout");try{parsedOutput=JSON.parse(stdout)}catch{throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: `vercel project token` returned invalid JSON: "+stdout)}return assertVercelOidcTokenResponse(parsedOutput),parsedOutput}catch(error){if(error instanceof import_token_error.VercelOidcTokenError)throw error;let message=error instanceof Error?error.message:"",stderr=error instanceof import_cli_exec.VercelCliError?error.stderr?.trim():void 0;throw stderr&&!message.includes(stderr)&&(message=`${message}
|
|
11
|
+
${stderr}`.trim()),new import_token_error.VercelOidcTokenError(message?`Failed to refresh OIDC token with the Vercel CLI: ${message}`:"Failed to refresh OIDC token with the Vercel CLI")}}async function getVercelOidcToken(authToken,projectId,teamId){let url=`https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId?`&teamId=${teamId}`:""}`,res=await fetch(url,{method:"POST",headers:{Authorization:`Bearer ${authToken}`}});if(!res.ok)throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token: ${res.statusText}`);let tokenRes=await res.json();return assertVercelOidcTokenResponse(tokenRes),tokenRes}function assertVercelOidcTokenResponse(res){if(!res||typeof res!="object")throw new TypeError("Vercel OIDC token is malformed. Expected an object.");if(!("token"in res)||typeof res.token!="string")throw new TypeError("Vercel OIDC token is malformed. Expected a string-valued token property.")}function findProjectInfo(){let dir=(0,import_token_io.findRootDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let prjPath=path.join(dir,".vercel","project.json");if(!fs.existsSync(prjPath))throw new import_token_error.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let prj=JSON.parse(fs.readFileSync(prjPath,"utf8"));if(typeof prj.projectId!="string"&&typeof prj.orgId!="string")throw new TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:prj.projectId,teamId:prj.orgId}}function saveToken(token,projectId){let dir=(0,import_token_io.getUserDataDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let tokenPath=path.join(dir,"com.vercel.token",`${projectId}.json`),tokenJson=JSON.stringify(token);fs.mkdirSync(path.dirname(tokenPath),{mode:504,recursive:!0}),fs.writeFileSync(tokenPath,tokenJson),fs.chmodSync(tokenPath,432)}function loadToken(projectId){let dir=(0,import_token_io.getUserDataDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let tokenPath=path.join(dir,"com.vercel.token",`${projectId}.json`);if(!fs.existsSync(tokenPath))return null;let token=JSON.parse(fs.readFileSync(tokenPath,"utf8"));return assertVercelOidcTokenResponse(token),token}function getTokenPayload(token){let tokenParts=token.split(".");if(tokenParts.length!==3)throw new import_token_error.VercelOidcTokenError("Invalid token.");let base64=tokenParts[1].replace(/-/g,"+").replace(/_/g,"/"),padded=base64.padEnd(base64.length+(4-base64.length%4)%4,"=");return JSON.parse(Buffer.from(padded,"base64").toString("utf8"))}function isExpired(token,bufferMs=0){return token.exp*1e3<Date.now()+bufferMs}}});export{require_token_error,require_auth_errors,require_token_util};
|