vercel 58.10.0 → 59.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/chunks/{add-5KFK4EFH.js → add-3LO3UMYC.js} +6 -6
  2. package/dist/chunks/{add-W4XR5GYX.js → add-QZUQNL2C.js} +2 -2
  3. package/dist/chunks/{add-NMYLVDBN.js → add-SQ6ERCFZ.js} +2 -2
  4. package/dist/chunks/{build-BCMSG7TU.js → build-WMUKZEFH.js} +2 -2
  5. package/dist/chunks/{chunk-IBIZT5M4.js → chunk-3R5JGMHV.js} +62 -20
  6. package/dist/chunks/{chunk-CLUCO4RD.js → chunk-5KI3SUJI.js} +81 -18
  7. package/dist/chunks/{chunk-MGCBTAA7.js → chunk-BGILSKZ5.js} +1 -1
  8. package/dist/chunks/{chunk-BZGIBXY6.js → chunk-CMR5KQVR.js} +1 -1
  9. package/dist/chunks/{chunk-AZCZV4XI.js → chunk-DMLU5KQE.js} +1 -1
  10. package/dist/chunks/chunk-DQDJVHA5.js +559 -0
  11. package/dist/chunks/{chunk-UDHYVIJL.js → chunk-L6NIIAB7.js} +4 -4
  12. package/dist/chunks/{chunk-2J7BL7IF.js → chunk-LT5UQNTC.js} +2 -2
  13. package/dist/chunks/{chunk-MAZ2BUBX.js → chunk-MZ3L3SGZ.js} +2 -2
  14. package/dist/chunks/{chunk-5MERQE7H.js → chunk-N5DK7EMY.js} +1 -1
  15. package/dist/chunks/{chunk-KUZCVMVA.js → chunk-PBECT5BN.js} +4 -3
  16. package/dist/chunks/{chunk-N5YCPDWG.js → chunk-PSZQNYEV.js} +1 -1
  17. package/dist/chunks/{chunk-6SXIT6Q3.js → chunk-PVCJIMVY.js} +2 -2
  18. package/dist/chunks/{chunk-H25BISPQ.js → chunk-QGQX7BYN.js} +10 -518
  19. package/dist/chunks/{chunk-PTZ6X4P4.js → chunk-RWRSUGXY.js} +1 -1
  20. package/dist/chunks/{chunk-TNKTZDOL.js → chunk-S3H7ITUR.js} +1 -1
  21. package/dist/chunks/{chunk-U4LWFSR4.js → chunk-SD2QZHZA.js} +1 -1
  22. package/dist/chunks/{chunk-2SEBBSKD.js → chunk-SHR6DYA5.js} +1 -1
  23. package/dist/chunks/{chunk-DQDAQYQI.js → chunk-SQAQED4U.js} +1 -1
  24. package/dist/chunks/{chunk-NDOZRKTB.js → chunk-UQVOFOP2.js} +1 -1
  25. package/dist/chunks/{chunk-L6BFCLXF.js → chunk-V42UVZDX.js} +80 -38
  26. package/dist/chunks/chunk-W34XLJ44.js +61 -0
  27. package/dist/chunks/{chunk-6WWATEWK.js → chunk-WE3TFESA.js} +1 -1
  28. package/dist/chunks/{chunk-ELJ56NBY.js → chunk-ZFTRB6AB.js} +173 -173
  29. package/dist/chunks/{chunk-7RUZPHW7.js → chunk-ZRWSSPW5.js} +1 -1
  30. package/dist/chunks/{clear-54WX3NA2.js → clear-W2B4CHTP.js} +2 -2
  31. package/dist/chunks/{compile-vercel-config-LSW4TWGX.js → compile-vercel-config-HTWOS7DZ.js} +1 -1
  32. package/dist/chunks/{config-WXQTPQW7.js → config-EGJY4UUE.js} +2 -2
  33. package/dist/chunks/{delete-OGP3RVWM.js → delete-6I7V5AGV.js} +2 -2
  34. package/dist/chunks/{delete-HQMI44SG.js → delete-BVMID4W2.js} +2 -2
  35. package/dist/chunks/{disable-HC266OB7.js → disable-I54JNXJE.js} +2 -2
  36. package/dist/chunks/{discard-3RFIPLXY.js → discard-6TSJJCUQ.js} +2 -2
  37. package/dist/chunks/{edit-TZOCRGG6.js → edit-KCWYQ2YT.js} +2 -2
  38. package/dist/chunks/{edit-NXPQFWM6.js → edit-YS2SWHFJ.js} +3 -3
  39. package/dist/chunks/{enable-OGFRN4CG.js → enable-RYXRIGQN.js} +2 -2
  40. package/dist/chunks/{export-AEESZFZX.js → export-G3NYOADE.js} +2 -2
  41. package/dist/chunks/{image-EIAO7LVN.js → image-RJBLSUES.js} +3 -3
  42. package/dist/chunks/{import-builders-KCQLA2YR.js → import-builders-M6F3F4DH.js} +2 -2
  43. package/dist/chunks/{inspect-RUGPLO7A.js → inspect-7XUEVBDM.js} +2 -2
  44. package/dist/chunks/{inspect-MGIECVLH.js → inspect-AE4YIJYS.js} +2 -2
  45. package/dist/chunks/{inspect-TTHC6L7Q.js → inspect-E7TBGK7D.js} +2 -2
  46. package/dist/chunks/{inspect-HHSDXTII.js → inspect-YTCVTZHY.js} +2 -2
  47. package/dist/chunks/{inspect-EM34BOTE.js → inspect-Z74NZZ2A.js} +3 -3
  48. package/dist/chunks/{list-A74MGEOB.js → list-KJNC3NOE.js} +2 -2
  49. package/dist/chunks/{list-GQDUIRBU.js → list-SGPLL4KJ.js} +3 -3
  50. package/dist/chunks/{list-EOG3TYBE.js → list-WXS2AFQD.js} +1 -1
  51. package/dist/chunks/{login-L4EWZOGH.js → login-XD3CFPBF.js} +2 -2
  52. package/dist/chunks/{ls-F6WCPVB7.js → ls-5A4327XJ.js} +2 -2
  53. package/dist/chunks/{ls-OWHNAGNT.js → ls-5DSOTTYX.js} +2 -2
  54. package/dist/chunks/{ls-OJGSWVWO.js → ls-KE5I7BZO.js} +2 -2
  55. package/dist/chunks/{ls-D5ESYWG5.js → ls-NBKSDTWX.js} +2 -2
  56. package/dist/chunks/{ls-VBFBWSWD.js → ls-SVSO3677.js} +3 -3
  57. package/dist/chunks/{open-FHER5QV2.js → open-M2MOAE2K.js} +2 -2
  58. package/dist/chunks/{permissions-JSXC7BRD.js → permissions-ADPY554K.js} +4 -4
  59. package/dist/chunks/{publish-CM6ZGWIE.js → publish-OBIOOL7T.js} +2 -2
  60. package/dist/chunks/{push-5NYG7HIR.js → push-5237XBTO.js} +2 -2
  61. package/dist/chunks/{query-5GQLF2BR.js → query-ILL74HIA.js} +1 -1
  62. package/dist/chunks/{reorder-5GCNY75W.js → reorder-GAUAO4LW.js} +2 -2
  63. package/dist/chunks/{reply-B2XCK5XR.js → reply-IZJHEULD.js} +2 -2
  64. package/dist/chunks/{resolve-YQP5C2QY.js → resolve-HTIT7CGL.js} +2 -2
  65. package/dist/chunks/{restore-VHX4JV5J.js → restore-IKL74HSE.js} +2 -2
  66. package/dist/chunks/{rm-VDFSX3LH.js → rm-5Y6BL47T.js} +2 -2
  67. package/dist/chunks/{rm-AUUT2YIT.js → rm-C37ZORQV.js} +2 -2
  68. package/dist/chunks/{rm-QVVQDCDX.js → rm-QAVNP5KX.js} +3 -3
  69. package/dist/chunks/{rm-OILUGCTW.js → rm-XJU5SBGH.js} +2 -2
  70. package/dist/chunks/{rule-inspect-LKTUPW4B.js → rule-inspect-DYHWWROS.js} +3 -3
  71. package/dist/chunks/{rules-J5JM5VFQ.js → rules-M6EJ2Y6S.js} +6 -6
  72. package/dist/chunks/{schema-OIKSCLDU.js → schema-LLBDZNIC.js} +1 -1
  73. package/dist/chunks/{tags-AMTMNRLQ.js → tags-HR5RVQFA.js} +2 -2
  74. package/dist/chunks/{update-AFL3GHKB.js → update-6A5V6HBH.js} +6 -6
  75. package/dist/commands/build/index.js +15 -11
  76. package/dist/commands/deploy/index.js +347 -49
  77. package/dist/commands/dev/index.js +8 -8
  78. package/dist/commands/env/index.js +4 -4
  79. package/dist/commands/link/index.js +6 -6
  80. package/dist/commands/list/index.js +2 -2
  81. package/dist/commands-bulk.js +2111 -1619
  82. package/dist/index.js +32 -42
  83. package/dist/version.mjs +1 -1
  84. package/package.json +35 -35
  85. package/dist/chunks/chunk-I2XE3GMB.js +0 -21
