@vercel/cli-support 65.14.0 → 65.15.0-snapshot-ff25f3f66933
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-63SUIZGX.js +8 -0
- package/dist/chunks/add-FTVNBJLV.js +8 -0
- package/dist/chunks/add-JJOY2UAF.js +8 -0
- package/dist/chunks/alerts-SNR4JKOI.js +8 -0
- package/dist/chunks/build-LM2L5H7D.js +7 -0
- package/dist/chunks/{chunk-OX5KSZFU.js → chunk-26HI5UUO.js} +1 -1
- package/dist/chunks/{chunk-2SVS5PWL.js → chunk-2B6WUOVU.js} +1 -1
- package/dist/chunks/{chunk-NR2JDEYD.js → chunk-2ONWHJT5.js} +1 -1
- package/dist/chunks/{chunk-4JPTCTBV.js → chunk-3BMYPWEY.js} +1 -1
- package/dist/chunks/{chunk-HNLLL52N.js → chunk-3VENFXBY.js} +1 -1
- package/dist/chunks/{chunk-QU4WGUNK.js → chunk-44XWDKGK.js} +1 -1
- package/dist/chunks/{chunk-RD45QAHF.js → chunk-4A2IRNN5.js} +1 -1
- package/dist/chunks/chunk-4KM7OKNQ.js +7 -0
- package/dist/chunks/{chunk-QEMYZTK7.js → chunk-4XH7ID62.js} +1 -1
- package/dist/chunks/{chunk-SJU4QJVF.js → chunk-5K4JQIXT.js} +1 -1
- package/dist/chunks/{chunk-A5UV4EAX.js → chunk-5NI34DGB.js} +1 -1
- package/dist/chunks/{chunk-MVOMOVK3.js → chunk-5OQL545S.js} +1 -1
- package/dist/chunks/{chunk-D4URLIDE.js → chunk-63FDIHG6.js} +1 -1
- package/dist/chunks/{chunk-NNHPXHOT.js → chunk-AMPA7GJJ.js} +1 -1
- package/dist/chunks/{chunk-7DT2GH67.js → chunk-AWS3XIC5.js} +1 -1
- package/dist/chunks/{chunk-UKBMDOUD.js → chunk-BTFAU5KV.js} +1 -1
- package/dist/chunks/chunk-BVIHERDQ.js +10 -0
- package/dist/chunks/{chunk-ZRHHEWGW.js → chunk-BVUPKUQX.js} +1 -1
- package/dist/chunks/{chunk-V4AZABH6.js → chunk-C5X4AET5.js} +1 -1
- package/dist/chunks/{chunk-6CHTRMWQ.js → chunk-C65YPDYZ.js} +1 -1
- package/dist/chunks/{chunk-2CMY3JXZ.js → chunk-CINU5WXR.js} +1 -1
- package/dist/chunks/{chunk-IWFB7TGB.js → chunk-DNBYNPEQ.js} +1 -1
- package/dist/chunks/{chunk-PURYFV4L.js → chunk-EZH3HTOS.js} +1 -1
- package/dist/chunks/{chunk-B7SLQSME.js → chunk-F4H6YJ3W.js} +1 -1
- package/dist/chunks/{chunk-6FP3V45O.js → chunk-FJTPVWDH.js} +1 -1
- package/dist/chunks/{chunk-VTM6RPYS.js → chunk-GD2G4YPE.js} +1 -1
- package/dist/chunks/{chunk-76FG2WPQ.js → chunk-GEXD62LF.js} +2 -2
- package/dist/chunks/chunk-GK445CTM.js +7 -0
- package/dist/chunks/{chunk-E3E7SPFO.js → chunk-GRH3TN3C.js} +1 -1
- package/dist/chunks/{chunk-AAD3PR73.js → chunk-HVNHF4YT.js} +1 -1
- package/dist/chunks/{chunk-LRBJZNET.js → chunk-I3B46CJP.js} +1 -1
- package/dist/chunks/{chunk-QUAIU6FH.js → chunk-I4TWSNQG.js} +1 -1
- package/dist/chunks/{chunk-QTTJMXKJ.js → chunk-IGIZBS6R.js} +1 -1
- package/dist/chunks/{chunk-FT5IZURV.js → chunk-JNWDS5I5.js} +1 -1
- package/dist/chunks/{chunk-BJBJYWAJ.js → chunk-KCLAUWOE.js} +1 -1
- package/dist/chunks/{chunk-ZP36CA3U.js → chunk-KLS5OROC.js} +1 -1
- package/dist/chunks/chunk-KPDAYSQS.js +10 -0
- package/dist/chunks/{chunk-JR3732RL.js → chunk-LJQ6I5U7.js} +1 -1
- package/dist/chunks/chunk-LOA7SZWH.js +7 -0
- package/dist/chunks/{chunk-E7T3YJRB.js → chunk-LPZDMWAU.js} +1 -1
- package/dist/chunks/chunk-LRCAUAEX.js +7 -0
- package/dist/chunks/{chunk-WKFLDUTU.js → chunk-M54QGGZY.js} +1 -1
- package/dist/chunks/{chunk-MBEYI5HF.js → chunk-MDXQPPAD.js} +1 -1
- package/dist/chunks/{chunk-Y6PC5E6Y.js → chunk-NA2URAJP.js} +1 -1
- package/dist/chunks/{chunk-N56EMHCO.js → chunk-NA5CGEQQ.js} +1 -1
- package/dist/chunks/{chunk-P3JKE7TX.js → chunk-P2DZUXJE.js} +1 -1
- package/dist/chunks/{chunk-RJJYX4RA.js → chunk-PM2B26M3.js} +1 -1
- package/dist/chunks/{chunk-WE5MHW2O.js → chunk-PTSMCYMO.js} +1 -1
- package/dist/chunks/chunk-PV6L7L3M.js +10 -0
- package/dist/chunks/{chunk-TEHLABJO.js → chunk-QNOF7F4W.js} +1 -1
- package/dist/chunks/chunk-RWPWNYXQ.js +11 -0
- package/dist/chunks/{chunk-ZZTIGQXP.js → chunk-TR3VJOOL.js} +1 -1
- package/dist/chunks/{chunk-WFH24UO3.js → chunk-UDYXJAKZ.js} +1 -1
- package/dist/chunks/{chunk-SAPTIA7Q.js → chunk-UMGS2S22.js} +1 -1
- package/dist/chunks/{chunk-25W3CLDF.js → chunk-VMYOYDLM.js} +1 -1
- package/dist/chunks/{chunk-BSCJRQ3E.js → chunk-VYR72PE3.js} +1 -1
- package/dist/chunks/chunk-W45KFKUW.js +7 -0
- package/dist/chunks/{chunk-4L6SITE4.js → chunk-WTCPCQO3.js} +1 -1
- package/dist/chunks/{chunk-TF5BOGQN.js → chunk-XNJGNXLC.js} +1 -1
- package/dist/chunks/{chunk-WAWNYFSK.js → chunk-XRIGLBI2.js} +1 -1
- package/dist/chunks/chunk-XYUCYNGO.js +12 -0
- package/dist/chunks/chunk-YE245S4O.js +7 -0
- package/dist/chunks/{chunk-5OOWE5CD.js → chunk-YWUDUQVB.js} +1 -1
- package/dist/chunks/{chunk-DMPPORR6.js → chunk-YZFIUGQU.js} +2 -2
- package/dist/chunks/{chunk-HWUQVJIJ.js → chunk-ZBCSM7TZ.js} +1 -1
- package/dist/chunks/{chunk-HDUZSFTK.js → chunk-ZHAPKFVM.js} +8 -8
- package/dist/chunks/{chunk-22FAXGPD.js → chunk-ZMDXQDUX.js} +1 -1
- package/dist/chunks/chunk-ZZMEF6YW.js +9 -0
- package/dist/chunks/clear-RH4DFMFS.js +8 -0
- package/dist/chunks/compile-vercel-config-5I2XTLGA.js +7 -0
- package/dist/chunks/config-7NAK6ELR.js +8 -0
- package/dist/chunks/{config-XH62NJX7.js → config-S7D5SXXX.js} +1 -1
- package/dist/chunks/contract-EOQS4PUF.js +11 -0
- package/dist/chunks/delete-BW3US2B4.js +9 -0
- package/dist/chunks/delete-IXPXDUKM.js +10 -0
- package/dist/chunks/{describe-RNFQJQD5.js → describe-CLIYKTIO.js} +1 -1
- package/dist/chunks/detect-services-H2CSYD7K.js +7 -0
- package/dist/chunks/disable-4CQ364WX.js +7 -0
- package/dist/chunks/discard-GM6F2QEE.js +14 -0
- package/dist/chunks/edit-CFBF2DHX.js +8 -0
- package/dist/chunks/edit-JWZ7JHNG.js +9 -0
- package/dist/chunks/enable-POFTCHC3.js +7 -0
- package/dist/chunks/{export-TVJDXCZA.js → export-2RBXGWD2.js} +1 -1
- package/dist/chunks/future-KRTXP2NN.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-XWDWUVOJ.js +7 -0
- package/dist/chunks/{image-NFARXO3R.js → image-ZNOJ5BHX.js} +1 -1
- package/dist/chunks/import-builders-INOS2CRI.js +7 -0
- package/dist/chunks/{inspect-H6LSGCYS.js → inspect-3SYISED5.js} +1 -1
- package/dist/chunks/inspect-7Z6NAOEA.js +13 -0
- package/dist/chunks/{inspect-RMP4AAQR.js → inspect-BX6N5NGY.js} +1 -1
- package/dist/chunks/inspect-PMF2QQNR.js +9 -0
- package/dist/chunks/inspect-XWAWYTTM.js +8 -0
- package/dist/chunks/{inspect-4RQLEUGZ.js → inspect-Y6B3I7VS.js} +1 -1
- package/dist/chunks/{list-6SRUT2BU.js → list-6BM2FFXL.js} +1 -1
- package/dist/chunks/list-I33FSRK2.js +8 -0
- package/dist/chunks/list-UHGKMLS7.js +12 -0
- package/dist/chunks/{list-WEGUICE6.js → list-YB4SK7JQ.js} +1 -1
- package/dist/chunks/login-COGUODSF.js +9 -0
- package/dist/chunks/{purchase-domain-if-available-66DVKBZ5.js → login-V7NNX7G5.js} +1 -1
- package/dist/chunks/logs-6YKT7CLQ.js +7 -0
- package/dist/chunks/{ls-PTRVCVXJ.js → ls-GIPBHSUE.js} +1 -1
- package/dist/chunks/{ls-7JX4KZXU.js → ls-OPHCNF47.js} +1 -1
- package/dist/chunks/{ls-YC4IWYN7.js → ls-S2FS2RJL.js} +1 -1
- package/dist/chunks/ls-SSPPCRZA.js +11 -0
- package/dist/chunks/{ls-CKOBQXUR.js → ls-Y6RU35DL.js} +1 -1
- package/dist/chunks/{ls-7Z5WT5OK.js → ls-YL7CECSE.js} +1 -1
- package/dist/chunks/ls-YVI4FS34.js +8 -0
- package/dist/chunks/migrate-experimental-services-HHEYJ3EC.js +7 -0
- package/dist/chunks/mutate-ZAEQRAJ2.js +9 -0
- package/dist/chunks/{notifications-BTVI6EIG.js → notifications-QLQMKDQE.js} +1 -1
- package/dist/chunks/open-Y6RMPEQW.js +7 -0
- package/dist/chunks/{permissions-JGQHHLCP.js → permissions-MWO4CAST.js} +1 -1
- package/dist/chunks/{plugin-offer-OQF2T2HP.js → plugin-offer-F7345TVV.js} +1 -1
- package/dist/chunks/prompt-missing-credentials-HMZJOZXY.js +7 -0
- package/dist/chunks/publish-5NZFNIHX.js +15 -0
- package/dist/chunks/pull-WVZPWJ5E.js +7 -0
- package/dist/chunks/purchase-domain-if-available-7NYSS4PT.js +7 -0
- package/dist/chunks/push-5KDOQ2KV.js +7 -0
- package/dist/chunks/{query-XKNAII7Y.js → query-IMYCCJ7D.js} +1 -1
- package/dist/chunks/reauthenticate-KGWNCD4L.js +7 -0
- package/dist/chunks/remove-TULHNFGP.js +9 -0
- package/dist/chunks/reorder-BD4O4IHH.js +10 -0
- package/dist/chunks/reply-DGXOGKDS.js +9 -0
- package/dist/chunks/resolve-67YIJ2JQ.js +12 -0
- package/dist/chunks/resolve-agent-team-LEWHIJGT.js +7 -0
- package/dist/chunks/restore-Z7QQ7FTO.js +16 -0
- package/dist/chunks/rm-HTNTY7A7.js +8 -0
- package/dist/chunks/rm-MDLFUMTM.js +8 -0
- package/dist/chunks/rm-RYJR3Z6Z.js +8 -0
- package/dist/chunks/rm-WGTRKNYK.js +8 -0
- package/dist/chunks/rm-XADFVFRB.js +8 -0
- package/dist/chunks/rule-inspect-TINSZNWB.js +8 -0
- package/dist/chunks/{schema-DULOJDLJ.js → schema-32WJMSPO.js} +1 -1
- package/dist/chunks/schema-QWMFAIG7.js +14 -0
- package/dist/chunks/select-org-MK2XRB5D.js +7 -0
- package/dist/chunks/set-B5MARIVL.js +7 -0
- package/dist/chunks/set-MMPBGIWR.js +8 -0
- package/dist/chunks/setup-and-link-DRFJTYTX.js +7 -0
- package/dist/chunks/{tags-FHC6EMQ2.js → tags-CRCAU65V.js} +1 -1
- package/dist/chunks/{update-S6EDQLRE.js → update-VVHV2M46.js} +1 -1
- package/dist/chunks/usage-OXA6T6IL.js +13 -0
- package/dist/chunks/{validate-config-YBBR32MV.js → validate-config-QBDSJCTR.js} +1 -1
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/deploy/index.js +4 -4
- package/dist/commands/dev/index.js +2 -2
- package/dist/commands/env/index.js +1 -1
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +1 -1
- package/dist/commands/tunnel/index.js +1 -1
- package/dist/commands-account.js +37 -39
- package/dist/commands-ai.js +3 -3
- package/dist/commands-blob.js +2 -2
- package/dist/commands-core.js +58 -44
- package/dist/commands-deployments.js +1 -1
- package/dist/commands-flags.js +1 -1
- package/dist/commands-integrations.js +30 -17
- package/dist/commands-observability.js +8 -7
- package/dist/commands-routing.js +44 -27
- package/dist/help.js +1 -1
- package/dist/index.js +4 -4
- package/dist/internal-build.js +1 -1
- package/dist/package.json +11 -11
- package/dist/root-help-commands.mjs +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +16 -16
- package/dist/chunks/add-BYNKYST2.js +0 -8
- package/dist/chunks/add-HXK3HUQG.js +0 -8
- package/dist/chunks/add-WTK2AFMX.js +0 -8
- package/dist/chunks/alerts-XAOLRZK3.js +0 -8
- package/dist/chunks/build-BXCATM4H.js +0 -7
- package/dist/chunks/chunk-5YLKPSZI.js +0 -7
- package/dist/chunks/chunk-623OWG6A.js +0 -7
- package/dist/chunks/chunk-EWHM5VFZ.js +0 -10
- package/dist/chunks/chunk-JLURS22G.js +0 -7
- package/dist/chunks/chunk-K5Z2NE3P.js +0 -7
- package/dist/chunks/chunk-KHXWKYEZ.js +0 -10
- package/dist/chunks/chunk-LGN3TASP.js +0 -7
- package/dist/chunks/chunk-MGFM2KHC.js +0 -11
- package/dist/chunks/chunk-PLGG2AWX.js +0 -10
- package/dist/chunks/chunk-TPKFVYL5.js +0 -12
- package/dist/chunks/clear-IVHCV4EA.js +0 -8
- package/dist/chunks/compile-vercel-config-PYYVTC3B.js +0 -7
- package/dist/chunks/config-JUMF25FF.js +0 -8
- package/dist/chunks/contract-BLBTK32L.js +0 -10
- package/dist/chunks/delete-6FYWPVDH.js +0 -9
- package/dist/chunks/delete-PVH4423M.js +0 -10
- package/dist/chunks/detect-services-25NRRPII.js +0 -7
- package/dist/chunks/disable-HOKABZ7L.js +0 -7
- package/dist/chunks/discard-TLBZGTGN.js +0 -14
- package/dist/chunks/edit-HSJ4FSZQ.js +0 -8
- package/dist/chunks/edit-NNIE7NNF.js +0 -9
- package/dist/chunks/enable-TY6QUZWZ.js +0 -7
- package/dist/chunks/future-OELW62EE.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-HBBZE5NA.js +0 -7
- package/dist/chunks/import-builders-ZEJEFXAX.js +0 -7
- package/dist/chunks/inspect-HXE2UT6Z.js +0 -8
- package/dist/chunks/inspect-OCHE3DVA.js +0 -13
- package/dist/chunks/inspect-UTYZYPSK.js +0 -9
- package/dist/chunks/list-YYHMAGMG.js +0 -8
- package/dist/chunks/list-ZXY2AMNN.js +0 -12
- package/dist/chunks/login-DBKNZ6RP.js +0 -7
- package/dist/chunks/login-XNS4A4L7.js +0 -9
- package/dist/chunks/logs-F7AR7Y5S.js +0 -7
- package/dist/chunks/ls-GGIZNTY4.js +0 -11
- package/dist/chunks/ls-ISBLA37G.js +0 -8
- package/dist/chunks/migrate-experimental-services-XHPJAZFK.js +0 -7
- package/dist/chunks/mutate-AQGXSJED.js +0 -9
- package/dist/chunks/open-TZLOIAGJ.js +0 -7
- package/dist/chunks/prompt-missing-credentials-ATEAZE3Q.js +0 -7
- package/dist/chunks/publish-E2QCYVQM.js +0 -15
- package/dist/chunks/pull-YEEZTBZB.js +0 -7
- package/dist/chunks/push-WT2R2MH2.js +0 -7
- package/dist/chunks/reauthenticate-JONKFLTL.js +0 -7
- package/dist/chunks/remove-PLSYF2ZB.js +0 -9
- package/dist/chunks/reorder-4UCOO5AJ.js +0 -10
- package/dist/chunks/reply-B2OCHHMQ.js +0 -9
- package/dist/chunks/resolve-PU5UR7JC.js +0 -12
- package/dist/chunks/resolve-agent-team-FFV2K42Z.js +0 -7
- package/dist/chunks/restore-7AWVT7RT.js +0 -16
- package/dist/chunks/rm-523X3JI3.js +0 -8
- package/dist/chunks/rm-DTGRJLGC.js +0 -8
- package/dist/chunks/rm-GHF2AEO6.js +0 -8
- package/dist/chunks/rm-GVFFKCYP.js +0 -8
- package/dist/chunks/rm-QXPFFK7Z.js +0 -8
- package/dist/chunks/rule-inspect-N3B2737B.js +0 -8
- package/dist/chunks/schema-KZ3NXHDV.js +0 -14
- package/dist/chunks/select-org-RK3NJUXQ.js +0 -7
- package/dist/chunks/set-CYNAACFX.js +0 -7
- package/dist/chunks/set-UDHZOYCP.js +0 -8
- package/dist/chunks/setup-and-link-BUARMJER.js +0 -7
- package/dist/chunks/usage-OZY35PJU.js +0 -13
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import{packageName}from"./chunk-B4KA3ZH2.js";import{formatOption,jsonOption,limitOption,nextCursorOption,projectOption,sinceOption,untilOption,yesOption}from"./chunk-EZVNGJN5.js";var SCOPE_RULES={team:{perEntity:!1,canPause:!0},organization:{perEntity:!1,canPause:!1},project:{perEntity:!0,canPause:!0},product:{perEntity:!0,canPause:!1}},BUDGET_SCOPES=Object.keys(SCOPE_RULES),OPTION_SCOPES=BUDGET_SCOPES.filter(scope=>scope!=="team");function isBudgetScope(value){return typeof value=="string"&&Object.hasOwn(SCOPE_RULES,value)}function isPerEntityScope(scope){return isBudgetScope(scope)?SCOPE_RULES[scope].perEntity:!0}function scopeCanPause(scope){return SCOPE_RULES[scope].canPause}var organizationOption={name:"organization",shorthand:null,type:String,argument:"ORGANIZATION",deprecated:!1,description:"The organization budget, by organization slug or ID, from any team. Needs the organization admin or viewer role"},budgetProjectOption={...projectOption,description:"A project's budget, by project name or ID"},productOption={name:"product",shorthand:null,type:String,argument:"PRODUCT",deprecated:!1,description:"A product's budget, by product ID or name (case-insensitive), from the products that can have a budget"},scopeOptions=[organizationOption,budgetProjectOption,productOption],scopeFilterOptions=[{name:"type",shorthand:null,type:[String],argument:"TYPE",deprecated:!1,description:`Only budgets of these types: ${BUDGET_SCOPES.join(", ")}. Repeat or separate with commas for several`},{...organizationOption,description:"Only the organization budget, by organization slug or ID"},{...budgetProjectOption,description:"Only a project's budget, by name or ID"},{...productOption,description:"Only a product's budget, by product ID or name"}],inspectSubcommand={name:"inspect",aliases:["overview"],description:"Show a Spend Management budget and this cycle's spend against it: the team budget, or the one --organization, --project, or --product selects",arguments:[],options:[...scopeOptions,formatOption,jsonOption],examples:[{name:"Show this cycle's on-demand spend against the team budget",value:`${packageName} billing budgets inspect`},{name:"Show a project budget",value:`${packageName} billing budgets inspect --project my-app`}]},listSubcommand={name:"list",aliases:["ls"],description:"List Spend Management budgets on this team, from every scope unless --organization, --project, or --product narrows them",default:!0,arguments:[],options:[...scopeFilterOptions,formatOption,jsonOption],examples:[{name:"List Spend Management budgets",value:`${packageName} billing budgets`},{name:"List one project's budget",value:`${packageName} billing budgets list --project my-app`}]},setSubcommand={name:"set",aliases:["update"],description:"Create or update a Spend Management budget: the team budget, or the one --organization, --project, or --product selects",arguments:[],options:[...scopeOptions,{name:"amount",shorthand:null,type:Number,argument:"USD",deprecated:!1,description:"Budget amount in whole dollars (minimum 1). Creates with 50/75/100% alerts and notifications on; updates keep pause and webhook settings unless those options are also passed"},{name:"pause",shorthand:null,type:Boolean,deprecated:!1,description:"Pause at 100% of the budget amount: all projects for a team budget, or the project for a project budget. Organization and product budgets only notify"},{name:"no-pause",shorthand:null,type:Boolean,deprecated:!1,description:"Do not pause when the budget is reached"},{name:"webhook",shorthand:null,type:String,argument:"URL",deprecated:!1,description:"Webhook URL to notify when a threshold is reached"},{name:"no-webhook",shorthand:null,type:Boolean,deprecated:!1,description:"Remove the budget webhook"},formatOption,jsonOption],examples:[{name:"Create a $500 budget with default 50/75/100% alerts",value:`${packageName} billing budgets set --amount 500`},{name:"Change the budget amount",value:`${packageName} billing budgets set --amount 800`},{name:"Pause all projects and production deployments at 100% of the existing budget",value:`${packageName} billing budgets set --pause`},{name:"Notify a webhook without changing the amount",value:`${packageName} billing budgets set --webhook https://example.com/hook`},{name:"Remove the webhook",value:`${packageName} billing budgets set --no-webhook`},{name:"Create a $200 budget that pauses one project at 100%",value:`${packageName} billing budgets set --project my-app --amount 200 --pause`},{name:"Create a $10,000 organization budget",value:`${packageName} billing budgets set --organization acme --amount 10000`},{name:"Create a $100 budget on one product",value:`${packageName} billing budgets set --product "Function Duration" --amount 100`}]},removeSubcommand={name:"remove",aliases:["rm","delete","disable"],description:"Remove a Spend Management budget: the team budget, or the one --organization, --project, or --product selects",arguments:[],options:[...scopeOptions,yesOption,formatOption,jsonOption],examples:[{name:"Remove the team budget without confirmation",value:`${packageName} billing budgets remove --yes`},{name:"Remove a project budget",value:`${packageName} billing budgets remove --project my-app`}]},alertsDescription="List Spend Management alerts: each budget threshold reached, newest first, from every scope unless --organization, --project, or --product narrows them. For observability alerts, see `vercel alerts`.",alertsOptions=[{...sinceOption,description:"Show alerts triggered after this time (ISO 8601 or relative: 1d, 7d, 30d)"},{...untilOption,description:"Show alerts triggered before this time (ISO 8601 or relative)"},...scopeFilterOptions,limitOption,nextCursorOption,formatOption,jsonOption],alertsListSubcommand={name:"list",aliases:["ls"],description:alertsDescription,default:!0,hidden:!0,arguments:[],options:alertsOptions,examples:[]},alertsSubcommand={name:"alerts",aliases:[],description:alertsDescription,arguments:[],subcommands:[alertsListSubcommand],options:alertsOptions,examples:[{name:"List recent Spend Management alerts for this team",value:`${packageName} billing budgets alerts`},{name:"List one project budget's alerts",value:`${packageName} billing budgets alerts --project my-app`},{name:"List alerts from the last 30 days",value:`${packageName} billing budgets alerts --since 30d`},{name:"Output alerts as JSON",value:`${packageName} billing budgets alerts --json`}]},budgetCommand={name:"budgets",aliases:["budget"],summary:"Manage spending beyond included credit",description:"Show and manage Spend Management for on-demand charges after included credit",arguments:[],subcommands:[inspectSubcommand,listSubcommand,setSubcommand,removeSubcommand,alertsSubcommand],options:[],examples:[{name:"List Spend Management budgets",value:`${packageName} billing budgets`},{name:"Show this cycle's on-demand spend against Spend Management",value:`${packageName} billing budgets inspect`},{name:"Set a $500 budget that pauses all projects and production deployments at 100%",value:`${packageName} billing budgets set --amount 500 --pause`},{name:"Set a $200 budget on one project",value:`${packageName} billing budgets set --project my-app --amount 200`},{name:"Pause all projects and production deployments at 100% of the existing budget",value:`${packageName} billing budgets set --pause`},{name:"Remove the Spend Management budget",value:`${packageName} billing budgets remove --yes`},{name:"List recent Spend Management alerts",value:`${packageName} billing budgets alerts`}]},DEPRECATED_BUDGET_ACTIONS={overview:"inspect",update:"set",delete:"remove",disable:"remove"};export{BUDGET_SCOPES,OPTION_SCOPES,isBudgetScope,isPerEntityScope,scopeCanPause,inspectSubcommand,listSubcommand,setSubcommand,removeSubcommand,alertsListSubcommand,alertsSubcommand,budgetCommand,DEPRECATED_BUDGET_ACTIONS};
|
|
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{VERCEL_CONFIG_EXTENSIONS,VERCEL_DIR}from"./chunk-
|
|
7
|
+
import{VERCEL_CONFIG_EXTENSIONS,VERCEL_DIR}from"./chunk-ZHAPKFVM.js";import{ConflictingConfigFiles,DeprecatedNowJson}from"./chunk-GOI2VVI7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{__commonJS,__require,__toESM}from"./chunk-BZENIQ7N.js";var require_main=__commonJS({"../../node_modules/.pnpm/dotenv@4.0.0/node_modules/dotenv/lib/main.js"(exports,module){"use strict";var fs=__require("fs");function parse(src){var obj={};return src.toString().split(`
|
|
8
8
|
`).forEach(function(line){var keyValueArr=line.match(/^\s*([\w\.\-]+)\s*=\s*(.*)?\s*$/);if(keyValueArr!=null){var key=keyValueArr[1],value=keyValueArr[2]?keyValueArr[2]:"",len=value?value.length:0;len>0&&value.charAt(0)==='"'&&value.charAt(len-1)==='"'&&(value=value.replace(/\\n/gm,`
|
|
9
9
|
`)),value=value.replace(/(^['"]|['"]$)/g,"").trim(),obj[key]=value}}),obj}function config(options){var path=".env",encoding="utf8";options&&(options.path&&(path=options.path),options.encoding&&(encoding=options.encoding));try{var parsedObj=parse(fs.readFileSync(path,{encoding}));return Object.keys(parsedObj).forEach(function(key){process.env[key]=process.env[key]||parsedObj[key]}),{parsed:parsedObj}}catch(e){return{error:e}}}module.exports.config=config;module.exports.load=config;module.exports.parse=parse}});var import_dotenv=__toESM(require_main(),1);import{mkdir,readFile,writeFile,unlink,access}from"fs/promises";import{join,basename}from"path";import{fork}from"child_process";async function loadEsbuild(){let nativeLoader=Reflect.get(globalThis,Symbol.for("vercel.cli.loadEsbuild"));return typeof nativeLoader=="function"?nativeLoader():import("esbuild")}var import_build_utils=__toESM(require_build_utils(),1);function toRouteFormat(item){if("src"in item)return item;let{source,destination,headers,statusCode,permanent,...rest}=item,route={src:source,...rest};return destination&&(route.dest=destination),headers&&(route.headers=Object.fromEntries(headers.map(h=>[h.key,h.value]))),statusCode!==void 0?route.status=statusCode:permanent!==void 0&&(route.status=permanent?308:307),route}function normalizeConfig(config){let normalized={...config},{rewrites,redirects,headers}=normalized,allRoutes=normalized.routes||[],hasRoutes=allRoutes.length>0,hasRewrites=(rewrites?.length??0)>0,hasRedirects=(redirects?.length??0)>0,hasHeaders=(headers?.length??0)>0;function hasRouteFormat(items){return items?.some(item=>"src"in item)??!1}if(hasRoutes&&(hasRewrites||hasRedirects||hasHeaders))return normalized;let shouldConvertRewrites=hasRewrites&&hasRouteFormat(rewrites),shouldConvertRedirects=hasRedirects&&hasRouteFormat(redirects),shouldConvertHeaders=hasHeaders&&hasRouteFormat(headers);if((shouldConvertRewrites||shouldConvertRedirects||shouldConvertHeaders)&&(hasRewrites&&!shouldConvertRewrites||hasRedirects&&!shouldConvertRedirects||hasHeaders&&!shouldConvertHeaders))throw new import_build_utils.NowBuildError({code:"INVALID_VERCEL_CONFIG",message:"Transforms (e.g., requestHeaders) require the `routes` format, which cannot be used alongside `rewrites`, `redirects`, or `headers`. Move everything into the `routes` array instead.",link:"https://vercel.com/docs/projects/project-configuration#routes"});return rewrites&&shouldConvertRewrites&&(allRoutes=[...allRoutes,...rewrites.map(toRouteFormat)],delete normalized.rewrites),redirects&&shouldConvertRedirects&&(allRoutes=[...allRoutes,...redirects.map(toRouteFormat)],delete normalized.redirects),headers&&shouldConvertHeaders&&(allRoutes=[...allRoutes,...headers.map(toRouteFormat)],delete normalized.headers),allRoutes.length>0&&(normalized.routes=allRoutes.map(toRouteFormat)),normalized}async function fileExists(filePath){try{return await access(filePath),!0}catch{return!1}}async function findAllVercelConfigFiles(workPath){let foundFiles=[];for(let ext of VERCEL_CONFIG_EXTENSIONS){let configPath=join(workPath,`vercel.${ext}`);await fileExists(configPath)&&foundFiles.push(configPath)}return foundFiles}async function findSourceVercelConfigFile(workPath){for(let ext of VERCEL_CONFIG_EXTENSIONS){let configPath=join(workPath,`vercel.${ext}`);if(await fileExists(configPath))return basename(configPath)}let tomlPath=join(workPath,"vercel.toml");return await fileExists(tomlPath)?"vercel.toml":null}async function findVercelConfigFile(workPath){let foundFiles=await findAllVercelConfigFiles(workPath);if(foundFiles.length>1)throw new ConflictingConfigFiles(foundFiles,"Multiple vercel config files found. Please use only one configuration file.","https://vercel.com/docs/projects/project-configuration");return foundFiles[0]||null}function parseConfigLoaderError(stderr){if(!stderr.trim())return"";let moduleNotFoundMatch=stderr.match(/Error \[ERR_MODULE_NOT_FOUND\]: Cannot find package '([^']+)'/);if(moduleNotFoundMatch)return`Cannot find package '${moduleNotFoundMatch[1]}'. Make sure it's installed in your project dependencies.`;let syntaxErrorMatch=stderr.match(/SyntaxError: (.+?)(?:\n|$)/);if(syntaxErrorMatch)return`Syntax error: ${syntaxErrorMatch[1]}`;let errorMatch=stderr.match(/^(?:Error|TypeError|ReferenceError): (.+?)(?:\n|$)/m);return errorMatch?errorMatch[1]:stderr.trim()}async function compileVercelConfig(workPath){let vercelJsonPath=join(workPath,"vercel.json"),nowJsonPath=join(workPath,"now.json"),vercelTomlPath=join(workPath,"vercel.toml"),hasVercelJson=await fileExists(vercelJsonPath),hasNowJson=await fileExists(nowJsonPath),hasVercelToml=await fileExists(vercelTomlPath),vercelConfigPath=await findVercelConfigFile(workPath),vercelDir=join(workPath,VERCEL_DIR),compiledConfigPath=join(vercelDir,"vercel.json");if(hasNowJson)throw new DeprecatedNowJson(nowJsonPath);let foundConfigs=[];if(hasVercelJson&&foundConfigs.push(vercelJsonPath),hasVercelToml&&foundConfigs.push(vercelTomlPath),vercelConfigPath&&foundConfigs.push(vercelConfigPath),foundConfigs.length>1)throw new ConflictingConfigFiles(foundConfigs,`Multiple config files found: ${foundConfigs.map(f=>basename(f)).join(", ")}. Please use only one configuration method.`,"https://vercel.com/docs/projects/project-configuration");if(!vercelConfigPath&&!hasVercelToml)return hasVercelJson?{configPath:vercelJsonPath,wasCompiled:!1}:await fileExists(compiledConfigPath)?{configPath:compiledConfigPath,wasCompiled:!0,sourceFile:await findSourceVercelConfigFile(workPath)??void 0}:{configPath:null,wasCompiled:!1};if(hasVercelToml)try{let{parse:tomlParse}=await import("./dist-RXYNZPEA.js"),tomlContent=await readFile(vercelTomlPath,"utf8"),config=tomlParse(tomlContent),normalizedConfig=normalizeConfig(config);return await mkdir(vercelDir,{recursive:!0}),await writeFile(compiledConfigPath,JSON.stringify(normalizedConfig,null,2),"utf-8"),output_manager_default.debug(`Compiled ${vercelTomlPath} -> ${compiledConfigPath}`),{configPath:compiledConfigPath,wasCompiled:!0,sourceFile:"vercel.toml"}}catch(error){throw new import_build_utils.NowBuildError({code:error.code??"vercel_toml_parse_failed",message:`Failed to parse vercel.toml: ${error.message}`,link:error.link??"https://vercel.com/docs/projects/project-configuration"})}let sourceConfigPath=vercelConfigPath;(0,import_dotenv.config)({path:join(workPath,".env")}),(0,import_dotenv.config)({path:join(workPath,".env.local")});let tempOutPath=join(vercelDir,"vercel-temp.mjs"),loaderPath=join(vercelDir,"vercel-loader.mjs");try{let{build}=await loadEsbuild();await mkdir(vercelDir,{recursive:!0}),await build({entryPoints:[sourceConfigPath],bundle:!0,platform:"node",format:"esm",outfile:tempOutPath,packages:"external",target:"node20",sourcemap:"inline"}),await writeFile(loaderPath,`
|
|
10
10
|
import { pathToFileURL } from 'url';
|
|
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{printProjectNotFoundError}from"./chunk-
|
|
7
|
+
import{printProjectNotFoundError}from"./chunk-VYR72PE3.js";import{param}from"./chunk-3G3FQYMW.js";import{detectExplicitScope}from"./chunk-3BMYPWEY.js";import{AGENT_REASON,AGENT_STATUS,buildCommandWithYes,outputActionRequired,outputAgentError}from"./chunk-IRNQJ6ZX.js";import{getLinkedProject,resolveProjectCwd}from"./chunk-ZHAPKFVM.js";import{getCommandName,getCommandNamePlain}from"./chunk-B4KA3ZH2.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import{require_build_utils}from"./chunk-5MDNVAE6.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_build_utils=__toESM(require_build_utils(),1);async function ensureLink(commandName,client,cwd,opts={}){cwd=await resolveProjectCwd(cwd);let link=opts.link,nonInteractive=opts.nonInteractive??client.nonInteractive??!1;if(opts.nonInteractive=nonInteractive,link||(opts.forceDelete?link={status:"not_linked",org:null,project:null}:link=await getLinkedProject(client,{cwd,projectName:opts.projectName,projectNameIsExplicit:!!(opts.projectName&&opts.failIfNotFound),scopeIsExplicit:detectExplicitScope(client),allowOwnerLookupFallback:opts.allowOwnerLookupFallback,skipOwnerLookup:opts.skipOwnerLookup,skipRemoteLookup:opts.skipRemoteLookup}),opts.link=link),link.status==="linked"&&opts.forceDelete||link.status==="not_linked"){if(link.status==="not_linked"&&opts.failIfNotFound&&opts.projectName){let pinnedProjectId=(0,import_build_utils.getPlatformEnv)("PROJECT_ID"),creatable=!opts.projectName.startsWith("prj_")&&!pinnedProjectId;if(!opts.createIfNotFound||opts.projectName.startsWith("prj_")||pinnedProjectId===opts.projectName)return await printProjectNotFoundError(client,opts.projectName,commandName,link.orgId,{createCommand:creatable?opts.createCommand:void 0}),1;if(pinnedProjectId){let message=`Can't use --project with VERCEL_PROJECT_ID. --project is "${opts.projectName}" and VERCEL_PROJECT_ID is "${pinnedProjectId}". Remove one of them.`,helpCommand=getCommandNamePlain(`${commandName} --help`);return output_manager_default.error(`${message}
|
|
8
8
|
|
|
9
9
|
See all options:
|
|
10
|
-
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}}if(link.status==="not_linked"&&opts.requireExistingLink)return output_manager_default.error(opts.notLinkedMessage??`Project is not linked. Run ${getCommandName("link")} first.`),1;let{default:setupAndLink}=await import("./setup-and-link-
|
|
10
|
+
${helpCommand}`),outputAgentError(client,{status:AGENT_STATUS.ERROR,reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:helpCommand,when:"see all options"}]}),2}}if(link.status==="not_linked"&&opts.requireExistingLink)return output_manager_default.error(opts.notLinkedMessage??`Project is not linked. Run ${getCommandName("link")} first.`),1;let{default:setupAndLink}=await import("./setup-and-link-DRFJTYTX.js");if(link=await setupAndLink(client,cwd,opts),link.status==="not_linked")return 0}return link.status==="error"?(link.reason==="HEADLESS"&&(nonInteractive?outputActionRequired(client,{status:"action_required",reason:"confirmation_required",message:`Command ${getCommandNamePlain(commandName)} requires confirmation. Use option --yes to confirm.`,next:[{command:buildCommandWithYes(client.argv),when:"Confirm and run"}]},link.exitCode):output_manager_default.error(`Command ${getCommandName(commandName)} requires confirmation. Use option ${param("--yes")} to confirm.`)),nonInteractive&&!client.jsonMode&&process.exit(link.exitCode),link.exitCode):link}export{ensureLink};
|
|
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{getScope}from"./chunk-
|
|
7
|
+
import{getScope}from"./chunk-3BMYPWEY.js";import{DeploymentNotFound,DeploymentPermissionDenied,InvalidDeploymentId,isAPIError}from"./chunk-GOI2VVI7.js";async function getAliases(client,deploymentId,next,limit=20){let aliasUrl=`/v3/now/aliases?limit=${limit}`;next&&(aliasUrl+=`&until=${next}`);let to=deploymentId?`/now/deployments/${deploymentId}/aliases`:aliasUrl;try{return await client.fetch(to)}catch(err){if(isAPIError(err)){let contextName=await getScope(client).then(scope=>scope.contextName);if(err.status===404)throw new DeploymentNotFound({id:deploymentId,context:contextName});if(err.status===403&&deploymentId)throw new DeploymentPermissionDenied(deploymentId,contextName);if(err.status===400&&err.message.includes("`id`")&&deploymentId)throw new InvalidDeploymentId(deploymentId)}throw err}}export{getAliases};
|