@vercel/cli-support 65.17.0 → 65.18.0-snapshot-813a4d4489f4
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-6M3AALI3.js → add-RLEYWNPY.js} +1 -1
- package/dist/chunks/{add-C6VTEFXX.js → add-SGU4XBVU.js} +1 -1
- package/dist/chunks/{add-NU6HG5B7.js → add-XIET5BV2.js} +1 -1
- package/dist/chunks/{alerts-JNBP5ZOD.js → alerts-5Q7SMJVR.js} +1 -1
- package/dist/chunks/{build-6ZQB7L52.js → build-MLI2E6WI.js} +1 -1
- package/dist/chunks/{chunk-2PQM7TCT.js → chunk-23PA4KG4.js} +1 -1
- package/dist/chunks/{chunk-5XWTMJ5A.js → chunk-26H36Z43.js} +1 -1
- package/dist/chunks/{chunk-JYEKC35M.js → chunk-2TC5V2M2.js} +1 -1
- package/dist/chunks/{chunk-W5MWGVQT.js → chunk-34WAVWWU.js} +1 -1
- package/dist/chunks/chunk-3FVMCV7T.js +7 -0
- package/dist/chunks/{chunk-OS3Y2WGS.js → chunk-3JTC2CUD.js} +1 -1
- package/dist/chunks/{chunk-OXD4SLRA.js → chunk-4PU7F6AC.js} +1 -1
- package/dist/chunks/chunk-5A2O3SZX.js +12 -0
- package/dist/chunks/{chunk-ZBBATLPQ.js → chunk-5N43J7UG.js} +1 -1
- package/dist/chunks/{chunk-IUO6VPHD.js → chunk-5SXUZ3DD.js} +1 -1
- package/dist/chunks/{chunk-UGHD3ALY.js → chunk-66VYZZTY.js} +1 -1
- package/dist/chunks/{chunk-I2RMTV2E.js → chunk-6AOVTS5I.js} +1 -1
- package/dist/chunks/{chunk-UDQBYPFA.js → chunk-6CANAW3B.js} +1 -1
- package/dist/chunks/{chunk-4E2SYQVZ.js → chunk-6MZPCIOK.js} +1 -1
- package/dist/chunks/{chunk-54XPSLKL.js → chunk-73BOOIOB.js} +5 -5
- package/dist/chunks/{chunk-XDPSUC2N.js → chunk-7ECYJHY4.js} +1 -1
- package/dist/chunks/{chunk-GSEOOO5M.js → chunk-7THDUCSM.js} +1 -1
- package/dist/chunks/{chunk-5ZOZ6UI3.js → chunk-A57EHZTZ.js} +1 -1
- package/dist/chunks/{chunk-7BZRYBNY.js → chunk-AOVK6K6M.js} +1 -1
- package/dist/chunks/{chunk-CDDG77YO.js → chunk-APSIPJAY.js} +1 -1
- package/dist/chunks/{chunk-YERISP3L.js → chunk-BLDS7J3R.js} +1 -1
- package/dist/chunks/{chunk-2RPWRZMR.js → chunk-BP7EZEBH.js} +1 -1
- package/dist/chunks/{chunk-L7OQ5CUT.js → chunk-CG6NFETD.js} +1 -1
- package/dist/chunks/{chunk-6VSZ6NDD.js → chunk-CN7DUUHB.js} +1 -1
- package/dist/chunks/{chunk-V6O3MHVH.js → chunk-CQYU6ZO4.js} +1 -1
- package/dist/chunks/chunk-CY5KJ42N.js +13 -0
- package/dist/chunks/chunk-D5BTA6TV.js +7 -0
- package/dist/chunks/{chunk-4BCU4KFD.js → chunk-EA55QLHA.js} +1 -1
- package/dist/chunks/{chunk-ISFOL3XU.js → chunk-EI67RICC.js} +1 -1
- package/dist/chunks/chunk-FCTTEFC5.js +7 -0
- package/dist/chunks/{chunk-TJYRGELW.js → chunk-FRKDI2ZH.js} +1 -1
- package/dist/chunks/{chunk-CDGGZKIG.js → chunk-FSZJSIOF.js} +1 -1
- package/dist/chunks/{chunk-FUASV2IR.js → chunk-FXT2VBFG.js} +1 -1
- package/dist/chunks/{chunk-Y2CSNIOJ.js → chunk-FZBYQQQQ.js} +1 -1
- package/dist/chunks/{chunk-OCLUZVEL.js → chunk-GQEGNPWV.js} +1 -1
- package/dist/chunks/{chunk-TJ5F4BSH.js → chunk-HFVL4MR7.js} +1 -1
- package/dist/chunks/{chunk-VHVBGL5G.js → chunk-HQWR3EDU.js} +1 -1
- package/dist/chunks/{chunk-AKFCJNJF.js → chunk-HRUTRN4N.js} +1 -1
- package/dist/chunks/{chunk-4IRZBCXZ.js → chunk-HUEJNVBX.js} +1 -1
- package/dist/chunks/{chunk-M2HZOFN5.js → chunk-IBVIZ3OE.js} +1 -1
- package/dist/chunks/{chunk-DMU3EFXU.js → chunk-IGOZSD7O.js} +1 -1
- package/dist/chunks/{chunk-YKZ4N2KF.js → chunk-IL27CVNF.js} +1 -1
- package/dist/chunks/{chunk-ITMLCNB4.js → chunk-IRZ4JPAF.js} +1 -1
- package/dist/chunks/{chunk-2UV736RO.js → chunk-IUIN543V.js} +1 -1
- package/dist/chunks/{chunk-JCMUCY6R.js → chunk-IY2IG7TK.js} +1 -1
- package/dist/chunks/{chunk-FENHM66N.js → chunk-JRJ37SOJ.js} +1 -1
- package/dist/chunks/{chunk-3PNXCIIV.js → chunk-K4N7XZD6.js} +1 -1
- package/dist/chunks/{chunk-65YRE7OX.js → chunk-KTWGUBNP.js} +1 -1
- package/dist/chunks/{chunk-WZCLCG4J.js → chunk-KXK4TF6L.js} +1 -1
- package/dist/chunks/{chunk-W44QMOQF.js → chunk-LUS5HZSC.js} +1 -1
- package/dist/chunks/{chunk-ODHZ2KFO.js → chunk-MVK2PKRI.js} +1 -1
- package/dist/chunks/{chunk-6MQAEEY6.js → chunk-NNP7REQN.js} +1 -1
- package/dist/chunks/{chunk-ISPY2QPO.js → chunk-NX6TFI7A.js} +1 -1
- package/dist/chunks/{chunk-JENTVCIM.js → chunk-NZSXBNZT.js} +1 -1
- package/dist/chunks/{chunk-R4QGGO5B.js → chunk-OYH67DET.js} +1 -1
- package/dist/chunks/{chunk-4EYMHKPB.js → chunk-OYQOYJSJ.js} +1 -1
- package/dist/chunks/chunk-PNWRO3XW.js +11 -0
- package/dist/chunks/{chunk-LJHCDSQE.js → chunk-PO4M4TVV.js} +1 -1
- package/dist/chunks/{chunk-YSUBZ4H6.js → chunk-PTNQ2YZ3.js} +1 -1
- package/dist/chunks/{chunk-L3FMGAEY.js → chunk-Q2R3VQER.js} +1 -1
- package/dist/chunks/{chunk-J4S66QK6.js → chunk-Q3QNKEL7.js} +1 -1
- package/dist/chunks/{chunk-ZC4E5ZZT.js → chunk-Q5DOQ7AQ.js} +1 -1
- package/dist/chunks/{chunk-GLGJWYR5.js → chunk-QBN2HEUY.js} +1 -1
- package/dist/chunks/{chunk-2A6NUKKE.js → chunk-QGS3SBR6.js} +1 -1
- package/dist/chunks/{chunk-K3FIH7VS.js → chunk-QJ2ECZYD.js} +2 -2
- package/dist/chunks/{chunk-ACUK5DV4.js → chunk-RHPLVI37.js} +1 -1
- package/dist/chunks/{chunk-4UZDMIRB.js → chunk-RY5PXA7G.js} +1 -1
- package/dist/chunks/{chunk-RXEXEY5E.js → chunk-SEIOVQCO.js} +1 -1
- package/dist/chunks/{chunk-B3AVML3E.js → chunk-SW26TCUB.js} +1 -1
- package/dist/chunks/{chunk-2XLCSCWH.js → chunk-TEF7PTCH.js} +1 -1
- package/dist/chunks/{chunk-QIWCDJY6.js → chunk-TJTUE6P6.js} +1 -1
- package/dist/chunks/{chunk-SYI4LBMR.js → chunk-UEJ332R4.js} +1 -1
- package/dist/chunks/{chunk-K36E52T6.js → chunk-VXTAXRJU.js} +1 -1
- package/dist/chunks/{chunk-H5G36TLP.js → chunk-W4LFHCO7.js} +1 -1
- package/dist/chunks/{chunk-AMHVWM5D.js → chunk-WOD4NOA2.js} +1 -1
- package/dist/chunks/{chunk-KFFXZGVC.js → chunk-YDLFTMLP.js} +1 -1
- package/dist/chunks/{chunk-PPAXB7AB.js → chunk-ZFDLESCX.js} +1 -1
- package/dist/chunks/{chunk-IYBBF4IU.js → chunk-ZKQ2Q7UD.js} +2 -2
- package/dist/chunks/{chunk-52AG3KYV.js → chunk-ZVOWFG4V.js} +1 -1
- package/dist/chunks/{clear-3DUM5NVE.js → clear-ODRUYS7Q.js} +1 -1
- package/dist/chunks/{compile-vercel-config-7EGD4KID.js → compile-vercel-config-TMPQRDUI.js} +1 -1
- package/dist/chunks/{config-CM5FGY56.js → config-56WPXNJW.js} +1 -1
- package/dist/chunks/{config-Q6RCDUPL.js → config-HZ3BDJUP.js} +1 -1
- package/dist/chunks/{contract-UXF35JHG.js → contract-TZGAI6KK.js} +1 -1
- package/dist/chunks/{delete-L22JUSLG.js → delete-V2N3O6OC.js} +1 -1
- package/dist/chunks/{delete-7PAC36H5.js → delete-ZUB3I23T.js} +1 -1
- package/dist/chunks/{describe-BVOVNTIK.js → describe-5AH5J5C3.js} +1 -1
- package/dist/chunks/{detect-services-RLGDB3XS.js → detect-services-FJ2QVIDJ.js} +1 -1
- package/dist/chunks/{disable-2ILULETZ.js → disable-4O7BH74Y.js} +1 -1
- package/dist/chunks/{discard-ZQDVF2BV.js → discard-DFIIMCTT.js} +1 -1
- package/dist/chunks/{edit-B5HKAA3Y.js → edit-MXN4W2UH.js} +1 -1
- package/dist/chunks/{edit-2THCJXU6.js → edit-XDOMVVIS.js} +1 -1
- package/dist/chunks/{enable-KFEAC56T.js → enable-SQYMXDMO.js} +1 -1
- package/dist/chunks/{export-DWSSJSHN.js → export-U3C2WW7X.js} +1 -1
- package/dist/chunks/{future-27CSSTSM.js → future-IM2DO57J.js} +1 -1
- package/dist/chunks/{generate-cert-for-deploy-5HKKOLXE.js → generate-cert-for-deploy-JD4GD5TB.js} +1 -1
- package/dist/chunks/{image-ZTFQVIWL.js → image-5MNVVJ74.js} +1 -1
- package/dist/chunks/{import-builders-5RBWN5OQ.js → import-builders-5UKLFPYG.js} +1 -1
- package/dist/chunks/{inspect-Q3UKNIAX.js → inspect-D6PN72IQ.js} +1 -1
- package/dist/chunks/{inspect-RVJWMV2P.js → inspect-G6ATTJHN.js} +1 -1
- package/dist/chunks/{inspect-CRP6NH6E.js → inspect-WS2HZETN.js} +1 -1
- package/dist/chunks/{inspect-CJREE2KA.js → inspect-XVPEKP7G.js} +1 -1
- package/dist/chunks/{inspect-IGX2RQZF.js → inspect-YCQ3YSXK.js} +1 -1
- package/dist/chunks/{inspect-V4I6FLTI.js → inspect-ZLT27VWY.js} +1 -1
- package/dist/chunks/{list-NWCLD63A.js → list-KFCOIZUI.js} +1 -1
- package/dist/chunks/{list-MLXQFP32.js → list-LRV6CWNG.js} +1 -1
- package/dist/chunks/{list-EE5LP3XI.js → list-OCUW352D.js} +1 -1
- package/dist/chunks/{list-ECJGXPCX.js → list-X4TTNFOH.js} +1 -1
- package/dist/chunks/{login-FX3HON7Y.js → login-5AELYQXL.js} +1 -1
- package/dist/chunks/{login-KC2GH746.js → login-E6GEEEM5.js} +1 -1
- package/dist/chunks/{logs-LT5VYAYH.js → logs-6HZDMAH2.js} +1 -1
- package/dist/chunks/{ls-IO7UILP7.js → ls-6XRRBHDT.js} +1 -1
- package/dist/chunks/{ls-IVYLE77U.js → ls-CIXZ6MZY.js} +1 -1
- package/dist/chunks/{ls-ULSRILNF.js → ls-NC6HLQZJ.js} +1 -1
- package/dist/chunks/{ls-SAFP4AEL.js → ls-OJTBUTZI.js} +1 -1
- package/dist/chunks/{ls-SNCO5B5A.js → ls-OUHAQ47A.js} +1 -1
- package/dist/chunks/{ls-2R2MR3CO.js → ls-TSONQJT6.js} +1 -1
- package/dist/chunks/{ls-X6LE4ZFD.js → ls-Y4IDW3OF.js} +1 -1
- package/dist/chunks/{migrate-experimental-services-AJ6GVF6O.js → migrate-experimental-services-W3MOT2TD.js} +1 -1
- package/dist/chunks/{mutate-3NJKAHAD.js → mutate-IT6ENFVD.js} +1 -1
- package/dist/chunks/{notifications-73Y6R45H.js → notifications-UJTT2Q2U.js} +1 -1
- package/dist/chunks/{open-VIVK2UDK.js → open-LB5RHOJ4.js} +1 -1
- package/dist/chunks/{openapi-SUHPIPUZ.js → openapi-N5QU226Q.js} +1 -1
- package/dist/chunks/{permissions-GZZN7UUK.js → permissions-RFMDA7MY.js} +1 -1
- package/dist/chunks/{plugin-offer-2SMMNBHS.js → plugin-offer-FFOVUMFD.js} +1 -1
- package/dist/chunks/{prompt-missing-credentials-UFFTUCXU.js → prompt-missing-credentials-AH75D45I.js} +1 -1
- package/dist/chunks/{publish-QUC6TMRK.js → publish-WRCYA6VI.js} +1 -1
- package/dist/chunks/{pull-67X4FSMU.js → pull-IQCEVR6U.js} +1 -1
- package/dist/chunks/{purchase-domain-if-available-Z6JVVRSD.js → purchase-domain-if-available-HGGBPDD2.js} +1 -1
- package/dist/chunks/{push-QVHS7FDF.js → push-JLKD6TIQ.js} +1 -1
- package/dist/chunks/{query-BDDPR2EX.js → query-4XJV5I6S.js} +1 -1
- package/dist/chunks/{raw-query-NE7NWCB7.js → raw-query-AZIHTANR.js} +1 -1
- package/dist/chunks/{reauthenticate-IC7BSJ3P.js → reauthenticate-GZHIL45J.js} +1 -1
- package/dist/chunks/{remove-BHN6WPUV.js → remove-T4EBT5XK.js} +1 -1
- package/dist/chunks/{reorder-EIDH4EJE.js → reorder-AUM56FAG.js} +1 -1
- package/dist/chunks/{reply-WDAJW5SL.js → reply-VBPNT2QZ.js} +1 -1
- package/dist/chunks/{resolve-V47ENQW3.js → resolve-HNP5MLTO.js} +1 -1
- package/dist/chunks/{resolve-agent-team-MFQQGFOV.js → resolve-agent-team-5FN2CJRR.js} +1 -1
- package/dist/chunks/{restore-ROZT6YF2.js → restore-CXKKR2L7.js} +1 -1
- package/dist/chunks/{rm-5TR2TCLE.js → rm-AJCXU7HL.js} +1 -1
- package/dist/chunks/{rm-3KID2JH7.js → rm-TNVDWN3Y.js} +1 -1
- package/dist/chunks/{rm-2QIQDOGW.js → rm-WOLHEUS3.js} +1 -1
- package/dist/chunks/{rm-RILNS5CN.js → rm-ZIQF5OQN.js} +1 -1
- package/dist/chunks/{rm-JLFAI2BI.js → rm-ZY533MC4.js} +1 -1
- package/dist/chunks/{rule-inspect-S2V5GLHH.js → rule-inspect-3ZK4TVN7.js} +1 -1
- package/dist/chunks/{schema-UW2SZTDK.js → schema-JLQSQ4RZ.js} +1 -1
- package/dist/chunks/{schema-BACGWLK7.js → schema-KC4WALNH.js} +1 -1
- package/dist/chunks/{select-org-PENSE6DG.js → select-org-JQKFWXYR.js} +1 -1
- package/dist/chunks/{set-VCRWNXA2.js → set-PKLCP3YM.js} +1 -1
- package/dist/chunks/{set-T44OQCFV.js → set-ZWUY4ISS.js} +1 -1
- package/dist/chunks/{setup-and-link-KBW7TFOU.js → setup-and-link-GXKISJNJ.js} +1 -1
- package/dist/chunks/{skills-MWEEGIZS.js → skills-GMBA5QZ6.js} +5 -43
- package/dist/chunks/{tags-SU3K34BB.js → tags-UWSYGIVF.js} +1 -1
- package/dist/chunks/{types-VZQUPHE4.js → types-S7I5EBVX.js} +1 -1
- package/dist/chunks/{update-LCBI7RYJ.js → update-QZEEPBDR.js} +1 -1
- package/dist/chunks/{usage-IIY5U3TT.js → usage-JJ4YKKYY.js} +1 -1
- package/dist/commands/build/index.js +5 -5
- package/dist/commands/deploy/index.js +4 -4
- package/dist/commands/dev/index.js +3 -3
- 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 +24 -8
- package/dist/commands/tunnel/index.js +1 -1
- package/dist/commands-account.js +4 -4
- package/dist/commands-ai.js +3 -3
- package/dist/commands-blob.js +1 -1
- package/dist/commands-core.js +5 -5
- package/dist/commands-deployments.js +1 -1
- package/dist/commands-flags.js +18 -16
- package/dist/commands-integrations.js +1 -1
- package/dist/commands-observability.js +2 -2
- package/dist/commands-routing.js +2 -2
- package/dist/index.js +4 -4
- package/dist/internal-build.js +1 -1
- package/dist/package.json +40 -40
- package/dist/runtime-assets/node-preloads/next-dev-websocket.cjs +1 -2
- package/dist/version.mjs +1 -1
- package/package.json +42 -42
- package/dist/chunks/chunk-57INWX4T.js +0 -7
- package/dist/chunks/chunk-7YNV6Q6G.js +0 -12
- package/dist/chunks/chunk-LZ3KMDYM.js +0 -9
- package/dist/chunks/chunk-N465KVPA.js +0 -11
|
@@ -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{applyGitConnectIntent,connectGitRepository,resolveGitConnectIntent,setupAndLink,shouldPromptForRootDirectory}from"./chunk-
|
|
7
|
+
import{applyGitConnectIntent,connectGitRepository,resolveGitConnectIntent,setupAndLink,shouldPromptForRootDirectory}from"./chunk-MVK2PKRI.js";import"./chunk-OYH67DET.js";import"./chunk-W45TAELJ.js";import"./chunk-PLRVNB34.js";import"./chunk-QH6W55RZ.js";import"./chunk-GQEGNPWV.js";import"./chunk-COD3WAUI.js";import"./chunk-ANIA2G6F.js";import"./chunk-RY5PXA7G.js";import"./chunk-RHPLVI37.js";import"./chunk-L75A5BMY.js";import"./chunk-5TMHRECT.js";import"./chunk-JUAHDOL6.js";import"./chunk-YTRKHRL3.js";import"./chunk-54FY6GJ5.js";import"./chunk-U4Z2MMOF.js";import"./chunk-CN7DUUHB.js";import"./chunk-5T7OTGUG.js";import"./chunk-REJLEESP.js";import"./chunk-ISSNEDG5.js";import"./chunk-23PA4KG4.js";import"./chunk-NNP7REQN.js";import"./chunk-ZKNEIE44.js";import"./chunk-KR4DMT3I.js";import"./chunk-HAGBKLAS.js";import"./chunk-3JTC2CUD.js";import"./chunk-26H36Z43.js";import"./chunk-VXTAXRJU.js";import"./chunk-7YKFF6CE.js";import"./chunk-3UZE566G.js";import"./chunk-SZO73QV5.js";import"./chunk-TAAWMNNL.js";import"./chunk-25565AGS.js";import"./chunk-PVASGBEF.js";import"./chunk-ZKQ2Q7UD.js";import"./chunk-Q5DOQ7AQ.js";import"./chunk-NBTFAXL4.js";import"./chunk-TJUZVODP.js";import"./chunk-IQ7FPAI4.js";import"./chunk-YJNMDXEG.js";import"./chunk-FSZJSIOF.js";import"./chunk-CJZE7647.js";import"./chunk-Y2FVJ7YO.js";import"./chunk-BPIGFKNN.js";import"./chunk-CY5KJ42N.js";import"./chunk-3G3FQYMW.js";import"./chunk-QGS3SBR6.js";import"./chunk-KDCODXVL.js";import"./chunk-NWGBDBZI.js";import"./chunk-PNWRO3XW.js";import"./chunk-DTUEHPME.js";import"./chunk-73BOOIOB.js";import"./chunk-4HR3I3ML.js";import"./chunk-LOA7SZWH.js";import"./chunk-M7FED5YP.js";import"./chunk-MTZYPCZ7.js";import"./chunk-D6REP5QQ.js";import"./chunk-7HLAWGY2.js";import"./chunk-LYL26S3N.js";import"./chunk-2VBFQZ72.js";import"./chunk-6GKP6VUF.js";import"./chunk-LUX4PBJL.js";import"./chunk-OPORM35X.js";import"./chunk-FBYA6LLM.js";import"./chunk-MY4MONOH.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-4NTBYNFR.js";import"./chunk-4SAVH3H7.js";import"./chunk-GOI2VVI7.js";import"./chunk-B4KA3ZH2.js";import"./chunk-BOJDM3O7.js";import"./chunk-AP6DZGTK.js";import"./chunk-BLUPZPAS.js";import"./chunk-AW33SRYY.js";import"./chunk-5MDNVAE6.js";import"./chunk-OCR5CRTH.js";import"./chunk-7EJQLVWX.js";import"./chunk-SCV7XEEO.js";import"./chunk-MCYG7CCE.js";import"./chunk-YHPPP3SF.js";import"./chunk-24SIHFEW.js";import"./chunk-CFJBDBYH.js";import"./chunk-2BKALEOP.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BULSRTQE.js";import"./chunk-BZENIQ7N.js";export{applyGitConnectIntent,connectGitRepository,setupAndLink as default,resolveGitConnectIntent,shouldPromptForRootDirectory};
|
|
@@ -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{skillsSubcommand}from"./chunk-QOLGACFD.js";import{printError}from"./chunk-
|
|
7
|
+
import{skillsSubcommand}from"./chunk-QOLGACFD.js";import{printError}from"./chunk-CY5KJ42N.js";import{TelemetryClient}from"./chunk-KDCODXVL.js";import"./chunk-NWGBDBZI.js";import{AGENT_REASON,buildCommandWithGlobalFlags,shouldEmitNonInteractiveCommandError,writeAgentError}from"./chunk-PNWRO3XW.js";import"./chunk-DTUEHPME.js";import{printAlignedLabel}from"./chunk-M7FED5YP.js";import{parseArguments}from"./chunk-LYL26S3N.js";import"./chunk-2VBFQZ72.js";import{validateJsonOutput}from"./chunk-6GKP6VUF.js";import"./chunk-4NTBYNFR.js";import"./chunk-4SAVH3H7.js";import"./chunk-GOI2VVI7.js";import"./chunk-B4KA3ZH2.js";import{pkg_default}from"./chunk-BOJDM3O7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import"./chunk-BLUPZPAS.js";import"./chunk-5MDNVAE6.js";import"./chunk-MCYG7CCE.js";import"./chunk-YHPPP3SF.js";import"./chunk-24SIHFEW.js";import{getFlagsSpecification}from"./chunk-CFJBDBYH.js";import"./chunk-2BKALEOP.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BULSRTQE.js";import"./chunk-BZENIQ7N.js";import{randomBytes}from"node:crypto";import{homedir}from"node:os";import{lstat,mkdir,readdir,readFile,realpath,rename,rm,writeFile}from"node:fs/promises";import{basename,dirname,isAbsolute,join,relative,resolve,sep}from"node:path";function readBundledCliSkill(){return{name:"vercel-cli",files:[{path:"command/vercel.md",content:`---
|
|
8
8
|
description: Use the Vercel CLI skill for deployment, configuration, and troubleshooting workflows.
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -281,47 +281,7 @@ Inspect group membership before changing it. Removing a child requires removing
|
|
|
281
281
|
Group changes that cross a billing limit can require interactive confirmation. Preserve that handoff rather than trying to force a non-interactive path. Group deletion removes every project from the group.
|
|
282
282
|
|
|
283
283
|
For local development, the proxy needs the default app's configuration. In a polyrepo, fetch it or provide its local path. Run local apps on the ports expected by the proxy; apps not running locally can fall back to production, so confirm where requests are going before treating a test as local-only.
|
|
284
|
-
`},{path:"references/monitoring-and-debugging.md",content
|
|
285
|
-
|
|
286
|
-
## Diagnostic Ladder
|
|
287
|
-
|
|
288
|
-
1. Identify the project, scope, and time window from supplied context and deployment evidence.
|
|
289
|
-
2. Inspect the relevant deployment's status, source, target, timestamps, and aliases.
|
|
290
|
-
3. Query logs and metrics for the affected window; narrow by the observed error, route, or deployment.
|
|
291
|
-
4. If evidence is unavailable, distinguish permission, subscription, retention, and no-data cases. Use other available evidence without treating missing telemetry as healthy behavior.
|
|
292
|
-
|
|
293
|
-
For an incident with a supplied deployment URL, inspect that exact identity before deriving a project name. For broader regressions, compare nearby deployments with a meaningful good/bad boundary.
|
|
294
|
-
|
|
295
|
-
## Build Failures
|
|
296
|
-
|
|
297
|
-
Start with deployment metadata and build logs before exploring source control. Capture the install command, package manager, build command, monorepo scope, restored cache, and first fatal error. Fix the causal error before chasing incidental warnings.
|
|
298
|
-
|
|
299
|
-
If source is implicated, inspect the files named by the trace and relevant package, lockfile, or build configuration. Compare a nearby successful deployment's source and build inputs. Other branches passing does not by itself disprove a dependency, cache, or configuration explanation.
|
|
300
|
-
|
|
301
|
-
Separate the proven root cause, likely trigger, and remaining uncertainty. Validate a build hypothesis with the resulting deployment's final state rather than reporting success while it is still building.
|
|
302
|
-
|
|
303
|
-
## Build Performance and Machine Sizing
|
|
304
|
-
|
|
305
|
-
Inspect a successful deployment's build logs for current cores/memory, total duration, and slowest phases. An implausible \`0ms\` is missing telemetry, not an instant build. Recommend a larger machine only with evidence of CPU or memory pressure; otherwise address the dominant phase.
|
|
306
|
-
|
|
307
|
-
## Logs and Metrics
|
|
308
|
-
|
|
309
|
-
Choose the log source by the question. Runtime logs, the default, are application output: messages, errors, and stack traces from functions, middleware, and other producers. CDN requests (\`logs requests\`) are one record per request with status, method, cache result, and path; use them for traffic, status-code, and caching questions. They exclude background function executions. For one request, filter runtime logs by its request ID to see what it logged, and use its trace for timing.
|
|
310
|
-
|
|
311
|
-
Logs return a bounded result and exit. Set \`--since\` and \`--until\` to the affected window rather than relying on the short default. Filter with \`--query\` in the source's KQL-inspired syntax, and read that source's help for its fields and operators. Search runtime messages with unquoted words, grouping several words with \`AND\`, for example \`json AND (parse OR (unexpected AND token))\`; quotes work only in field values such as \`requestId:"\u2026"\`, and quoted bare text is rejected. Older level, source, status-code, request-ID, and search options were removed; express them as query fields. Select a deployment with \`--deployment\`. Without a deployment or environment selector, logs cover every environment of the project, so scope explicitly when the question concerns production or one deployment. Only team-owned projects are supported.
|
|
312
|
-
|
|
313
|
-
In JSON Lines output, each record is under \`data\`, and a final \`summary\` reports the window searched, whether more records matched, and excluded intervals. Check \`pagination.hasMore\` and \`excludedIntervals\` before concluding that something did not happen: a full page or a coverage gap is not absence. To read further, pass the summary's \`pagination.next\` to \`--next\` instead of raising the limit or widening the window. The cursor keeps the original target, filter, and window; only the limit may change. Paging is best-effort at page boundaries, so do not present counts summed across pages as exact.
|
|
314
|
-
|
|
315
|
-
CDN request history beyond the plan's free window, and filters on fields that need Observability Plus or a Priority project, fail with an access error that names the requirement. Report that as an entitlement limit, not as missing traffic or an outage.
|
|
316
|
-
|
|
317
|
-
Discover metric IDs, dimensions, aggregations, and filter syntax from the installed schema/help. Copy their exact names instead of maintaining a parallel list or translating dimensions to a guessed naming convention. Schema discovery is team-scoped; project filtering belongs to the metric query.
|
|
318
|
-
|
|
319
|
-
Use bounded windows and group counts for metrics. Aggregate trends, sampled details, and individual request traces support different conclusions; state the evidence behind a diagnosis.
|
|
320
|
-
|
|
321
|
-
## Preview Access
|
|
322
|
-
|
|
323
|
-
The CLI's authenticated preview request path handles Deployment Protection. Use it when the execution environment can reach deployment hosts instead of disabling protection or managing bypass secrets unnecessarily. A network or permission limitation is not evidence that the deployment is broken.
|
|
324
|
-
`},{path:"references/monorepos.md",content:`# Monorepos on Vercel
|
|
284
|
+
`},{path:"references/monitoring-and-debugging.md",content:"# Monitoring & Debugging\n\n## Diagnostic Ladder\n\n1. Identify the project, scope, and time window from supplied context and deployment evidence.\n2. Inspect the relevant deployment's status, source, target, timestamps, and aliases.\n3. Query logs and metrics for the affected window; narrow by the observed error, route, or deployment.\n4. If evidence is unavailable, distinguish permission, subscription, retention, and no-data cases. Use other available evidence without treating missing telemetry as healthy behavior.\n\nFor an incident with a supplied deployment URL, inspect that exact identity before deriving a project name. For broader regressions, compare nearby deployments with a meaningful good/bad boundary.\n\n## Build Failures\n\nStart with deployment metadata and build logs before exploring source control. Capture the install command, package manager, build command, monorepo scope, restored cache, and first fatal error. Fix the causal error before chasing incidental warnings.\n\nIf source is implicated, inspect the files named by the trace and relevant package, lockfile, or build configuration. Compare a nearby successful deployment's source and build inputs. Other branches passing does not by itself disprove a dependency, cache, or configuration explanation.\n\nSeparate the proven root cause, likely trigger, and remaining uncertainty. Validate a build hypothesis with the resulting deployment's final state rather than reporting success while it is still building.\n\n## Build Performance and Machine Sizing\n\nInspect a successful deployment's build logs for current cores/memory, total duration, and slowest phases. An implausible `0ms` is missing telemetry, not an instant build. Recommend a larger machine only with evidence of CPU or memory pressure; otherwise address the dominant phase.\n\n## Logs and Metrics\n\nChoose the log source by the question. Runtime logs, the default, are application output: messages, errors, and stack traces from functions, middleware, and other producers. CDN requests (`logs requests`) are one record per request with status, method, cache result, and path; use them for traffic, status-code, and caching questions. They exclude background function executions. For one request, filter runtime logs by its request ID to see what it logged, and use its trace for timing.\n\nLogs return a bounded result and exit. Set `--since` and `--until` to the affected window rather than relying on the short default. Filter with `--query` in the source's KQL-inspired syntax, and read that source's help for its fields and operators. Search runtime messages with unquoted words, grouping several words with `AND`, for example `json AND (parse OR (unexpected AND token))`; quotes work only in field values such as `requestId:\"\u2026\"`, and quoted bare text is rejected. Older level, source, status-code, request-ID, and search options were removed; express them as query fields. Select a deployment with `--deployment`. Without a deployment or environment selector, logs cover every environment of the project, so scope explicitly when the question concerns production or one deployment. Only team-owned projects are supported.\n\nIn JSON Lines output, each record is under `data`, and a final `summary` reports the window searched, whether more records matched, and excluded intervals. Check `pagination.hasMore` and `excludedIntervals` before concluding that something did not happen: a full page or a coverage gap is not absence. To read further, pass the summary's `pagination.next` to `--next` instead of raising the limit or widening the window. The cursor keeps the original target, filter, and window; only the limit may change. Paging is best-effort at page boundaries, so do not present counts summed across pages as exact.\n\nCDN request history beyond the plan's free window, and filters on fields that need Observability Plus or a Priority project, fail with an access error that names the requirement. Report that as an entitlement limit, not as missing traffic or an outage.\n\nDiscover metric IDs, dimensions, aggregations, and filter syntax from the installed schema/help. Copy their exact names instead of maintaining a parallel list or translating dimensions to a guessed naming convention. Schema discovery is team-scoped; project filtering belongs to the metric query.\n\nFor a ratio or comparison, such as an error rate, a cache hit rate, or several aggregations side by side, send one query with `vercel metrics --data` (JSON, or `-` for stdin) instead of joining separate queries: it takes several metrics with their own filters plus formulas over them, and `vercel metrics --help` documents the fields. The query replaces the metric argument and query options; `--since`, `--until`, `--project`, and `--all` fill only what it leaves out.\n\nUse bounded windows and group counts for metrics. Aggregate trends, sampled details, and individual request traces support different conclusions; state the evidence behind a diagnosis.\n\n## Preview Access\n\nThe CLI's authenticated preview request path handles Deployment Protection. Use it when the execution environment can reach deployment hosts instead of disabling protection or managing bypass secrets unnecessarily. A network or permission limitation is not evidence that the deployment is broken.\n"},{path:"references/monorepos.md",content:`# Monorepos on Vercel
|
|
325
285
|
|
|
326
286
|
## Project Boundaries
|
|
327
287
|
|
|
@@ -329,13 +289,15 @@ Use repository directory mappings when multiple applications have separate Verce
|
|
|
329
289
|
|
|
330
290
|
The project's Root Directory is a project setting, not a \`vercel.json\` property. Keep each app's framework configuration and dependencies in its configured root.
|
|
331
291
|
|
|
292
|
+
Set the Root Directory with \`vercel project update --root-directory <DIR>\`. Use \`--source-files-outside-root-directory\` or \`--no-source-files-outside-root-directory\` to include or exclude source files outside of the Root Directory in the build, and \`--git-branch <BRANCH>\` to set the Production Branch.
|
|
293
|
+
|
|
332
294
|
Separate projects suit independently deployed applications, such as a Next.js frontend and Python backend. [Vercel Services](https://vercel.com/docs/services) can host multiple frameworks in one project when they need coordinated deployment and routing. Choose based on those requirements rather than mandating one layout.
|
|
333
295
|
|
|
334
296
|
## Build Orchestration
|
|
335
297
|
|
|
336
298
|
Turborepo and Nx need explicit build tasks/targets and correct dependency ordering. Preserve the repository's existing build graph and framework-specific outputs. Vercel can generate framework-aware build commands; use a manual override only when the default does not express the intended app scope.
|
|
337
299
|
|
|
338
|
-
An ignored build step can skip deployments when the app's dependencies are unchanged. Include dependency graph and cache inputs in a build investigation before assuming that a missing or different build is a deployment failure.
|
|
300
|
+
An ignored build step can skip deployments when the app's dependencies are unchanged. Set its command with \`vercel project update --ignore-command <COMMAND>\`; the build is ignored when the command exits with code 0. Include dependency graph and cache inputs in a build investigation before assuming that a missing or different build is a deployment failure.
|
|
339
301
|
`},{path:"references/node-backends.md",content:`# Node Backends on Vercel
|
|
340
302
|
|
|
341
303
|
Vercel supports Node.js backend frameworks as first-class apps. Express and Hono are the most common, but Fastify, Elysia, NestJS, H3, and Koa are also supported. Your app is the entrypoint \u2014 not the \`api/\` folder. No rewrites, no build scripts. Just export your app and deploy.
|
|
@@ -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{getInvalidSubcommand}from"./chunk-TG2RCYTH.js";import{getSubcommand}from"./chunk-ETV3C2CV.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-
|
|
7
|
+
import{getInvalidSubcommand}from"./chunk-TG2RCYTH.js";import{getSubcommand}from"./chunk-ETV3C2CV.js";import{AGENT_REASON,buildCommandWithGlobalFlags,outputAgentError}from"./chunk-PNWRO3XW.js";import"./chunk-DTUEHPME.js";import"./chunk-2VBFQZ72.js";import{warnDeprecatedSubcommand}from"./chunk-6GKP6VUF.js";import"./chunk-GOI2VVI7.js";import"./chunk-B4KA3ZH2.js";import"./chunk-BOJDM3O7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import"./chunk-BLUPZPAS.js";import"./chunk-5MDNVAE6.js";import"./chunk-MCYG7CCE.js";import"./chunk-YHPPP3SF.js";import"./chunk-CFJBDBYH.js";import"./chunk-2BKALEOP.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BULSRTQE.js";import"./chunk-BZENIQ7N.js";var TAGS_CONFIG={ls:["ls","list"],inspect:["inspect","get"]};async function tags(client,argv,telemetry){let{subcommand,args,subcommandOriginal}=getSubcommand(argv,TAGS_CONFIG);if(subcommand==null){let message=argv.length===0?getInvalidSubcommand(TAGS_CONFIG):`Unknown "vcr tag" subcommand "${argv[0]}".`;return outputAgentError(client,{status:"error",reason:AGENT_REASON.INVALID_ARGUMENTS,message,next:[{command:buildCommandWithGlobalFlags(client.argv,"vcr tag --help"),when:"Show valid tag subcommands"}]},2),output_manager_default.error(`${message} Run \`vercel vcr tag --help\`.`),2}switch(subcommand){case"ls":return(await import("./ls-CIXZ6MZY.js")).default(client,args,telemetry);case"inspect":return subcommandOriginal==="get"&&warnDeprecatedSubcommand(client,"vcr tag get","vcr tag inspect"),(await import("./inspect-WS2HZETN.js")).default(client,args,telemetry);default:return output_manager_default.error(`Unhandled tags subcommand: ${subcommand}`),1}}export{tags as default};
|
|
@@ -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{table}from"./chunk-CJZE7647.js";import{typesSubcommand}from"./chunk-UDZJCD5W.js";import{printError}from"./chunk-
|
|
7
|
+
import{table}from"./chunk-CJZE7647.js";import{typesSubcommand}from"./chunk-UDZJCD5W.js";import{printError}from"./chunk-CY5KJ42N.js";import"./chunk-PNWRO3XW.js";import"./chunk-DTUEHPME.js";import{parseArguments}from"./chunk-LYL26S3N.js";import"./chunk-2VBFQZ72.js";import{validateJsonOutput}from"./chunk-6GKP6VUF.js";import{isAPIError}from"./chunk-GOI2VVI7.js";import"./chunk-B4KA3ZH2.js";import"./chunk-BOJDM3O7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import"./chunk-BLUPZPAS.js";import"./chunk-5MDNVAE6.js";import"./chunk-MCYG7CCE.js";import"./chunk-YHPPP3SF.js";import{getFlagsSpecification}from"./chunk-CFJBDBYH.js";import"./chunk-2BKALEOP.js";import{require_source}from"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BULSRTQE.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);function formatErrorJson(code,message){return`${JSON.stringify({error:{code,message}},null,2)}
|
|
8
8
|
`}async function types(client,telemetry){let parsedArgs,flagsSpecification=getFlagsSpecification(typesSubcommand.options);try{parsedArgs=parseArguments(client.argv.slice(2),flagsSpecification)}catch(err){return printError(err),2}let flags=parsedArgs.flags;telemetry.trackCliOptionFormat(flags["--format"]);let formatResult=validateJsonOutput(flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),2;let jsonOutput=formatResult.jsonOutput;output_manager_default.spinner("Fetching event types...");try{let response=await client.fetch("/v1/events/types"),eventTypes=response.types??[];if(jsonOutput)return client.stdout.write(`${JSON.stringify(response,null,2)}
|
|
9
9
|
`),0;if(eventTypes.length===0)return output_manager_default.log("No activity event types found."),0;let rows=[[import_chalk.default.bold(import_chalk.default.cyan("Name")),import_chalk.default.bold(import_chalk.default.cyan("Description"))],...eventTypes.map(eventType=>[eventType.name,eventType.deprecated?`${eventType.description??"-"} (Deprecated)`:eventType.description??"-"])],tableOutput=table(rows,{hsep:4}).split(`
|
|
10
10
|
`).map(line=>line.trimEnd()).join(`
|
|
@@ -4,5 +4,5 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{printRuleMutationReceipt}from"./chunk-
|
|
7
|
+
import{printRuleMutationReceipt}from"./chunk-WOD4NOA2.js";import"./chunk-GHNHUSVK.js";import{resolveRulesProject,resolveRulesTeam}from"./chunk-TJTUE6P6.js";import"./chunk-FXT2VBFG.js";import{emitRulesArgParseError,fetchRule,handleRulesApiError,outputRulesError,readRuleBody,rulesItemPath}from"./chunk-SEIOVQCO.js";import"./chunk-ZJNDLFZ7.js";import"./chunk-GHAY4PSD.js";import"./chunk-D3M2JG5C.js";import"./chunk-TOTTVS5P.js";import"./chunk-HRR57QNP.js";import"./chunk-GZNDA6SV.js";import"./chunk-PFD7LETF.js";import"./chunk-CJZE7647.js";import{monitorsUpdateSubcommand}from"./chunk-5ZCSFPWG.js";import{printError}from"./chunk-CY5KJ42N.js";import"./chunk-QGS3SBR6.js";import"./chunk-PNWRO3XW.js";import"./chunk-DTUEHPME.js";import"./chunk-73BOOIOB.js";import"./chunk-4HR3I3ML.js";import"./chunk-LOA7SZWH.js";import"./chunk-M7FED5YP.js";import"./chunk-MTZYPCZ7.js";import"./chunk-D6REP5QQ.js";import"./chunk-7HLAWGY2.js";import{parseArguments}from"./chunk-LYL26S3N.js";import"./chunk-2VBFQZ72.js";import{validateJsonOutput}from"./chunk-6GKP6VUF.js";import"./chunk-LUX4PBJL.js";import"./chunk-OPORM35X.js";import"./chunk-FBYA6LLM.js";import"./chunk-MY4MONOH.js";import"./chunk-MXTC4ZAQ.js";import"./chunk-4NTBYNFR.js";import"./chunk-4SAVH3H7.js";import{isAPIError}from"./chunk-GOI2VVI7.js";import{packageName}from"./chunk-B4KA3ZH2.js";import"./chunk-BOJDM3O7.js";import{output_manager_default}from"./chunk-AP6DZGTK.js";import"./chunk-BLUPZPAS.js";import"./chunk-AW33SRYY.js";import"./chunk-5MDNVAE6.js";import"./chunk-OCR5CRTH.js";import"./chunk-7EJQLVWX.js";import"./chunk-SCV7XEEO.js";import"./chunk-MCYG7CCE.js";import"./chunk-YHPPP3SF.js";import{getFlagsSpecification}from"./chunk-CFJBDBYH.js";import"./chunk-2BKALEOP.js";import"./chunk-NB2WLB3J.js";import"./chunk-ISWW3DKF.js";import"./chunk-BRQUZ5NC.js";import"./chunk-BULSRTQE.js";import"./chunk-BZENIQ7N.js";function sameScope(left,right){return JSON.stringify(left)===JSON.stringify(right)}function scopeForRule(client,type,scope,flags,jsonOutput){return flags["--project"]?type==="custom"?{type:"project",projectId:scope.projectId}:{type:"include",projectIds:[scope.projectId]}:type==="custom"?outputRulesError(client,jsonOutput,"INVALID_SCOPE","Custom monitors must target one project. Use --project <name-or-id>."):{type:"all"}}async function resolveUpdateScope(client,flags,jsonOutput,ruleId){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 update ${ruleId}`):resolveRulesTeam(client,jsonOutput)}function writeRuleResult(client,api,jsonOutput,action,rule){jsonOutput?client.stdout.write(`${JSON.stringify({[api.itemKey]:rule},null,2)}
|
|
8
8
|
`):printRuleMutationReceipt(action,rule,client.argv)}async function update(client,argv,api){let parsedArgs;try{parsedArgs=parseArguments(argv,getFlagsSpecification(monitorsUpdateSubcommand.options))}catch(error){return emitRulesArgParseError(client,error,"monitors update <monitor-id> --project <name-or-id>"),printError(error),2}let flags=parsedArgs.flags,format=validateJsonOutput(flags);if(!format.valid)return outputRulesError(client,!1,"INVALID_ARGUMENTS",format.error);let ruleId=parsedArgs.args[0];if(!ruleId)return outputRulesError(client,format.jsonOutput,"MISSING_ARGUMENTS",`Missing monitor ID. Example: ${packageName} monitors update <monitor-id> --body <file>`);let hasScopeFlag=!!(flags["--project"]||flags["--all"]);if(!flags["--body"]&&!hasScopeFlag)return outputRulesError(client,format.jsonOutput,"MISSING_ARGUMENTS","Provide --body <PATH>, --project <name-or-id>, or --all.");let body=flags["--body"]?readRuleBody(client,flags["--body"],format.jsonOutput):{};if(typeof body=="number")return body;if(Object.hasOwn(body,"type")&&body.type!=="built-in"&&body.type!=="custom")return outputRulesError(client,format.jsonOutput,"INVALID_RULE_TYPE","When provided, update body type must be a supported monitor type.");if(hasScopeFlag&&Object.hasOwn(body,"ruleScope"))return outputRulesError(client,format.jsonOutput,"SCOPE_CONFLICT","Specify monitor scope either in the body or with --project/--all, not both.");let scope=await resolveUpdateScope(client,flags,format.jsonOutput,ruleId);if(typeof scope=="number")return scope;try{let existing;if(hasScopeFlag){output_manager_default.spinner("Fetching monitor\u2026"),existing=await fetchRule(client,api,scope,ruleId);let desiredScope=scopeForRule(client,existing.type,scope,flags,format.jsonOutput);if(typeof desiredScope=="number")return desiredScope;if(!sameScope(existing.ruleScope,desiredScope))body.ruleScope=desiredScope;else if(Object.keys(body).length===0)return output_manager_default.stopSpinner(),writeRuleResult(client,api,format.jsonOutput,"Unchanged",existing),0}output_manager_default.spinner("Updating monitor\u2026");let response=await client.fetch(rulesItemPath(api,scope.teamId,ruleId),{method:"PATCH",body});return writeRuleResult(client,api,format.jsonOutput,"Updated",response[api.itemKey]),0}catch(error){if(isAPIError(error))return handleRulesApiError(client,error,format.jsonOutput);throw error}finally{output_manager_default.stopSpinner()}}export{update as default};
|