@@ -0,0 +1,559 @@
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 {
8
+ loginCommand
9
+ } from "./chunk-5KI3SUJI.js";
10
+ import {
11
+ help
12
+ } from "./chunk-ZX2FSPWV.js";
13
+ import {
14
+ login
15
+ } from "./chunk-3R5JGMHV.js";
16
+ import {
17
+ TelemetryClient
18
+ } from "./chunk-ECCWJHC6.js";
19
+ import {
20
+ printError
21
+ } from "./chunk-KBEX5MYS.js";
22
+ import {
23
+ parseArguments
24
+ } from "./chunk-XLKFJPMT.js";
25
+ import {
26
+ getFlagsSpecification
27
+ } from "./chunk-SOFC4MLS.js";
28
+ import {
29
+ output_manager_default
30
+ } from "./chunk-OX7KI3LF.js";
31
+ import {
32
+ require_source
33
+ } from "./chunk-S7KYDPEM.js";
34
+ import {
35
+ __commonJS,
36
+ __toESM
37
+ } from "./chunk-TZ2YI2VH.js";
38
+
39
+ // ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json
40
+ var require_vendors = __commonJS({
41
+ "../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json"(exports, module) {
42
+ module.exports = [
43
+ {
44
+ name: "Agola CI",
45
+ constant: "AGOLA",
46
+ env: "AGOLA_GIT_REF",
47
+ pr: "AGOLA_PULL_REQUEST_ID"
48
+ },
49
+ {
50
+ name: "Appcircle",
51
+ constant: "APPCIRCLE",
52
+ env: "AC_APPCIRCLE",
53
+ pr: {
54
+ env: "AC_GIT_PR",
55
+ ne: "false"
56
+ }
57
+ },
58
+ {
59
+ name: "AppVeyor",
60
+ constant: "APPVEYOR",
61
+ env: "APPVEYOR",
62
+ pr: "APPVEYOR_PULL_REQUEST_NUMBER"
63
+ },
64
+ {
65
+ name: "AWS CodeBuild",
66
+ constant: "CODEBUILD",
67
+ env: "CODEBUILD_BUILD_ARN",
68
+ pr: {
69
+ env: "CODEBUILD_WEBHOOK_EVENT",
70
+ any: [
71
+ "PULL_REQUEST_CREATED",
72
+ "PULL_REQUEST_UPDATED",
73
+ "PULL_REQUEST_REOPENED"
74
+ ]
75
+ }
76
+ },
77
+ {
78
+ name: "Azure Pipelines",
79
+ constant: "AZURE_PIPELINES",
80
+ env: "TF_BUILD",
81
+ pr: {
82
+ BUILD_REASON: "PullRequest"
83
+ }
84
+ },
85
+ {
86
+ name: "Bamboo",
87
+ constant: "BAMBOO",
88
+ env: "bamboo_planKey"
89
+ },
90
+ {
91
+ name: "Bitbucket Pipelines",
92
+ constant: "BITBUCKET",
93
+ env: "BITBUCKET_COMMIT",
94
+ pr: "BITBUCKET_PR_ID"
95
+ },
96
+ {
97
+ name: "Bitrise",
98
+ constant: "BITRISE",
99
+ env: "BITRISE_IO",
100
+ pr: "BITRISE_PULL_REQUEST"
101
+ },
102
+ {
103
+ name: "Buddy",
104
+ constant: "BUDDY",
105
+ env: "BUDDY_WORKSPACE_ID",
106
+ pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
107
+ },
108
+ {
109
+ name: "Buildkite",
110
+ constant: "BUILDKITE",
111
+ env: "BUILDKITE",
112
+ pr: {
113
+ env: "BUILDKITE_PULL_REQUEST",
114
+ ne: "false"
115
+ }
116
+ },
117
+ {
118
+ name: "CircleCI",
119
+ constant: "CIRCLE",
120
+ env: "CIRCLECI",
121
+ pr: "CIRCLE_PULL_REQUEST"
122
+ },
123
+ {
124
+ name: "Cirrus CI",
125
+ constant: "CIRRUS",
126
+ env: "CIRRUS_CI",
127
+ pr: "CIRRUS_PR"
128
+ },
129
+ {
130
+ name: "Codefresh",
131
+ constant: "CODEFRESH",
132
+ env: "CF_BUILD_ID",
133
+ pr: {
134
+ any: [
135
+ "CF_PULL_REQUEST_NUMBER",
136
+ "CF_PULL_REQUEST_ID"
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ name: "Codemagic",
142
+ constant: "CODEMAGIC",
143
+ env: "CM_BUILD_ID",
144
+ pr: "CM_PULL_REQUEST"
145
+ },
146
+ {
147
+ name: "Codeship",
148
+ constant: "CODESHIP",
149
+ env: {
150
+ CI_NAME: "codeship"
151
+ }
152
+ },
153
+ {
154
+ name: "Drone",
155
+ constant: "DRONE",
156
+ env: "DRONE",
157
+ pr: {
158
+ DRONE_BUILD_EVENT: "pull_request"
159
+ }
160
+ },
161
+ {
162
+ name: "dsari",
163
+ constant: "DSARI",
164
+ env: "DSARI"
165
+ },
166
+ {
167
+ name: "Earthly",
168
+ constant: "EARTHLY",
169
+ env: "EARTHLY_CI"
170
+ },
171
+ {
172
+ name: "Expo Application Services",
173
+ constant: "EAS",
174
+ env: "EAS_BUILD"
175
+ },
176
+ {
177
+ name: "Gerrit",
178
+ constant: "GERRIT",
179
+ env: "GERRIT_PROJECT"
180
+ },
181
+ {
182
+ name: "Gitea Actions",
183
+ constant: "GITEA_ACTIONS",
184
+ env: "GITEA_ACTIONS"
185
+ },
186
+ {
187
+ name: "GitHub Actions",
188
+ constant: "GITHUB_ACTIONS",
189
+ env: "GITHUB_ACTIONS",
190
+ pr: {
191
+ GITHUB_EVENT_NAME: "pull_request"
192
+ }
193
+ },
194
+ {
195
+ name: "GitLab CI",
196
+ constant: "GITLAB",
197
+ env: "GITLAB_CI",
198
+ pr: "CI_MERGE_REQUEST_ID"
199
+ },
200
+ {
201
+ name: "GoCD",
202
+ constant: "GOCD",
203
+ env: "GO_PIPELINE_LABEL"
204
+ },
205
+ {
206
+ name: "Google Cloud Build",
207
+ constant: "GOOGLE_CLOUD_BUILD",
208
+ env: "BUILDER_OUTPUT"
209
+ },
210
+ {
211
+ name: "Harness CI",
212
+ constant: "HARNESS",
213
+ env: "HARNESS_BUILD_ID"
214
+ },
215
+ {
216
+ name: "Heroku",
217
+ constant: "HEROKU",
218
+ env: {
219
+ env: "NODE",
220
+ includes: "/app/.heroku/node/bin/node"
221
+ }
222
+ },
223
+ {
224
+ name: "Hudson",
225
+ constant: "HUDSON",
226
+ env: "HUDSON_URL"
227
+ },
228
+ {
229
+ name: "Jenkins",
230
+ constant: "JENKINS",
231
+ env: [
232
+ "JENKINS_URL",
233
+ "BUILD_ID"
234
+ ],
235
+ pr: {
236
+ any: [
237
+ "ghprbPullId",
238
+ "CHANGE_ID"
239
+ ]
240
+ }
241
+ },
242
+ {
243
+ name: "LayerCI",
244
+ constant: "LAYERCI",
245
+ env: "LAYERCI",
246
+ pr: "LAYERCI_PULL_REQUEST"
247
+ },
248
+ {
249
+ name: "Magnum CI",
250
+ constant: "MAGNUM",
251
+ env: "MAGNUM"
252
+ },
253
+ {
254
+ name: "Netlify CI",
255
+ constant: "NETLIFY",
256
+ env: "NETLIFY",
257
+ pr: {
258
+ env: "PULL_REQUEST",
259
+ ne: "false"
260
+ }
261
+ },
262
+ {
263
+ name: "Nevercode",
264
+ constant: "NEVERCODE",
265
+ env: "NEVERCODE",
266
+ pr: {
267
+ env: "NEVERCODE_PULL_REQUEST",
268
+ ne: "false"
269
+ }
270
+ },
271
+ {
272
+ name: "Prow",
273
+ constant: "PROW",
274
+ env: "PROW_JOB_ID"
275
+ },
276
+ {
277
+ name: "ReleaseHub",
278
+ constant: "RELEASEHUB",
279
+ env: "RELEASE_BUILD_ID"
280
+ },
281
+ {
282
+ name: "Render",
283
+ constant: "RENDER",
284
+ env: "RENDER",
285
+ pr: {
286
+ IS_PULL_REQUEST: "true"
287
+ }
288
+ },
289
+ {
290
+ name: "Sail CI",
291
+ constant: "SAIL",
292
+ env: "SAILCI",
293
+ pr: "SAIL_PULL_REQUEST_NUMBER"
294
+ },
295
+ {
296
+ name: "Screwdriver",
297
+ constant: "SCREWDRIVER",
298
+ env: "SCREWDRIVER",
299
+ pr: {
300
+ env: "SD_PULL_REQUEST",
301
+ ne: "false"
302
+ }
303
+ },
304
+ {
305
+ name: "Semaphore",
306
+ constant: "SEMAPHORE",
307
+ env: "SEMAPHORE",
308
+ pr: "PULL_REQUEST_NUMBER"
309
+ },
310
+ {
311
+ name: "Sourcehut",
312
+ constant: "SOURCEHUT",
313
+ env: {
314
+ CI_NAME: "sourcehut"
315
+ }
316
+ },
317
+ {
318
+ name: "Strider CD",
319
+ constant: "STRIDER",
320
+ env: "STRIDER"
321
+ },
322
+ {
323
+ name: "TaskCluster",
324
+ constant: "TASKCLUSTER",
325
+ env: [
326
+ "TASK_ID",
327
+ "RUN_ID"
328
+ ]
329
+ },
330
+ {
331
+ name: "TeamCity",
332
+ constant: "TEAMCITY",
333
+ env: "TEAMCITY_VERSION"
334
+ },
335
+ {
336
+ name: "Travis CI",
337
+ constant: "TRAVIS",
338
+ env: "TRAVIS",
339
+ pr: {
340
+ env: "TRAVIS_PULL_REQUEST",
341
+ ne: "false"
342
+ }
343
+ },
344
+ {
345
+ name: "Vela",
346
+ constant: "VELA",
347
+ env: "VELA",
348
+ pr: {
349
+ VELA_PULL_REQUEST: "1"
350
+ }
351
+ },
352
+ {
353
+ name: "Vercel",
354
+ constant: "VERCEL",
355
+ env: {
356
+ any: [
357
+ "NOW_BUILDER",
358
+ "VERCEL"
359
+ ]
360
+ },
361
+ pr: "VERCEL_GIT_PULL_REQUEST_ID"
362
+ },
363
+ {
364
+ name: "Visual Studio App Center",
365
+ constant: "APPCENTER",
366
+ env: "APPCENTER_BUILD_ID"
367
+ },
368
+ {
369
+ name: "Woodpecker",
370
+ constant: "WOODPECKER",
371
+ env: {
372
+ CI: "woodpecker"
373
+ },
374
+ pr: {
375
+ CI_BUILD_EVENT: "pull_request"
376
+ }
377
+ },
378
+ {
379
+ name: "Xcode Cloud",
380
+ constant: "XCODE_CLOUD",
381
+ env: "CI_XCODE_PROJECT",
382
+ pr: "CI_PULL_REQUEST_NUMBER"
383
+ },
384
+ {
385
+ name: "Xcode Server",
386
+ constant: "XCODE_SERVER",
387
+ env: "XCS"
388
+ }
389
+ ];
390
+ }
391
+ });
392
+
393
+ // ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js
394
+ var require_ci_info = __commonJS({
395
+ "../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js"(exports) {
396
+ "use strict";
397
+ var vendors = require_vendors();
398
+ var env = process.env;
399
+ Object.defineProperty(exports, "_vendors", {
400
+ value: vendors.map(function(v) {
401
+ return v.constant;
402
+ })
403
+ });
404
+ exports.name = null;
405
+ exports.isPR = null;
406
+ exports.id = null;
407
+ vendors.forEach(function(vendor) {
408
+ const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
409
+ const isCI = envs.every(function(obj) {
410
+ return checkEnv(obj);
411
+ });
412
+ exports[vendor.constant] = isCI;
413
+ if (!isCI) {
414
+ return;
415
+ }
416
+ exports.name = vendor.name;
417
+ exports.isPR = checkPR(vendor);
418
+ exports.id = vendor.constant;
419
+ });
420
+ exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
421
+ (env.BUILD_ID || // Jenkins, Cloudbees
422
+ env.BUILD_NUMBER || // Jenkins, TeamCity
423
+ env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
424
+ env.CI_APP_ID || // Appflow
425
+ env.CI_BUILD_ID || // Appflow
426
+ env.CI_BUILD_NUMBER || // Appflow
427
+ env.CI_NAME || // Codeship and others
428
+ env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
429
+ env.RUN_ID || // TaskCluster, dsari
430
+ exports.name || false));
431
+ function checkEnv(obj) {
432
+ if (typeof obj === "string")
433
+ return !!env[obj];
434
+ if ("env" in obj) {
435
+ return env[obj.env] && env[obj.env].includes(obj.includes);
436
+ }
437
+ if ("any" in obj) {
438
+ return obj.any.some(function(k) {
439
+ return !!env[k];
440
+ });
441
+ }
442
+ return Object.keys(obj).every(function(k) {
443
+ return env[k] === obj[k];
444
+ });
445
+ }
446
+ function checkPR(vendor) {
447
+ switch (typeof vendor.pr) {
448
+ case "string":
449
+ return !!env[vendor.pr];
450
+ case "object":
451
+ if ("env" in vendor.pr) {
452
+ if ("any" in vendor.pr) {
453
+ return vendor.pr.any.some(function(key) {
454
+ return env[vendor.pr.env] === key;
455
+ });
456
+ } else {
457
+ return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
458
+ }
459
+ } else if ("any" in vendor.pr) {
460
+ return vendor.pr.any.some(function(key) {
461
+ return !!env[key];
462
+ });
463
+ } else {
464
+ return checkEnv(vendor.pr);
465
+ }
466
+ default:
467
+ return null;
468
+ }
469
+ }
470
+ }
471
+ });
472
+
473
+ // src/commands/login/index.ts
474
+ var import_chalk = __toESM(require_source(), 1);
475
+
476
+ // src/util/telemetry/commands/login/index.ts
477
+ var LoginTelemetryClient = class extends TelemetryClient {
478
+ /**
479
+ * Tracks the state of the login process.
480
+ * - `started` when the user initiates the login process.
481
+ * - `canceled` when the user cancels the login process.
482
+ * - `error` when the user encounters an error during the login process.
483
+ * - `success` when the user successfully logs in.
484
+ */
485
+ trackState(...args) {
486
+ this.trackLoginState(...args);
487
+ }
488
+ };
489
+
490
+ // src/commands/login/index.ts
491
+ async function login2(client, options) {
492
+ let parsedArgs = null;
493
+ const flagsSpecification = getFlagsSpecification(loginCommand.options);
494
+ const telemetry = new LoginTelemetryClient({
495
+ opts: {
496
+ store: client.telemetryEventStore
497
+ }
498
+ });
499
+ try {
500
+ if (options.shouldParseArgs) {
501
+ parsedArgs = parseArguments(client.argv.slice(2), flagsSpecification);
502
+ }
503
+ } catch (error) {
504
+ printError(error);
505
+ return 1;
506
+ }
507
+ if (parsedArgs?.flags["--help"]) {
508
+ telemetry.trackCliFlagHelp("login");
509
+ output_manager_default.print(help(loginCommand, { columns: client.stderr.columns }));
510
+ return 0;
511
+ }
512
+ if (parsedArgs?.flags["--token"]) {
513
+ output_manager_default.error('`--token` may not be used with the "login" command');
514
+ return 2;
515
+ }
516
+ if (options.shouldParseArgs && parsedArgs) {
517
+ const obsoleteFlags = Object.keys(parsedArgs.flags).filter((flag) => {
518
+ const flagKey = flag.replace("--", "");
519
+ const option = loginCommand.options.find((o) => o.name === flagKey);
520
+ if (!option || typeof option === "number")
521
+ return;
522
+ return "deprecated" in option && option.deprecated;
523
+ });
524
+ if (obsoleteFlags.length) {
525
+ const flags = obsoleteFlags.map((f) => import_chalk.default.bold(f)).join(", ");
526
+ output_manager_default.warn(`The following flags are deprecated: ${flags}`);
527
+ }
528
+ const obsoleteArguments = parsedArgs.args.slice(1);
529
+ if (obsoleteArguments.length) {
530
+ const args = obsoleteArguments.map((a) => import_chalk.default.bold(a)).join(", ");
531
+ output_manager_default.warn(`The following arguments are deprecated: ${args}`);
532
+ }
533
+ if (obsoleteArguments.length || obsoleteFlags.length) {
534
+ output_manager_default.print(
535
+ `Read more in our ${output_manager_default.link("changelog", "https://vercel.com/changelog/new-vercel-cli-login-flow")}.
536
+ `
537
+ );
538
+ }
539
+ }
540
+ telemetry.trackState("started");
541
+ return await login(client, telemetry, options.shouldParseArgs);
542
+ }
543
+
544
+ // src/util/output/progress.ts
545
+ function progress(current, total, opts = {}) {
546
+ const { width = 20, complete = "=", incomplete = "-" } = opts;
547
+ if (total <= 0 || current < 0 || current > total) {
548
+ return null;
549
+ }
550
+ const unit = total / width;
551
+ const pos = Math.floor(current / unit);
552
+ return `${complete.repeat(pos)}${incomplete.repeat(width - pos)}`;
553
+ }
554
+
555
+ export {
556
+ progress,
557
+ require_ci_info,
558
+ login2 as login
559
+ };
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  writeProjectSettings
9
- } from "./chunk-5MERQE7H.js";
9
+ } from "./chunk-N5DK7EMY.js";
10
10
  import {
11
11
  autoInstallVercelPlugin
12
12
  } from "./chunk-HT2XWSAJ.js";
