vercel 65.0.0 → 65.1.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/dist/chunks/add-G44L5OSZ.js +8 -0
- package/dist/chunks/add-JATTZAMX.js +8 -0
- package/dist/chunks/add-QMLQDEWM.js +8 -0
- package/dist/chunks/build-ODRPV34E.js +7 -0
- package/dist/chunks/chunk-2N5LDFMR.js +10 -0
- package/dist/chunks/chunk-2NABMKFV.js +29 -0
- package/dist/chunks/chunk-2PKEEQ5W.js +25 -0
- package/dist/chunks/{chunk-27QCVNMI.js → chunk-3LIKVGFT.js} +1 -1
- package/dist/chunks/{chunk-VF2WX27D.js → chunk-3PMDNDOO.js} +2 -2
- package/dist/chunks/{chunk-VY63XWWU.js → chunk-3V6MUBCO.js} +1 -1
- package/dist/chunks/{chunk-RRWEIG6B.js → chunk-3XW7N4W3.js} +1 -1
- package/dist/chunks/{chunk-HBPSZHXX.js → chunk-4B45V3VM.js} +1 -1
- package/dist/chunks/{chunk-VO2XAQFF.js → chunk-4CKX6KUQ.js} +8 -9
- package/dist/chunks/{detect-projects-CHMBPFSE.js → chunk-4VFYJU37.js} +1 -1
- package/dist/chunks/chunk-4YDPE5DC.js +7 -0
- package/dist/chunks/{chunk-VAZQS475.js → chunk-572TYS62.js} +1 -1
- package/dist/chunks/{chunk-ZIWS57E4.js → chunk-5A46JI25.js} +1 -1
- package/dist/chunks/chunk-5Q7PEC6C.js +7 -0
- package/dist/chunks/chunk-5RMIM4S2.js +7 -0
- package/dist/chunks/{chunk-3XDTQFBL.js → chunk-5WTGQDJ7.js} +7 -7
- package/dist/chunks/chunk-64XCYUH7.js +7 -0
- package/dist/chunks/{chunk-KNTBWMVA.js → chunk-67NIX52O.js} +1 -1
- package/dist/chunks/{chunk-2UBZCG4F.js → chunk-6A4CDEBQ.js} +1 -1
- package/dist/chunks/chunk-6CXJXQ6W.js +8 -0
- package/dist/chunks/chunk-6HEPFWGT.js +7 -0
- package/dist/chunks/chunk-6IDNVZZR.js +7 -0
- package/dist/chunks/{chunk-Z6JDXW4A.js → chunk-6KF43YYP.js} +1 -1
- package/dist/chunks/{chunk-DBNQ45J5.js → chunk-6OVX3PWM.js} +1 -1
- package/dist/chunks/{chunk-OVV5MV5M.js → chunk-6RCYHBTM.js} +1 -1
- package/dist/chunks/{chunk-AZ5OUZPP.js → chunk-6VH56CX2.js} +1 -1
- package/dist/chunks/chunk-6Y2ZL5XJ.js +98 -0
- package/dist/chunks/{chunk-ENWROHWX.js → chunk-7MQHQTCJ.js} +1 -1
- package/dist/chunks/chunk-7YKFF6CE.js +7 -0
- package/dist/chunks/{chunk-WDWYKX2I.js → chunk-ADLBLGT3.js} +1 -1
- package/dist/chunks/{chunk-DGDNI76L.js → chunk-AMUAIMYY.js} +1 -1
- package/dist/chunks/chunk-ANMDN3EG.js +9 -0
- package/dist/chunks/chunk-BLUPZPAS.js +7 -0
- package/dist/chunks/chunk-BTI5TG6Q.js +7 -0
- package/dist/chunks/chunk-BUJITHGZ.js +8 -0
- package/dist/chunks/chunk-C6GY2G73.js +7 -0
- package/dist/chunks/chunk-CBXS6UFD.js +10 -0
- package/dist/chunks/{chunk-52JGR5SZ.js → chunk-CGSHQ7QM.js} +1 -1
- package/dist/chunks/chunk-CKZLNL5F.js +8 -0
- package/dist/chunks/chunk-CS532HK4.js +7 -0
- package/dist/chunks/{chunk-IYM5GO57.js → chunk-CV333GGZ.js} +1 -1
- package/dist/chunks/{chunk-WFSQ3OSN.js → chunk-CVDK3IYT.js} +6 -9
- package/dist/chunks/{chunk-BFJC3UDU.js → chunk-CWQJK5IX.js} +1 -1
- package/dist/chunks/chunk-D3M2JG5C.js +7 -0
- package/dist/chunks/{chunk-RUOOZ574.js → chunk-DHYND2QH.js} +1 -1
- package/dist/chunks/chunk-DQYCNHTR.js +21 -0
- package/dist/chunks/{chunk-VO36D4U4.js → chunk-DRT6ITIC.js} +1 -1
- package/dist/chunks/chunk-DWJRJK7I.js +7 -0
- package/dist/chunks/chunk-DWZBL4NK.js +7 -0
- package/dist/chunks/{chunk-SSKMT5SL.js → chunk-E432NQGO.js} +1 -1
- package/dist/chunks/chunk-ECQIO5K3.js +7 -0
- package/dist/chunks/{chunk-4T22AQTB.js → chunk-EKLONFSU.js} +1 -1
- package/dist/chunks/chunk-ESCYLPN6.js +7 -0
- package/dist/chunks/{chunk-EKMQNUO4.js → chunk-F2LZJWGH.js} +1 -1
- package/dist/chunks/{chunk-X5J7LOJK.js → chunk-F5QCUTBE.js} +1 -1
- package/dist/chunks/chunk-F7AVGV4Y.js +7 -0
- package/dist/chunks/{chunk-JETQEZ24.js → chunk-FDAMQA44.js} +2 -2
- package/dist/chunks/chunk-FDYDTFFM.js +7 -0
- package/dist/chunks/{chunk-KDABXEHF.js → chunk-FGEWQYON.js} +1 -1
- package/dist/chunks/{chunk-FPC5LINQ.js → chunk-FGFLTLEA.js} +1 -1
- package/dist/chunks/{chunk-2BAAJZBZ.js → chunk-FQ5EU3ML.js} +1 -1
- package/dist/chunks/chunk-FUX6LKNP.js +7 -0
- package/dist/chunks/{chunk-L5ANBZTX.js → chunk-GA277JFB.js} +1 -1
- package/dist/chunks/chunk-GD7AV7BO.js +9 -0
- package/dist/chunks/chunk-GENXRXFN.js +10 -0
- package/dist/chunks/{chunk-W7J5HTTY.js → chunk-GENZ5QV5.js} +1 -1
- package/dist/chunks/{chunk-KXHUMVXD.js → chunk-H2FI64HG.js} +1 -1
- package/dist/chunks/{chunk-PNUH3XXW.js → chunk-HBLBUOZ7.js} +2 -2
- package/dist/chunks/{chunk-EJINOHL3.js → chunk-HCRD3JFL.js} +1 -1
- package/dist/chunks/{chunk-X3VSVBXT.js → chunk-HO6ECDO3.js} +2 -2
- package/dist/chunks/chunk-HRR57QNP.js +7 -0
- package/dist/chunks/{chunk-AGDMSAYW.js → chunk-I26SSWTS.js} +1 -1
- package/dist/chunks/{chunk-XD2FF2PZ.js → chunk-IC27IY7N.js} +1 -1
- package/dist/chunks/{chunk-IKSZMJKB.js → chunk-IPZHE3OU.js} +2 -2
- package/dist/chunks/{chunk-WTBGMDQ7.js → chunk-IQKGQ2Y2.js} +1 -1
- package/dist/chunks/chunk-IWVEHRIU.js +7 -0
- package/dist/chunks/chunk-IZWASLQ6.js +7 -0
- package/dist/chunks/{chunk-JWX2YZVC.js → chunk-J2RX4B5S.js} +1 -1
- package/dist/chunks/chunk-J52VRTEQ.js +10 -0
- package/dist/chunks/{chunk-PXU645V7.js → chunk-JB7ZP4L4.js} +1 -1
- package/dist/chunks/{chunk-JDVUKDX3.js → chunk-JBUFVCTP.js} +1 -1
- package/dist/chunks/{chunk-6CXHR2ND.js → chunk-JELLVPCM.js} +2 -2
- package/dist/chunks/{chunk-CTKJQTC5.js → chunk-JLEJB6KM.js} +1 -1
- package/dist/chunks/{chunk-66262IYI.js → chunk-JP2W5MLV.js} +1 -1
- package/dist/chunks/chunk-JXLPHMKT.js +7 -0
- package/dist/chunks/{chunk-VCV3H73W.js → chunk-JY4EKLND.js} +1 -1
- package/dist/chunks/{chunk-RAN5LUZY.js → chunk-K246KRFS.js} +1 -1
- package/dist/chunks/chunk-K4AZWWRJ.js +7 -0
- package/dist/chunks/{chunk-7OMWRRY4.js → chunk-KINNDNJ3.js} +1 -1
- package/dist/chunks/chunk-KKRTKV62.js +7 -0
- package/dist/chunks/chunk-KRPY5FHJ.js +7 -0
- package/dist/chunks/{chunk-YXZGKFF3.js → chunk-KW6GSQXV.js} +1 -1
- package/dist/chunks/chunk-L3FAM6KS.js +8 -0
- package/dist/chunks/chunk-L3T6AEPG.js +7 -0
- package/dist/chunks/{chunk-YPX7BXJ6.js → chunk-L6TM45P4.js} +2 -2
- package/dist/chunks/chunk-M5WBBJRW.js +7 -0
- package/dist/chunks/{chunk-RTWGDRYT.js → chunk-MG7CRSO5.js} +1 -1
- package/dist/chunks/chunk-MTTYJO4W.js +8 -0
- package/dist/chunks/{chunk-MTETAZA4.js → chunk-NFEG7ONP.js} +1 -1
- package/dist/chunks/chunk-NFUAFRIC.js +7 -0
- package/dist/chunks/{chunk-WYJGP5QW.js → chunk-NHRZRW54.js} +1 -1
- package/dist/chunks/chunk-NNH2H4LZ.js +15 -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-X7CLBXWL.js → chunk-OPORM35X.js} +1 -1
- package/dist/chunks/chunk-PA2A2V5Y.js +10 -0
- package/dist/chunks/{chunk-UDMEPP3K.js → chunk-PBC276AK.js} +1 -1
- package/dist/chunks/{chunk-B6U5434D.js → chunk-PCLWLNZC.js} +1 -1
- package/dist/chunks/chunk-PDY2YXG7.js +7 -0
- package/dist/chunks/{chunk-KCVCGYAR.js → chunk-PF6O7LHL.js} +2 -2
- package/dist/chunks/chunk-PFD7LETF.js +7 -0
- package/dist/chunks/{chunk-LJIQZ3LU.js → chunk-PRAWMNTU.js} +1 -1
- package/dist/chunks/chunk-PSOVLGHP.js +7 -0
- package/dist/chunks/chunk-PWNCGM6A.js +7 -0
- package/dist/chunks/{chunk-KUGFILF5.js → chunk-PXGJGWVA.js} +1 -1
- package/dist/chunks/chunk-QO7CBCML.js +7 -0
- package/dist/chunks/{chunk-66ODHUGV.js → chunk-QWE7OFE7.js} +1 -1
- package/dist/chunks/{chunk-CZ2KEML2.js → chunk-R6BEOVTU.js} +1 -1
- package/dist/chunks/chunk-RLKS5G6C.js +12 -0
- package/dist/chunks/{chunk-WFEEUZ6B.js → chunk-RX2VZBEZ.js} +1 -1
- package/dist/chunks/chunk-S3L2OHPO.js +7 -0
- package/dist/chunks/{chunk-JT273F22.js → chunk-S3QPCSQR.js} +1 -1
- package/dist/chunks/{chunk-7G72V52B.js → chunk-SDDKXGMK.js} +1 -1
- package/dist/chunks/chunk-SSULKPUE.js +12 -0
- package/dist/chunks/chunk-TAAWMNNL.js +7 -0
- package/dist/chunks/chunk-THRWLZ3N.js +7 -0
- package/dist/chunks/chunk-U4Z2MMOF.js +301 -0
- package/dist/chunks/chunk-UVHKXCR5.js +11 -0
- package/dist/chunks/chunk-UYOFNAH5.js +33 -0
- package/dist/chunks/{chunk-GRVLQZFQ.js → chunk-VG2AJII6.js} +1 -1
- package/dist/chunks/chunk-VPH6RJ5P.js +7 -0
- package/dist/chunks/chunk-VT3QK5IV.js +7 -0
- package/dist/chunks/{chunk-T5LBVZWY.js → chunk-VWIHFPW2.js} +1 -1
- package/dist/chunks/{chunk-F4ZFLPMT.js → chunk-W4FODG6F.js} +1 -1
- package/dist/chunks/{chunk-FN7TTXXY.js → chunk-W6RCABNS.js} +1 -1
- package/dist/chunks/{chunk-43T3YKNH.js → chunk-WFAZDFAR.js} +1 -1
- package/dist/chunks/{chunk-VWK26HHN.js → chunk-WSD53RLA.js} +1 -1
- package/dist/chunks/chunk-XGTKHQTT.js +7 -0
- package/dist/chunks/{chunk-UGZ3HFHI.js → chunk-XP3FT56R.js} +3 -3
- package/dist/chunks/chunk-XR6QY7RR.js +7 -0
- package/dist/chunks/chunk-XRRGT7CM.js +9 -0
- package/dist/chunks/chunk-Y3J6UDPB.js +7 -0
- package/dist/chunks/chunk-Y5RR6CRP.js +17 -0
- package/dist/chunks/chunk-YEYZP3IH.js +7 -0
- package/dist/chunks/{chunk-HNF2BEOE.js → chunk-YJXE7NJC.js} +1 -1
- package/dist/chunks/{chunk-7C5JHTHO.js → chunk-YPKKC232.js} +1 -1
- package/dist/chunks/chunk-ZF27J6FQ.js +7 -0
- package/dist/chunks/chunk-ZFRNVIHI.js +7 -0
- package/dist/chunks/chunk-ZPXMOZ4S.js +7 -0
- package/dist/chunks/clear-REFHHJJB.js +8 -0
- package/dist/chunks/compile-vercel-config-Q7JGV2RD.js +7 -0
- package/dist/chunks/config-DQ23X4AJ.js +7 -0
- package/dist/chunks/config-GKMT3G67.js +8 -0
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/connect-git-provider-FS5Q2HO4.js +7 -0
- package/dist/chunks/delete-5H7AMGTE.js +10 -0
- package/dist/chunks/delete-MIDLGXPG.js +9 -0
- package/dist/chunks/detect-projects-NLAYKNQX.js +7 -0
- package/dist/chunks/detect-services-CNIBYXAN.js +7 -0
- package/dist/chunks/disable-45GKGBKT.js +7 -0
- package/dist/chunks/discard-ZHC6DXON.js +14 -0
- package/dist/chunks/dist-33WTJLVQ.js +7 -0
- package/dist/chunks/dist-RXYNZPEA.js +7 -0
- package/dist/chunks/edit-N6D2VXVA.js +9 -0
- package/dist/chunks/edit-TVSUOODD.js +8 -0
- package/dist/chunks/enable-SXFQAYFU.js +7 -0
- package/dist/chunks/{exec-5ZWP5NC6.js → exec-OZSY46V6.js} +1 -1
- package/dist/chunks/{export-3OE2RWU7.js → export-5G7MAWTT.js} +1 -1
- package/dist/chunks/fetch-proxy-45DGILKR.js +67 -0
- package/dist/chunks/future-3BZKO5JV.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-YAJHY6TW.js +7 -0
- package/dist/chunks/image-W5TWCF3B.js +7 -0
- package/dist/chunks/import-builders-PK2EHZ43.js +7 -0
- package/dist/chunks/{inspect-HYJULYCV.js → inspect-5PNUHNL2.js} +1 -1
- package/dist/chunks/{inspect-GD6JJPWG.js → inspect-BNOMQCB4.js} +1 -1
- package/dist/chunks/inspect-IS5SYBTI.js +9 -0
- package/dist/chunks/{inspect-JWDH7C6F.js → inspect-NWAB6AGM.js} +1 -1
- package/dist/chunks/inspect-O5IKZFOG.js +13 -0
- package/dist/chunks/{list-AGS47O5P.js → list-3Q5CBGFH.js} +1 -1
- package/dist/chunks/{list-4SZS2TB7.js → list-JF2OEQON.js} +1 -1
- package/dist/chunks/list-OVHNSNGA.js +12 -0
- package/dist/chunks/login-3BXNN3JH.js +7 -0
- package/dist/chunks/login-5FKYBEVP.js +9 -0
- package/dist/chunks/logs-ALPOUQZZ.js +7 -0
- package/dist/chunks/ls-4WMW65WV.js +8 -0
- package/dist/chunks/{ls-Y2JQYSVO.js → ls-DVHKDVJJ.js} +1 -1
- package/dist/chunks/{ls-LGL5ZKEJ.js → ls-GCFLDDFZ.js} +1 -1
- package/dist/chunks/{ls-ZPUNJ7ND.js → ls-MERY5XTJ.js} +1 -1
- package/dist/chunks/{ls-KNRG7G5K.js → ls-RO7VUFMS.js} +1 -1
- package/dist/chunks/{ls-WQX2DS4X.js → ls-RWBJBEIJ.js} +1 -1
- package/dist/chunks/ls-YOXQDZ7X.js +11 -0
- package/dist/chunks/mutate-TGIOOZVQ.js +9 -0
- package/dist/chunks/notifications-J24CW3SD.js +7 -0
- package/dist/chunks/open-5U4GN2S4.js +7 -0
- package/dist/chunks/openapi-CZCUACZA.js +7 -0
- package/dist/chunks/permissions-B2RJ4FS6.js +7 -0
- package/dist/chunks/plugin-offer-E4DLD4HU.js +9 -0
- package/dist/chunks/prompt-missing-credentials-WWEM2TVX.js +7 -0
- package/dist/chunks/publish-BK3BK3PV.js +15 -0
- package/dist/chunks/pull-CSFLO6P5.js +7 -0
- package/dist/chunks/purchase-domain-if-available-7VAJB3SY.js +7 -0
- package/dist/chunks/push-ENXU4VFN.js +7 -0
- package/dist/chunks/{query-JA5OWDSP.js → query-RW2DLTO5.js} +1 -1
- package/dist/chunks/reauthenticate-QKPBNAAH.js +7 -0
- package/dist/chunks/reorder-XXOCBKOR.js +10 -0
- package/dist/chunks/reply-IJ4UMSYT.js +9 -0
- package/dist/chunks/resolve-FHUXU6TQ.js +12 -0
- package/dist/chunks/resolve-agent-team-3432OTOK.js +7 -0
- package/dist/chunks/{resolve-deployment-framework-preset-JPT2MRPA.js → resolve-deployment-framework-preset-AXXYBFCL.js} +1 -1
- package/dist/chunks/restore-V2KCZWP3.js +16 -0
- package/dist/chunks/rm-5CDEDJXM.js +8 -0
- package/dist/chunks/rm-FN3G7ARM.js +8 -0
- package/dist/chunks/rm-MPREW2CR.js +8 -0
- package/dist/chunks/rm-VDEXQXNO.js +8 -0
- package/dist/chunks/rm-XUEOPXWC.js +8 -0
- package/dist/chunks/routes-KHBSGELO.js +7 -0
- package/dist/chunks/rule-inspect-27A23NWG.js +8 -0
- package/dist/chunks/schema-CE2N7SZP.js +14 -0
- package/dist/chunks/{schema-OV4SUO52.js → schema-JCJF3AUI.js} +1 -1
- package/dist/chunks/select-org-IAA5ZTIS.js +7 -0
- package/dist/chunks/set-YP4JEPJQ.js +7 -0
- package/dist/chunks/setup-and-link-HS4GH2QQ.js +7 -0
- package/dist/chunks/{skills-6EFE7KH7.js → skills-U52S6GRY.js} +1 -1
- package/dist/chunks/tags-7WRBB2U4.js +7 -0
- package/dist/chunks/token-W6P2KNI5.js +7 -0
- package/dist/chunks/token-util-JDQI37VN.js +7 -0
- package/dist/chunks/{types-2DDQTYAO.js → types-LKCU7WSY.js} +1 -1
- package/dist/chunks/{update-XUMH6CAJ.js → update-DUSQP2H7.js} +1 -1
- package/dist/chunks/zod-2C2SXNIK.js +7 -0
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +6 -6
- package/dist/commands/dev/index.js +17 -15
- package/dist/commands/env/index.js +8 -8
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +113 -0
- package/dist/commands-account.js +185 -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 +93 -0
- package/dist/commands-routing.js +273 -0
- package/dist/index.js +4 -4
- package/dist/internal-build-worker.js +1 -1
- package/dist/internal-build.js +2 -2
- package/dist/root-help-commands.mjs +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +59 -58
- package/dist/chunks/add-2HOGPYWC.js +0 -8
- package/dist/chunks/add-2RYLJ442.js +0 -8
- package/dist/chunks/add-PAQE7CT2.js +0 -8
- package/dist/chunks/build-77Q2YPHO.js +0 -7
- package/dist/chunks/chunk-36N6VMW4.js +0 -7
- package/dist/chunks/chunk-3GXZPT7T.js +0 -7
- package/dist/chunks/chunk-3L4MAGRI.js +0 -31
- package/dist/chunks/chunk-732WJANV.js +0 -15
- package/dist/chunks/chunk-AW7DEWIM.js +0 -7
- package/dist/chunks/chunk-BHWEIKSP.js +0 -10
- package/dist/chunks/chunk-BJ5APZ6X.js +0 -7
- package/dist/chunks/chunk-BZQ7YWSB.js +0 -10
- package/dist/chunks/chunk-CLKHGKJA.js +0 -7
- package/dist/chunks/chunk-FRSHC2HN.js +0 -7
- package/dist/chunks/chunk-IMMMID5G.js +0 -7
- package/dist/chunks/chunk-INDGZ3JK.js +0 -30
- package/dist/chunks/chunk-MIKNK3B6.js +0 -7
- package/dist/chunks/chunk-MVCAUS4F.js +0 -36
- package/dist/chunks/chunk-NYKEU7DQ.js +0 -8
- package/dist/chunks/chunk-O3AL3QFA.js +0 -7
- package/dist/chunks/chunk-ODB7LEAO.js +0 -7
- package/dist/chunks/chunk-PS3KKHSI.js +0 -7
- package/dist/chunks/chunk-R3MRIQMO.js +0 -7
- package/dist/chunks/chunk-RH2SQQWH.js +0 -10
- package/dist/chunks/chunk-UMUPJDWU.js +0 -7
- package/dist/chunks/chunk-WKC7S5IW.js +0 -9
- package/dist/chunks/chunk-XBTLXKOI.js +0 -7
- package/dist/chunks/chunk-XDKCDGJF.js +0 -25
- package/dist/chunks/chunk-YNOLLMOG.js +0 -9
- package/dist/chunks/chunk-YTDK6AHS.js +0 -7
- package/dist/chunks/chunk-ZVRKM3UD.js +0 -12
- package/dist/chunks/clear-HPHGW2CD.js +0 -8
- package/dist/chunks/compile-vercel-config-YG2E5LXN.js +0 -7
- package/dist/chunks/config-PZ7HFZQZ.js +0 -8
- package/dist/chunks/config-XH532PP3.js +0 -7
- package/dist/chunks/connect-git-provider-WEFO2ESM.js +0 -7
- package/dist/chunks/delete-UPHMMYEJ.js +0 -10
- package/dist/chunks/delete-Z7PXYHTL.js +0 -9
- package/dist/chunks/detect-services-ZYHOOBMO.js +0 -7
- package/dist/chunks/disable-34LCZPFL.js +0 -7
- package/dist/chunks/discard-HDUCYAHG.js +0 -14
- package/dist/chunks/edit-4F7DADVN.js +0 -9
- package/dist/chunks/edit-5WKAHKCW.js +0 -8
- package/dist/chunks/enable-YV6I32W6.js +0 -7
- package/dist/chunks/fetch-proxy-OC6B22AW.js +0 -7
- package/dist/chunks/future-N2ZTDYVW.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-ORS7XL64.js +0 -7
- package/dist/chunks/image-WTWQT7A4.js +0 -7
- package/dist/chunks/import-builders-XBGAW4MC.js +0 -7
- package/dist/chunks/inspect-ISRYYL7L.js +0 -13
- package/dist/chunks/inspect-MEYRAEVT.js +0 -9
- package/dist/chunks/list-O7FAMXMT.js +0 -12
- package/dist/chunks/login-KNE2BGUB.js +0 -9
- package/dist/chunks/login-NCAGHBZD.js +0 -7
- package/dist/chunks/logs-7H5XDI44.js +0 -7
- package/dist/chunks/ls-RI6BNJO7.js +0 -8
- package/dist/chunks/ls-UJHETSDA.js +0 -11
- package/dist/chunks/mutate-QHSLJCQU.js +0 -9
- package/dist/chunks/notifications-557GW5KI.js +0 -7
- package/dist/chunks/open-IYLA5OZF.js +0 -7
- package/dist/chunks/openapi-IVXUCJPM.js +0 -7
- package/dist/chunks/permissions-2XHSDRNE.js +0 -7
- package/dist/chunks/prompt-missing-credentials-BLT57RIR.js +0 -7
- package/dist/chunks/publish-MQ56IB4K.js +0 -15
- package/dist/chunks/pull-K3JVXGZM.js +0 -7
- package/dist/chunks/purchase-domain-if-available-VDMLT3J2.js +0 -7
- package/dist/chunks/push-YXUJGMP4.js +0 -7
- package/dist/chunks/reauthenticate-YZXHWSEC.js +0 -7
- package/dist/chunks/reorder-UNU63VF3.js +0 -10
- package/dist/chunks/reply-CTLC5KAK.js +0 -9
- package/dist/chunks/resolve-HTKF4MMV.js +0 -12
- package/dist/chunks/resolve-agent-team-DLIROIXX.js +0 -7
- package/dist/chunks/restore-CSZYM5WU.js +0 -16
- package/dist/chunks/rm-BGLDOP4N.js +0 -8
- package/dist/chunks/rm-O2XVUZOW.js +0 -8
- package/dist/chunks/rm-OSMI52XV.js +0 -8
- package/dist/chunks/rm-SZIT75ZY.js +0 -8
- package/dist/chunks/rm-WJERY4WM.js +0 -8
- package/dist/chunks/routes-ZNPZJERJ.js +0 -7
- package/dist/chunks/rule-inspect-NGI6XURL.js +0 -8
- package/dist/chunks/schema-JLQ7SNYR.js +0 -14
- package/dist/chunks/select-org-URO7GRAY.js +0 -7
- package/dist/chunks/set-RU227EQQ.js +0 -7
- package/dist/chunks/setup-and-link-WX6IEZZO.js +0 -7
- package/dist/chunks/tags-KJINDQSV.js +0 -7
- package/dist/commands-bulk.js +0 -1673
|
@@ -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{jsonOption,projectOption,yesOption}from"./chunk-64XCYUH7.js";import{packageName}from"./chunk-JESNVRVR.js";var listSubcommand={name:"list",aliases:["ls"],description:"List all routing rules for the current project. These routes apply to all deployments and environments.",arguments:[],options:[projectOption,jsonOption,{name:"search",description:"Search by name, description, source, or destination",shorthand:null,deprecatedShorthand:"s",type:String,argument:"QUERY",deprecated:!1},{name:"filter",description:"Filter by type: rewrite, redirect, set_status, transform",shorthand:null,deprecatedShorthand:"f",type:String,argument:"TYPE",deprecated:!1},{name:"production",description:"List routes from the live production version",shorthand:null,type:Boolean,deprecated:!1},{name:"version-id",description:"List routes from a specific version ID",shorthand:null,type:String,argument:"VERSION_ID",deprecated:!1},{name:"diff",description:"Compare staged changes against production. Use with --version-id to compare a specific version.",shorthand:null,type:Boolean,deprecated:!1},{name:"expand",description:"Show expanded details for each route",shorthand:null,deprecatedShorthand:"e",type:Boolean,deprecated:!1}],examples:[{name:"List all routes",value:`${packageName} routes list`},{name:"Search for routes",value:`${packageName} routes list --search "api"`},{name:"Filter by type",value:`${packageName} routes list --filter rewrite`},{name:"Show staged changes",value:`${packageName} routes list --diff`},{name:"Show live production routes",value:`${packageName} routes list --production`},{name:"Show expanded details",value:`${packageName} routes list --expand`}]},listVersionsSubcommand={name:"list-versions",aliases:["ls-versions"],description:"List all versions of routing rules",arguments:[],options:[projectOption,jsonOption,{name:"count",description:"Number of versions to fetch (default: 20, max: 100)",shorthand:null,type:Number,argument:"NUMBER",deprecated:!1}],examples:[{name:"List route versions",value:`${packageName} routes list-versions`},{name:"List more versions",value:`${packageName} routes list-versions --count 50`}]},inspectSubcommand={name:"inspect",aliases:[],description:"Show detailed information about a specific route",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,jsonOption,{name:"diff",description:"Compare staged changes against production for this route",shorthand:null,type:Boolean,deprecated:!1}],examples:[{name:"Inspect a route by name",value:`${packageName} routes inspect "API rewrite"`},{name:"Inspect a route by ID",value:`${packageName} routes inspect abc123`},{name:"Show staged changes for a route",value:`${packageName} routes inspect "My route" --diff`}]},addSubcommand={name:"add",aliases:[],description:"Add a new routing rule to the project",arguments:[{name:"name",required:!1}],options:[projectOption,{name:"src",description:"Path pattern (required in non-interactive mode)",shorthand:null,type:String,argument:"PATTERN",deprecated:!1},{name:"src-syntax",description:"Path syntax: regex, path-to-regexp, equals (default: regex)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"action",description:"Action type: rewrite, redirect, or set-status (required with --dest/--status)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"dest",description:"Destination URL for rewrite or redirect",shorthand:null,type:String,argument:"URL",deprecated:!1},{name:"status",description:"Status code (301/302/307/308 for redirect, or any for set-status)",shorthand:null,type:Number,argument:"CODE",deprecated:!1},{name:"set-response-header",description:"Set response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-response-header",description:"Append to response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-response-header",description:"Delete response header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-header",description:"Set request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-request-header",description:"Append to request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-request-header",description:"Delete request header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-query",description:"Set query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"append-request-query",description:"Append to query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"delete-request-query",description:"Delete query parameter: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"has",description:"Condition that must match: type:key or type:key:value (repeatable)",shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"missing",description:'"Does not have" condition: type:key or type:key:value (repeatable)',shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"description",description:"Route description (max 1024 chars)",shorthand:null,type:String,argument:"TEXT",deprecated:!1},{name:"no-enable",description:"Add the route turned off (default: on)",shorthand:null,type:Boolean,deprecated:!1},{name:"disabled",description:"Deprecated alias for `--no-enable`",shorthand:null,type:Boolean,deprecated:!0},{name:"ai",description:"Generate route from a natural language description (AI-powered)",shorthand:null,type:String,argument:"PROMPT",deprecated:!1},{name:"position",description:"Position: start, end, after:<id>, before:<id>",shorthand:null,type:String,argument:"POSITION",deprecated:!1},{name:"yes",description:"Skip confirmation prompts",shorthand:"y",type:Boolean,deprecated:!1}],examples:[{name:"Interactive mode",value:`${packageName} routes add`},{name:"Create with AI",value:`${packageName} routes add --ai "Rewrite /api/* to https://backend.internal/*"`},{name:"Add a rewrite",value:`${packageName} routes add "API Proxy" --src "/api/:path*" --src-syntax path-to-regexp --action rewrite --dest "https://api.example.com/:path*" --yes`},{name:"Add a redirect",value:`${packageName} routes add "Old Blog" --src "/blog" --src-syntax equals --action redirect --dest "/articles" --status 301 --yes`},{name:"Add CORS headers",value:`${packageName} routes add "CORS" --src "^/api/.*$" --set-response-header "Access-Control-Allow-Origin=*" --yes`},{name:"Block access (set status)",value:`${packageName} routes add "Block Admin" --src "^/admin/.*$" --action set-status --status 403 --yes`},{name:"Conditional redirect",value:`${packageName} routes add "Auth Required" --src "/protected/:path*" --src-syntax path-to-regexp --action redirect --dest "/login" --status 307 --missing "cookie:session" --yes`},{name:"Rewrite with request headers",value:`${packageName} routes add "Backend Proxy" --src "/backend/:path*" --src-syntax path-to-regexp --action rewrite --dest "https://internal.example.com/:path*" --set-request-header "X-Forwarded-Host=myapp.com" --yes`},{name:"Add route at start",value:`${packageName} routes add "Priority Route" --src "/priority" --src-syntax equals --action rewrite --dest "/handler" --position start --yes`}]},publishSubcommand={name:"publish",aliases:[],description:"Publish all staged routing changes to production",arguments:[],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when publishing"}],examples:[{name:"Publish staged changes",value:`${packageName} routes publish`},{name:"Publish without confirmation",value:`${packageName} routes publish --yes`}]},restoreSubcommand={name:"restore",aliases:[],description:"Restore a previous routing version to production",arguments:[{name:"version-id",required:!0}],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when restoring"}],examples:[{name:"Restore a previous version",value:`${packageName} routes restore <version-id>`},{name:"Restore without confirmation",value:`${packageName} routes restore <version-id> --yes`}]},discardSubcommand={name:"discard-staging",aliases:[],description:"Discard staged routing changes",arguments:[],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when discarding"}],examples:[{name:"Discard staged changes",value:`${packageName} routes discard-staging`},{name:"Discard without confirmation",value:`${packageName} routes discard-staging --yes`}]},deleteSubcommand={name:"remove",aliases:["rm","delete"],description:"Remove one or more routing rules",arguments:[{name:"name-or-id",required:!0,multiple:!0}],options:[projectOption,{...yesOption,description:"Skip the confirmation prompt when removing"}],examples:[{name:"Remove a route by name",value:`${packageName} routes remove "Old Redirect"`},{name:"Remove a route by ID",value:`${packageName} routes remove abc123`},{name:"Remove multiple routes",value:`${packageName} routes remove "Route A" "Route B"`},{name:"Remove without confirmation",value:`${packageName} routes remove "Old Route" --yes`}]},enableSubcommand={name:"enable",aliases:[],description:"Enable a disabled routing rule",arguments:[{name:"name-or-id",required:!0}],options:[projectOption],examples:[{name:"Enable a route by name",value:`${packageName} routes enable "API Proxy"`},{name:"Enable a route by ID",value:`${packageName} routes enable abc123`}]},disableSubcommand={name:"disable",aliases:[],description:"Disable a routing rule without deleting it",arguments:[{name:"name-or-id",required:!0}],options:[projectOption],examples:[{name:"Disable a route by name",value:`${packageName} routes disable "API Proxy"`},{name:"Disable a route by ID",value:`${packageName} routes disable abc123`}]},reorderSubcommand={name:"reorder",aliases:["move"],description:"Move a routing rule to a different position",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,{name:"position",description:"Target position: start, end, a number (1-based), before:<id>, after:<id>",shorthand:null,type:String,argument:"POSITION",deprecated:!1},{name:"first",description:"Move to the first position (highest priority)",shorthand:null,type:Boolean,deprecated:!1},{name:"last",description:"Move to the last position (lowest priority)",shorthand:null,type:Boolean,deprecated:!1},{...yesOption,description:"Skip the confirmation prompt when reordering"}],examples:[{name:"Move to first position",value:`${packageName} routes reorder "Catch All" --first`},{name:"Move to last position",value:`${packageName} routes reorder "Catch All" --last`},{name:"Move to a specific position",value:`${packageName} routes reorder "API Proxy" --position 3`},{name:"Move after another route",value:`${packageName} routes reorder "API Proxy" --position after:route-id-123`},{name:"Interactive reorder (prompts for position)",value:`${packageName} routes reorder "API Proxy"`}]},editSubcommand={name:"update",aliases:["edit"],description:"Update an existing routing rule",arguments:[{name:"name-or-id",required:!0}],options:[projectOption,{name:"name",description:"Change route name",shorthand:null,type:String,argument:"NAME",deprecated:!1},{name:"description",description:'Change description (use "" to clear)',shorthand:null,type:String,argument:"TEXT",deprecated:!1},{name:"src",description:"Change source path pattern",shorthand:null,type:String,argument:"PATTERN",deprecated:!1},{name:"src-syntax",description:"Change path syntax: regex, path-to-regexp, equals",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"action",description:"Set action type: rewrite, redirect, or set-status (required when switching types)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"dest",description:"Set destination URL",shorthand:null,type:String,argument:"URL",deprecated:!1},{name:"status",description:"Set status code",shorthand:null,type:Number,argument:"CODE",deprecated:!1},{name:"no-dest",description:"Remove destination",shorthand:null,type:Boolean,deprecated:!1},{name:"no-status",description:"Remove status code",shorthand:null,type:Boolean,deprecated:!1},{name:"set-response-header",description:"Set response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-response-header",description:"Append to response header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-response-header",description:"Delete response header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-header",description:"Set request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"append-request-header",description:"Append to request header: key=value (repeatable)",shorthand:null,type:[String],argument:"HEADER",deprecated:!1},{name:"delete-request-header",description:"Delete request header: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"set-request-query",description:"Set query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"append-request-query",description:"Append to query parameter: key=value (repeatable)",shorthand:null,type:[String],argument:"PARAM",deprecated:!1},{name:"delete-request-query",description:"Delete query parameter: key (repeatable)",shorthand:null,type:[String],argument:"KEY",deprecated:!1},{name:"has",description:"Add a has condition: type:key or type:key:value (repeatable)",shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"missing",description:'Add a "does not have" condition: type:key or type:key:value (repeatable)',shorthand:null,type:[String],argument:"CONDITION",deprecated:!1},{name:"clear-conditions",description:"Remove all has/does-not-have conditions",shorthand:null,type:Boolean,deprecated:!1},{name:"clear-headers",description:"Remove all response headers",shorthand:null,type:Boolean,deprecated:!1},{name:"clear-transforms",description:"Remove all transforms (request headers, request query)",shorthand:null,type:Boolean,deprecated:!1},{name:"ai",description:"Describe changes using natural language (AI-powered)",shorthand:null,type:String,argument:"PROMPT",deprecated:!1},{...yesOption,description:"Skip confirmation prompts"}],examples:[{name:"Interactive mode",value:`${packageName} routes update "API Proxy"`},{name:"Update with AI",value:`${packageName} routes update "API Proxy" --ai "Add CORS headers and change status to 308"`},{name:"Change destination",value:`${packageName} routes update "API Proxy" --dest "https://new-api.example.com/:path*"`},{name:"Switch to redirect",value:`${packageName} routes update "Old Route" --action redirect --dest "/new" --status 301`},{name:"Add a response header",value:`${packageName} routes update "My Route" --set-response-header "Cache-Control=public, max-age=3600"`},{name:"Clear all conditions and add new ones",value:`${packageName} routes update "My Route" --clear-conditions --has "header:Authorization"`}]},exportSubcommand={name:"export",aliases:[],description:"Export routes to a vercel.json or vercel.ts file",arguments:[{name:"name-or-id",required:!1}],options:[projectOption,{name:"output",description:"Output file format: .json or .ts (default: .json)",shorthand:"o",type:String,argument:"json|ts",deprecated:!1}],examples:[{name:"Export as vercel.json format",value:`${packageName} routes export`},{name:"Export as vercel.ts format",value:`${packageName} routes export --output ts`},{name:"Export a specific route",value:`${packageName} routes export "API Proxy"`},{name:"Export to a file",value:`${packageName} routes export > routes.json`}]},routesCommand={name:"routes",aliases:[],description:"Manage routing rules for a project. Routes managed at the project level apply to all deployments and environments.",arguments:[],subcommands:[listSubcommand,listVersionsSubcommand,inspectSubcommand,addSubcommand,editSubcommand,deleteSubcommand,enableSubcommand,disableSubcommand,reorderSubcommand,exportSubcommand,publishSubcommand,restoreSubcommand,discardSubcommand],options:[],examples:[]};export{listSubcommand,listVersionsSubcommand,inspectSubcommand,addSubcommand,publishSubcommand,restoreSubcommand,discardSubcommand,deleteSubcommand,enableSubcommand,disableSubcommand,reorderSubcommand,editSubcommand,exportSubcommand,routesCommand};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{js_yaml_default}from"./chunk-V6Y6UK6B.js";import{require_minimatch}from"./chunk-
|
|
7
|
+
import{js_yaml_default}from"./chunk-V6Y6UK6B.js";import{require_minimatch}from"./chunk-CVDK3IYT.js";import{pullEnvRecords}from"./chunk-ESCYLPN6.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{__toESM}from"./chunk-BZENIQ7N.js";var INTEGRATIONS_POLL_INTERVAL_MS=5e3,INTEGRATIONS_POLL_TIMEOUT_MS=3*60*1e3;async function fetchDeploymentBuildEnv(client,deploymentId,{quiet=!1}={}){let deadline=Date.now()+INTEGRATIONS_POLL_TIMEOUT_MS,isPolling=!1;for(;Date.now()<deadline;)try{return await pullEnvRecords(client,deploymentId,"vercel-cli:pull")}catch(err){if(err&&typeof err=="object"&&"integrationsStatus"in err&&err.integrationsStatus==="pending"){!isPolling&&!quiet&&(output_manager_default.spinner("Waiting for deployment integrations to finish provisioning..."),isPolling=!0),await new Promise(resolve=>setTimeout(resolve,INTEGRATIONS_POLL_INTERVAL_MS));continue}throw err}throw new Error("Timed out waiting for deployment integrations to complete provisioning.")}import{existsSync,readFileSync}from"node:fs";import{dirname,join,parse,relative}from"node:path";var import_minimatch=__toESM(require_minimatch(),1);function findWorkspaceRootCandidates(startDir){let{root}=parse(startDir),candidates=[],dir=startDir;for(let i=0;i<64;i++){let type=workspaceTypeOf(dir);if(type&&candidates.unshift({dir,type}),dir===root)break;let parent=dirname(dir);if(parent===dir)break;dir=parent}return candidates}function workspaceTypeOf(dir){if(existsSync(join(dir,"pnpm-workspace.yaml")))return"pnpm";let pkgPath=join(dir,"package.json");if(existsSync(pkgPath))try{let pkg=JSON.parse(readFileSync(pkgPath,"utf8")),{workspaces}=pkg;if(Array.isArray(workspaces)&&workspaces.length>0||workspaces&&typeof workspaces=="object"&&Array.isArray(workspaces.packages)&&workspaces.packages.length>0)return"npm"}catch{}return null}function readWorkspacePatterns(candidate){try{if(candidate.type==="pnpm"){let packages2=js_yaml_default.load(readFileSync(join(candidate.dir,"pnpm-workspace.yaml"),"utf8"))?.packages;return Array.isArray(packages2)?packages2.filter(p=>typeof p=="string"):null}let pkg=JSON.parse(readFileSync(join(candidate.dir,"package.json"),"utf8")),{workspaces}=pkg,packages=Array.isArray(workspaces)?workspaces:workspaces?.packages;return Array.isArray(packages)?packages.filter(p=>typeof p=="string"):null}catch{return null}}function workspaceClaims(candidate,memberDir){let rel=normalizeRelative(relative(candidate.dir,memberDir));if(rel==="")return!1;let patterns=readWorkspacePatterns(candidate);if(!patterns||patterns.length===0)return!1;let positives=[],negatives=[];for(let pattern of patterns)pattern.startsWith("!")?negatives.push(normalizeRelative(pattern.slice(1))):positives.push(normalizeRelative(pattern));let matches=pattern=>(0,import_minimatch.default)(rel,pattern,{dot:!1});return!positives.some(matches)||negatives.some(matches)?!1:existsSync(join(memberDir,"package.json"))}function resolvePerDirectoryLinkRoot(anchorDir,rootDirectorySetting){let repoRoot=anchorDir;for(let candidate of findWorkspaceRootCandidates(anchorDir))if(workspaceClaims(candidate,anchorDir)){repoRoot=candidate.dir;break}let linkLocation=normalizeRelative(relative(repoRoot,anchorDir));if(linkLocation==="")return{repoRoot,resolvedRootDirectory:""};let setting=normalizeRelative(rootDirectorySetting??"");return setting===""?{repoRoot,resolvedRootDirectory:linkLocation}:existsSync(join(anchorDir,setting))?{repoRoot,resolvedRootDirectory:normalizeRelative(relative(repoRoot,join(anchorDir,setting)))}:{repoRoot,resolvedRootDirectory:linkLocation,advisory:`Ignoring "rootDirectory" setting "${setting}" for the project linked in "${anchorDir}": "${join(anchorDir,setting)}" does not exist, so the build will use the linked directory "${linkLocation}" instead. Remove the "rootDirectory" setting, or configure it at the repository root.`}}function normalizeRelative(p){let normalized=p.replace(/\\/g,"/").replace(/^\.\//,"").replace(/^\/+/,"").replace(/\/+$/,"");return normalized==="."?"":normalized}export{fetchDeploymentBuildEnv,resolvePerDirectoryLinkRoot};
|
|
@@ -0,0 +1,10 @@
|
|
|
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{printProjectNotFoundError}from"./chunk-FQ5EU3ML.js";import{param}from"./chunk-3G3FQYMW.js";import{detectExplicitScope}from"./chunk-VWIHFPW2.js";import{AGENT_REASON,AGENT_STATUS,buildCommandWithYes,outputActionRequired,outputAgentError}from"./chunk-GENXRXFN.js";import{getLinkedProject,resolveProjectCwd}from"./chunk-5WTGQDJ7.js";import{getCommandName,getCommandNamePlain}from"./chunk-JESNVRVR.js";import{output_manager_default,require_build_utils}from"./chunk-XP3FT56R.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_build_utils=__toESM(require_build_utils(),1);async function ensureLink(commandName,client,cwd,opts={}){opts.singleFile||(cwd=await resolveProjectCwd(cwd));let link=opts.link,nonInteractive=opts.nonInteractive??client.nonInteractive??!1;if(opts.nonInteractive=nonInteractive,link||(opts.forceDelete?link={status:"not_linked",org:null,project:null}:link=await getLinkedProject(client,{cwd,projectName:opts.projectName,projectNameIsExplicit:!!(opts.projectName&&opts.failIfNotFound),scopeIsExplicit:detectExplicitScope(client),allowOwnerLookupFallback:opts.allowOwnerLookupFallback,skipOwnerLookup:opts.skipOwnerLookup,skipRemoteLookup:opts.skipRemoteLookup,skipProjectRootResolution:!!opts.singleFile}),opts.link=link),link.status==="linked"&&opts.forceDelete||link.status==="not_linked"){if(link.status==="not_linked"&&opts.failIfNotFound&&opts.projectName){let pinnedProjectId=(0,import_build_utils.getPlatformEnv)("PROJECT_ID"),creatable=!opts.projectName.startsWith("prj_")&&!pinnedProjectId;if(!opts.createIfNotFound||opts.projectName.startsWith("prj_")||pinnedProjectId===opts.projectName)return await printProjectNotFoundError(client,opts.projectName,commandName,link.orgId,{createCommand:creatable?opts.createCommand:void 0}),1;if(pinnedProjectId){let message=`Can't use --project with VERCEL_PROJECT_ID. --project is "${opts.projectName}" and VERCEL_PROJECT_ID is "${pinnedProjectId}". Remove one of them.`,helpCommand=getCommandNamePlain(`${commandName} --help`);return output_manager_default.error(`${message}
|
|
8
|
+
|
|
9
|
+
See all options:
|
|
10
|
+
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}}if(link.status==="not_linked"&&opts.requireExistingLink)return output_manager_default.error(`Project is not linked. Run ${getCommandName("link")} first.`),1;let{default:setupAndLink}=await import("./setup-and-link-HS4GH2QQ.js");if(link=await setupAndLink(client,cwd,opts),link.status==="not_linked")return 0}return link.status==="error"?(link.reason==="HEADLESS"&&(nonInteractive?outputActionRequired(client,{status:"action_required",reason:"confirmation_required",message:`Command ${getCommandNamePlain(commandName)} requires confirmation. Use option --yes to confirm.`,next:[{command:buildCommandWithYes(client.argv),when:"Confirm and run"}]},link.exitCode):output_manager_default.error(`Command ${getCommandName(commandName)} requires confirmation. Use option ${param("--yes")} to confirm.`)),nonInteractive&&process.exit(link.exitCode),link.exitCode):link}export{ensureLink};
|
|
@@ -4,5 +4,5 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{
|
|
7
|
+
import{require_dist}from"./chunk-L6TM45P4.js";import{canPrompt}from"./chunk-IQ7FPAI4.js";import{AGENT_REASON,AGENT_STATUS,outputActionRequired}from"./chunk-GENXRXFN.js";import{humanizePath,require_lib}from"./chunk-5WTGQDJ7.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_client=__toESM(require_dist(),1);import{dirname,isAbsolute,relative,sep}from"path";var singleFileConfig={framework:null,buildCommand:"",installCommand:"",outputDirectory:"."},singleFileProjectSettings={...singleFileConfig,rootDirectory:null};async function isIgnoredFile(file,cwd){let roots=new Set([dirname(file)]),fromCwd=relative(cwd,file);fromCwd&&!fromCwd.startsWith(`..${sep}`)&&!isAbsolute(fromCwd)&&roots.add(cwd);for(let root of roots){let{ig}=await(0,import_client.getVercelIgnore)(root);if(ig.ignores(relative(root,file).split(sep).join("/")))return!0}return!1}var import_fs_extra=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1);import{homedir}from"os";import{resolve,sep as sep2}from"path";async function validateRootDirectory(cwd,path,errorSuffix=""){let pathStat=await(0,import_fs_extra.lstat)(path).catch(()=>null),suffix=errorSuffix?` ${errorSuffix}`:"";if(!pathStat)return output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} does not exist.${suffix}`),!1;if(!pathStat.isDirectory())return output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} is a file, but expected a directory.${suffix}`),!1;let base=resolve(cwd),target=resolve(path);return target!==base&&!target.startsWith(base+sep2)?(output_manager_default.error(`The provided path ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)} is outside of the project.${suffix}`),!1):!0}async function validatePaths(client,paths,{allowFiles=!1}={}){if(paths.length>1)return output_manager_default.error("Can't deploy more than one path."),{valid:!1,exitCode:1};let path=paths[0],pathStat=await(0,import_fs_extra.lstat)(path).catch(()=>null);if(!pathStat)return output_manager_default.error(`Could not find ${import_chalk.default.cyan(`\u201C${humanizePath(path)}\u201D`)}`),{valid:!1,exitCode:1};let isFile=pathStat.isFile();if(!pathStat.isDirectory()&&!(allowFiles&&isFile))return output_manager_default.fatal(allowFiles?"Deploy a regular file or directory. Symbolic links and special files are not supported as deployment paths.":"This command requires a directory. Use `vercel <file>` to deploy a single file."),{valid:!1,exitCode:1};if(path===homedir()){if(!canPrompt(client)){let message="Can't deploy your home directory without interactive confirmation. Run from your project directory, or run in a terminal to confirm deploying your home directory.";return outputActionRequired(client,{status:AGENT_STATUS.ACTION_REQUIRED,reason:AGENT_REASON.INTERACTIVE_CONFIRMATION_REQUIRED,message,userActionRequired:!0},2),output_manager_default.error(message),{valid:!1,exitCode:2}}if(!await client.input.confirm("You are deploying your home directory. Do you want to continue?",!1))return output_manager_default.print(`Canceled
|
|
8
8
|
`),{valid:!1,exitCode:0}}return{valid:!0,path,isFile}}export{singleFileConfig,singleFileProjectSettings,isIgnoredFile,validateRootDirectory,validatePaths};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{parseArguments}from"./chunk-
|
|
7
|
+
import{parseArguments}from"./chunk-QO7CBCML.js";import{require_cli_config}from"./chunk-4SAVH3H7.js";import{__toESM}from"./chunk-BZENIQ7N.js";var config=__toESM(require_cli_config(),1);import path from"node:path";function getGlobalPathConfig2(argvSlice=process.argv.slice(2),cwd=process.cwd()){let confFlag=parseArguments(argvSlice,{},{permissive:!0}).flags["--global-config"];return confFlag?path.resolve(cwd,confFlag):config.getGlobalPathConfig()}export{getGlobalPathConfig2 as getGlobalPathConfig};
|
|
@@ -4,5 +4,5 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{
|
|
8
|
-
`,s=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,i=/\\n/g,f=/\n|\r|\r\n/;function parse(n2,r2){let e2=!!(r2&&r2.debug),t2={};return n2.toString().split(f).forEach(function(n3,r3){let o2=n3.match(s);if(o2!=null){let n4=o2[1],r4=o2[2]||"",e3=r4.length-1,s2=r4[0]==='"'&&r4[e3]==='"';r4[0]==="'"&&r4[e3]==="'"||s2?(r4=r4.substring(1,e3),s2&&(r4=r4.replace(i,c))):r4=r4.trim(),t2[n4]=r4}else e2&&log(`did not match key and value when parsing line ${r3+1}: ${n3}`)}),t2}function config(n2){let r2=o.resolve(process.cwd(),".env"),e2="utf8",c2=!1;n2&&(n2.path!=null&&(r2=n2.path),n2.encoding!=null&&(e2=n2.encoding),n2.debug!=null&&(c2=!0));try{let n3=parse(t.readFileSync(r2,{encoding:e2}),{debug:c2});return Object.keys(n3).forEach(function(r3){Object.prototype.hasOwnProperty.call(process.env,r3)?c2&&log(`"${r3}" is already defined in \`process.env\` and will not be overwritten`):process.env[r3]=n3[r3]}),{parsed:n3}}catch(n3){return{error:n3}}}n.exports.config=config,n.exports.parse=parse},622:function(n){n.exports=__require("path")},747:function(n){n.exports=__require("fs")},903:function(n,r,e){"use strict";e.r(r),e.d(r,"processEnv",function(){return processEnv}),e.d(r,"loadEnvConfig",function(){return loadEnvConfig});var t=e(747),o=e.n(t),c=e(622),s=e.n(c),i=e(548),f=e.n(i),p=e(148),u=e.n(p);let a,d=[];function processEnv(n2,r2,e2=console){var t2;if(process.env.__NEXT_PROCESSED_ENV||n2.length===0)return process.env;process.env.__NEXT_PROCESSED_ENV="true";let o2=Object.assign({},process.env),s2={};for(let f2 of n2)try{let n3={};n3.parsed=i.parse(f2.contents),n3=u()(n3),n3.parsed&&e2.info(`Loaded env from ${c.join(r2||"",f2.path)}`);for(let r3 of Object.keys(n3.parsed||{}))typeof s2[r3]>"u"&&typeof o2[r3]>"u"&&(s2[r3]=(t2=n3.parsed)===null||t2===void 0?void 0:t2[r3])}catch(n3){e2.error(`Failed to load env from ${c.join(r2||"",f2.path)}`,n3)}return Object.assign(process.env,s2)}function loadEnvConfig(n2,r2,e2=console){if(a)return{combinedEnv:a,loadedEnvFiles:d};let s2=process.env.NODE_ENV==="test"?"test":r2?"development":"production",i2=[`.env.${s2}.local`,s2!=="test"&&".env.local",`.env.${s2}`,".env"].filter(Boolean);for(let r3 of i2){let o3=c.join(n2,r3);try{if(!t.statSync(o3).isFile())continue;let c2=t.readFileSync(o3,"utf8");d.push({path:r3,contents:c2})}catch(n3){n3.code!=="ENOENT"&&e2.error(`Failed to load env from ${r3}`,n3)}}return a=processEnv(d,n2,e2),{combinedEnv:a,loadedEnvFiles:d}}}},function(n){"use strict";(function(){n.r=function(n2){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n2,"__esModule",{value:!0})}})(),function(){n.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(e,"a",e),e}}(),function(){var r=Object.prototype.hasOwnProperty;n.d=function(n2,e,t){r.call(n2,e)||Object.defineProperty(n2,e,{enumerable:!0,get:t})}}()})}});
|
|
7
|
+
import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_dist=__commonJS({"../../node_modules/.pnpm/@next+env@11.1.2/node_modules/@next/env/dist/index.js"(exports,module){module.exports=function(n,r){"use strict";var e={};function __webpack_require__(r2){if(e[r2])return e[r2].exports;var t=e[r2]={i:r2,l:!1,exports:{}};return n[r2].call(t.exports,t,t.exports,__webpack_require__),t.l=!0,t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(903)}return r(__webpack_require__),startup()}({148:function(n){"use strict";var r=function(n2){var r2=n2.ignoreProcessEnv?{}:process.env,e=function(t2){var o2=t2.match(/(.?\${?(?:[a-zA-Z0-9_]+)?}?)/g)||[];return o2.reduce(function(t3,o3){var c2=/(.?)\${?([a-zA-Z0-9_]+)?}?/g.exec(o3),s=c2[1],i,f;if(s==="\\")f=c2[0],i=f.replace("\\$","$");else{var p=c2[2];f=c2[0].substring(s.length),i=r2.hasOwnProperty(p)?r2[p]:n2.parsed[p]||"",i=e(i)}return t3.replace(f,i)},t2)};for(var t in n2.parsed){var o=r2.hasOwnProperty(t)?r2[t]:n2.parsed[t];n2.parsed[t]=e(o)}for(var c in n2.parsed)r2[c]=n2.parsed[c];return n2};n.exports=r},548:function(n,r,e){let t=e(747),o=e(622);function log(n2){console.log(`[dotenv][DEBUG] ${n2}`)}let c=`
|
|
8
|
+
`,s=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,i=/\\n/g,f=/\n|\r|\r\n/;function parse(n2,r2){let e2=!!(r2&&r2.debug),t2={};return n2.toString().split(f).forEach(function(n3,r3){let o2=n3.match(s);if(o2!=null){let n4=o2[1],r4=o2[2]||"",e3=r4.length-1,s2=r4[0]==='"'&&r4[e3]==='"';r4[0]==="'"&&r4[e3]==="'"||s2?(r4=r4.substring(1,e3),s2&&(r4=r4.replace(i,c))):r4=r4.trim(),t2[n4]=r4}else e2&&log(`did not match key and value when parsing line ${r3+1}: ${n3}`)}),t2}function config(n2){let r2=o.resolve(process.cwd(),".env"),e2="utf8",c2=!1;n2&&(n2.path!=null&&(r2=n2.path),n2.encoding!=null&&(e2=n2.encoding),n2.debug!=null&&(c2=!0));try{let n3=parse(t.readFileSync(r2,{encoding:e2}),{debug:c2});return Object.keys(n3).forEach(function(r3){Object.prototype.hasOwnProperty.call(process.env,r3)?c2&&log(`"${r3}" is already defined in \`process.env\` and will not be overwritten`):process.env[r3]=n3[r3]}),{parsed:n3}}catch(n3){return{error:n3}}}n.exports.config=config,n.exports.parse=parse},622:function(n){n.exports=__require("path")},747:function(n){n.exports=__require("fs")},903:function(n,r,e){"use strict";e.r(r),e.d(r,"processEnv",function(){return processEnv}),e.d(r,"loadEnvConfig",function(){return loadEnvConfig});var t=e(747),o=e.n(t),c=e(622),s=e.n(c),i=e(548),f=e.n(i),p=e(148),u=e.n(p);let a,d=[];function processEnv(n2,r2,e2=console){var t2;if(process.env.__NEXT_PROCESSED_ENV||n2.length===0)return process.env;process.env.__NEXT_PROCESSED_ENV="true";let o2=Object.assign({},process.env),s2={};for(let f2 of n2)try{let n3={};n3.parsed=i.parse(f2.contents),n3=u()(n3),n3.parsed&&e2.info(`Loaded env from ${c.join(r2||"",f2.path)}`);for(let r3 of Object.keys(n3.parsed||{}))typeof s2[r3]>"u"&&typeof o2[r3]>"u"&&(s2[r3]=(t2=n3.parsed)===null||t2===void 0?void 0:t2[r3])}catch(n3){e2.error(`Failed to load env from ${c.join(r2||"",f2.path)}`,n3)}return Object.assign(process.env,s2)}function loadEnvConfig(n2,r2,e2=console){if(a)return{combinedEnv:a,loadedEnvFiles:d};let s2=process.env.NODE_ENV==="test"?"test":r2?"development":"production",i2=[`.env.${s2}.local`,s2!=="test"&&".env.local",`.env.${s2}`,".env"].filter(Boolean);for(let r3 of i2){let o3=c.join(n2,r3);try{if(!t.statSync(o3).isFile())continue;let c2=t.readFileSync(o3,"utf8");d.push({path:r3,contents:c2})}catch(n3){n3.code!=="ENOENT"&&e2.error(`Failed to load env from ${r3}`,n3)}}return a=processEnv(d,n2,e2),{combinedEnv:a,loadedEnvFiles:d}}}},function(n){"use strict";(function(){n.r=function(n2){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n2,"__esModule",{value:!0})}})(),function(){n.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(e,"a",e),e}}(),function(){var r=Object.prototype.hasOwnProperty;n.d=function(n2,e,t){r.call(n2,e)||Object.defineProperty(n2,e,{enumerable:!0,get:t})}}()})}});export{require_dist};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{STANDARD_ENVIRONMENTS}from"./chunk-
|
|
7
|
+
import{STANDARD_ENVIRONMENTS}from"./chunk-7YKFF6CE.js";import{require_lib}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var import_title=__toESM(require_lib(),1);function formatEnvironment(orgSlug,projectSlug,environment){let projectUrl=`https://vercel.com/${orgSlug}/${projectSlug}`,boldName=import_chalk.default.bold(STANDARD_ENVIRONMENTS.includes(environment.slug)?(0,import_title.default)(environment.slug):environment.slug);return output_manager_default.link(boldName,`${projectUrl}/settings/environments/${environment.slug}`,{fallback:()=>boldName,color:!1})}export{formatEnvironment};
|
|
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{buildCommandWithGlobalFlags}from"./chunk-
|
|
7
|
+
import{buildCommandWithGlobalFlags}from"./chunk-GENXRXFN.js";import{printAlignedLabel}from"./chunk-ADLBLGT3.js";import{quoteArg}from"./chunk-F53OKXYI.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var CRITICAL_DELIVERY_DESCRIPTION="Critical only (escalated by Vercel Agent)";function formatMinimumSeverity(notification){let level=notification.minimumSeverityLevel;return level==="critical"?CRITICAL_DELIVERY_DESCRIPTION:level?`${level[0].toUpperCase()}${level.slice(1)} and above`:notification.type==="webhook"&&!("url"in notification.webhook)?"Details unavailable":"Monitor setting"}function formatProjectScope(scope){return scope.type==="all"?"all projects":`${scope.projectName} (${scope.projectId})`}function formatNotificationExpanded(notification,index){if(notification.type==="slack")return[` ${index+1}. ${import_chalk.default.bold("Slack")} ${import_chalk.default.cyan(`#${notification.channelName}`)}`,` ${import_chalk.default.dim("Project scope:")} ${formatProjectScope(notification.projectScope)}`,` ${import_chalk.default.dim("Channel ID:")} ${notification.channelId}`,` ${import_chalk.default.dim("Slack installation ID:")} ${notification.configId}`,` ${import_chalk.default.dim("Minimum severity:")} ${formatMinimumSeverity(notification)}`].join(`
|
|
8
8
|
`);let{webhook}=notification;return[` ${index+1}. ${import_chalk.default.bold("Webhook")}`,` ${import_chalk.default.dim("Webhook ID:")} ${webhook.id}`,` ${import_chalk.default.dim("URL:")} ${"url"in webhook?webhook.url:"Details unavailable"}`,` ${import_chalk.default.dim("Minimum severity:")} ${formatMinimumSeverity(notification)}`].join(`
|
|
9
9
|
`)}function formatRuleExpanded(ruleId,notifications){let lines=[` ${import_chalk.default.bold(ruleId)}`];return notifications.length===0?lines.push(` ${import_chalk.default.dim("No notification destinations")}`):lines.push(notifications.map((notification,index)=>formatNotificationExpanded(notification,index)).join(`
|
|
10
10
|
|
|
@@ -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{allOption,confirmOption,formatOption,jsonOption,limitOption,nextCursorOption,yesOption}from"./chunk-64XCYUH7.js";import{packageName}from"./chunk-JESNVRVR.js";var listCommand={name:"list",aliases:["ls"],description:"List deployments.",arguments:[{name:"app",required:!1}],options:[allOption,{name:"meta",description:"Filter deployments by metadata (e.g.: `-m KEY=value`). Can appear many times.",argument:"KEY=VALUE",shorthand:null,deprecatedShorthand:"m",type:[String],deprecated:!1},{name:"policy",description:"See deployments with provided Deployment Retention policies (e.g.: `-p KEY=value`). Can appear many times.",argument:"KEY=VALUE",shorthand:null,deprecatedShorthand:"p",type:[String],deprecated:!1},{name:"environment",description:"Filter deployments by environment",argument:"ENVIRONMENT",shorthand:"e",type:String,deprecated:!1},{name:"status",description:"Filter deployments by their status. Can be comma-separated for multiple statuses (e.g.: `--status BUILDING,READY`)",argument:"STATUS",shorthand:null,deprecatedShorthand:"s",type:String,deprecated:!1},nextCursorOption,limitOption,{name:"prod",shorthand:null,type:Boolean,deprecated:!0},yesOption,confirmOption,formatOption,jsonOption],examples:[{name:"List all deployments for the currently linked project",value:`${packageName} list`},{name:"List all deployments across all projects",value:`${packageName} list --all`},{name:"List all deployments for the project `my-app`",value:`${packageName} list my-app`},{name:"Filter deployments by metadata",value:`${packageName} list --meta key1=value1 --meta key2=value2`},{name:"Paginate deployments for a project, where `1584722256178` is the time in milliseconds since the UNIX epoch",value:`${packageName} list my-app --next <CURSOR>`},{name:"Filter deployments by status",value:`${packageName} list --status READY`},{name:"Filter deployments by multiple statuses",value:`${packageName} list --status BUILDING,ERROR`}]};export{listCommand};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{formatOption,jsonOption,limitOption,projectOption,yesOption}from"./chunk-
|
|
7
|
+
import{formatOption,jsonOption,limitOption,projectOption,yesOption}from"./chunk-64XCYUH7.js";import{packageName}from"./chunk-JESNVRVR.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (default: linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Continue from a previous response",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},imageLsSubcommand={name:"ls",aliases:["list"],description:"List images in a container registry repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,{name:"untagged",shorthand:null,type:Boolean,deprecated:!1,description:"Only list images that have no tags"},limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List images in a repository",value:`${packageName} vcr image ls my-app`},{name:"List untagged images as JSON",value:`${packageName} vcr image ls my-app --untagged --json`}]},imageInspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single image, including its layer history",arguments:[{name:"repository",required:!0},{name:"imageId",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect an image by id",value:`${packageName} vcr image inspect my-app img_abc123`}]},imageRmSubcommand={name:"delete",aliases:["rm","del","remove"],description:"Delete an image from a repository",arguments:[{name:"repository",required:!0},{name:"imageId",required:!0}],options:[projectScopeOption,yesOption,formatOption,jsonOption],examples:[{name:"Delete an image by id",value:`${packageName} vcr image delete my-app img_abc123`},{name:"Delete an image without the confirmation prompt",value:`${packageName} vcr image delete my-app img_abc123 --yes`}]},imageAggregateCommand={name:"image",aliases:["images"],description:"List, inspect, or delete images in a repository",arguments:[],subcommands:[imageLsSubcommand,imageInspectSubcommand,imageRmSubcommand],options:[],examples:[]};export{imageLsSubcommand,imageInspectSubcommand,imageRmSubcommand,imageAggregateCommand};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{getCommandName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-
|
|
7
|
+
import{getCommandName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";var OUTPUT_FORMATS=["json"];function parseOutputFormat(value){let normalized=value.toLowerCase();if(OUTPUT_FORMATS.includes(normalized))return normalized;throw new Error(`Invalid output format: "${value}". Valid formats: ${OUTPUT_FORMATS.join(", ")}`)}function getOutputFormat(flags){let formatFlag=flags["--format"],jsonFlag=flags["--json"];if(formatFlag)return parseOutputFormat(formatFlag);if(jsonFlag)return"json"}function isJsonOutput(flags){return getOutputFormat(flags)==="json"}function validateJsonOutput(flags){try{return{valid:!0,jsonOutput:isJsonOutput(flags)}}catch(err){return{valid:!1,error:err.message}}}function wantsMachineReadableOutput(subcommand,argv){if(argv.includes("--help")||argv.includes("-h"))return!1;if(subcommand==="api"||argv.includes("--json"))return!0;for(let arg of argv)if(arg.toLowerCase()==="--format=json")return!0;let formatIdx=argv.indexOf("--format");return formatIdx!==-1&&argv[formatIdx+1]?.toLowerCase()==="json"}function shouldPrintVersionBanner(subcommand,argv){return!wantsMachineReadableOutput(subcommand,argv)}function warnDeprecatedSubcommand(client,deprecated,replacement){wantsMachineReadableOutput(void 0,client.argv)||output_manager_default.warning(`${getCommandName(deprecated)} is deprecated. Use ${getCommandName(replacement)}.`)}function warnDeprecatedOption(argv,deprecated,replacement){wantsMachineReadableOutput(void 0,argv)||output_manager_default.warning(`${deprecated} is deprecated. Use ${replacement}.`)}function warnDeprecatedInput(client,deprecated,replacement){wantsMachineReadableOutput(void 0,client.argv)||output_manager_default.warning(`${deprecated} is deprecated. Use ${replacement}.`)}export{validateJsonOutput,wantsMachineReadableOutput,shouldPrintVersionBanner,warnDeprecatedSubcommand,warnDeprecatedOption,warnDeprecatedInput};
|
|
@@ -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{collectContactInformation,getDomainPrice,getDomainStatus,purchaseDomain}from"./chunk-6HEPFWGT.js";import{stamp_default}from"./chunk-A2RZZQEP.js";import{param}from"./chunk-3G3FQYMW.js";import{require_pluralize}from"./chunk-5WTGQDJ7.js";import{DomainNotAvailable,DomainNotFound,UnsupportedTLD,UserAborted}from"./chunk-6VH56CX2.js";import{eraseLines,output_manager_default}from"./chunk-XP3FT56R.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1),import_pluralize=__toESM(require_pluralize(),1);var isTTY=process.stdout.isTTY;async function purchaseDomainIfAvailable(client,domain,contextName){output_manager_default.spinner(`Checking status of ${import_chalk.default.bold(domain)}`);let buyDomainStamp=stamp_default(),{available}=await getDomainStatus(client,domain);if(available){if(!isTTY)return new DomainNotFound(domain);output_manager_default.debug(`Domain ${domain} is available to be purchased`);let domainPrice=await getDomainPrice(client,domain).finally(()=>{output_manager_default.stopSpinner()});if(domainPrice instanceof UnsupportedTLD)return domainPrice;if(domainPrice instanceof Error)throw domainPrice;let{purchasePrice,years}=domainPrice;if(purchasePrice===null)return output_manager_default.error(`The domain ${param(domain)} is ${import_chalk.default.underline("unavailable")}! ${buyDomainStamp()}`),new DomainNotAvailable(domain);if(output_manager_default.log(`Domain not found, but you can buy it under ${import_chalk.default.bold(contextName)}! ${buyDomainStamp()}`),!await client.input.confirm(`Buy ${import_chalk.default.underline(domain)} for ${import_chalk.default.bold(`$${purchasePrice}`)} (${(0,import_pluralize.default)("yr",years,!0)})?`,!1))return output_manager_default.print(eraseLines(1)),new UserAborted;output_manager_default.print(eraseLines(1));let contactInformation=await collectContactInformation(client),result=await purchaseDomain(client,domain,purchasePrice,years,!0,contactInformation);return result instanceof Error?result:!0}return output_manager_default.debug(`Domain ${domain} is not available to be purchased`),!1}export{purchaseDomainIfAvailable};
|
|
@@ -4,6 +4,6 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{getExitCodeForErrorCode}from"./chunk-
|
|
7
|
+
import{getExitCodeForErrorCode}from"./chunk-6CXJXQ6W.js";import{AGENT_REASON,buildCommandWithGlobalFlags,getExitCodeForReason,outputAgentError}from"./chunk-GENXRXFN.js";import{isJSONObject}from"./chunk-5WTGQDJ7.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{readFileSync}from"fs";import{resolve}from"path";var MONITORS_API={basePath:"/alerts/v3/monitors",itemKey:"monitor",listKey:"monitors",typesKey:"monitorTypes",idKey:"monitorId"},ALERT_RULES_API={basePath:"/alerts/v3/alert-rules",itemKey:"rule",listKey:"rules",typesKey:"ruleTypes",idKey:"ruleId"};function rulesCollectionPath(api,teamId,options={}){let query=new URLSearchParams({teamId});return options.limit!==void 0&&query.set("limit",String(options.limit)),options.cursor&&query.set("cursor",options.cursor),options.projectId&&query.set("projectId",options.projectId),options.type&&query.set("type",options.type),`${api.basePath}?${query.toString()}`}function rulesItemPath(api,teamId,ruleId){let query=new URLSearchParams({teamId});return`${api.basePath}/${encodeURIComponent(ruleId)}?${query.toString()}`}function ruleNotificationsPath(api,teamId,ruleId){let query=new URLSearchParams({teamId});return`${api.basePath}/${encodeURIComponent(ruleId)}/notifications?${query.toString()}`}function rulesNotificationsPath(api,teamId,options={}){let query=new URLSearchParams({teamId});return options.limit!==void 0&&query.set("limit",String(options.limit)),options.cursor&&query.set("cursor",options.cursor),`${api.basePath}/notifications?${query.toString()}`}function rulesNotificationLinksPath(api,teamId,ruleId){let query=new URLSearchParams({teamId});return`${api.basePath}/${encodeURIComponent(ruleId)}/notifications/links?${query.toString()}`}function rulesSchemaPath(api,teamId,type){let query=new URLSearchParams({teamId});return type&&query.set("type",type),`${api.basePath}/schema?${query.toString()}`}async function fetchRule(client,api,scope,ruleId){return(await client.fetch(rulesItemPath(api,scope.teamId,ruleId)))[api.itemKey]}function getIssues(error){return Array.isArray(error.issues)?error.issues.filter(issue=>isJSONObject(issue)&&typeof issue.path=="string"&&typeof issue.message=="string"):[]}function outputRulesError(client,jsonOutput,code,message,options={}){let issues=options.issues??[],issueSummary=issues.slice(0,5).map(issue=>`${issue.path||"body"}: ${issue.message}`).join("; "),exitCode=options.reason!==void 0?getExitCodeForReason(options.reason):getExitCodeForErrorCode(code);return outputAgentError(client,{status:"error",reason:options.reason??AGENT_REASON.INVALID_ARGUMENTS,message,hint:options.hint??(issueSummary||void 0)},exitCode),jsonOutput?client.stdout.write(`${JSON.stringify({error:{code,message,...issues.length?{issues}:{}}},null,2)}
|
|
8
8
|
`):output_manager_default.fatal([message,...issues.map(issue=>` ${issue.path}: ${issue.message}`)].join(`
|
|
9
9
|
`)),exitCode}function handleRulesApiError(client,err,jsonOutput){let message=err.status===401?"You do not have access to monitors in this team. Ensure your role can manage Alert Rules, or pass --token and --scope.":err.status===403?err.serverMessage||"You do not have permission to manage monitors in this team.":err.status>=500?`The monitors endpoint failed (${err.status}). Re-run with --debug and share the x-vercel-id from the failed request.`:err.serverMessage||`API error (${err.status}).`;return outputRulesError(client,jsonOutput,err.code||"API_ERROR",message,{reason:err.status===401?"not_authorized":err.status===403?"forbidden":err.status===404?AGENT_REASON.NOT_FOUND:err.status===429?"rate_limited":AGENT_REASON.API_ERROR,issues:getIssues(err),hint:err.status===401||err.status===403?"Confirm the team with `vercel whoami`; use --scope <team-slug> if the monitor belongs to another team.":void 0})}var LEGACY_BODY_FIELDS=["alertTypes","customAlert","queryJsonString"];function readRuleBody(client,bodyPath,jsonOutput){let raw;try{raw=readFileSync(resolve(client.cwd,bodyPath),"utf8")}catch{return outputRulesError(client,jsonOutput,"INVALID_ARGUMENTS",`Could not read --body file: ${bodyPath}`)}let parsed;try{parsed=JSON.parse(raw)}catch{return outputRulesError(client,jsonOutput,"INVALID_ARGUMENTS","Invalid JSON in --body file.")}return isJSONObject(parsed)?LEGACY_BODY_FIELDS.some(field=>Object.hasOwn(parsed,field))?outputRulesError(client,jsonOutput,"LEGACY_ALERT_RULE_BODY","This body uses the previous alert-rules shape. Rewrite it using the current schema.",{hint:"Run `vercel monitors schema --type built-in` for examples."}):parsed:outputRulesError(client,jsonOutput,"INVALID_ARGUMENTS","The --body file must contain a JSON object.")}function getBodyType(body){return body.type==="built-in"||body.type==="custom"?body.type:void 0}function emitRulesArgParseError(client,err,recoverWithProjectFlag){let message=err instanceof Error?err.message:String(err),projectFlagMissingArg=message.includes("--project")&&message.includes("requires argument");outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:projectFlagMissingArg?"`--project` requires a project name or id (for example `--project my-app`).":message,next:[{command:buildCommandWithGlobalFlags(client.argv,projectFlagMissingArg?recoverWithProjectFlag:"monitors --help"),when:projectFlagMissingArg?"Retry with a project name or id":"See valid `monitors` subcommands"}]},2)}export{MONITORS_API,ALERT_RULES_API,rulesCollectionPath,rulesItemPath,ruleNotificationsPath,rulesNotificationsPath,rulesNotificationLinksPath,rulesSchemaPath,fetchRule,outputRulesError,handleRulesApiError,readRuleBody,getBodyType,emitRulesArgParseError};
|
|
@@ -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{toGranularityMsFromDuration}from"./chunk-PF6O7LHL.js";var VALUE_ALIAS="value",COUNT_ALIAS="__seriesCount";function alignTimeRangeToGranularity(startTime,endTime,granularity){let bucketMs=toGranularityMsFromDuration(granularity);return{startTime:new Date(Math.floor(startTime.getTime()/bucketMs)*bucketMs),endTime:new Date(Math.ceil(endTime.getTime()/bucketMs)*bucketMs)}}function createCanonicalMetricsRequest(options){let metrics={[VALUE_ALIAS]:options.selection},rankMetric=VALUE_ALIAS;return options.groupBy.length>0&&options.orderBy==="count"&&options.selection.aggregation!=="count"&&(metrics[COUNT_ALIAS]={metric:options.metric,aggregation:"count"},rankMetric=COUNT_ALIAS),{scope:{ownerId:options.scope.ownerId,...options.scope.type==="project"?{projectIds:options.scope.projectIds}:{}},timeRange:{start:options.startTime.toISOString(),end:options.endTime.toISOString()},bucketSeconds:toGranularityMsFromDuration(options.granularity)/1e3,...options.groupBy.length>0?{groupBy:options.groupBy}:{},...options.filter?{filter:options.filter}:{},metrics,outputs:[VALUE_ALIAS],...options.groupBy.length>0?{seriesSelection:{limit:options.limit,mode:"exact",rankBy:[{metric:rankMetric,direction:options.orderDirection??"desc"}]}}:{}}}function canonicalResponseToMetricsResponse(response,rollupColumn,orderBy,orderDirection){let toRow=point=>({...point.dimensions,[rollupColumn]:point.values[VALUE_ALIAS]??null});return{...response.series?{data:response.series.map(point=>({timestamp:point.timestamp,...toRow(point)}))}:{},summary:response.summary.map(toRow),statistics:{rowsRead:response.meta.statistics.rowsRead,bytesRead:response.meta.statistics.bytesRead,dbTimeSeconds:response.meta.statistics.databaseElapsedMs/1e3,engineTimeSeconds:response.meta.statistics.elapsedMs/1e3,queryTable:[...new Set(response.meta.sources.map(source=>source.id))].sort().join(",")},...orderBy?{orderBy}:{},...orderDirection?{orderDirection}:{}}}var FILTER_DEPRECATION_WARNING="OData support in --filter is deprecated and will be removed soon. KQL will be the only supported filter syntax.";function usesODataSyntax(filters){return filters?.some(filter=>{let unquoted=filter.replace(/"(?:\\.|[^"\\])*"|'(?:''|[^'])*'/g,"");return/\s(?:eq|ne|gt|ge|lt|le|in)\s/i.test(unquoted)||/\b(?:contains|startswith|endswith)\s*\(/i.test(unquoted)})??!1}export{alignTimeRangeToGranularity,createCanonicalMetricsRequest,canonicalResponseToMetricsResponse,FILTER_DEPRECATION_WARNING,usesODataSyntax};
|
|
@@ -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{require_chownr,require_mkdirp,require_pump,require_tar_stream}from"./chunk-D6REP5QQ.js";import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_tar_fs=__commonJS({"../../node_modules/.pnpm/tar-fs@1.16.5/node_modules/tar-fs/index.js"(exports){var chownr=require_chownr(),tar=require_tar_stream(),pump=require_pump(),mkdirp=require_mkdirp(),fs=__require("fs"),path=__require("path"),os=__require("os"),win32=os.platform()==="win32",noop=function(){},echo=function(name){return name},normalize=win32?function(name){return name.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:echo,statAll=function(fs2,stat,cwd,ignore,entries,sort){var queue=entries||["."];return function(callback){if(!queue.length)return callback();var next=queue.shift(),nextAbs=path.join(cwd,next);stat(nextAbs,function(err,stat2){if(err)return callback(err);if(!stat2.isDirectory())return callback(null,next,stat2);fs2.readdir(nextAbs,function(err2,files){if(err2)return callback(err2);sort&&files.sort();for(var i=0;i<files.length;i++)ignore(path.join(cwd,next,files[i]))||queue.push(path.join(next,files[i]));callback(null,next,stat2)})})}},strip=function(map,level){return function(header){header.name=header.name.split("/").slice(level).join("/");var linkname=header.linkname;return linkname&&(header.type==="link"||path.isAbsolute(linkname))&&(header.linkname=linkname.split("/").slice(level).join("/")),map(header)}};exports.pack=function(cwd,opts){cwd||(cwd="."),opts||(opts={});var xfs=opts.fs||fs,ignore=opts.ignore||opts.filter||noop,map=opts.map||noop,mapStream=opts.mapStream||echo,statNext=statAll(xfs,opts.dereference?xfs.stat:xfs.lstat,cwd,ignore,opts.entries,opts.sort),strict=opts.strict!==!1,umask=typeof opts.umask=="number"?~opts.umask:~processUmask(),dmode=typeof opts.dmode=="number"?opts.dmode:0,fmode=typeof opts.fmode=="number"?opts.fmode:0,pack=opts.pack||tar.pack(),finish=opts.finish||noop;opts.strip&&(map=strip(map,opts.strip)),opts.readable&&(dmode|=parseInt(555,8),fmode|=parseInt(444,8)),opts.writable&&(dmode|=parseInt(333,8),fmode|=parseInt(222,8));var onsymlink=function(filename,header){xfs.readlink(path.join(cwd,filename),function(err,linkname){if(err)return pack.destroy(err);header.linkname=normalize(linkname),pack.entry(header,onnextentry)})},onstat=function(err,filename,stat){if(err)return pack.destroy(err);if(!filename)return opts.finalize!==!1&&pack.finalize(),finish(pack);if(stat.isSocket())return onnextentry();var header={name:normalize(filename),mode:(stat.mode|(stat.isDirectory()?dmode:fmode))&umask,mtime:stat.mtime,size:stat.size,type:"file",uid:stat.uid,gid:stat.gid};if(stat.isDirectory())return header.size=0,header.type="directory",header=map(header)||header,pack.entry(header,onnextentry);if(stat.isSymbolicLink())return header.size=0,header.type="symlink",header=map(header)||header,onsymlink(filename,header);if(header=map(header)||header,!stat.isFile())return strict?pack.destroy(new Error("unsupported type for "+filename)):onnextentry();var entry=pack.entry(header,onnextentry);if(entry){var rs=mapStream(xfs.createReadStream(path.join(cwd,filename)),header);rs.on("error",function(err2){entry.destroy(err2)}),pump(rs,entry)}},onnextentry=function(err){if(err)return pack.destroy(err);statNext(onstat)};return onnextentry(),pack};var head=function(list){return list.length?list[list.length-1]:null},processGetuid=function(){return process.getuid?process.getuid():-1},processUmask=function(){return process.umask?process.umask():0};exports.extract=function(cwd,opts){cwd||(cwd="."),opts||(opts={});var xfs=opts.fs||fs,ignore=opts.ignore||opts.filter||noop,map=opts.map||noop,mapStream=opts.mapStream||echo,own=opts.chown!==!1&&!win32&&processGetuid()===0,extract=opts.extract||tar.extract(),stack=[],now=new Date,umask=typeof opts.umask=="number"?~opts.umask:~processUmask(),dmode=typeof opts.dmode=="number"?opts.dmode:0,fmode=typeof opts.fmode=="number"?opts.fmode:0,strict=opts.strict!==!1;opts.strip&&(map=strip(map,opts.strip)),opts.readable&&(dmode|=parseInt(555,8),fmode|=parseInt(444,8)),opts.writable&&(dmode|=parseInt(333,8),fmode|=parseInt(222,8));var utimesParent=function(name,cb){for(var top;(top=head(stack))&&name.slice(0,top[0].length)!==top[0];)stack.pop();if(!top)return cb();xfs.utimes(top[0],now,top[1],cb)},utimes=function(name,header,cb){if(opts.utimes===!1)return cb();if(header.type==="directory")return xfs.utimes(name,now,header.mtime,cb);if(header.type==="symlink")return utimesParent(name,cb);xfs.utimes(name,now,header.mtime,function(err){if(err)return cb(err);utimesParent(name,cb)})},chperm=function(name,header,cb){var link=header.type==="symlink",chmod=link?xfs.lchmod:xfs.chmod,chown=link?xfs.lchown:xfs.chown;if(!chmod)return cb();var mode=(header.mode|(header.type==="directory"?dmode:fmode))&umask;chmod(name,mode,function(err){if(err)return cb(err);if(!own||!chown)return cb();chown(name,header.uid,header.gid,cb)})};return extract.on("entry",function(header,stream,next){header=map(header)||header,header.name=normalize(header.name);var name=path.join(cwd,path.join("/",header.name));if(ignore(name,header))return stream.resume(),next();var stat=function(err){if(err)return next(err);utimes(name,header,function(err2){if(err2)return next(err2);if(win32)return next();chperm(name,header,next)})},onsymlink=function(){if(win32)return next();xfs.unlink(name,function(){var dst=path.resolve(path.dirname(name),header.linkname);if(!dst.startsWith(path.resolve(cwd)))return next(new Error(name+" is not a valid symlink"));xfs.symlink(header.linkname,name,stat)})},onlink=function(){if(win32)return next();xfs.unlink(name,function(){var srcpath=path.join(cwd,path.join("/",header.linkname));xfs.realpath(srcpath,function(err,dst){if(err||!dst.startsWith(path.resolve(cwd)))return next(new Error(name+" is not a valid hardlink"));xfs.link(dst,name,function(err2){if(err2&&err2.code==="EPERM"&&opts.hardlinkAsFilesFallback)return stream=xfs.createReadStream(srcpath),onfile();stat(err2)})})})},onfile=function(){var ws=xfs.createWriteStream(name),rs=mapStream(stream,header);ws.on("error",function(err){rs.destroy(err)}),pump(rs,ws,function(err){if(err)return next(err);ws.on("close",stat)})};if(header.type==="directory")return stack.push([name,header.mtime]),mkdirfix(name,{fs:xfs,own,uid:header.uid,gid:header.gid},stat);var dir=path.dirname(name);validate(xfs,dir,path.join(cwd,"."),function(err,valid){if(err)return next(err);if(!valid)return next(new Error(dir+" is not a valid path"));mkdirfix(dir,{fs:xfs,own,uid:header.uid,gid:header.gid},function(err2){if(err2)return next(err2);switch(header.type){case"file":return onfile();case"link":return onlink();case"symlink":return onsymlink()}if(strict)return next(new Error("unsupported type for "+name+" ("+header.type+")"));stream.resume(),next()})})}),opts.finish&&extract.on("finish",opts.finish),extract};function validate(fs2,name,root,cb){if(name===root)return cb(null,!0);fs2.lstat(name,function(err,st){if(err&&err.code!=="ENOENT")return cb(err);if(err||st.isDirectory())return validate(fs2,path.join(name,".."),root,cb);cb(null,!1)})}function mkdirfix(name,opts,cb){mkdirp(name,{fs:opts.fs},function(err,made){!err&&made&&opts.own?chownr(made,opts.uid,opts.gid,cb):cb(err)})}}});export{require_tar_fs};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{getCommandName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-
|
|
7
|
+
import{getCommandName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);function validateLsArgs(options){let{commandName,args,maxArgs=0,exitCode=1,usageString}=options;if(args.length>maxArgs){let usage=usageString||getCommandName(commandName);return output_manager_default.error(`Invalid number of arguments. Usage: ${import_chalk.default.cyan(usage)}`),exitCode}return 0}export{validateLsArgs};
|
|
@@ -0,0 +1,8 @@
|
|
|
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{recordLine}from"./chunk-CBXS6UFD.js";import{external_exports}from"./chunk-2NABMKFV.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{isAPIError}from"./chunk-6VH56CX2.js";import{__toESM}from"./chunk-BZENIQ7N.js";var MAX_PAGE_SIZE=1e3,QUERY_REASON_HEADER="x-vercel-observability-query-reason",responseSchema=external_exports.object({events:external_exports.array(external_exports.record(external_exports.string(),external_exports.unknown())),pagination:external_exports.object({hasMore:external_exports.boolean(),nextCursor:external_exports.string().nullable()}),meta:external_exports.object({excludedIntervals:external_exports.array(external_exports.object({start:external_exports.string(),end:external_exports.string()})).optional()}).passthrough().optional()}),InvalidEventsResponseError=class extends Error{constructor(){super("The Observability API returned an invalid events response."),this.name="InvalidEventsResponseError"}},RecordTooLargeError=class extends Error{constructor(){super("A single record exceeds the API response size limit and cannot be returned."),this.name="RecordTooLargeError"}};function isResultTooLarge(err){return isAPIError(err)&&err.status===413&&err.code==="result_too_large"}async function fetchEventsPage(client,request,limit,cursor){let body={event:request.event,scope:{ownerId:request.ownerId,...request.projectIds?{projectIds:[...request.projectIds]}:{}},timeRange:{start:request.timeRange.start,end:request.timeRange.end},select:[...request.select],order:"desc",limit};request.filter&&(body.filter=request.filter),cursor&&(body.cursor=cursor);let params=new URLSearchParams({teamId:request.ownerId}),response=await client.fetch(`/v1/observability/events?${params}`,{method:"POST",headers:{[QUERY_REASON_HEADER]:request.queryReason},body,useCurrentTeam:!1,...request.bailOn429?{bailOn429:!0}:{}}),parsed=responseSchema.safeParse(response);if(!parsed.success)throw new InvalidEventsResponseError;return parsed.data}async function*fetchEventPages(client,request,limit,startCursor){let remaining=limit,maxPageSize=MAX_PAGE_SIZE,cursor=startCursor,lastNextCursor=null;for(;remaining>0;){let pageSize=Math.min(remaining,maxPageSize),response;for(;;)try{response=await fetchEventsPage(client,request,pageSize,cursor);break}catch(err){if(!isResultTooLarge(err))throw err;if(pageSize===1)throw new RecordTooLargeError;pageSize=Math.max(1,Math.floor(pageSize/2)),maxPageSize=pageSize}let events=response.events.slice(0,remaining);remaining-=events.length;let{hasMore,nextCursor}=response.pagination,continues=hasMore&&!!nextCursor&&nextCursor!==cursor;if(lastNextCursor=continues?nextCursor:null,yield{events,excludedIntervals:response.meta?.excludedIntervals??[],nextCursor:lastNextCursor},!continues)return{hasMore,nextCursor:null};cursor=nextCursor??void 0}return{hasMore:!0,nextCursor:lastNextCursor}}function sortIntervals(intervals){return[...intervals].sort((a,b)=>Date.parse(a.start)-Date.parse(b.start)||Date.parse(a.end)-Date.parse(b.end))}var import_strip_ansi=__toESM(require_strip_ansi(),1);function recordLine2(type,event){return recordLine(type,event)}function warningLine(warning){let line={type:"warning",reason:warning.reason,message:(0,import_strip_ansi.default)(warning.message),...warning.data?{data:warning.data}:{}};return`${JSON.stringify(line)}
|
|
8
|
+
`}function serializeTimeRange(range){return{start:range.start.toISOString(),end:range.end.toISOString()}}var CONTINUATION_VERSION=1,continuationSchema=external_exports.object({v:external_exports.literal(CONTINUATION_VERSION),event:external_exports.string().min(1),ownerId:external_exports.string().min(1),projectIds:external_exports.array(external_exports.string().min(1)).optional(),timeRange:external_exports.object({start:external_exports.string().min(1),end:external_exports.string().min(1)}),filter:external_exports.string().optional(),order:external_exports.enum(["asc","desc"]),cursor:external_exports.string().min(1)});function encodeContinuation(continuation){let payload={v:CONTINUATION_VERSION,event:continuation.event,ownerId:continuation.ownerId,...continuation.projectIds?{projectIds:[...continuation.projectIds]}:{},timeRange:{start:continuation.timeRange.start,end:continuation.timeRange.end},...continuation.filter!==void 0?{filter:continuation.filter}:{},order:continuation.order,cursor:continuation.cursor};return Buffer.from(JSON.stringify(payload),"utf8").toString("base64url")}function decodeContinuation(token){if(!/^[A-Za-z0-9_-]+$/.test(token))return;let raw;try{raw=JSON.parse(Buffer.from(token,"base64url").toString("utf8"))}catch{return}let parsed=continuationSchema.safeParse(raw);if(!parsed.success)return;let{v:_version,...continuation}=parsed.data;return continuation}export{InvalidEventsResponseError,RecordTooLargeError,fetchEventPages,sortIntervals,recordLine2 as recordLine,warningLine,serializeTimeRange,encodeContinuation,decodeContinuation};
|
|
@@ -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{resolveProjectContext}from"./chunk-F5QCUTBE.js";import{AGENT_REASON,AGENT_STATUS,outputAgentError}from"./chunk-GENXRXFN.js";import{parseArguments}from"./chunk-QO7CBCML.js";import{getFlagsSpecification,getGlobalFlagsFromArgs}from"./chunk-64XCYUH7.js";import{getCommandName,getCommandNamePlain}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";async function requireProjectContext(client,command,projectName){let link=await resolveProjectContext({client,projectNameOrId:projectName});if(link.status==="error")return link.exitCode;if(link.status==="not_linked"){if(client.nonInteractive)if(command==="redirects"){let linkCmd=getCommandNamePlain("link");outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.NOT_LINKED,message:`Your codebase isn't linked to a project on Vercel. Run ${linkCmd} to begin.`,next:[{command:linkCmd}]},1)}else{let flags=getGlobalFlagsFromArgs(client.argv.slice(2)),cmd=getCommandNamePlain(`link ${flags.join(" ")}`.trim());return outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.NOT_LINKED,userActionRequired:!0,message:`Your codebase is not linked to a Vercel project. Run link first, then retry ${command} commands.`,next:[{command:cmd,when:"to link this directory to a project"}]},1),1}return output_manager_default.error(`Your codebase isn't linked to a project on Vercel. Run ${getCommandName("link")} to begin.`),1}return client.config.currentTeam=link.org.type==="team"?link.org.id:void 0,link}function parseSubcommandArguments(argv,command){let flagsSpecification=getFlagsSpecification(command.options);return parseArguments(argv,flagsSpecification)}function validateRequiredArguments(args,required){for(let i=0;i<required.length;i++)if(!args[i])return`Missing required argument: ${required[i]}`;return null}export{requireProjectContext,parseSubcommandArguments,validateRequiredArguments};
|