vercel 65.1.0 → 65.3.1
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-5YZQTIQM.js +8 -0
- package/dist/chunks/add-A524QQ2H.js +8 -0
- package/dist/chunks/add-V4JMUHKO.js +8 -0
- package/dist/chunks/build-K2PVDJZ4.js +7 -0
- package/dist/chunks/{chunk-DRT6ITIC.js → chunk-22FDWPWY.js} +1 -1
- package/dist/chunks/{chunk-SSULKPUE.js → chunk-2ACMWVTB.js} +1 -1
- package/dist/chunks/{chunk-F2LZJWGH.js → chunk-2H3SB5RP.js} +1 -1
- package/dist/chunks/{chunk-DQYCNHTR.js → chunk-2U7DJZSQ.js} +1 -1
- package/dist/chunks/{chunk-H2FI64HG.js → chunk-2WYYGGEO.js} +1 -1
- package/dist/chunks/{chunk-572TYS62.js → chunk-3ADDGPEN.js} +1 -1
- package/dist/chunks/{chunk-PRAWMNTU.js → chunk-3AYYFYZG.js} +1 -1
- package/dist/chunks/{chunk-F5QCUTBE.js → chunk-3JGBBS6V.js} +1 -1
- package/dist/chunks/{chunk-YEYZP3IH.js → chunk-3KKFLKQG.js} +1 -1
- package/dist/chunks/{chunk-S3QPCSQR.js → chunk-43GBAKL2.js} +1 -1
- package/dist/chunks/{chunk-5A46JI25.js → chunk-4UGHFESV.js} +1 -1
- package/dist/chunks/{chunk-IZWASLQ6.js → chunk-5IASAERQ.js} +1 -1
- package/dist/chunks/{chunk-FDAMQA44.js → chunk-6ISAISGD.js} +1 -1
- package/dist/chunks/{chunk-Y5RR6CRP.js → chunk-6KVHNQW4.js} +2 -2
- package/dist/chunks/{chunk-PXGJGWVA.js → chunk-76KGQU2G.js} +1 -1
- package/dist/chunks/{chunk-6HEPFWGT.js → chunk-76SVVWPH.js} +1 -1
- package/dist/chunks/{chunk-IC27IY7N.js → chunk-7BGKE3JW.js} +1 -1
- package/dist/chunks/chunk-7HV7O6DM.js +7 -0
- package/dist/chunks/{chunk-CVDK3IYT.js → chunk-7L2K4OKM.js} +1 -1
- package/dist/chunks/{chunk-3PMDNDOO.js → chunk-7Y46LB43.js} +1 -1
- package/dist/chunks/{chunk-CBXS6UFD.js → chunk-7Z3WUAO5.js} +1 -1
- package/dist/chunks/{chunk-4YDPE5DC.js → chunk-ABZEMNDR.js} +1 -1
- package/dist/chunks/{chunk-JB7ZP4L4.js → chunk-APZULWJC.js} +1 -1
- package/dist/chunks/chunk-AWMQGOS2.js +7 -0
- package/dist/chunks/{chunk-VWIHFPW2.js → chunk-B4UE4LVE.js} +1 -1
- package/dist/chunks/{chunk-JBUFVCTP.js → chunk-BBKEP7RO.js} +1 -1
- package/dist/chunks/{chunk-FQ5EU3ML.js → chunk-BL3HBRF6.js} +1 -1
- package/dist/chunks/{chunk-5Q7PEC6C.js → chunk-CEMPU323.js} +1 -1
- package/dist/chunks/{chunk-KINNDNJ3.js → chunk-COM5YCHF.js} +1 -1
- package/dist/chunks/{chunk-6KF43YYP.js → chunk-D2BZMGHP.js} +1 -1
- package/dist/chunks/{chunk-GENXRXFN.js → chunk-DGYHWXD2.js} +1 -1
- package/dist/chunks/{chunk-DWJRJK7I.js → chunk-DUT4U5YY.js} +1 -1
- package/dist/chunks/{chunk-Y3J6UDPB.js → chunk-E2SADN6I.js} +1 -1
- package/dist/chunks/{chunk-E432NQGO.js → chunk-E6CO6TUM.js} +1 -1
- package/dist/chunks/{chunk-CKZLNL5F.js → chunk-F2SWJEYV.js} +1 -1
- package/dist/chunks/{chunk-W6RCABNS.js → chunk-FDNYYENK.js} +1 -1
- package/dist/chunks/{chunk-6RCYHBTM.js → chunk-G4T7VBGN.js} +1 -1
- package/dist/chunks/chunk-GG5RME4X.js +7 -0
- package/dist/chunks/{chunk-SDDKXGMK.js → chunk-GVTXA6HG.js} +1 -1
- package/dist/chunks/chunk-GYVJIIYL.js +7 -0
- package/dist/chunks/{chunk-MTTYJO4W.js → chunk-IA3MXJRC.js} +1 -1
- package/dist/chunks/{chunk-THRWLZ3N.js → chunk-IEPW2YRH.js} +1 -1
- package/dist/chunks/{chunk-4B45V3VM.js → chunk-IGDG5CWT.js} +1 -1
- package/dist/chunks/{chunk-FDYDTFFM.js → chunk-IKQTP764.js} +1 -1
- package/dist/chunks/{chunk-VT3QK5IV.js → chunk-IUXSJWL3.js} +1 -1
- package/dist/chunks/{chunk-IWVEHRIU.js → chunk-IVSC7ZFJ.js} +1 -1
- package/dist/chunks/{chunk-HBLBUOZ7.js → chunk-KH6565YH.js} +1 -1
- package/dist/chunks/{chunk-5WTGQDJ7.js → chunk-KNLGWGUE.js} +6 -6
- package/dist/chunks/{chunk-6A4CDEBQ.js → chunk-L4NSF346.js} +1 -1
- package/dist/chunks/{chunk-KKRTKV62.js → chunk-LCHECISY.js} +1 -1
- package/dist/chunks/chunk-LJBUJ23M.js +7 -0
- package/dist/chunks/{chunk-CV333GGZ.js → chunk-LKLH6DZP.js} +1 -1
- package/dist/chunks/{chunk-YJXE7NJC.js → chunk-LRYGNQ6C.js} +1 -1
- package/dist/chunks/{chunk-PA2A2V5Y.js → chunk-LT3UK4K6.js} +1 -1
- package/dist/chunks/{chunk-NHRZRW54.js → chunk-LUBUI5GF.js} +1 -1
- package/dist/chunks/{chunk-L3T6AEPG.js → chunk-NEFDNROD.js} +1 -1
- package/dist/chunks/{chunk-EKLONFSU.js → chunk-NQWGRKF4.js} +1 -1
- package/dist/chunks/{chunk-CGSHQ7QM.js → chunk-NTZ5WWYV.js} +1 -1
- package/dist/chunks/{chunk-NFEG7ONP.js → chunk-OCQPXOTX.js} +1 -1
- package/dist/chunks/{chunk-WFAZDFAR.js → chunk-OGPENBY2.js} +1 -1
- package/dist/chunks/{chunk-JXLPHMKT.js → chunk-OKEBIUKZ.js} +1 -1
- package/dist/chunks/{chunk-4CKX6KUQ.js → chunk-OMCGXRSA.js} +4 -4
- package/dist/chunks/{chunk-J52VRTEQ.js → chunk-OQCMRU3J.js} +2 -2
- package/dist/chunks/{chunk-HO6ECDO3.js → chunk-OQPXJCMK.js} +1 -1
- package/dist/chunks/{chunk-MG7CRSO5.js → chunk-OWOWPOIE.js} +1 -1
- package/dist/chunks/{chunk-PDY2YXG7.js → chunk-PFNYWWLI.js} +1 -1
- package/dist/chunks/{chunk-UYOFNAH5.js → chunk-PFPJLIFF.js} +1 -1
- package/dist/chunks/{chunk-PCLWLNZC.js → chunk-Q5ODLDCU.js} +1 -1
- package/dist/chunks/{chunk-GENZ5QV5.js → chunk-QB7F3UAP.js} +1 -1
- package/dist/chunks/{chunk-AMUAIMYY.js → chunk-QMCHGGDX.js} +2 -2
- package/dist/chunks/{chunk-I26SSWTS.js → chunk-QZX7VG2V.js} +1 -1
- package/dist/chunks/{chunk-W4FODG6F.js → chunk-RRREFECI.js} +1 -1
- package/dist/chunks/{chunk-VPH6RJ5P.js → chunk-RUXO73ON.js} +1 -1
- package/dist/chunks/chunk-RW3X523R.js +8 -0
- package/dist/chunks/{chunk-FGEWQYON.js → chunk-S4SJ7GIZ.js} +1 -1
- package/dist/chunks/{chunk-3V6MUBCO.js → chunk-S5IWVPYT.js} +1 -1
- package/dist/chunks/{chunk-M5WBBJRW.js → chunk-SKYDLHEZ.js} +1 -1
- package/dist/chunks/{chunk-PBC276AK.js → chunk-SXOSF4O6.js} +1 -1
- package/dist/chunks/chunk-TO5PJDEN.js +7 -0
- package/dist/chunks/chunk-TPNOSQZ3.js +15 -0
- package/dist/chunks/{chunk-JP2W5MLV.js → chunk-TZFDVQ72.js} +1 -1
- package/dist/chunks/{chunk-CWQJK5IX.js → chunk-UJSW56GS.js} +1 -1
- package/dist/chunks/{chunk-XRRGT7CM.js → chunk-UKQMYTWW.js} +1 -1
- package/dist/chunks/{chunk-CS532HK4.js → chunk-ULHNMQ7C.js} +1 -1
- package/dist/chunks/{chunk-JY4EKLND.js → chunk-UNEGQPD3.js} +1 -1
- package/dist/chunks/{chunk-J2RX4B5S.js → chunk-URPEIX6M.js} +1 -1
- package/dist/chunks/chunk-V7BEC3E4.js +10 -0
- package/dist/chunks/{chunk-PWNCGM6A.js → chunk-VMMMBWD3.js} +1 -1
- package/dist/chunks/chunk-VOCZ34ON.js +7 -0
- package/dist/chunks/chunk-VQSLPYAF.js +7 -0
- package/dist/chunks/chunk-VT6RIZJH.js +7 -0
- package/dist/chunks/{chunk-PF6O7LHL.js → chunk-WBF36MYT.js} +1 -1
- package/dist/chunks/{chunk-K4AZWWRJ.js → chunk-WCWP4GBR.js} +1 -1
- package/dist/chunks/{chunk-VG2AJII6.js → chunk-WGXKX24Q.js} +1 -1
- package/dist/chunks/{chunk-YPKKC232.js → chunk-X4762EE4.js} +1 -1
- package/dist/chunks/{chunk-IPZHE3OU.js → chunk-XB4SKARZ.js} +1 -1
- package/dist/chunks/{chunk-L3FAM6KS.js → chunk-XXXRTHTP.js} +1 -1
- package/dist/chunks/{chunk-7MQHQTCJ.js → chunk-XZV4BFM5.js} +1 -1
- package/dist/chunks/{chunk-RX2VZBEZ.js → chunk-Y6AGOERS.js} +1 -1
- package/dist/chunks/{chunk-ZPXMOZ4S.js → chunk-YHQ7PPXP.js} +1 -1
- package/dist/chunks/{chunk-QWE7OFE7.js → chunk-YK7XLFU2.js} +1 -1
- package/dist/chunks/{chunk-ESCYLPN6.js → chunk-YN3C5BL5.js} +1 -1
- package/dist/chunks/{chunk-L6TM45P4.js → chunk-ZH6KHD55.js} +2 -2
- package/dist/chunks/clear-ZS4KQ7OT.js +8 -0
- package/dist/chunks/compile-vercel-config-3IYM2CHC.js +7 -0
- package/dist/chunks/config-N2SBVW4T.js +8 -0
- package/dist/chunks/config-ZFIC7N4D.js +7 -0
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/delete-2ZE2NVHI.js +10 -0
- package/dist/chunks/delete-AL57HZDQ.js +9 -0
- package/dist/chunks/{detect-projects-NLAYKNQX.js → detect-projects-OD4JEAW2.js} +1 -1
- package/dist/chunks/detect-services-MOXTX5XG.js +7 -0
- package/dist/chunks/disable-MKI3BKNH.js +7 -0
- package/dist/chunks/discard-SI4H7ST3.js +14 -0
- package/dist/chunks/edit-DNWH6SPE.js +8 -0
- package/dist/chunks/edit-WYNWDFUJ.js +9 -0
- package/dist/chunks/enable-J6MMYPYF.js +7 -0
- package/dist/chunks/{export-5G7MAWTT.js → export-MHSH7QCX.js} +1 -1
- package/dist/chunks/{select-org-IAA5ZTIS.js → future-FFOGTKMF.js} +1 -1
- package/dist/chunks/generate-cert-for-deploy-YZKNGAEQ.js +7 -0
- package/dist/chunks/image-7METSS6F.js +7 -0
- package/dist/chunks/import-builders-GM2SERWV.js +7 -0
- package/dist/chunks/{inspect-5PNUHNL2.js → inspect-A7WJQQZO.js} +1 -1
- package/dist/chunks/{inspect-BNOMQCB4.js → inspect-DI434TAM.js} +1 -1
- package/dist/chunks/inspect-H2Q7XOWN.js +13 -0
- package/dist/chunks/inspect-H5JC2XKI.js +9 -0
- package/dist/chunks/{inspect-NWAB6AGM.js → inspect-IAWVHJXQ.js} +1 -1
- package/dist/chunks/list-ELEUTZWJ.js +12 -0
- package/dist/chunks/{list-3Q5CBGFH.js → list-INRPH25K.js} +1 -1
- package/dist/chunks/{list-JF2OEQON.js → list-WWU734RK.js} +1 -1
- package/dist/chunks/login-R5NQRPQC.js +7 -0
- package/dist/chunks/login-ZF2TLCQB.js +9 -0
- package/dist/chunks/logs-UD7FEXZ7.js +7 -0
- package/dist/chunks/ls-5ZEAKKPQ.js +8 -0
- package/dist/chunks/ls-IXRLAJ4L.js +11 -0
- package/dist/chunks/{ls-GCFLDDFZ.js → ls-LIGIBVAT.js} +1 -1
- package/dist/chunks/{ls-MERY5XTJ.js → ls-MCQ2NS65.js} +1 -1
- package/dist/chunks/{ls-RO7VUFMS.js → ls-S5E2NQMI.js} +1 -1
- package/dist/chunks/{ls-DVHKDVJJ.js → ls-V2ZSIVO3.js} +1 -1
- package/dist/chunks/{ls-RWBJBEIJ.js → ls-VXH4QYF5.js} +1 -1
- package/dist/chunks/mutate-OQWOKLIW.js +9 -0
- package/dist/chunks/notifications-KFZ333V5.js +7 -0
- package/dist/chunks/open-HH6K7ZRC.js +7 -0
- package/dist/chunks/openapi-JGYEFJJV.js +7 -0
- package/dist/chunks/permissions-ZSHKMXBZ.js +7 -0
- package/dist/chunks/{plugin-offer-E4DLD4HU.js → plugin-offer-Z6FCPQFD.js} +1 -1
- package/dist/chunks/prompt-missing-credentials-KOA7C4QC.js +7 -0
- package/dist/chunks/publish-FPNQ2US4.js +15 -0
- package/dist/chunks/pull-7OGOIKB3.js +7 -0
- package/dist/chunks/purchase-domain-if-available-F4LKHVBD.js +7 -0
- package/dist/chunks/push-NY3SIK2C.js +7 -0
- package/dist/chunks/{query-RW2DLTO5.js → query-JGPO7TNY.js} +1 -1
- package/dist/chunks/reauthenticate-OZRQFR66.js +7 -0
- package/dist/chunks/reorder-4J2STFUS.js +10 -0
- package/dist/chunks/reply-EO4NTTPW.js +9 -0
- package/dist/chunks/resolve-RPHHRPNM.js +12 -0
- package/dist/chunks/resolve-agent-team-KX77HEAF.js +7 -0
- package/dist/chunks/restore-TEA6TSVK.js +16 -0
- package/dist/chunks/rm-BPILSPUI.js +8 -0
- package/dist/chunks/rm-F6XVUDBM.js +8 -0
- package/dist/chunks/rm-JCPXV2FN.js +8 -0
- package/dist/chunks/rm-LPQRGX7N.js +8 -0
- package/dist/chunks/rm-WHUGT6TE.js +8 -0
- package/dist/chunks/{routes-KHBSGELO.js → routes-P6LKQCWH.js} +1 -1
- package/dist/chunks/rule-inspect-BOETGPFO.js +8 -0
- package/dist/chunks/{schema-JCJF3AUI.js → schema-BEUO7G52.js} +1 -1
- package/dist/chunks/schema-YOEAK4VX.js +14 -0
- package/dist/chunks/select-org-OMLGQEKK.js +7 -0
- package/dist/chunks/set-5XY27S7R.js +7 -0
- package/dist/chunks/setup-and-link-A7M3QT52.js +7 -0
- package/dist/chunks/{skills-U52S6GRY.js → skills-4J2NC2QI.js} +2 -2
- package/dist/chunks/tags-ZXZQEXOV.js +7 -0
- package/dist/chunks/{types-LKCU7WSY.js → types-SK6J2HFE.js} +1 -1
- package/dist/chunks/{update-DUSQP2H7.js → update-25CKNOY5.js} +1 -1
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +5 -5
- package/dist/commands/dev/index.js +7 -7
- package/dist/commands/env/index.js +2 -2
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +2 -2
- package/dist/commands-account.js +82 -58
- package/dist/commands-ai.js +3 -3
- package/dist/commands-blob.js +2 -2
- package/dist/commands-core.js +8 -8
- package/dist/commands-deployments.js +2 -2
- package/dist/commands-flags.js +14 -14
- package/dist/commands-integrations.js +4 -4
- package/dist/commands-observability.js +38 -9
- package/dist/commands-routing.js +9 -9
- package/dist/index.js +4 -4
- package/dist/internal-build.js +1 -1
- package/dist/root-help-commands.mjs +1 -1
- package/dist/vc.js +95 -5
- package/dist/version.mjs +1 -1
- package/package.json +58 -56
- package/dist/chunks/add-G44L5OSZ.js +0 -8
- package/dist/chunks/add-JATTZAMX.js +0 -8
- package/dist/chunks/add-QMLQDEWM.js +0 -8
- package/dist/chunks/build-ODRPV34E.js +0 -7
- package/dist/chunks/chunk-2N5LDFMR.js +0 -10
- package/dist/chunks/chunk-64XCYUH7.js +0 -7
- package/dist/chunks/chunk-67NIX52O.js +0 -7
- package/dist/chunks/chunk-6CXJXQ6W.js +0 -8
- package/dist/chunks/chunk-D3M2JG5C.js +0 -7
- package/dist/chunks/chunk-DHYND2QH.js +0 -7
- package/dist/chunks/chunk-K246KRFS.js +0 -7
- package/dist/chunks/chunk-NFUAFRIC.js +0 -7
- package/dist/chunks/chunk-NNH2H4LZ.js +0 -15
- package/dist/chunks/chunk-QO7CBCML.js +0 -7
- package/dist/chunks/chunk-WSD53RLA.js +0 -7
- package/dist/chunks/clear-REFHHJJB.js +0 -8
- package/dist/chunks/compile-vercel-config-Q7JGV2RD.js +0 -7
- package/dist/chunks/config-DQ23X4AJ.js +0 -7
- package/dist/chunks/config-GKMT3G67.js +0 -8
- package/dist/chunks/delete-5H7AMGTE.js +0 -10
- package/dist/chunks/delete-MIDLGXPG.js +0 -9
- package/dist/chunks/detect-services-CNIBYXAN.js +0 -7
- package/dist/chunks/disable-45GKGBKT.js +0 -7
- package/dist/chunks/discard-ZHC6DXON.js +0 -14
- package/dist/chunks/edit-N6D2VXVA.js +0 -9
- package/dist/chunks/edit-TVSUOODD.js +0 -8
- package/dist/chunks/enable-SXFQAYFU.js +0 -7
- package/dist/chunks/future-3BZKO5JV.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-YAJHY6TW.js +0 -7
- package/dist/chunks/image-W5TWCF3B.js +0 -7
- package/dist/chunks/import-builders-PK2EHZ43.js +0 -7
- package/dist/chunks/inspect-IS5SYBTI.js +0 -9
- package/dist/chunks/inspect-O5IKZFOG.js +0 -13
- package/dist/chunks/list-OVHNSNGA.js +0 -12
- package/dist/chunks/login-3BXNN3JH.js +0 -7
- package/dist/chunks/login-5FKYBEVP.js +0 -9
- package/dist/chunks/logs-ALPOUQZZ.js +0 -7
- package/dist/chunks/ls-4WMW65WV.js +0 -8
- package/dist/chunks/ls-YOXQDZ7X.js +0 -11
- package/dist/chunks/mutate-TGIOOZVQ.js +0 -9
- package/dist/chunks/notifications-J24CW3SD.js +0 -7
- package/dist/chunks/open-5U4GN2S4.js +0 -7
- package/dist/chunks/openapi-CZCUACZA.js +0 -7
- package/dist/chunks/permissions-B2RJ4FS6.js +0 -7
- package/dist/chunks/prompt-missing-credentials-WWEM2TVX.js +0 -7
- package/dist/chunks/publish-BK3BK3PV.js +0 -15
- package/dist/chunks/pull-CSFLO6P5.js +0 -7
- package/dist/chunks/purchase-domain-if-available-7VAJB3SY.js +0 -7
- package/dist/chunks/push-ENXU4VFN.js +0 -7
- package/dist/chunks/reauthenticate-QKPBNAAH.js +0 -7
- package/dist/chunks/reorder-XXOCBKOR.js +0 -10
- package/dist/chunks/reply-IJ4UMSYT.js +0 -9
- package/dist/chunks/resolve-FHUXU6TQ.js +0 -12
- package/dist/chunks/resolve-agent-team-3432OTOK.js +0 -7
- package/dist/chunks/restore-V2KCZWP3.js +0 -16
- package/dist/chunks/rm-5CDEDJXM.js +0 -8
- package/dist/chunks/rm-FN3G7ARM.js +0 -8
- package/dist/chunks/rm-MPREW2CR.js +0 -8
- package/dist/chunks/rm-VDEXQXNO.js +0 -8
- package/dist/chunks/rm-XUEOPXWC.js +0 -8
- package/dist/chunks/rule-inspect-27A23NWG.js +0 -8
- package/dist/chunks/schema-CE2N7SZP.js +0 -14
- package/dist/chunks/set-YP4JEPJQ.js +0 -7
- package/dist/chunks/setup-and-link-HS4GH2QQ.js +0 -7
- package/dist/chunks/tags-7WRBB2U4.js +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "65.1
|
|
3
|
+
"version": "65.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"preferGlobal": true,
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,51 +35,51 @@
|
|
|
35
35
|
"undici": "5.29.0",
|
|
36
36
|
"uuid": "14.0.1",
|
|
37
37
|
"zod": "4.1.11",
|
|
38
|
-
"@vercel/backends": "22.0.
|
|
39
|
-
"@vercel/build-utils": "15.0.
|
|
38
|
+
"@vercel/backends": "22.0.2",
|
|
39
|
+
"@vercel/build-utils": "15.0.2",
|
|
40
40
|
"@vercel/cli-auth": "0.3.12",
|
|
41
41
|
"@vercel/cli-config": "0.3.3",
|
|
42
|
-
"@vercel/container": "22.0.
|
|
42
|
+
"@vercel/container": "22.0.2",
|
|
43
43
|
"@vercel/detect-agent": "1.2.7",
|
|
44
|
-
"@vercel/elysia": "22.0.
|
|
45
|
-
"@vercel/express": "22.0.
|
|
46
|
-
"@vercel/fastify": "22.0.
|
|
47
|
-
"@vercel/go": "25.0.
|
|
48
|
-
"@vercel/h3": "22.0.
|
|
49
|
-
"@vercel/hono": "22.0.
|
|
50
|
-
"@vercel/hydrogen": "23.0.
|
|
51
|
-
"@vercel/koa": "22.0.
|
|
52
|
-
"@vercel/nestjs": "22.0.
|
|
53
|
-
"@vercel/next": "26.0.
|
|
54
|
-
"@vercel/node": "27.0.
|
|
55
|
-
"@vercel/python": "28.0.
|
|
44
|
+
"@vercel/elysia": "22.0.2",
|
|
45
|
+
"@vercel/express": "22.0.2",
|
|
46
|
+
"@vercel/fastify": "22.0.2",
|
|
47
|
+
"@vercel/go": "25.0.2",
|
|
48
|
+
"@vercel/h3": "22.0.2",
|
|
49
|
+
"@vercel/hono": "22.0.2",
|
|
50
|
+
"@vercel/hydrogen": "23.0.2",
|
|
51
|
+
"@vercel/koa": "22.0.2",
|
|
52
|
+
"@vercel/nestjs": "22.0.2",
|
|
53
|
+
"@vercel/next": "26.0.2",
|
|
54
|
+
"@vercel/node": "27.0.2",
|
|
55
|
+
"@vercel/python": "28.0.2",
|
|
56
56
|
"@vercel/python-analysis": "0.15.2",
|
|
57
|
-
"@vercel/redwood": "24.0.
|
|
58
|
-
"@vercel/
|
|
59
|
-
"@vercel/
|
|
60
|
-
"@vercel/rust": "23.0.
|
|
61
|
-
"@vercel/static-build": "24.0.
|
|
57
|
+
"@vercel/redwood": "24.0.2",
|
|
58
|
+
"@vercel/remix-builder": "27.0.2",
|
|
59
|
+
"@vercel/ruby": "24.0.2",
|
|
60
|
+
"@vercel/rust": "23.0.2",
|
|
61
|
+
"@vercel/static-build": "24.0.2"
|
|
62
62
|
},
|
|
63
63
|
"builders": {
|
|
64
|
-
"@vercel/backends": "22.0.
|
|
65
|
-
"@vercel/container": "22.0.
|
|
66
|
-
"@vercel/elysia": "22.0.
|
|
67
|
-
"@vercel/express": "22.0.
|
|
68
|
-
"@vercel/fastify": "22.0.
|
|
69
|
-
"@vercel/go": "25.0.
|
|
70
|
-
"@vercel/h3": "22.0.
|
|
71
|
-
"@vercel/hono": "22.0.
|
|
72
|
-
"@vercel/hydrogen": "23.0.
|
|
73
|
-
"@vercel/koa": "22.0.
|
|
74
|
-
"@vercel/nestjs": "22.0.
|
|
75
|
-
"@vercel/next": "26.0.
|
|
76
|
-
"@vercel/node": "27.0.
|
|
77
|
-
"@vercel/python": "28.0.
|
|
78
|
-
"@vercel/redwood": "24.0.
|
|
79
|
-
"@vercel/remix-builder": "27.0.
|
|
80
|
-
"@vercel/ruby": "24.0.
|
|
81
|
-
"@vercel/rust": "23.0.
|
|
82
|
-
"@vercel/static-build": "24.0.
|
|
64
|
+
"@vercel/backends": "22.0.2",
|
|
65
|
+
"@vercel/container": "22.0.2",
|
|
66
|
+
"@vercel/elysia": "22.0.2",
|
|
67
|
+
"@vercel/express": "22.0.2",
|
|
68
|
+
"@vercel/fastify": "22.0.2",
|
|
69
|
+
"@vercel/go": "25.0.2",
|
|
70
|
+
"@vercel/h3": "22.0.2",
|
|
71
|
+
"@vercel/hono": "22.0.2",
|
|
72
|
+
"@vercel/hydrogen": "23.0.2",
|
|
73
|
+
"@vercel/koa": "22.0.2",
|
|
74
|
+
"@vercel/nestjs": "22.0.2",
|
|
75
|
+
"@vercel/next": "26.0.2",
|
|
76
|
+
"@vercel/node": "27.0.2",
|
|
77
|
+
"@vercel/python": "28.0.2",
|
|
78
|
+
"@vercel/redwood": "24.0.2",
|
|
79
|
+
"@vercel/remix-builder": "27.0.2",
|
|
80
|
+
"@vercel/ruby": "24.0.2",
|
|
81
|
+
"@vercel/rust": "23.0.2",
|
|
82
|
+
"@vercel/static-build": "24.0.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@bufbuild/protobuf": "2.12.0",
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
"@types/ws": "8.18.1",
|
|
129
129
|
"@types/yauzl-promise": "2.1.0",
|
|
130
130
|
"@vercel/agent-eval": "^0.7.1",
|
|
131
|
+
"@vercel/sandbox": "3.3.0",
|
|
131
132
|
"@vercel/sdk": "^1.19.6",
|
|
132
133
|
"@vltpkg/graph": "1.0.6",
|
|
133
134
|
"@vltpkg/package-info": "1.0.6",
|
|
@@ -212,37 +213,38 @@
|
|
|
212
213
|
"ws": "8.18.0",
|
|
213
214
|
"xdg-app-paths": "5.1.0",
|
|
214
215
|
"yauzl-promise": "2.1.3",
|
|
215
|
-
"@vercel-internals/builder-orchestration": "1.0.
|
|
216
|
+
"@vercel-internals/builder-orchestration": "1.0.29",
|
|
217
|
+
"@vercel-internals/cli-builder-integration": "1.0.32",
|
|
216
218
|
"@vercel-internals/constants": "1.0.4",
|
|
217
219
|
"@vercel-internals/get-package-json": "1.0.0",
|
|
218
|
-
"@vercel-internals/cli-builder-integration": "1.0.30",
|
|
219
220
|
"@vercel-internals/local-schedules": "0.0.4",
|
|
220
|
-
"@vercel-internals/runtimes": "1.2.
|
|
221
|
-
"@vercel-internals/service-topology": "1.0.
|
|
222
|
-
"@vercel-internals/types": "3.0.
|
|
223
|
-
"@vercel/client": "18.9.
|
|
221
|
+
"@vercel-internals/runtimes": "1.2.3",
|
|
222
|
+
"@vercel-internals/service-topology": "1.0.27",
|
|
223
|
+
"@vercel-internals/types": "3.0.31",
|
|
224
|
+
"@vercel/client": "18.9.3",
|
|
224
225
|
"@vercel/error-utils": "2.2.1",
|
|
225
226
|
"@vercel/frameworks": "3.35.0",
|
|
226
|
-
"@vercel/fs-detectors": "7.
|
|
227
|
+
"@vercel/fs-detectors": "7.11.0",
|
|
227
228
|
"@vercel/functions": "3.10.3",
|
|
228
229
|
"@vercel/routing-utils": "6.6.0"
|
|
229
230
|
},
|
|
230
231
|
"optionalDependencies": {
|
|
231
|
-
"@vercel/
|
|
232
|
-
"@vercel/vc-native-darwin-
|
|
233
|
-
"@vercel/vc-native-
|
|
234
|
-
"@vercel/vc-native-linux-arm64
|
|
235
|
-
"@vercel/vc-native-linux-
|
|
236
|
-
"@vercel/vc-native-linux-x64
|
|
237
|
-
"@vercel/vc-native-
|
|
238
|
-
"@vercel/vc-native-win32-
|
|
232
|
+
"@vercel/cli-support": "65.3.1",
|
|
233
|
+
"@vercel/vc-native-darwin-arm64": "65.3.1",
|
|
234
|
+
"@vercel/vc-native-darwin-x64": "65.3.1",
|
|
235
|
+
"@vercel/vc-native-linux-arm64": "65.3.1",
|
|
236
|
+
"@vercel/vc-native-linux-arm64-musl": "65.3.1",
|
|
237
|
+
"@vercel/vc-native-linux-x64": "65.3.1",
|
|
238
|
+
"@vercel/vc-native-linux-x64-musl": "65.3.1",
|
|
239
|
+
"@vercel/vc-native-win32-arm64": "65.3.1",
|
|
240
|
+
"@vercel/vc-native-win32-x64": "65.3.1"
|
|
239
241
|
},
|
|
240
242
|
"scripts": {
|
|
241
243
|
"test": "node scripts/test.mjs --run",
|
|
242
244
|
"test-e2e": "node scripts/test.mjs --run test/e2e-",
|
|
243
245
|
"test-e2e-node-all-versions": "rimraf test/fixtures/integration && vitest run --config ./vitest.config.mts test/integration-1.test.ts test/integration-2.test.ts test/integration-3.test.ts test/integration-link-env-pull.test.ts",
|
|
244
246
|
"test-dev": "vitest run --config ./vitest.config.mts test/dev/",
|
|
245
|
-
"test-testserver": "node scripts/
|
|
247
|
+
"test-testserver": "node scripts/testserver/main.mjs -- vitest run --config ./vitest.testserver.config.mts",
|
|
246
248
|
"coverage": "codecov",
|
|
247
249
|
"build": "node scripts/build.mjs",
|
|
248
250
|
"build-binary": "node scripts/build-binary.mjs",
|
|
@@ -1,8 +0,0 @@
|
|
|
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{emitVcrArgParseError,handleVcrApiError,resolveVcrScope,validateVcrJsonOutput}from"./chunk-IC27IY7N.js";import{outputError}from"./chunk-6CXJXQ6W.js";import"./chunk-D3M2JG5C.js";import"./chunk-BUJITHGZ.js";import"./chunk-FBYA6LLM.js";import"./chunk-GD7AV7BO.js";import"./chunk-SCV7XEEO.js";import{addSubcommand}from"./chunk-4YDPE5DC.js";import"./chunk-PRAWMNTU.js";import"./chunk-PXGJGWVA.js";import"./chunk-JY4EKLND.js";import{printError}from"./chunk-6RCYHBTM.js";import"./chunk-VWIHFPW2.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-GENXRXFN.js";import"./chunk-VT3QK5IV.js";import"./chunk-5WTGQDJ7.js";import"./chunk-ADLBLGT3.js";import"./chunk-JBUFVCTP.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-QO7CBCML.js";import"./chunk-K246KRFS.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-64XCYUH7.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-6VH56CX2.js";import{packageName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BZENIQ7N.js";async function add(client,argv,telemetry){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(addSubcommand.options))}catch(err){return emitVcrArgParseError(client,err,"vcr create <name> --project <name-or-id>"),printError(err),2}let fr=validateVcrJsonOutput(client,parsedArgs.flags);if(typeof fr=="number")return fr;let name=parsedArgs.args[0],project=parsedArgs.flags["--project"];if(telemetry.trackCliOptionProject(project),telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]),!name)return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing repository name. Example: ${packageName} vcr create <name>`,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr create <name>"),when:"Replace <name> with the repository name to create"}]},2),outputError(client,fr.jsonOutput,"MISSING_ARGUMENTS","Usage: `vercel vcr create <name>`");let scope=await resolveVcrScope(client,{project,jsonOutput:fr.jsonOutput});if(typeof scope=="number")return scope;let path=`/v1/vcr/repository?teamId=${encodeURIComponent(scope.teamId)}`;output_manager_default.spinner("Creating repository...");try{let created=await client.fetch(path,{method:"POST",body:{projectId:scope.projectId,name}});return fr.jsonOutput?client.stdout.write(`${JSON.stringify(created,null,2)}
|
|
8
|
-
`):output_manager_default.success(`Created repository ${created.repository?.name??name}`),0}catch(err){if(isAPIError(err))return handleVcrApiError(client,err,fr.jsonOutput,{retry:{command:buildCommandWithGlobalFlags(client.argv,"vcr ls"),when:"List existing repositories (a name conflict means it already exists)"}});throw err}finally{output_manager_default.stopSpinner()}}export{add as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
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{parseTeamRefs,teamRefBody}from"./chunk-LSF7FY6X.js";import{repositoryPermissionsPath}from"./chunk-DFVNL5ML.js";import{emitVcrArgParseError,resolveVcrScope,validateVcrJsonOutput}from"./chunk-IC27IY7N.js";import{outputError}from"./chunk-6CXJXQ6W.js";import"./chunk-D3M2JG5C.js";import{require_async_sema}from"./chunk-NZ2TFADV.js";import"./chunk-BUJITHGZ.js";import"./chunk-FBYA6LLM.js";import"./chunk-GD7AV7BO.js";import"./chunk-SCV7XEEO.js";import{permissionsAddSubcommand}from"./chunk-PRAWMNTU.js";import{printError}from"./chunk-6RCYHBTM.js";import"./chunk-VWIHFPW2.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-GENXRXFN.js";import"./chunk-VT3QK5IV.js";import"./chunk-5WTGQDJ7.js";import"./chunk-ADLBLGT3.js";import"./chunk-JBUFVCTP.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-QO7CBCML.js";import"./chunk-K246KRFS.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-64XCYUH7.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-6VH56CX2.js";import{packageName}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_async_sema=__toESM(require_async_sema(),1);var USAGE="vcr permissions <repository> add <team>[,<team>...]";async function add(client,argv,telemetry){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(permissionsAddSubcommand.options))}catch(err){return emitVcrArgParseError(client,err,USAGE),printError(err),2}let fr=validateVcrJsonOutput(client,parsedArgs.flags);if(typeof fr=="number")return fr;let repository=parsedArgs.args[0],teamRefs=parseTeamRefs(parsedArgs.args.slice(2)),project=parsedArgs.flags["--project"];if(telemetry.trackCliOptionProject(project),telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]),teamRefs.length===0)return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message:`Missing team. Example: ${packageName} vcr permissions ${repository} add team_1a2b3c4d`,next:[{command:buildCommandWithGlobalFlags(client.argv,USAGE),when:"Replace <team> with a team id or slug (comma-separate multiple teams)"}]},2),outputError(client,fr.jsonOutput,"MISSING_ARGUMENTS",`Usage: \`vercel ${USAGE}\``);let scope=await resolveVcrScope(client,{project,jsonOutput:fr.jsonOutput});if(typeof scope=="number")return scope;let path=repositoryPermissionsPath(scope,repository),added=[],failed=[];output_manager_default.spinner(`Sharing ${repository} with ${teamRefs.length===1?teamRefs[0]:`${teamRefs.length} teams`}...`);let sema=new import_async_sema.default(10),results;try{results=await Promise.all(teamRefs.map(async team=>{await sema.acquire();try{let result=await client.fetch(path,{method:"POST",body:teamRefBody(team)});return{ok:!0,team,permission:result.permission}}catch(err){if(!isAPIError(err))throw err;let message=err.serverMessage||`API error (${err.status}).`;return{ok:!1,team,failure:{team,code:err.code||"API_ERROR",message}}}finally{sema.release()}}))}finally{output_manager_default.stopSpinner()}for(let result of results)result.ok?(added.push(result.permission),fr.jsonOutput||output_manager_default.success(`Shared ${repository} with ${result.permission?.teamSlug??result.team}`)):(failed.push(result.failure),fr.jsonOutput||output_manager_default.error(`Failed to share ${repository} with ${result.team}: ${result.failure.message}`));return failed.length>0&&outputAgentError(client,{status:"error",reason:AGENT_REASON.API_ERROR,message:`Failed to share ${repository} with ${failed.map(f=>`${f.team} (${f.message})`).join(", ")}`},1),fr.jsonOutput&&client.stdout.write(`${JSON.stringify({permissions:added,failed},null,2)}
|
|
8
|
-
`),failed.length>0?1:0}export{add as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
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{printRuleMutationReceipt}from"./chunk-PBC276AK.js";import"./chunk-3XW7N4W3.js";import{resolveRulesProject,resolveRulesTeam}from"./chunk-E432NQGO.js";import"./chunk-H2FI64HG.js";import{emitRulesArgParseError,getBodyType,handleRulesApiError,outputRulesError,readRuleBody,rulesCollectionPath}from"./chunk-KINNDNJ3.js";import"./chunk-6CXJXQ6W.js";import"./chunk-GHAY4PSD.js";import"./chunk-D3M2JG5C.js";import"./chunk-ID663OJ7.js";import"./chunk-HRR57QNP.js";import"./chunk-GZNDA6SV.js";import"./chunk-PFD7LETF.js";import{monitorsAddSubcommand}from"./chunk-I26SSWTS.js";import"./chunk-773GOZIR.js";import{printError}from"./chunk-6RCYHBTM.js";import"./chunk-67GZ5REA.js";import"./chunk-BS32OUOC.js";import"./chunk-VWIHFPW2.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import"./chunk-GENXRXFN.js";import"./chunk-VT3QK5IV.js";import"./chunk-5WTGQDJ7.js";import"./chunk-ADLBLGT3.js";import"./chunk-JBUFVCTP.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-QO7CBCML.js";import{validateJsonOutput}from"./chunk-K246KRFS.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-64XCYUH7.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-6VH56CX2.js";import"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BZENIQ7N.js";function applyScopeFlag(client,body,type,scope,flags,jsonOutput){if(Object.hasOwn(body,"ruleScope"))return flags["--project"]||flags["--all"]?outputRulesError(client,jsonOutput,"SCOPE_CONFLICT","Specify monitor scope either in the body or with --project/--all, not both."):void 0;if(flags["--project"]){body.ruleScope=type==="custom"?{type:"project",projectId:scope.projectId}:{type:"include",projectIds:[scope.projectId]};return}if(flags["--all"]){if(type==="custom")return outputRulesError(client,jsonOutput,"INVALID_SCOPE","Custom monitors must target one project. Use --project <name-or-id>.");body.ruleScope={type:"all"};return}return outputRulesError(client,jsonOutput,"MISSING_SCOPE","Missing monitor scope. Add ruleScope to the body, or pass --project or --all.")}async function resolveCreateScope(client,flags,jsonOutput){return flags["--project"]&&flags["--all"]?outputRulesError(client,jsonOutput,"MUTUAL_EXCLUSIVITY","Cannot specify both --all and --project. Use one or the other."):flags["--project"]?resolveRulesProject(client,flags["--project"],jsonOutput,"monitors add"):resolveRulesTeam(client,jsonOutput)}async function add(client,argv,api){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(monitorsAddSubcommand.options))}catch(error){return emitRulesArgParseError(client,error,"monitors add --project <name-or-id> --body <path>"),printError(error),2}let flags=parsedArgs.flags,format=validateJsonOutput(flags);if(!format.valid)return outputRulesError(client,!1,"INVALID_ARGUMENTS",format.error);if(!flags["--body"])return outputRulesError(client,format.jsonOutput,"MISSING_ARGUMENTS","Missing required flag: --body <PATH>.");let body=readRuleBody(client,flags["--body"],format.jsonOutput);if(typeof body=="number")return body;let type=getBodyType(body);if(!type)return outputRulesError(client,format.jsonOutput,"INVALID_RULE_TYPE","Create body must set a supported monitor type.");if(Object.hasOwn(body,"ruleScope")&&(flags["--project"]||flags["--all"]))return outputRulesError(client,format.jsonOutput,"SCOPE_CONFLICT","Specify monitor scope either in the body or with --project/--all, not both.");if(type==="custom"&&flags["--all"])return outputRulesError(client,format.jsonOutput,"INVALID_SCOPE","Custom monitors must target one project. Use --project <name-or-id>.");let scope=await resolveCreateScope(client,flags,format.jsonOutput);if(typeof scope=="number")return scope;let scopeError=applyScopeFlag(client,body,type,scope,flags,format.jsonOutput);if(scopeError!==void 0)return scopeError;output_manager_default.spinner("Creating monitor\u2026");try{let response=await client.fetch(rulesCollectionPath(api,scope.teamId),{method:"POST",body});return format.jsonOutput?client.stdout.write(`${JSON.stringify(response,null,2)}
|
|
8
|
-
`):printRuleMutationReceipt("Created",response[api.itemKey],client.argv),0}catch(error){if(isAPIError(error))return handleRulesApiError(client,error,format.jsonOutput);throw error}finally{output_manager_default.stopSpinner()}}export{add as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
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{DEFAULT_TAG,buildRepositoryReference,parseNameArg,validateImageParts}from"./chunk-HEGJZJO7.js";import{VCR_ENGINES,emitVcrArgParseError,isBuildxAvailable,isEngineInstalled,pushCompressionArgs,reportEngineCommandFailure,reportEnginePushFailure,resolveRegistry,resolveVcrScope,runEngine,splitPassthrough,validateVcrChoice}from"./chunk-IC27IY7N.js";import{outputError}from"./chunk-6CXJXQ6W.js";import"./chunk-D3M2JG5C.js";import"./chunk-BUJITHGZ.js";import"./chunk-FBYA6LLM.js";import"./chunk-GD7AV7BO.js";import"./chunk-SCV7XEEO.js";import{buildSubcommand}from"./chunk-4YDPE5DC.js";import"./chunk-PRAWMNTU.js";import"./chunk-PXGJGWVA.js";import"./chunk-JY4EKLND.js";import{printError}from"./chunk-6RCYHBTM.js";import"./chunk-VWIHFPW2.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-FGFLTLEA.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-GENXRXFN.js";import"./chunk-VT3QK5IV.js";import"./chunk-5WTGQDJ7.js";import"./chunk-ADLBLGT3.js";import"./chunk-JBUFVCTP.js";import"./chunk-4NTBYNFR.js";import{parseArguments}from"./chunk-QO7CBCML.js";import"./chunk-K246KRFS.js";import"./chunk-F53OKXYI.js";import{getFlagsSpecification}from"./chunk-64XCYUH7.js";import"./chunk-FUX6LKNP.js";import"./chunk-OPORM35X.js";import"./chunk-4SAVH3H7.js";import"./chunk-6VH56CX2.js";import"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import"./chunk-BLUPZPAS.js";import"./chunk-RM3ZDRYE.js";import"./chunk-OO572JUC.js";import"./chunk-D3AHZ5LI.js";import"./chunk-2GHZGOWT.js";import"./chunk-YHPPP3SF.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BZENIQ7N.js";var DEFAULT_PLATFORM="linux/amd64";async function build(client,telemetry){let{own,passthrough}=splitPassthrough(client.argv),parsedArgs;try{parsedArgs=parseArguments(own,getFlagsSpecification(buildSubcommand.options))}catch(err){return emitVcrArgParseError(client,err,"vcr build <engine> [path] [name[:tag]]"),printError(err),2}let[engineArg,pathArg,nameArg]=parsedArgs.args.slice(2),project=parsedArgs.flags["--project"],platform=parsedArgs.flags["--platform"],push=!!parsedArgs.flags["--push"];if(telemetry.trackCliArgumentEngine(engineArg),telemetry.trackCliArgumentPath(pathArg),telemetry.trackCliArgumentName(nameArg),telemetry.trackCliOptionProject(project),telemetry.trackCliOptionPlatform(platform),telemetry.trackCliFlagPush(push),!engineArg){let message=`Missing engine. Choose one of: ${VCR_ENGINES.join(", ")}.`;return outputAgentError(client,{status:"error",reason:AGENT_REASON.MISSING_ARGUMENTS,message,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr build docker"),when:"Replace docker with the container tool you use"}]},2),outputError(client,!1,"MISSING_ARGUMENTS",message)}let choiceError=validateVcrChoice(client,"engine",engineArg,VCR_ENGINES,!1);if(typeof choiceError=="number")return choiceError;let engine=engineArg;if(!isEngineInstalled(engine)){let message=`\`${engine}\` is not installed or not on your PATH. Install it and try again.`;return outputAgentError(client,{status:"error",reason:"engine_not_found",message},1),outputError(client,!1,"ENGINE_NOT_FOUND",message)}let scope=await resolveVcrScope(client,{project,jsonOutput:!1});if(typeof scope=="number")return scope;let parsed=parseNameArg(nameArg,scope.projectName);if("error"in parsed)return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:parsed.error},2),outputError(client,!1,"INVALID_ARGUMENTS",parsed.error);let validationError=validateImageParts(parsed);if(validationError)return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:validationError},2),outputError(client,!1,"INVALID_ARGUMENTS",validationError);let ref=`${buildRepositoryReference({registry:resolveRegistry(),teamSlug:scope.teamSlug,projectName:scope.projectName,repository:parsed.repository})}:${parsed.tag??DEFAULT_TAG}`,contextPath=pathArg??".",buildPlatform=platform??DEFAULT_PLATFORM;if(push&&engine==="docker"&&await isBuildxAvailable()){let outputSpec=`type=image,name=${ref},push=true,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true`,engineArgs2=["buildx","build","--platform",buildPlatform,"--output",outputSpec,...passthrough,contextPath];output_manager_default.log(`Running: ${engine} ${engineArgs2.join(" ")}`);let result2=await runEngine(engine,engineArgs2,{cwd:client.cwd,captureStderr:!0});return result2.exitCode!==0?reportEnginePushFailure(client,engine,"buildx build",result2):(output_manager_default.success(`Built and pushed ${ref} (zstd compression)`),0)}push&&engine==="docker"&&output_manager_default.warn("Docker Buildx is not available; building and pushing without zstd compression. Install Buildx for smaller, faster image pushes.");let engineArgs=["build","--platform",buildPlatform,"--tag",ref,...passthrough,contextPath];output_manager_default.log(`Running: ${engine} ${engineArgs.join(" ")}`);let result=await runEngine(engine,engineArgs,{cwd:client.cwd});if(result.exitCode!==0)return reportEngineCommandFailure(client,engine,"build",result);if(!push)return output_manager_default.success(`Built ${ref}`),output_manager_default.log(`Push it with \`${buildCommandWithGlobalFlags(client.argv,`vcr push ${engine}${nameArg?` ${nameArg}`:""}`)}\`.`),0;let pushArgs=["push",...pushCompressionArgs(engine),ref];output_manager_default.log(`Running: ${engine} ${pushArgs.join(" ")}`);let pushResult=await runEngine(engine,pushArgs,{cwd:client.cwd,captureStderr:!0});if(pushResult.exitCode!==0)return reportEnginePushFailure(client,engine,"push",pushResult);let compressed=engine!=="docker";return output_manager_default.success(`Built and pushed ${ref}${compressed?" (zstd compression)":""}`),0}export{build as default};
|
|
@@ -1,10 +0,0 @@
|
|
|
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_ci_info}from"./chunk-2EYYB6YN.js";import{commands,commandsStructs}from"./chunk-NNH2H4LZ.js";import{help,resolveHelpTarget}from"./chunk-HBLBUOZ7.js";import{printError}from"./chunk-6RCYHBTM.js";import{TelemetryClient}from"./chunk-2PKEEQ5W.js";import{AGENT_STATUS,shouldEmitNonInteractiveCommandError,writeAgentError}from"./chunk-GENXRXFN.js";import{parseArguments,takeCommand}from"./chunk-QO7CBCML.js";import{getFlagsSpecification,globalCliFlagTakesValue}from"./chunk-64XCYUH7.js";import{getCommandName,getCommandNamePlain}from"./chunk-JESNVRVR.js";import{output_manager_default}from"./chunk-XP3FT56R.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_ci_info=__toESM(require_ci_info(),1);var RootTelemetryClient=class extends TelemetryClient{trackCliExtension(){this.trackExtension()}trackCliDefaultDeploy(defaultDeploy){defaultDeploy&&this.trackDefaultDeploy()}trackCliCommandAgent(actual){this.trackCliCommand({command:"agent",value:actual})}trackCliCommandAgentRuns(actual){this.trackCliCommand({command:"agent-runs",value:actual})}trackCliCommandAiGateway(actual){this.trackCliCommand({command:"ai-gateway",value:actual})}trackCliCommandTokenPass(actual){this.trackCliCommand({command:"token-pass",value:actual})}trackCliCommandAlias(actual){this.trackCliCommand({command:"alias",value:actual})}trackCliCommandActivity(actual){this.trackCliCommand({command:"activity",value:actual})}trackCliCommandAlerts(actual){this.trackCliCommand({command:"alerts",value:actual})}trackCliCommandApi(actual){this.trackCliCommand({command:"api",value:actual})}trackCliCommandBisect(actual){this.trackCliCommand({command:"bisect",value:actual})}trackCliCommandBlob(actual){this.trackCliCommand({command:"blob",value:actual})}trackCliCommandBudgets(actual){this.trackCliCommand({command:"budgets",value:actual})}trackCliCommandBuild(actual){this.trackCliCommand({command:"build",value:actual})}trackCliCommandBuy(actual){this.trackCliCommand({command:"buy",value:actual})}trackCliCommandCache(actual){this.trackCliCommand({command:"cache",value:actual})}trackCliCommandCerts(actual){this.trackCliCommand({command:"certs",value:actual})}trackCliCommandCi(actual){this.trackCliCommand({command:"ci",value:actual})}trackCliCommandChangelog(actual){this.trackCliCommand({command:"changelog",value:actual})}trackCliCommandComments(actual){this.trackCliCommand({command:"comments",value:actual})}trackCliCommandConnex(actual){this.trackCliCommand({command:"connect",value:actual})}trackCliCommandContract(actual){this.trackCliCommand({command:"contract",value:actual})}trackCliCommandCrons(actual){this.trackCliCommand({command:"crons",value:actual})}trackCliCommandCurl(actual){this.trackCliCommand({command:"curl",value:actual})}trackCliCommandDaemons(actual){this.trackCliCommand({command:"daemons",value:actual})}trackCliCommandDeploy(actual){this.trackCliCommand({command:"deploy",value:actual})}trackCliCommandDeployHooks(actual){this.trackCliCommand({command:"deploy-hooks",value:actual})}trackCliCommandDev(actual){this.trackCliCommand({command:"dev",value:actual})}trackCliCommandDomains(actual){this.trackCliCommand({command:"domains",value:actual})}trackCliCommandDns(actual){this.trackCliCommand({command:"dns",value:actual})}trackCliCommandEnv(actual){this.trackCliCommand({command:"env",value:actual})}trackCliCommandExperiments(actual){this.trackCliCommand({command:"experiments",value:actual})}trackCliCommandFirewall(actual){this.trackCliCommand({command:"firewall",value:actual})}trackCliCommandFlags(actual){this.trackCliCommand({command:"flags",value:actual})}trackCliCommandGit(actual){this.trackCliCommand({command:"git",value:actual})}trackCliCommandGlobalConfig(actual){this.trackCliCommand({command:"global-config",value:actual})}trackCliCommandGuidance(actual){this.trackCliCommand({command:"guidance",value:actual})}trackCliCommandHealth(actual){this.trackCliCommand({command:"health",value:actual})}trackCliCommandHelp(actual){this.trackCliCommand({command:"help",value:actual})}trackCliCommandHttpstat(actual){this.trackCliCommand({command:"httpstat",value:actual})}trackCliCommandInit(actual){this.trackCliCommand({command:"init",value:actual})}trackCliCommandInspect(actual){this.trackCliCommand({command:"inspect",value:actual})}trackCliCommandInstall(actual){this.trackCliCommand({command:"install",value:actual})}trackCliCommandIntegration(actual){this.trackCliCommand({command:"integration",value:actual})}trackCliCommandIntegrationResource(actual){this.trackCliCommand({command:"integration-resource",value:actual})}trackCliCommandKms(actual){this.trackCliCommand({command:"kms",value:actual})}trackCliCommandLink(actual){this.trackCliCommand({command:"link",value:actual})}trackCliCommandList(actual){this.trackCliCommand({command:"list",value:actual})}trackCliCommandLogin(actual){this.trackCliCommand({command:"login",value:actual})}trackCliCommandLogout(actual){this.trackCliCommand({command:"logout",value:actual})}trackCliCommandLogs(actual){this.trackCliCommand({command:"logs",value:actual})}trackCliCommandMetrics(actual){this.trackCliCommand({command:"metrics",value:actual})}trackCliCommandMicrofrontends(actual){this.trackCliCommand({command:"microfrontends",value:actual})}trackCliCommandMonitors(actual){this.trackCliCommand({command:"monitors",value:actual})}trackCliCommandOpen(actual){this.trackCliCommand({command:"open",value:actual})}trackCliCommandFeedback(actual){this.trackCliCommand({command:"feedback",value:actual})}trackCliCommandPricing(actual){this.trackCliCommand({command:"pricing",value:actual})}trackCliCommandProject(actual){this.trackCliCommand({command:"project",value:actual})}trackCliCommandPromote(actual){this.trackCliCommand({command:"promote",value:actual})}trackCliCommandPull(actual){this.trackCliCommand({command:"pull",value:actual})}trackCliCommandRollback(actual){this.trackCliCommand({command:"rollback",value:actual})}trackCliCommandRollingRelease(actual){this.trackCliCommand({command:"rolling-release",value:actual})}trackCliCommandRedeploy(actual){this.trackCliCommand({command:"redeploy",value:actual})}trackCliCommandRedirects(actual){this.trackCliCommand({command:"redirects",value:actual})}trackCliCommandRoutes(actual){this.trackCliCommand({command:"routes",value:actual})}trackCliCommandRemove(actual){this.trackCliCommand({command:"remove",value:actual})}trackCliCommandSignup(actual){this.trackCliCommand({command:"signup",value:actual})}trackCliCommandSkills(actual){this.trackCliCommand({command:"skills",value:actual})}trackCliCommandSetup(actual){this.trackCliCommand({command:"setup",value:actual})}trackCliCommandSandbox(actual){this.trackCliCommand({command:"sandbox",value:actual})}trackCliCommandSchedules(actual){this.trackCliCommand({command:"schedules",value:actual})}trackCliCommandSecurity(actual){this.trackCliCommand({command:"security",value:actual})}trackCliCommandStorage(actual){this.trackCliCommand({command:"storage",value:actual})}trackCliCommandEnvironments(actual){this.trackCliCommand({command:"environments",value:actual})}trackCliCommandTeams(actual){this.trackCliCommand({command:"teams",value:actual})}trackCliCommandTokens(actual){this.trackCliCommand({command:"tokens",value:actual})}trackCliCommandTelemetry(actual){this.trackCliCommand({command:"telemetry",value:actual})}trackCliCommandTraces(actual){this.trackCliCommand({command:"traces",value:actual})}trackCliCommandWhoami(actual){this.trackCliCommand({command:"whoami",value:actual})}trackCliCommandUpgrade(actual){this.trackCliCommand({command:"upgrade",value:actual})}trackCliCommandVersion(actual){this.trackCliCommand({command:"version",value:actual})}trackCliCommandWebhooks(actual){this.trackCliCommand({command:"webhooks",value:actual})}trackCliCommandUsage(actual){this.trackCliCommand({command:"usage",value:actual})}trackCliCommandVcr(actual){this.trackCliCommand({command:"vcr",value:actual})}trackCPUs(){super.trackCPUs()}trackAgenticUse(agent){super.trackAgenticUse(agent)}trackArch(){super.trackArch()}trackPlatform(){super.trackPlatform()}trackLibc(libc){super.trackLibc(libc)}trackCIVendorName(){this.trackCI(import_ci_info.default.id)}trackStdinIsTTY(isTTY){super.trackStdinIsTTY(isTTY)}trackVersion(version){super.trackVersion(version)}trackProjectId(projectId){super.trackProjectId(projectId)}trackInvocationId(invocationId){super.trackInvocationId(invocationId)}trackDeviceId(deviceId){super.trackDeviceId(deviceId)}trackVercelPluginActiveSession(){super.trackVercelPluginActiveSession()}trackVercelPluginVersion(version){super.trackVercelPluginVersion(version)}trackErrorStatus(status){super.trackErrorStatus(status)}trackErrorCode(code){super.trackErrorCode(code)}trackErrorSlug(slug){super.trackErrorSlug(slug)}trackErrorAction(action){super.trackErrorAction(action)}trackErrorServerMessage(serverMessage){super.trackErrorServerMessage(serverMessage)}trackCliOptionCwd(cwd){cwd&&this.trackCliOption({option:"cwd",value:this.redactedValue})}trackCliOptionLocalConfig(localConfig){localConfig&&this.trackCliOption({option:"local-config",value:this.redactedValue})}trackCliOptionGlobalConfig(globalConfig){globalConfig&&this.trackCliOption({option:"global-config",value:this.redactedValue})}trackCliOptionScope(scope){scope&&this.trackCliOption({option:"scope",value:this.redactedValue})}trackCliOptionToken(token){token&&this.trackCliOption({option:"token",value:this.redactedValue})}trackCliOptionTeam(team){team&&this.trackCliOption({option:"team",value:this.redactedValue})}trackCliOptionApi(api){api&&this.trackCliOption({option:"api",value:this.redactedValue})}trackCliFlagDebug(debug){debug&&this.trackCliFlag("debug")}trackCliFlagNoColor(noColor){noColor&&this.trackCliFlag("no-color")}trackCliDeprecatedShorthands(shorthands){for(let shorthand of shorthands)this.trackDeprecatedShorthand(shorthand)}};function printCommandHelp(client,commandName,tokens){let found=findBuiltInCommand(commandName,tokens);if(!found)return;let{root}=found,target=resolveHelpTarget(root,found.tokens);return target.unknownSegment!==void 0?(printUnknownCommand(client,target.unknownSegment,[root.name,...target.typedPath]),2):target.command.dynamicHelp?void 0:(new RootTelemetryClient({opts:{store:client.telemetryEventStore}}).trackCliFlagHelp([root.name,...target.typedPath].join(":")),client.stdout.write(help(target.command,{parent:target.parent,columns:client.stdout.columns??client.stderr.columns})),0)}function printGroupHelp(client,commandName,tokens){let found=findBuiltInCommand(commandName,tokens);if(!found)return;let{root}=found,target=resolveHelpTarget(root,found.tokens),{command}=target;if(!(target.unknownSegment!==void 0||!command.subcommands?.length||command.arguments.length>0||command.runsWithoutSubcommand||command.subcommands.some(subcommand=>subcommand.default))){try{parseArguments([...found.tokens],getFlagsSpecification(getCommandsAlongPath(root,target.typedPath).flatMap(({options})=>options)))}catch(err){return printError(err,client),2}return client.stdout.write(help(command,{parent:target.parent,columns:client.stdout.columns??client.stderr.columns})),0}}function getCommandPathOptions(commandName,tokens){let found=findBuiltInCommand(commandName,tokens);if(!found)return;let{typedPath}=resolveHelpTarget(found.root,found.tokens);return getCommandsAlongPath(found.root,typedPath).flatMap(({options})=>options)}function getCommandsAlongPath(root,typedPath){let path=[root];for(let token of typedPath){let subcommand=path[path.length-1].subcommands?.find(candidate=>candidate.name===token||candidate.aliases.includes(token));if(!subcommand)break;path.push(subcommand)}return path}function findBuiltInCommand(commandName,tokens){let name=commandName?commands.get(commandName):void 0;if(!commandName||!name||name==="sandbox")return;let findRoot=rootName=>commandsStructs.find(command=>command.name===rootName&&"options"in command),root=findRoot(name);if(!root)return;let monitors=root.name==="alerts"?findRoot("monitors"):void 0;if(monitors){let alias=takeAlertsRulesAlias(root,tokens);if(alias)return{root:monitors,tokens:alias}}let namesSubcommand=commandName!==root.name&&root.subcommands?.some(subcommand=>subcommand.name===commandName||subcommand.aliases.includes(commandName));return{root,tokens:namesSubcommand?[commandName,...tokens]:tokens}}function takeAlertsRulesAlias(alerts,tokens){try{let{command,args}=takeCommand([...tokens],getFlagsSpecification(alerts.options));return command==="rules"?args:void 0}catch{return}}function printUnknownCommand(client,segment,groupPath=[]){let group=groupPath.join(" "),message=`Unknown command ${segment} for ${getCommandNamePlain(group||void 0)}.`,helpCommand=group?`${group} --help`:"--help";if(shouldEmitNonInteractiveCommandError(client)){writeAgentError(client,{status:AGENT_STATUS.ERROR,reason:"unknown_command",message,next:[{command:getCommandNamePlain(helpCommand),when:"See all commands"}]});return}output_manager_default.fatal(message),output_manager_default.print(`
|
|
8
|
-
See all commands:
|
|
9
|
-
${getCommandName(helpCommand)}
|
|
10
|
-
`)}function tokensAfterCommand(argv){let args=argv.slice(2);for(let i=0;i<args.length;i++){let arg=args[i];if(arg==="--")return[];if(arg.startsWith("-")){!arg.includes("=")&&globalCliFlagTakesValue(arg)&&i++;continue}return args.slice(i+1)}return[]}export{RootTelemetryClient,printCommandHelp,printGroupHelp,getCommandPathOptions,printUnknownCommand,tokensAfterCommand};
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
var DEPRECATED_SHORTHANDS=Symbol("deprecated shorthands");function getShortFlags(option){return[option.shorthand,option.deprecatedShorthand].filter(letter=>!!letter).map(letter=>`-${letter}`)}function getFlagsSpecification(options){let flagsSpecification={},deprecatedShorthands=new Set;for(let option of options)flagsSpecification[`--${option.name}`]=option.type,option.shorthand&&(flagsSpecification[`-${option.shorthand}`]=`--${option.name}`),option.deprecatedShorthand&&(flagsSpecification[`-${option.deprecatedShorthand}`]=`--${option.name}`,deprecatedShorthands.add(`-${option.deprecatedShorthand}`));return flagsSpecification["--next"]&&!flagsSpecification["-N"]&&(flagsSpecification["-N"]="--next",deprecatedShorthands.add("-N")),deprecatedShorthands.size>0&&(flagsSpecification[DEPRECATED_SHORTHANDS]=[...deprecatedShorthands]),flagsSpecification}var SENSITIVE_AUTH_FLAG_NAMES=new Set(["--token","-t"]),SDK_KEY_PATTERN=/^vf_(?:server|client)_/;function normalizeFlagName(flag){return flag.includes("=")?flag.slice(0,flag.indexOf("=")):flag}function stripSensitiveAuthArgs(args){let out=[],afterDelimiter=!1;for(let i=0;i<args.length;i++){let arg=args[i];if(arg==="--"&&(afterDelimiter=!0),!afterDelimiter&&(arg.startsWith("--sdk-key=")||SDK_KEY_PATTERN.test(arg)))continue;let name=normalizeFlagName(arg);if(SENSITIVE_AUTH_FLAG_NAMES.has(name)){!arg.includes("=")&&i+1<args.length&&i++;continue}if(!afterDelimiter&&/^-[A-Za-z]{2,}$/.test(arg)&&arg.includes("t")){let rest=arg.replace(/t/g,"");rest!=="-"&&out.push(rest),i+1<args.length&&i++;continue}out.push(arg)}return out}var globalCommandOptions=[{name:"help",shorthand:"h",type:Boolean,description:"Output usage information",deprecated:!1},{name:"version",shorthand:"v",type:Boolean,description:"Output the version number",deprecated:!1},{name:"cwd",shorthand:null,type:String,argument:"DIR",description:"Sets the current working directory for a single run of a command",deprecated:!1},{name:"local-config",shorthand:"A",type:String,argument:"FILE",description:"Path to the local `vercel.json` file",deprecated:!1},{name:"global-config",shorthand:"Q",type:String,argument:"DIR",description:"Path to the global `.vercel` directory",deprecated:!1},{name:"debug",shorthand:"d",type:Boolean,description:"Debug mode (default: off)",deprecated:!1},{name:"no-color",shorthand:null,type:Boolean,description:"No color mode (default: off)",deprecated:!1},{name:"non-interactive",shorthand:null,type:Boolean,description:"Run without interactive prompts (default: on when an agent is detected)",deprecated:!1},{name:"scope",shorthand:"S",type:String,description:"Set a custom scope",deprecated:!1},{name:"token",shorthand:"t",type:String,argument:"TOKEN",description:"Login token",deprecated:!1},{name:"team",shorthand:"T",type:String,deprecated:!1},{name:"api",shorthand:null,type:String,deprecated:!1}],GLOBAL_CLI_FLAG_NAMES=(()=>{let set=new Set;for(let opt of globalCommandOptions){set.add(`--${opt.name}`);for(let flag of getShortFlags(opt))set.add(flag)}return set})();function globalCliFlagTakesValue(flagName){let normalized=normalizeFlagName(flagName);for(let opt of globalCommandOptions)if(`--${opt.name}`===normalized||getShortFlags(opt).includes(normalized))return opt.type===String;return!1}var SUGGESTION_FLAGS_TAKING_VALUE=new Set(["--config","--deployment","--environment","--git-branch","--id","--value","--status","--name","--slug","--version","--search","--format","--project","--page","--per-page"]);function suggestionFlagTakesSeparateValue(flagName){let name=normalizeFlagName(flagName);return globalCliFlagTakesValue(name)?!0:SUGGESTION_FLAGS_TAKING_VALUE.has(name)}function getSameSubcommandSuggestionFlags(args){let safeArgs=stripSensitiveAuthArgs(args),out=[];for(let i=0;i<safeArgs.length;i++){let a=safeArgs[i];if(!a.startsWith("-")||(out.push(a),a.includes("=")))continue;suggestionFlagTakesSeparateValue(a)&&i+1<safeArgs.length&&!safeArgs[i+1].startsWith("-")&&out.push(safeArgs[++i])}return out}var GLOBAL_OPTIONS=getFlagsSpecification(globalCommandOptions),arg_common_default=()=>GLOBAL_OPTIONS,yesOption={name:"yes",shorthand:"y",type:Boolean,deprecated:!1,description:"Accept default value for all prompts"},nextCursorOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},confirmOption={name:"confirm",shorthand:"c",type:Boolean,deprecated:!0},limitOption={name:"limit",shorthand:null,type:Number,deprecated:!1,description:"Number of results to return per page (default: 20, max: 100)",argument:"NUMBER"},sinceOption={name:"since",shorthand:"s",type:String,argument:"TIME",deprecated:!1,description:"Start time: ISO 8601 or relative, like 1h or 7d"},untilOption={name:"until",shorthand:"u",type:String,argument:"TIME",deprecated:!1,description:"End time: ISO 8601 or relative (default: now)"},environmentOption={name:"environment",shorthand:"e",type:String,argument:"ENVIRONMENT",deprecated:!1,description:"Environment: production, preview, development, or a custom environment"},targetOption={name:"target",shorthand:null,type:String,argument:"ENVIRONMENT",deprecated:!0,description:"Deprecated alias for `--environment`"},gitBranchOption={name:"git-branch",shorthand:null,type:String,argument:"BRANCH",deprecated:!1,description:"Git branch"},forceOption={name:"force",shorthand:null,type:Boolean,deprecated:!1},formatOption={name:"format",shorthand:"F",type:String,argument:"FORMAT",description:"Specify the output format (json)",deprecated:!0},jsonOption={name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Output as JSON"};var allOption={name:"all",shorthand:"a",type:Boolean,deprecated:!1,description:"List resources across all projects"},projectOption={name:"project",shorthand:null,type:String,argument:"NAME_OR_ID",description:"Project name or ID (default: linked project)",deprecated:!1},deploymentOption={name:"deployment",shorthand:null,type:String,deprecated:!1,description:"The deployment ID or URL to target",argument:"DEPLOYMENT"},protectionBypassOption={name:"protection-bypass",shorthand:null,type:String,deprecated:!1,description:"Protection bypass secret for accessing protected deployments",argument:"SECRET"},GLOBAL_LONG_TO_OPT=new Map,GLOBAL_SHORT_TO_OPT=new Map;for(let opt of globalCommandOptions){GLOBAL_LONG_TO_OPT.set(`--${opt.name}`,opt);for(let flag of getShortFlags(opt))GLOBAL_SHORT_TO_OPT.set(flag,opt)}function getGlobalFlagsFromArgs(args,options){let delimiterIndex=args.indexOf("--"),cliArgs=delimiterIndex===-1?args:args.slice(0,delimiterIndex),safeArgs=stripSensitiveAuthArgs(cliArgs),out=[];for(let i=0;i<safeArgs.length;i++){let a=safeArgs[i];if(options?.preserveYes&&(a==="--yes"||a==="-y")){out.push(a);continue}if(options?.preserveConfig&&(a==="--config"||a.startsWith("--config="))){if(out.push(a),a==="--config"){let next=safeArgs[i+1];next&&!next.startsWith("-")&&(out.push(next),i++)}continue}let opt;if(a.startsWith("--")&&a.includes("=")){let name=a.slice(2).split("=")[0];opt=GLOBAL_LONG_TO_OPT.get(`--${name}`),opt&&out.push(a);continue}if(opt=GLOBAL_LONG_TO_OPT.get(a)||GLOBAL_SHORT_TO_OPT.get(a),!!opt&&(out.push(a),opt.type===String&&!a.includes("="))){let next=safeArgs[i+1];next&&!next.startsWith("-")&&(out.push(next),i++)}}if(options?.preserveProject){let projectOption2=findProjectOption(safeArgs);projectOption2&&out.push(...projectOption2.args)}return out}function findProjectOption(args){for(let i=0;i<args.length;i++){let arg=args[i];if(arg==="--")return;if(arg.startsWith("--project="))return{value:arg.slice(10),args:[arg]};if(arg==="--project"){let value=args[i+1];return value&&!value.startsWith("-")?{value,args:[arg,value]}:void 0}}}function getProjectOptionFromArgs(args){return findProjectOption(args)?.value}export{DEPRECATED_SHORTHANDS,getShortFlags,getFlagsSpecification,SDK_KEY_PATTERN,normalizeFlagName,stripSensitiveAuthArgs,globalCommandOptions,GLOBAL_CLI_FLAG_NAMES,globalCliFlagTakesValue,suggestionFlagTakesSeparateValue,getSameSubcommandSuggestionFlags,arg_common_default,yesOption,nextCursorOption,confirmOption,limitOption,sinceOption,untilOption,environmentOption,targetOption,gitBranchOption,forceOption,formatOption,jsonOption,allOption,projectOption,deploymentOption,protectionBypassOption,getGlobalFlagsFromArgs,getProjectOptionFromArgs};
|
|
@@ -1,7 +0,0 @@
|
|
|
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{getSubcommand}from"./chunk-ETV3C2CV.js";import{monitorsCommand,monitorsNotificationsAggregateCommand}from"./chunk-I26SSWTS.js";import{TelemetryClient}from"./chunk-2PKEEQ5W.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-GENXRXFN.js";import{takeCommand}from"./chunk-QO7CBCML.js";import{warnDeprecatedSubcommand}from"./chunk-K246KRFS.js";import{getFlagsSpecification}from"./chunk-64XCYUH7.js";import{output_manager_default}from"./chunk-XP3FT56R.js";var MonitorsTelemetryClient=class extends TelemetryClient{trackCliSubcommandLs(actual){this.trackCliSubcommand({subcommand:"ls",value:actual})}trackCliSubcommandSchema(actual){this.trackCliSubcommand({subcommand:"schema",value:actual})}trackCliSubcommandAdd(actual){this.trackCliSubcommand({subcommand:"add",value:actual})}trackCliSubcommandInspect(actual){this.trackCliSubcommand({subcommand:"inspect",value:actual})}trackCliSubcommandRemove(actual){this.trackCliSubcommand({subcommand:"remove",value:actual})}trackCliSubcommandUpdate(actual){this.trackCliSubcommand({subcommand:"update",value:actual})}trackCliSubcommandNotifications(actual){this.trackCliSubcommand({subcommand:"notifications",value:actual})}trackCliOptionType(v){v&&v.length>0&&this.trackCliOption({option:"type",value:v.join(",")})}trackCliFlagAll(v){v&&this.trackCliFlag("all")}trackCliFlagJson(v){v&&this.trackCliFlag("json")}};var MONITORS_CONFIG={ls:["ls","list"],schema:["schema"],add:["add","create"],inspect:["inspect","get"],remove:["remove","rm","delete"],update:["update","patch"],notifications:["notifications"]},monitorsRoutingFlags=getFlagsSpecification([...monitorsCommand.subcommands,...monitorsNotificationsAggregateCommand.subcommands].flatMap(command=>[...command.options]));async function runMonitors(client,argv,api){let{command,args:argsWithoutCommand}=takeCommand(argv,monitorsRoutingFlags),found=command?getSubcommand([command],MONITORS_CONFIG):void 0;if(command&&found?.subcommand==null)return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message:`Unknown "monitors" subcommand "${command}".`,next:[{command:buildCommandWithGlobalFlags(client.argv,"monitors --help"),when:"Show valid monitors subcommands"}]},2),output_manager_default.error(`Unknown "monitors" subcommand "${command}". Run \`vercel monitors --help\`.`),2;let resolved=found?.subcommand??"ls",original=found?.subcommandOriginal??"ls",args=found?argsWithoutCommand:argv,telemetry=new MonitorsTelemetryClient({opts:{store:client.telemetryEventStore}});switch(resolved){case"ls":return telemetry.trackCliSubcommandLs(original),(await import("./ls-4WMW65WV.js")).default(client,args,api,telemetry);case"schema":return telemetry.trackCliSubcommandSchema(original),(await import("./schema-JCJF3AUI.js")).default(client,args,api);case"add":return telemetry.trackCliSubcommandAdd(original),original==="create"&&warnDeprecatedSubcommand(client,"monitors create","monitors add"),(await import("./add-QMLQDEWM.js")).default(client,args,api);case"inspect":return telemetry.trackCliSubcommandInspect(original),(await import("./rule-inspect-27A23NWG.js")).default(client,args,api);case"remove":return telemetry.trackCliSubcommandRemove(original),original==="delete"&&warnDeprecatedSubcommand(client,"monitors delete","monitors remove"),(await import("./rm-VDEXQXNO.js")).default(client,args,api);case"update":return telemetry.trackCliSubcommandUpdate(original),original==="patch"&&warnDeprecatedSubcommand(client,"monitors patch","monitors update"),(await import("./update-DUSQP2H7.js")).default(client,args,api);case"notifications":return(await import("./notifications-J24CW3SD.js")).default(client,args,api,telemetry);default:return output_manager_default.error(`Unhandled monitors subcommand: ${String(resolved)}`),1}}export{monitorsRoutingFlags,runMonitors};
|
|
@@ -1,8 +0,0 @@
|
|
|
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{parseTimeFlag}from"./chunk-D3M2JG5C.js";import{output_manager_default}from"./chunk-XP3FT56R.js";function validateAllProjectMutualExclusivity(all,project){return all&&project?{valid:!1,code:"MUTUAL_EXCLUSIVITY",message:"Cannot specify both --all and --project. Use one or the other."}:{valid:!0}}function validateTimeBound(input){if(!input)return{valid:!0,value:void 0};try{return{valid:!0,value:parseTimeFlag(input)}}catch(err){return{valid:!1,code:"INVALID_TIME",message:err.message}}}function validateTimeOrder(since,until){return since&&until&&since.getTime()>until.getTime()?{valid:!1,code:"INVALID_TIME_RANGE",message:"`--since` must be earlier than `--until`."}:{valid:!0}}function normalizeRepeatableStringFilters(filters){if(!filters||filters.length===0)return[];let normalized=filters.flatMap(filter=>filter.split(",")).map(filter=>filter.trim()).filter(Boolean);return[...new Set(normalized)]}function validateIntegerRangeWithDefault(value,opts){return value===void 0?{valid:!0,value:opts.defaultValue}:Number.isNaN(value)?{valid:!1,code:"INVALID_LIMIT",message:`Please provide a number for flag \`${opts.flag}\`.`}:!Number.isInteger(value)||value<opts.min||value>opts.max?{valid:!1,code:"INVALID_LIMIT",message:`\`${opts.flag}\` must be an integer between ${opts.min} and ${opts.max}.`}:{valid:!0,value}}function validateOptionalIntegerRange(value,opts){return value===void 0?{valid:!0,value:void 0}:Number.isNaN(value)?{valid:!1,code:opts.code||"INVALID_LIMIT",message:`Please provide a number for flag \`${opts.flag}\`.`}:!Number.isInteger(value)||value<opts.min||value>opts.max?{valid:!1,code:opts.code||"INVALID_LIMIT",message:`\`${opts.flag}\` must be an integer between ${opts.min} and ${opts.max}.`}:{valid:!0,value}}function formatJsonError(code,message){return`${JSON.stringify({error:{code,message}},null,2)}
|
|
8
|
-
`}function writeJsonError(client,code,message){client.stdout.write(formatJsonError(code,message))}var USAGE_ERROR_CODES=new Set(["CONFLICTING_CONTENT","INVALID_AGGREGATION","INVALID_ARGUMENTS","INVALID_ATTACHMENT","INVALID_GRANULARITY","INVALID_GROUP_BY","INVALID_LIMIT","INVALID_NEXT","INVALID_RULE_TYPE","INVALID_STATUS","INVALID_THREAD","INVALID_TIME","INVALID_TIME_RANGE","MESSAGE_WITH_MULTIPLE_THREADS","MISSING_ARGUMENT","MISSING_ARGUMENTS","MISSING_CONTENT","MISSING_FLAG","MISSING_THREAD","MUTUAL_EXCLUSIVITY"]);function getExitCodeForErrorCode(code){return USAGE_ERROR_CODES.has(code)?2:1}function outputError(client,jsonOutput,code,message){return jsonOutput?writeJsonError(client,code,message):output_manager_default.error(message),getExitCodeForErrorCode(code)}function handleValidationError(result,jsonOutput,client){return outputError(client,jsonOutput,result.code,result.message)}export{validateAllProjectMutualExclusivity,validateTimeBound,validateTimeOrder,normalizeRepeatableStringFilters,validateIntegerRangeWithDefault,validateOptionalIntegerRange,writeJsonError,getExitCodeForErrorCode,outputError,handleValidationError};
|
|
@@ -1,7 +0,0 @@
|
|
|
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_ms}from"./chunk-MXTC4ZAQ.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_ms=__toESM(require_ms(),1);function parseTimeFlag(input,now=Date.now()){if(input.trim()==="now")return new Date(now);let milliseconds=(0,import_ms.default)(input);if(milliseconds!==void 0)return new Date(now-milliseconds);let date=new Date(input);if(isNaN(date.getTime()))throw new Error(`Invalid time format "${input}". Use relative (1h, 30m, 2d, 1w), ISO 8601 datetime, or now.`);return date}function resolveTimeRange(since="1h",until,now=Date.now()){let startTime=parseTimeFlag(since,now),endTime=until?parseTimeFlag(until,now):new Date(now);return{startTime,endTime}}export{parseTimeFlag,resolveTimeRange};
|
|
@@ -1,7 +0,0 @@
|
|
|
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{TelemetryClient}from"./chunk-2PKEEQ5W.js";var RoutesTelemetryClient=class extends TelemetryClient{trackCliSubcommandList(actual){this.trackCliSubcommand({subcommand:"list",value:actual})}trackCliSubcommandListVersions(actual){this.trackCliSubcommand({subcommand:"list-versions",value:actual})}trackCliSubcommandInspect(actual){this.trackCliSubcommand({subcommand:"inspect",value:actual})}trackCliSubcommandAdd(actual){this.trackCliSubcommand({subcommand:"add",value:actual})}trackCliSubcommandPublish(actual){this.trackCliSubcommand({subcommand:"publish",value:actual})}trackCliSubcommandRestore(actual){this.trackCliSubcommand({subcommand:"restore",value:actual})}trackCliSubcommandDiscardStaging(actual){this.trackCliSubcommand({subcommand:"discard-staging",value:actual})}trackCliSubcommandRemove(actual){this.trackCliSubcommand({subcommand:"remove",value:actual})}trackCliSubcommandExport(actual){this.trackCliSubcommand({subcommand:"export",value:actual})}trackCliSubcommandEnable(actual){this.trackCliSubcommand({subcommand:"enable",value:actual})}trackCliSubcommandDisable(actual){this.trackCliSubcommand({subcommand:"disable",value:actual})}trackCliSubcommandReorder(actual){this.trackCliSubcommand({subcommand:"reorder",value:actual})}trackCliSubcommandUpdate(actual){this.trackCliSubcommand({subcommand:"update",value:actual})}},RoutesAddTelemetryClient=class extends TelemetryClient{trackCliArgumentName(name){name&&this.trackCliArgument({arg:"name",value:this.redactedValue})}trackCliFlagYes(flag){flag&&this.trackCliFlag("yes")}trackCliFlagNoEnable(flag){flag&&this.trackCliFlag("no-enable")}trackCliFlagDisabled(flag){flag&&this.trackCliFlag("disabled")}trackCliOptionSrc(src){src&&this.trackCliOption({option:"src",value:this.redactedValue})}trackCliOptionSrcSyntax(syntax){syntax&&this.trackCliOption({option:"src-syntax",value:syntax})}trackCliOptionAction(action){action&&this.trackCliOption({option:"action",value:action})}trackCliOptionDest(dest){dest&&this.trackCliOption({option:"dest",value:this.redactedValue})}trackCliOptionStatus(status){status!==void 0&&this.trackCliOption({option:"status",value:String(status)})}trackCliOptionPosition(position){if(position){let placement=position.split(":")[0];this.trackCliOption({option:"position",value:placement})}}trackCliOptionDescription(description){description&&this.trackCliOption({option:"description",value:this.redactedValue})}trackCliOptionSetResponseHeader(headers){headers&&headers.length>0&&this.trackCliOption({option:"set-response-header",value:this.redactedValue})}trackCliOptionAppendResponseHeader(headers){headers&&headers.length>0&&this.trackCliOption({option:"append-response-header",value:this.redactedValue})}trackCliOptionDeleteResponseHeader(headers){headers&&headers.length>0&&this.trackCliOption({option:"delete-response-header",value:this.redactedValue})}trackCliOptionSetRequestHeader(headers){headers&&headers.length>0&&this.trackCliOption({option:"set-request-header",value:this.redactedValue})}trackCliOptionAppendRequestHeader(headers){headers&&headers.length>0&&this.trackCliOption({option:"append-request-header",value:this.redactedValue})}trackCliOptionDeleteRequestHeader(headers){headers&&headers.length>0&&this.trackCliOption({option:"delete-request-header",value:this.redactedValue})}trackCliOptionSetRequestQuery(params){params&¶ms.length>0&&this.trackCliOption({option:"set-request-query",value:this.redactedValue})}trackCliOptionAppendRequestQuery(params){params&¶ms.length>0&&this.trackCliOption({option:"append-request-query",value:this.redactedValue})}trackCliOptionDeleteRequestQuery(params){params&¶ms.length>0&&this.trackCliOption({option:"delete-request-query",value:this.redactedValue})}trackCliOptionHas(conditions){conditions&&conditions.length>0&&this.trackCliOption({option:"has",value:this.redactedValue})}trackCliOptionMissing(conditions){conditions&&conditions.length>0&&this.trackCliOption({option:"missing",value:this.redactedValue})}trackCliOptionAi(prompt){prompt&&this.trackCliOption({option:"ai",value:this.redactedValue})}trackCliActionType(actionType){this.trackCliOption({option:"action-type",value:actionType})}trackCliFlagHasConditions(hasConditions){hasConditions&&this.trackCliFlag("has-conditions")}trackCliFlagMissingConditions(hasMissingConditions){hasMissingConditions&&this.trackCliFlag("missing-conditions")}trackCliFlagResponseHeaders(hasResponseHeaders){hasResponseHeaders&&this.trackCliFlag("response-headers")}trackCliFlagRequestTransforms(hasRequestTransforms){hasRequestTransforms&&this.trackCliFlag("request-transforms")}},RoutesEditTelemetryClient=class extends TelemetryClient{trackCliArgumentNameOrId(id){id&&this.trackCliArgument({arg:"name-or-id",value:this.redactedValue})}trackCliFlagYes(flag){flag&&this.trackCliFlag("yes")}trackCliFlagNoDest(flag){flag&&this.trackCliFlag("no-dest")}trackCliFlagNoStatus(flag){flag&&this.trackCliFlag("no-status")}trackCliFlagClearConditions(flag){flag&&this.trackCliFlag("clear-conditions")}trackCliFlagClearHeaders(flag){flag&&this.trackCliFlag("clear-headers")}trackCliFlagClearTransforms(flag){flag&&this.trackCliFlag("clear-transforms")}trackCliOptionName(name){name&&this.trackCliOption({option:"name",value:this.redactedValue})}trackCliOptionDescription(desc){desc&&this.trackCliOption({option:"description",value:this.redactedValue})}trackCliOptionSrc(src){src&&this.trackCliOption({option:"src",value:this.redactedValue})}trackCliOptionSrcSyntax(syntax){syntax&&this.trackCliOption({option:"src-syntax",value:syntax})}trackCliOptionAction(action){action&&this.trackCliOption({option:"action",value:action})}trackCliOptionDest(dest){dest&&this.trackCliOption({option:"dest",value:this.redactedValue})}trackCliOptionStatus(status){status!==void 0&&this.trackCliOption({option:"status",value:String(status)})}trackCliOptionSetResponseHeader(h){h&&h.length>0&&this.trackCliOption({option:"set-response-header",value:this.redactedValue})}trackCliOptionAppendResponseHeader(h){h&&h.length>0&&this.trackCliOption({option:"append-response-header",value:this.redactedValue})}trackCliOptionDeleteResponseHeader(h){h&&h.length>0&&this.trackCliOption({option:"delete-response-header",value:this.redactedValue})}trackCliOptionSetRequestHeader(h){h&&h.length>0&&this.trackCliOption({option:"set-request-header",value:this.redactedValue})}trackCliOptionAppendRequestHeader(h){h&&h.length>0&&this.trackCliOption({option:"append-request-header",value:this.redactedValue})}trackCliOptionDeleteRequestHeader(h){h&&h.length>0&&this.trackCliOption({option:"delete-request-header",value:this.redactedValue})}trackCliOptionSetRequestQuery(p){p&&p.length>0&&this.trackCliOption({option:"set-request-query",value:this.redactedValue})}trackCliOptionAppendRequestQuery(p){p&&p.length>0&&this.trackCliOption({option:"append-request-query",value:this.redactedValue})}trackCliOptionDeleteRequestQuery(p){p&&p.length>0&&this.trackCliOption({option:"delete-request-query",value:this.redactedValue})}trackCliOptionHas(conditions){conditions&&conditions.length>0&&this.trackCliOption({option:"has",value:this.redactedValue})}trackCliOptionMissing(conditions){conditions&&conditions.length>0&&this.trackCliOption({option:"missing",value:this.redactedValue})}trackCliOptionAi(prompt){prompt&&this.trackCliOption({option:"ai",value:this.redactedValue})}};export{RoutesTelemetryClient,RoutesAddTelemetryClient,RoutesEditTelemetryClient};
|
|
@@ -1,7 +0,0 @@
|
|
|
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{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};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{require_dist}from"./chunk-PUKYAALC.js";import{warnDeprecatedInput}from"./chunk-K246KRFS.js";import{deploymentOption,environmentOption,forceOption,formatOption,gitBranchOption,jsonOption,projectOption,yesOption}from"./chunk-64XCYUH7.js";import{packageName,require_lib}from"./chunk-JESNVRVR.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_constants=__toESM(require_dist(),1),import_title=__toESM(require_lib(),1);var envTargetChoices=import_constants.PROJECT_ENV_TARGET.map(t=>({name:(0,import_title.default)(t),value:t}));function isValidEnvTarget(target){return typeof target>"u"||envTargetChoices.map(c=>c.value).includes(target)}function getEnvTargetPlaceholder(){return`<${envTargetChoices.map(c=>c.value).join(" | ")}>`}function parseEnvTargetArg(arg){return Array.from(new Set(arg.split(",").map(t=>t.trim()).filter(Boolean)))}function resolveEnvTargetInput(client,input){let environment=Array.isArray(input.environment)?input.environment.join(","):input.environment;return input.legacyEnvironment!==void 0&&environment!==void 0?{error:"Can't use an environment argument with --environment. Use --environment, and --git-branch for a Git branch."}:input.legacyGitBranch!==void 0&&input.gitBranch!==void 0?{error:"Can't use a Git branch argument with --git-branch. Use --git-branch."}:(input.legacyEnvironment!==void 0&&warnDeprecatedInput(client,"The environment argument","--environment"),input.legacyGitBranch!==void 0&&warnDeprecatedInput(client,"The Git branch argument","--git-branch"),{environment:environment??input.legacyEnvironment,gitBranch:input.gitBranch??input.legacyGitBranch})}var targetPlaceholder=getEnvTargetPlaceholder(),listSubcommand={name:"list",aliases:["ls"],description:"List all Environment Variables for a Project",arguments:[],options:[{...environmentOption,description:"List only the variables for this environment"},{...gitBranchOption,description:"List only the variables for this Git branch"},{...formatOption,description:"Specify the output format (json, including readable Environment Variable values)"},{...jsonOption,description:"Output as JSON, including readable Environment Variable values"},projectOption,{name:"guidance",description:"Receive command suggestions once command is complete",shorthand:null,type:Boolean,deprecated:!1}],examples:[]},addSubcommand={name:"add",aliases:[],description:"Add an Environment Variable",arguments:[{name:"name",required:!0}],options:[projectOption,{...environmentOption,type:[String],description:"Environments to add the variable to; repeatable or comma-separated. Prompts when omitted"},{...gitBranchOption,description:"Set the Git branch for a Preview Environment Variable"},{name:"sensitive",description:"Store the value as a Secret",shorthand:null,type:Boolean,deprecated:!1},{name:"no-sensitive",description:"Store the value as Config",shorthand:null,type:Boolean,deprecated:!1},{name:"type",description:"Set the Environment Variable type (`config` or `secret`)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"visibility",description:"Deprecated alias for `--type`",shorthand:null,type:String,argument:"VISIBILITY",deprecated:!0},{...forceOption,description:"Overwrite an existing variable in the same environment",shorthand:null},{...yesOption,description:"Accept default choices when adding an Environment Variable"},{name:"guidance",description:"Show command suggestions after completion",shorthand:null,type:Boolean,deprecated:!1},{name:"value",description:"Set the variable value for non-interactive use; otherwise use stdin or the prompt",shorthand:null,type:String,argument:"VALUE",deprecated:!1}],examples:[{name:"Add a new variable (prompts for value and Environments)",value:[`${packageName} env add <name>`,`${packageName} env add API_TOKEN`]},{name:"Add a new Environment Variable to a specific Environment",value:[`${packageName} env add <name> --environment ${targetPlaceholder}`,`${packageName} env add DB_PASS --environment production`]},{name:"Add one variable to multiple Environments (comma-separated)",value:[`${packageName} env add <name> --environment <environment>[,<environment>]`,`${packageName} env add API_URL --environment production,preview,development`]},{name:"Override an existing Environment Variable in the same environment (production, preview, development)",value:`${packageName} env add API_TOKEN --force`},{name:"Add a Config Environment Variable that remains readable later",value:`${packageName} env add API_TOKEN --no-sensitive`},{name:"Add a new Environment Variable for a specific Environment and Git Branch",value:[`${packageName} env add <name> --environment ${targetPlaceholder} --git-branch <BRANCH>`,`${packageName} env add DB_PASS --environment preview --git-branch feat1`]},{name:"Add a new Environment Variable from stdin",value:[`cat <file> | ${packageName} env add <name> --environment ${targetPlaceholder}`,`cat ~/.npmrc | ${packageName} env add NPM_RC --environment preview`,`${packageName} env add API_URL --environment production < url.txt`]},{name:"Add with --value for non-interactive use",value:`${packageName} env add API_TOKEN --environment production --value "<value>" --yes`}]},removeSubcommand={name:"remove",aliases:["rm"],description:"Remove an Environment Variable (see examples below)",arguments:[{name:"name",required:!0}],options:[projectOption,{...environmentOption,description:"Remove the variable from this environment only. Without it, the variable is removed from all of its environments"},{...gitBranchOption,description:"Remove the variable for this Git branch only"},{...yesOption,description:"Skip the confirmation prompt when removing an Environment Variable"}],examples:[{name:"Remove a variable from multiple Environments",value:[`${packageName} env remove <name>`,`${packageName} env remove API_TOKEN`]},{name:"Remove a variable from a specific Environment",value:[`${packageName} env remove <name> --environment ${targetPlaceholder}`,`${packageName} env remove NPM_RC --environment preview`]},{name:"Remove a variable from a specific Environment and Git Branch",value:[`${packageName} env remove <name> --environment ${targetPlaceholder} --git-branch <BRANCH>`,`${packageName} env remove NPM_RC --environment preview --git-branch feat1`]}]},pullSubcommand={name:"pull",aliases:[],description:"Pull Environment Variables into a local file (default: .env.local)",arguments:[{name:"filename",required:!1}],options:[projectOption,{name:"environment",description:"Select the environment to pull (default: development)",shorthand:"e",type:String,argument:"ENVIRONMENT",deprecated:!1},{...gitBranchOption,description:"Specify the Git branch to pull specific Environment Variables for"},{...deploymentOption,description:"Pull Environment Variables for a specific deployment (e.g. dpl_xxx)"},{name:"id",shorthand:null,type:String,deprecated:!0},{...yesOption,description:"Skip the confirmation prompt when overwriting an existing file"}],examples:[{name:"Pull Development Environment Variables into a custom file (check .gitignore)",value:[`${packageName} env pull <file>`,`${packageName} env pull .env.development.local`]},{name:"Pull Environment Variables for a specific deployment",value:`${packageName} env pull --deployment dpl_xxx`}]},runSubcommand={name:"run",aliases:[],description:"Run a command with environment variables from the linked Vercel project",arguments:[{name:"command",required:!0,multiple:!0}],options:[projectOption,{name:"environment",description:"Specify the environment to pull variables from (default: development)",shorthand:"e",type:String,argument:"ENVIRONMENT",deprecated:!1},{...gitBranchOption,description:"Specify the Git branch to pull specific Environment Variables for"}],examples:[{name:"Run Next.js dev server with development environment variables",value:`${packageName} env run -- next dev`},{name:"Run tests with preview environment variables for a specific branch",value:`${packageName} env run -e preview --git-branch feature-x -- npm test`}]},updateSubcommand={name:"update",aliases:[],description:"Update the value of an existing Environment Variable (see examples below)",arguments:[{name:"name",required:!0}],options:[projectOption,{...environmentOption,description:"Pick the variable to update by an environment it covers. The new value applies to all of its environments"},{...gitBranchOption,description:"Pick the variable to update by its Git branch"},{name:"sensitive",description:"Store the updated value as a Secret",shorthand:null,type:Boolean,deprecated:!1},{name:"type",description:"Set the Environment Variable type (`config` or `secret`)",shorthand:null,type:String,argument:"TYPE",deprecated:!1},{name:"visibility",description:"Deprecated alias for `--type`",shorthand:null,type:String,argument:"VISIBILITY",deprecated:!0},{...yesOption,description:"Skip the confirmation prompt when updating an Environment Variable"},{name:"value",description:"New value for the variable (non-interactive). Otherwise use stdin or you will be prompted.",shorthand:null,type:String,argument:"VALUE",deprecated:!1}],examples:[{name:"Update a variable in all Environments",value:[`${packageName} env update <name>`,`${packageName} env update API_TOKEN`]},{name:"Update the variable that covers a specific Environment",value:[`${packageName} env update <name> --environment ${targetPlaceholder}`,`${packageName} env update DB_PASS --environment production`]},{name:"Update the variable for a specific Environment and Git Branch",value:[`${packageName} env update <name> --environment ${targetPlaceholder} --git-branch <BRANCH>`,`${packageName} env update NPM_RC --environment preview --git-branch feat1`]},{name:"Update a variable from stdin",value:[`cat <file> | ${packageName} env update <name> --environment ${targetPlaceholder}`,`cat ~/.npmrc | ${packageName} env update NPM_RC --environment preview`,`${packageName} env update API_URL --environment production < url.txt`]}]},envCommand={name:"env",aliases:[],description:"Interact with Environment Variables for a Project",arguments:[],subcommands:[addSubcommand,listSubcommand,pullSubcommand,removeSubcommand,runSubcommand,updateSubcommand],options:[],examples:[{name:"Run a command with Environment Variables from the linked Project",value:`${packageName} env run -- <command>`},{name:"Add one variable to multiple Environments",value:`${packageName} env add API_URL production,preview,development`}]};export{envTargetChoices,isValidEnvTarget,getEnvTargetPlaceholder,parseEnvTargetArg,resolveEnvTargetInput,listSubcommand,addSubcommand,removeSubcommand,pullSubcommand,runSubcommand,updateSubcommand,envCommand};
|