@@ -15,10 +15,10 @@ import {
15
15
  } from "./chunk-64IF634X.js";
16
16
  import {
17
17
  ensureLink
18
- } from "./chunk-KUZCVMVA.js";
18
+ } from "./chunk-PBECT5BN.js";
19
19
  import {
20
20
  pullCommand
21
- } from "./chunk-2SEBBSKD.js";
21
+ } from "./chunk-SHR6DYA5.js";
22
22
  import {
23
23
  help
24
24
  } from "./chunk-ZX2FSPWV.js";
@@ -28,7 +28,7 @@ import {
28
28
  envPullCommandLogic,
29
29
  humanizePath,
30
30
  parseTarget
31
- } from "./chunk-IBIZT5M4.js";
31
+ } from "./chunk-3R5JGMHV.js";
32
32
  import {
33
33
  TelemetryClient
34
34
  } from "./chunk-ECCWJHC6.js";
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  isJSONObject
9
- } from "./chunk-MAZ2BUBX.js";
9
+ } from "./chunk-MZ3L3SGZ.js";
10
10
  import {
11
11
  getProjectByNameOrId
12
- } from "./chunk-IBIZT5M4.js";
12
+ } from "./chunk-3R5JGMHV.js";
13
13
  import {
14
14
  AGENT_REASON,
15
15
  outputAgentError
@@ -12,7 +12,7 @@ import {
12
12
  PromptBackError,
13
13
  PromptCanceledError,
14
14
  getLocalPathConfig
15
- } from "./chunk-MGCBTAA7.js";
15
+ } from "./chunk-BGILSKZ5.js";
16
16
  import {
17
17
  DEFAULT_VERCEL_CONFIG_FILENAME,
18
18
  VERCEL_CONFIG_EXTENSIONS,
@@ -39,7 +39,7 @@ import {
39
39
  useKeypress,
40
40
  usePrefix,
41
41
  useState
42
- } from "./chunk-IBIZT5M4.js";
42
+ } from "./chunk-3R5JGMHV.js";
43
43
  import {
44
44
  require_load_json_file
45
45
  } from "./chunk-ECCWJHC6.js";
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-IBIZT5M4.js";
11
+ } from "./chunk-3R5JGMHV.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  setupAndLink
9
- } from "./chunk-6SXIT6Q3.js";
9
+ } from "./chunk-PVCJIMVY.js";
10
10
  import {
11
11
  detectExplicitScope,
12
12
  getLinkedProject,
13
13
  param,
14
14
  printProjectNotFoundError,
15
15
  resolveProjectCwd
16
- } from "./chunk-IBIZT5M4.js";
16
+ } from "./chunk-3R5JGMHV.js";
17
17
  import {
18
18
  buildCommandWithYes,
19
19
  outputActionRequired
@@ -41,7 +41,8 @@ async function ensureLink(commandName, client, cwd, opts = {}) {
41
41
  projectName: opts.projectName,
42
42
  projectNameIsExplicit: Boolean(opts.projectName && opts.failIfNotFound),
43
43
  scopeIsExplicit: detectExplicitScope(client),
44
- allowOwnerLookupFallback: opts.allowOwnerLookupFallback
44
+ allowOwnerLookupFallback: opts.allowOwnerLookupFallback,
45
+ skipRemoteLookup: opts.skipRemoteLookup
45
46
  });
46
47
  }
47
48
  opts.link = link;
@@ -18,7 +18,7 @@ import {
18
18
  require_lib,
19
19
  require_minimatch,
20
20
  require_pluralize
21
- } from "./chunk-IBIZT5M4.js";
21
+ } from "./chunk-3R5JGMHV.js";
22
22
  import {
23
23
  CantParseJSONFile,
24
24
  cmd,
@@ -8,7 +8,7 @@ import {
8
8
  getLocalPathConfig,
9
9
  isPromptBackError,
10
10
  isPromptCanceledError
11
- } from "./chunk-MGCBTAA7.js";
11
+ } from "./chunk-BGILSKZ5.js";
12
12
  import {
13
13
  table
14
14
  } from "./chunk-KT4XXKJK.js";
@@ -49,7 +49,7 @@ import {
49
49
  selectAndParseRemoteUrl,
50
50
  selectOrg,
51
51
  writeServicesConfig
52
- } from "./chunk-IBIZT5M4.js";
52
+ } from "./chunk-3R5JGMHV.js";
53
53
  import {
54
54
  printError
55
55
  } from "./chunk-KBEX5MYS.js";