vercel 48.9.2 → 48.10.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 (2) hide show
  1. package/dist/index.js +221 -91
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -860,7 +860,7 @@ var require_graceful_fs = __commonJS2({
860
860
  }
861
861
  function ReadStream$open() {
862
862
  var that = this;
863
- open7(that.path, that.flags, that.mode, function(err, fd) {
863
+ open8(that.path, that.flags, that.mode, function(err, fd) {
864
864
  if (err) {
865
865
  if (that.autoClose)
866
866
  that.destroy();
@@ -880,7 +880,7 @@ var require_graceful_fs = __commonJS2({
880
880
  }
881
881
  function WriteStream$open() {
882
882
  var that = this;
883
- open7(that.path, that.flags, that.mode, function(err, fd) {
883
+ open8(that.path, that.flags, that.mode, function(err, fd) {
884
884
  if (err) {
885
885
  that.destroy();
886
886
  that.emit("error", err);
@@ -897,8 +897,8 @@ var require_graceful_fs = __commonJS2({
897
897
  return new fs16.WriteStream(path11, options);
898
898
  }
899
899
  var fs$open = fs16.open;
900
- fs16.open = open7;
901
- function open7(path11, flags, mode, cb) {
900
+ fs16.open = open8;
901
+ function open8(path11, flags, mode, cb) {
902
902
  if (typeof mode === "function")
903
903
  cb = mode, mode = null;
904
904
  return go$open(path11, flags, mode, cb);
@@ -4221,18 +4221,18 @@ var require_source = __commonJS2({
4221
4221
  }
4222
4222
  }
4223
4223
  });
4224
- var createStyler = (open7, close2, parent) => {
4224
+ var createStyler = (open8, close2, parent) => {
4225
4225
  let openAll;
4226
4226
  let closeAll;
4227
4227
  if (parent === void 0) {
4228
- openAll = open7;
4228
+ openAll = open8;
4229
4229
  closeAll = close2;
4230
4230
  } else {
4231
- openAll = parent.openAll + open7;
4231
+ openAll = parent.openAll + open8;
4232
4232
  closeAll = close2 + parent.closeAll;
4233
4233
  }
4234
4234
  return {
4235
- open: open7,
4235
+ open: open8,
4236
4236
  close: close2,
4237
4237
  openAll,
4238
4238
  closeAll,
@@ -7322,9 +7322,9 @@ var require_chalk = __commonJS2({
7322
7322
  get() {
7323
7323
  const level = this.level;
7324
7324
  return function() {
7325
- const open7 = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
7325
+ const open8 = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
7326
7326
  const codes = {
7327
- open: open7,
7327
+ open: open8,
7328
7328
  close: ansiStyles.color.close,
7329
7329
  closeRe: ansiStyles.color.closeRe
7330
7330
  };
@@ -7343,9 +7343,9 @@ var require_chalk = __commonJS2({
7343
7343
  get() {
7344
7344
  const level = this.level;
7345
7345
  return function() {
7346
- const open7 = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
7346
+ const open8 = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
7347
7347
  const codes = {
7348
- open: open7,
7348
+ open: open8,
7349
7349
  close: ansiStyles.bgColor.close,
7350
7350
  closeRe: ansiStyles.bgColor.closeRe
7351
7351
  };
@@ -33799,9 +33799,31 @@ var init_command26 = __esm({
33799
33799
  }
33800
33800
  });
33801
33801
 
33802
+ // src/commands/open/command.ts
33803
+ var openCommand;
33804
+ var init_command27 = __esm({
33805
+ "src/commands/open/command.ts"() {
33806
+ "use strict";
33807
+ init_pkg_name();
33808
+ openCommand = {
33809
+ name: "open",
33810
+ aliases: [],
33811
+ description: "Opens the current project in the Vercel Dashboard.",
33812
+ arguments: [],
33813
+ options: [],
33814
+ examples: [
33815
+ {
33816
+ name: "Open the current project in the Vercel Dashboard",
33817
+ value: `${packageName} open`
33818
+ }
33819
+ ]
33820
+ };
33821
+ }
33822
+ });
33823
+
33802
33824
  // src/commands/project/command.ts
33803
33825
  var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
33804
- var init_command27 = __esm({
33826
+ var init_command28 = __esm({
33805
33827
  "src/commands/project/command.ts"() {
33806
33828
  "use strict";
33807
33829
  init_pkg_name();
@@ -33912,7 +33934,7 @@ var init_command27 = __esm({
33912
33934
 
33913
33935
  // src/commands/promote/command.ts
33914
33936
  var statusSubcommand2, promoteCommand;
33915
- var init_command28 = __esm({
33937
+ var init_command29 = __esm({
33916
33938
  "src/commands/promote/command.ts"() {
33917
33939
  "use strict";
33918
33940
  init_pkg_name();
@@ -33981,7 +34003,7 @@ var init_command28 = __esm({
33981
34003
 
33982
34004
  // src/commands/pull/command.ts
33983
34005
  var pullCommand;
33984
- var init_command29 = __esm({
34006
+ var init_command30 = __esm({
33985
34007
  "src/commands/pull/command.ts"() {
33986
34008
  "use strict";
33987
34009
  init_pkg_name();
@@ -34053,7 +34075,7 @@ var init_command29 = __esm({
34053
34075
 
34054
34076
  // src/commands/redeploy/command.ts
34055
34077
  var redeployCommand;
34056
- var init_command30 = __esm({
34078
+ var init_command31 = __esm({
34057
34079
  "src/commands/redeploy/command.ts"() {
34058
34080
  "use strict";
34059
34081
  init_pkg_name();
@@ -34104,7 +34126,7 @@ var init_command30 = __esm({
34104
34126
 
34105
34127
  // src/commands/remove/command.ts
34106
34128
  var removeCommand;
34107
- var init_command31 = __esm({
34129
+ var init_command32 = __esm({
34108
34130
  "src/commands/remove/command.ts"() {
34109
34131
  "use strict";
34110
34132
  init_pkg_name();
@@ -34154,7 +34176,7 @@ var init_command31 = __esm({
34154
34176
 
34155
34177
  // src/commands/rollback/command.ts
34156
34178
  var statusSubcommand3, rollbackCommand;
34157
- var init_command32 = __esm({
34179
+ var init_command33 = __esm({
34158
34180
  "src/commands/rollback/command.ts"() {
34159
34181
  "use strict";
34160
34182
  init_pkg_name();
@@ -34215,7 +34237,7 @@ var init_command32 = __esm({
34215
34237
 
34216
34238
  // src/commands/rolling-release/command.ts
34217
34239
  var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
34218
- var init_command33 = __esm({
34240
+ var init_command34 = __esm({
34219
34241
  "src/commands/rolling-release/command.ts"() {
34220
34242
  "use strict";
34221
34243
  init_arg_common();
@@ -34409,7 +34431,7 @@ var init_command33 = __esm({
34409
34431
 
34410
34432
  // src/commands/target/command.ts
34411
34433
  var listSubcommand8, targetCommand;
34412
- var init_command34 = __esm({
34434
+ var init_command35 = __esm({
34413
34435
  "src/commands/target/command.ts"() {
34414
34436
  "use strict";
34415
34437
  init_pkg_name();
@@ -34440,7 +34462,7 @@ var init_command34 = __esm({
34440
34462
 
34441
34463
  // src/commands/teams/command.ts
34442
34464
  var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
34443
- var init_command35 = __esm({
34465
+ var init_command36 = __esm({
34444
34466
  "src/commands/teams/command.ts"() {
34445
34467
  "use strict";
34446
34468
  init_pkg_name();
@@ -34531,7 +34553,7 @@ var init_command35 = __esm({
34531
34553
 
34532
34554
  // src/commands/telemetry/command.ts
34533
34555
  var statusSubcommand4, enableSubcommand2, flushSubcommand, disableSubcommand2, telemetryCommand;
34534
- var init_command36 = __esm({
34556
+ var init_command37 = __esm({
34535
34557
  "src/commands/telemetry/command.ts"() {
34536
34558
  "use strict";
34537
34559
  statusSubcommand4 = {
@@ -34586,7 +34608,7 @@ var init_command36 = __esm({
34586
34608
 
34587
34609
  // src/commands/whoami/command.ts
34588
34610
  var whoamiCommand;
34589
- var init_command37 = __esm({
34611
+ var init_command38 = __esm({
34590
34612
  "src/commands/whoami/command.ts"() {
34591
34613
  "use strict";
34592
34614
  init_pkg_name();
@@ -34608,7 +34630,7 @@ var init_command37 = __esm({
34608
34630
 
34609
34631
  // src/commands/blob/command.ts
34610
34632
  var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
34611
- var init_command38 = __esm({
34633
+ var init_command39 = __esm({
34612
34634
  "src/commands/blob/command.ts"() {
34613
34635
  "use strict";
34614
34636
  listSubcommand10 = {
@@ -34909,6 +34931,7 @@ var init_commands = __esm({
34909
34931
  init_command36();
34910
34932
  init_command37();
34911
34933
  init_command38();
34934
+ init_command39();
34912
34935
  init_output_manager();
34913
34936
  commandsStructs = [
34914
34937
  aliasCommand,
@@ -34937,6 +34960,7 @@ var init_commands = __esm({
34937
34960
  logsCommand,
34938
34961
  mcpCommand,
34939
34962
  microfrontendsCommand,
34963
+ openCommand,
34940
34964
  projectCommand,
34941
34965
  promoteCommand,
34942
34966
  pullCommand,
@@ -36377,18 +36401,18 @@ var require_source2 = __commonJS2({
36377
36401
  }
36378
36402
  }
36379
36403
  });
36380
- var createStyler = (open7, close2, parent) => {
36404
+ var createStyler = (open8, close2, parent) => {
36381
36405
  let openAll;
36382
36406
  let closeAll;
36383
36407
  if (parent === void 0) {
36384
- openAll = open7;
36408
+ openAll = open8;
36385
36409
  closeAll = close2;
36386
36410
  } else {
36387
- openAll = parent.openAll + open7;
36411
+ openAll = parent.openAll + open8;
36388
36412
  closeAll = close2 + parent.closeAll;
36389
36413
  }
36390
36414
  return {
36391
- open: open7,
36415
+ open: open8,
36392
36416
  close: close2,
36393
36417
  openAll,
36394
36418
  closeAll,
@@ -44436,7 +44460,7 @@ var require_open = __commonJS2({
44436
44460
  subprocess.unref();
44437
44461
  return subprocess;
44438
44462
  };
44439
- var open7 = (target, options) => {
44463
+ var open8 = (target, options) => {
44440
44464
  if (typeof target !== "string") {
44441
44465
  throw new TypeError("Expected a `target`");
44442
44466
  }
@@ -44505,9 +44529,9 @@ var require_open = __commonJS2({
44505
44529
  }, {
44506
44530
  wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
44507
44531
  }));
44508
- open7.apps = apps;
44509
- open7.openApp = openApp;
44510
- module2.exports = open7;
44532
+ open8.apps = apps;
44533
+ open8.openApp = openApp;
44534
+ module2.exports = open8;
44511
44535
  }
44512
44536
  });
44513
44537
 
@@ -49706,7 +49730,7 @@ var require_package = __commonJS2({
49706
49730
  "../client/package.json"(exports2, module2) {
49707
49731
  module2.exports = {
49708
49732
  name: "@vercel/client",
49709
- version: "17.2.3",
49733
+ version: "17.2.4",
49710
49734
  main: "dist/index.js",
49711
49735
  typings: "dist/index.d.ts",
49712
49736
  homepage: "https://vercel.com",
@@ -49748,7 +49772,7 @@ var require_package = __commonJS2({
49748
49772
  "@vercel/build-utils": "13.0.1",
49749
49773
  "@vercel/error-utils": "2.0.3",
49750
49774
  "@vercel/microfrontends": "1.2.2",
49751
- "@vercel/routing-utils": "5.2.1",
49775
+ "@vercel/routing-utils": "5.2.2",
49752
49776
  "async-retry": "1.2.3",
49753
49777
  "async-sema": "3.0.0",
49754
49778
  "fs-extra": "8.0.1",
@@ -52525,9 +52549,9 @@ var require_is_glob = __commonJS2({
52525
52549
  }
52526
52550
  }
52527
52551
  if (str[index] === "\\") {
52528
- var open7 = str[index + 1];
52552
+ var open8 = str[index + 1];
52529
52553
  index += 2;
52530
- var close2 = chars2[open7];
52554
+ var close2 = chars2[open8];
52531
52555
  if (close2) {
52532
52556
  var n = str.indexOf(close2, index);
52533
52557
  if (n !== -1) {
@@ -52553,9 +52577,9 @@ var require_is_glob = __commonJS2({
52553
52577
  return true;
52554
52578
  }
52555
52579
  if (str[index] === "\\") {
52556
- var open7 = str[index + 1];
52580
+ var open8 = str[index + 1];
52557
52581
  index += 2;
52558
- var close2 = chars2[open7];
52582
+ var close2 = chars2[open8];
52559
52583
  if (close2) {
52560
52584
  var n = str.indexOf(close2, index);
52561
52585
  if (n !== -1) {
@@ -53543,7 +53567,7 @@ var require_parse2 = __commonJS2({
53543
53567
  continue;
53544
53568
  }
53545
53569
  if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
53546
- const open7 = value;
53570
+ const open8 = value;
53547
53571
  let next;
53548
53572
  if (options.keepQuotes !== true) {
53549
53573
  value = "";
@@ -53553,7 +53577,7 @@ var require_parse2 = __commonJS2({
53553
53577
  value += next + advance();
53554
53578
  continue;
53555
53579
  }
53556
- if (next === open7) {
53580
+ if (next === open8) {
53557
53581
  if (options.keepQuotes === true)
53558
53582
  value += next;
53559
53583
  break;
@@ -53597,8 +53621,8 @@ var require_parse2 = __commonJS2({
53597
53621
  if (value === CHAR_COMMA2 && depth > 0) {
53598
53622
  if (block.ranges > 0) {
53599
53623
  block.ranges = 0;
53600
- const open7 = block.nodes.shift();
53601
- block.nodes = [open7, { type: "text", value: stringify2(block) }];
53624
+ const open8 = block.nodes.shift();
53625
+ block.nodes = [open8, { type: "text", value: stringify2(block) }];
53602
53626
  }
53603
53627
  push({ type: "comma", value });
53604
53628
  block.commas++;
@@ -54701,15 +54725,15 @@ var require_parse3 = __commonJS2({
54701
54725
  }
54702
54726
  if (value === "{" && opts.nobrace !== true) {
54703
54727
  increment("braces");
54704
- const open7 = {
54728
+ const open8 = {
54705
54729
  type: "brace",
54706
54730
  value,
54707
54731
  output: "(",
54708
54732
  outputIndex: state.output.length,
54709
54733
  tokensIndex: state.tokens.length
54710
54734
  };
54711
- braces.push(open7);
54712
- push(open7);
54735
+ braces.push(open8);
54736
+ push(open8);
54713
54737
  continue;
54714
54738
  }
54715
54739
  if (value === "}") {
@@ -101324,8 +101348,8 @@ var init_bisect = __esm({
101324
101348
  });
101325
101349
  }
101326
101350
  }
101327
- trackCliFlagOpen(open7) {
101328
- if (open7) {
101351
+ trackCliFlagOpen(open8) {
101352
+ if (open8) {
101329
101353
  this.trackCliFlag("open");
101330
101354
  }
101331
101355
  }
@@ -101780,7 +101804,7 @@ var init_list3 = __esm({
101780
101804
  init_get_command_flags();
101781
101805
  init_get_args();
101782
101806
  init_get_flags_specification();
101783
- init_command38();
101807
+ init_command39();
101784
101808
  init_pkg_name();
101785
101809
  init_list2();
101786
101810
  init_error2();
@@ -102017,7 +102041,7 @@ var init_put2 = __esm({
102017
102041
  blob2 = __toESM3(require("@vercel/blob"));
102018
102042
  init_get_args();
102019
102043
  init_get_flags_specification();
102020
- init_command38();
102044
+ init_command39();
102021
102045
  import_node_fs = require("fs");
102022
102046
  import_promises = require("fs/promises");
102023
102047
  import_error_utils10 = __toESM3(require_dist2());
@@ -102091,7 +102115,7 @@ var init_del2 = __esm({
102091
102115
  blob3 = __toESM3(require("@vercel/blob"));
102092
102116
  init_get_args();
102093
102117
  init_get_flags_specification();
102094
- init_command38();
102118
+ init_command39();
102095
102119
  init_del();
102096
102120
  init_error2();
102097
102121
  init_pkg_name();
@@ -102210,7 +102234,7 @@ var init_copy2 = __esm({
102210
102234
  blob4 = __toESM3(require("@vercel/blob"));
102211
102235
  init_get_args();
102212
102236
  init_get_flags_specification();
102213
- init_command38();
102237
+ init_command39();
102214
102238
  init_copy();
102215
102239
  init_pkg_name();
102216
102240
  }
@@ -117504,6 +117528,7 @@ var require_frameworks = __commonJS2({
117504
117528
  detectors: {
117505
117529
  some: [{ matchPackage: "nitropack" }, { matchPackage: "nitro" }]
117506
117530
  },
117531
+ supersedes: ["vite"],
117507
117532
  settings: {
117508
117533
  installCommand: {
117509
117534
  placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
@@ -121543,7 +121568,7 @@ var require_detect_file_system_api = __commonJS2({
121543
121568
  });
121544
121569
  module2.exports = __toCommonJS4(detect_file_system_api_exports);
121545
121570
  var import_semver4 = __toESM4(require_semver2());
121546
- var import__103 = require_dist20();
121571
+ var import__104 = require_dist20();
121547
121572
  async function detectFileSystemAPI2({
121548
121573
  files,
121549
121574
  projectSettings,
@@ -121609,7 +121634,7 @@ var require_detect_file_system_api = __commonJS2({
121609
121634
  };
121610
121635
  }
121611
121636
  const invalidBuilder = builders.find(({ use }) => {
121612
- const valid = (0, import__103.isOfficialRuntime)("go", use) || (0, import__103.isOfficialRuntime)("python", use) || (0, import__103.isOfficialRuntime)("ruby", use) || (0, import__103.isOfficialRuntime)("node", use) || (0, import__103.isOfficialRuntime)("next", use) || (0, import__103.isOfficialRuntime)("static", use) || (0, import__103.isOfficialRuntime)("static-build", use);
121637
+ const valid = (0, import__104.isOfficialRuntime)("go", use) || (0, import__104.isOfficialRuntime)("python", use) || (0, import__104.isOfficialRuntime)("ruby", use) || (0, import__104.isOfficialRuntime)("node", use) || (0, import__104.isOfficialRuntime)("next", use) || (0, import__104.isOfficialRuntime)("static", use) || (0, import__104.isOfficialRuntime)("static-build", use);
121613
121638
  return !valid;
121614
121639
  });
121615
121640
  if (invalidBuilder) {
@@ -121622,7 +121647,7 @@ var require_detect_file_system_api = __commonJS2({
121622
121647
  for (const lang of ["go", "python", "ruby"]) {
121623
121648
  for (const { use } of builders) {
121624
121649
  const plugin = "vercel-plugin-" + lang;
121625
- if ((0, import__103.isOfficialRuntime)(lang, use) && !deps[plugin]) {
121650
+ if ((0, import__104.isOfficialRuntime)(lang, use) && !deps[plugin]) {
121626
121651
  return {
121627
121652
  metadata,
121628
121653
  fsApiBuilder: null,
@@ -121679,7 +121704,7 @@ var require_detect_file_system_api = __commonJS2({
121679
121704
  }
121680
121705
  }
121681
121706
  const frontendBuilder = builders.find(
121682
- ({ use }) => (0, import__103.isOfficialRuntime)("next", use) || (0, import__103.isOfficialRuntime)("static", use) || (0, import__103.isOfficialRuntime)("static-build", use)
121707
+ ({ use }) => (0, import__104.isOfficialRuntime)("next", use) || (0, import__104.isOfficialRuntime)("static", use) || (0, import__104.isOfficialRuntime)("static-build", use)
121683
121708
  );
121684
121709
  const config2 = frontendBuilder?.config || {};
121685
121710
  const withTag = tag ? `@${tag}` : "";
@@ -129285,6 +129310,20 @@ var init_repo = __esm({
129285
129310
  });
129286
129311
 
129287
129312
  // src/util/projects/link.ts
129313
+ var link_exports = {};
129314
+ __export3(link_exports, {
129315
+ VERCEL_DIR: () => VERCEL_DIR2,
129316
+ VERCEL_DIR_FALLBACK: () => VERCEL_DIR_FALLBACK,
129317
+ VERCEL_DIR_PROJECT: () => VERCEL_DIR_PROJECT,
129318
+ VERCEL_DIR_README: () => VERCEL_DIR_README,
129319
+ VERCEL_DIR_REPO: () => VERCEL_DIR_REPO,
129320
+ getLinkFromDir: () => getLinkFromDir,
129321
+ getLinkedProject: () => getLinkedProject,
129322
+ getProjectLink: () => getProjectLink,
129323
+ getVercelDirectory: () => getVercelDirectory,
129324
+ linkFolderToProject: () => linkFolderToProject,
129325
+ writeReadme: () => writeReadme
129326
+ });
129288
129327
  function getVercelDirectory(cwd) {
129289
129328
  const possibleDirs = [(0, import_path15.join)(cwd, VERCEL_DIR2), (0, import_path15.join)(cwd, VERCEL_DIR_FALLBACK)];
129290
129329
  const existingDirs = possibleDirs.filter((d) => isDirectory(d));
@@ -129684,7 +129723,7 @@ var init_store_add2 = __esm({
129684
129723
  init_pkg_name();
129685
129724
  init_get_flags_specification();
129686
129725
  init_get_args();
129687
- init_command38();
129726
+ init_command39();
129688
129727
  init_store_add();
129689
129728
  init_error2();
129690
129729
  }
@@ -129760,7 +129799,7 @@ var init_store_remove = __esm({
129760
129799
  init_error2();
129761
129800
  init_output_manager();
129762
129801
  init_get_flags_specification();
129763
- init_command38();
129802
+ init_command39();
129764
129803
  init_get_args();
129765
129804
  init_link2();
129766
129805
  }
@@ -132184,7 +132223,7 @@ var init_store_get2 = __esm({
132184
132223
  init_get_args();
132185
132224
  init_get_flags_specification();
132186
132225
  init_link2();
132187
- init_command38();
132226
+ init_command39();
132188
132227
  import_date_fns = __toESM3(require_date_fns());
132189
132228
  import_chalk43 = __toESM3(require_source());
132190
132229
  init_store_get();
@@ -132263,7 +132302,7 @@ var init_store2 = __esm({
132263
132302
  init_get_invalid_subcommand();
132264
132303
  init_get_subcommand();
132265
132304
  init_help();
132266
- init_command38();
132305
+ init_command39();
132267
132306
  init_get_flags_specification();
132268
132307
  init_output_manager();
132269
132308
  init_commands();
@@ -132421,7 +132460,7 @@ var init_token = __esm({
132421
132460
  import_node_path2 = require("path");
132422
132461
  init_diff_env_files();
132423
132462
  init_get_flags_specification();
132424
- init_command38();
132463
+ init_command39();
132425
132464
  init_get_args();
132426
132465
  init_pkg_name();
132427
132466
  init_cmd();
@@ -132539,7 +132578,7 @@ var init_blob2 = __esm({
132539
132578
  init_get_subcommand();
132540
132579
  init_help();
132541
132580
  init_list3();
132542
- init_command38();
132581
+ init_command39();
132543
132582
  init_get_flags_specification();
132544
132583
  init_output_manager();
132545
132584
  init_commands();
@@ -132759,8 +132798,8 @@ var require_dist21 = __commonJS2({
132759
132798
  result.push(path11);
132760
132799
  path11 = "";
132761
132800
  }
132762
- var open7 = tryConsume("OPEN");
132763
- if (open7) {
132801
+ var open8 = tryConsume("OPEN");
132802
+ if (open8) {
132764
132803
  var prefix = consumeText();
132765
132804
  var name_1 = tryConsume("NAME") || "";
132766
132805
  var pattern_1 = tryConsume("PATTERN") || "";
@@ -133147,8 +133186,8 @@ var require_dist22 = __commonJS2({
133147
133186
  result.push(path11);
133148
133187
  path11 = "";
133149
133188
  }
133150
- var open7 = tryConsume("OPEN");
133151
- if (open7) {
133189
+ var open8 = tryConsume("OPEN");
133190
+ if (open8) {
133152
133191
  var prefix = consumeText();
133153
133192
  var name_1 = tryConsume("NAME") || "";
133154
133193
  var pattern_1 = tryConsume("PATTERN") || "";
@@ -134348,7 +134387,7 @@ var require_schemas = __commonJS2({
134348
134387
  patternProperties: {
134349
134388
  "^.{1,256}$": {
134350
134389
  type: "string",
134351
- maxLength: 4096
134390
+ maxLength: 32768
134352
134391
  }
134353
134392
  }
134354
134393
  },
@@ -134545,7 +134584,7 @@ var require_schemas = __commonJS2({
134545
134584
  },
134546
134585
  value: {
134547
134586
  type: "string",
134548
- maxLength: 4096
134587
+ maxLength: 32768
134549
134588
  }
134550
134589
  }
134551
134590
  }
@@ -144987,7 +145026,7 @@ var require_yauzl = __commonJS2({
144987
145026
  var Transform = require("stream").Transform;
144988
145027
  var PassThrough = require("stream").PassThrough;
144989
145028
  var Writable = require("stream").Writable;
144990
- exports2.open = open7;
145029
+ exports2.open = open8;
144991
145030
  exports2.fromFd = fromFd;
144992
145031
  exports2.fromBuffer = fromBuffer;
144993
145032
  exports2.fromRandomAccessReader = fromRandomAccessReader;
@@ -144996,7 +145035,7 @@ var require_yauzl = __commonJS2({
144996
145035
  exports2.ZipFile = ZipFile;
144997
145036
  exports2.Entry = Entry;
144998
145037
  exports2.RandomAccessReader = RandomAccessReader;
144999
- function open7(path11, options, callback) {
145038
+ function open8(path11, options, callback) {
145000
145039
  if (typeof options === "function") {
145001
145040
  callback = options;
145002
145041
  options = null;
@@ -148340,7 +148379,7 @@ var init_pull4 = __esm({
148340
148379
  init_ensure_link();
148341
148380
  init_humanize_path();
148342
148381
  init_help();
148343
- init_command29();
148382
+ init_command30();
148344
148383
  init_parse_target();
148345
148384
  init_get_flags_specification();
148346
148385
  init_error2();
@@ -181809,8 +181848,8 @@ var init_link3 = __esm({
181809
181848
  });
181810
181849
 
181811
181850
  // src/commands/link/index.ts
181812
- var link_exports = {};
181813
- __export3(link_exports, {
181851
+ var link_exports2 = {};
181852
+ __export3(link_exports2, {
181814
181853
  default: () => link3
181815
181854
  });
181816
181855
  async function link3(client2) {
@@ -183212,6 +183251,86 @@ var init_microfrontends2 = __esm({
183212
183251
  }
183213
183252
  });
183214
183253
 
183254
+ // src/util/telemetry/commands/open/index.ts
183255
+ var OpenTelemetryClient;
183256
+ var init_open2 = __esm({
183257
+ "src/util/telemetry/commands/open/index.ts"() {
183258
+ "use strict";
183259
+ init_telemetry();
183260
+ OpenTelemetryClient = class extends TelemetryClient {
183261
+ trackCliCommandOpen(value) {
183262
+ this.trackCliCommand({
183263
+ command: "open",
183264
+ value
183265
+ });
183266
+ }
183267
+ };
183268
+ }
183269
+ });
183270
+
183271
+ // src/commands/open/index.ts
183272
+ var open_exports = {};
183273
+ __export3(open_exports, {
183274
+ default: () => openCommandHandler
183275
+ });
183276
+ async function openCommandHandler(client2) {
183277
+ let parsedArgs = null;
183278
+ const flagsSpecification = getFlagsSpecification(openCommand.options);
183279
+ const telemetry2 = new OpenTelemetryClient({
183280
+ opts: {
183281
+ store: client2.telemetryEventStore
183282
+ }
183283
+ });
183284
+ try {
183285
+ parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
183286
+ } catch (error3) {
183287
+ printError(error3);
183288
+ return 1;
183289
+ }
183290
+ if (parsedArgs.flags["--help"]) {
183291
+ telemetry2.trackCliFlagHelp("open");
183292
+ output_manager_default.print(help(openCommand, { columns: client2.stderr.columns }));
183293
+ return 0;
183294
+ }
183295
+ const { getLinkedProject: getLinkedProject2 } = await Promise.resolve().then(() => (init_link2(), link_exports));
183296
+ const linkCheck = await getLinkedProject2(client2, client2.cwd);
183297
+ if (linkCheck.status !== "linked" || !linkCheck.org || !linkCheck.project) {
183298
+ output_manager_default.error("This command requires a linked project. Please run:");
183299
+ output_manager_default.print(` vercel link
183300
+ `);
183301
+ return 1;
183302
+ }
183303
+ const link4 = await ensureLink("open", client2, client2.cwd);
183304
+ if (typeof link4 === "number") {
183305
+ return link4;
183306
+ }
183307
+ if (link4.status !== "linked" || !link4.org || !link4.project) {
183308
+ output_manager_default.error("This command requires a linked project. Please run:");
183309
+ output_manager_default.print(" vercel link\n");
183310
+ return 1;
183311
+ }
183312
+ const { org, project } = link4;
183313
+ const projectUrl = `https://vercel.com/${org.slug}/${project.name}`;
183314
+ output_manager_default.log(`Opening ${projectUrl} in your browser...`);
183315
+ await (0, import_open6.default)(projectUrl);
183316
+ return 0;
183317
+ }
183318
+ var import_open6;
183319
+ var init_open3 = __esm({
183320
+ "src/commands/open/index.ts"() {
183321
+ "use strict";
183322
+ import_open6 = __toESM3(require_open());
183323
+ init_help();
183324
+ init_command27();
183325
+ init_get_args();
183326
+ init_get_flags_specification();
183327
+ init_error2();
183328
+ init_output_manager();
183329
+ init_ensure_link();
183330
+ init_open2();
183331
+ }
183332
+ });
183333
+
183215
183334
  // src/util/telemetry/commands/project/add.ts
183216
183335
  var ProjectAddTelemetryClient;
183217
183336
  var init_add11 = __esm({
@@ -183299,7 +183418,7 @@ var init_add12 = __esm({
183299
183418
  init_create_project();
183300
183419
  init_output_manager();
183301
183420
  init_add11();
183302
- init_command27();
183421
+ init_command28();
183303
183422
  init_get_args();
183304
183423
  init_get_flags_specification();
183305
183424
  init_error2();
@@ -183456,7 +183575,7 @@ var init_inspect6 = __esm({
183456
183575
  init_pkg_name();
183457
183576
  init_inspect5();
183458
183577
  init_output_manager();
183459
- init_command27();
183578
+ init_command28();
183460
183579
  init_get_args();
183461
183580
  init_get_flags_specification();
183462
183581
  init_error2();
@@ -183647,7 +183766,7 @@ var init_list10 = __esm({
183647
183766
  init_pkg_name();
183648
183767
  init_list9();
183649
183768
  init_output_manager();
183650
- init_command27();
183769
+ init_command28();
183651
183770
  init_get_args();
183652
183771
  init_get_flags_specification();
183653
183772
  init_error2();
@@ -183764,7 +183883,7 @@ var init_rm10 = __esm({
183764
183883
  init_get_args();
183765
183884
  init_get_flags_specification();
183766
183885
  init_error2();
183767
- init_command27();
183886
+ init_command28();
183768
183887
  e = encodeURIComponent;
183769
183888
  }
183770
183889
  });
@@ -183891,7 +184010,7 @@ var init_project2 = __esm({
183891
184010
  init_inspect6();
183892
184011
  init_list10();
183893
184012
  init_rm10();
183894
- init_command27();
184013
+ init_command28();
183895
184014
  init_get_flags_specification();
183896
184015
  init_project();
183897
184016
  init_output_manager();
@@ -184354,7 +184473,7 @@ var init_promote2 = __esm({
184354
184473
  import_error_utils32 = __toESM3(require_dist2());
184355
184474
  init_request_promote();
184356
184475
  init_status2();
184357
- init_command28();
184476
+ init_command29();
184358
184477
  init_help();
184359
184478
  init_get_flags_specification();
184360
184479
  init_promote();
@@ -184748,7 +184867,7 @@ var init_redeploy2 = __esm({
184748
184867
  init_stamp();
184749
184868
  init_ua();
184750
184869
  init_help();
184751
- init_command30();
184870
+ init_command31();
184752
184871
  init_get_flags_specification();
184753
184872
  init_output_manager();
184754
184873
  init_redeploy();
@@ -185135,7 +185254,7 @@ var init_remove6 = __esm({
185135
185254
  init_error2();
185136
185255
  init_now_error();
185137
185256
  init_help();
185138
- init_command31();
185257
+ init_command32();
185139
185258
  init_get_flags_specification();
185140
185259
  init_remove5();
185141
185260
  init_output_manager();
@@ -185408,7 +185527,7 @@ var init_rollback2 = __esm({
185408
185527
  init_request_rollback();
185409
185528
  init_status3();
185410
185529
  init_help();
185411
- init_command32();
185530
+ init_command33();
185412
185531
  init_get_flags_specification();
185413
185532
  init_rollback();
185414
185533
  init_output_manager();
@@ -185984,7 +186103,7 @@ var init_rolling_release2 = __esm({
185984
186103
  init_get_args();
185985
186104
  init_get_flags_specification();
185986
186105
  init_help();
185987
- init_command33();
186106
+ init_command34();
185988
186107
  init_request_rolling_release();
185989
186108
  init_start_rolling_release();
185990
186109
  init_configure_rolling_release();
@@ -186116,7 +186235,7 @@ var init_list11 = __esm({
186116
186235
  import_chalk127 = __toESM3(require_source());
186117
186236
  init_table();
186118
186237
  init_output_manager();
186119
- init_command34();
186238
+ init_command35();
186120
186239
  init_pkg_name();
186121
186240
  init_ensure_link();
186122
186241
  init_format_project();
@@ -186209,7 +186328,7 @@ var init_target2 = __esm({
186209
186328
  init_get_invalid_subcommand();
186210
186329
  init_help();
186211
186330
  init_list11();
186212
- init_command34();
186331
+ init_command35();
186213
186332
  init_get_flags_specification();
186214
186333
  init_error2();
186215
186334
  init_output_manager();
@@ -186356,7 +186475,7 @@ var init_list13 = __esm({
186356
186475
  init_get_args();
186357
186476
  init_error2();
186358
186477
  init_get_flags_specification();
186359
- init_command35();
186478
+ init_command36();
186360
186479
  init_output_manager();
186361
186480
  init_list12();
186362
186481
  }
@@ -186555,7 +186674,7 @@ var init_invite2 = __esm({
186555
186674
  init_get_args();
186556
186675
  init_get_flags_specification();
186557
186676
  init_error2();
186558
- init_command35();
186677
+ init_command36();
186559
186678
  validateEmail = (data) => email.test(data.trim()) || data.length === 0;
186560
186679
  domains = Array.from(
186561
186680
  /* @__PURE__ */ new Set([
@@ -186856,7 +186975,7 @@ var init_switch2 = __esm({
186856
186975
  init_files();
186857
186976
  init_output_manager();
186858
186977
  init_switch();
186859
- init_command35();
186978
+ init_command36();
186860
186979
  init_get_args();
186861
186980
  init_get_flags_specification();
186862
186981
  init_error2();
@@ -187008,7 +187127,7 @@ var init_teams2 = __esm({
187008
187127
  init_switch2();
187009
187128
  init_invite2();
187010
187129
  init_get_args();
187011
- init_command35();
187130
+ init_command36();
187012
187131
  init_help();
187013
187132
  init_get_flags_specification();
187014
187133
  init_error2();
@@ -187249,7 +187368,7 @@ var init_telemetry3 = __esm({
187249
187368
  init_enable2();
187250
187369
  init_disable2();
187251
187370
  init_flush();
187252
- init_command36();
187371
+ init_command37();
187253
187372
  init_get_flags_specification();
187254
187373
  init_telemetry2();
187255
187374
  import_chalk133 = __toESM3(require_source());
@@ -187312,7 +187431,7 @@ var init_whoami2 = __esm({
187312
187431
  "src/commands/whoami/index.ts"() {
187313
187432
  "use strict";
187314
187433
  init_help();
187315
- init_command37();
187434
+ init_command38();
187316
187435
  init_get_scope();
187317
187436
  init_get_args();
187318
187437
  init_get_flags_specification();
@@ -187891,6 +188010,12 @@ var RootTelemetryClient = class extends TelemetryClient {
187891
188010
  value: actual
187892
188011
  });
187893
188012
  }
188013
+ trackCliCommandOpen(actual) {
188014
+ this.trackCliCommand({
188015
+ command: "open",
188016
+ value: actual
188017
+ });
188018
+ }
187894
188019
  trackCliCommandProject(actual) {
187895
188020
  this.trackCliCommand({
187896
188021
  command: "project",
@@ -188069,6 +188194,7 @@ var help2 = () => `
188069
188194
  ls | list [app] Lists deployments
188070
188195
  login [email] Logs into your account or creates a new one
188071
188196
  logout Logs out of your account
188197
+ open Opens the current project in the Vercel Dashboard
188072
188198
  promote [url|id] Promote an existing deployment to current
188073
188199
  pull [path] Pull your Project Settings from the cloud
188074
188200
  redeploy [url|id] Rebuild and deploy a previous deployment.
@@ -188690,7 +188816,7 @@ var main17 = async () => {
188690
188816
  break;
188691
188817
  case "link":
188692
188818
  telemetry2.trackCliCommandLink(userSuppliedSubCommand);
188693
- func = (init_link4(), __toCommonJS3(link_exports)).default;
188819
+ func = (init_link4(), __toCommonJS3(link_exports2)).default;
188694
188820
  break;
188695
188821
  case "list":
188696
188822
  telemetry2.trackCliCommandList(userSuppliedSubCommand);
@@ -188715,6 +188841,10 @@ var main17 = async () => {
188715
188841
  telemetry2.trackCliCommandMicrofrontends(userSuppliedSubCommand);
188716
188842
  func = (init_microfrontends2(), __toCommonJS3(microfrontends_exports)).default;
188717
188843
  break;
188844
+ case "open":
188845
+ telemetry2.trackCliCommandOpen(userSuppliedSubCommand);
188846
+ func = (init_open3(), __toCommonJS3(open_exports)).default;
188847
+ break;
188718
188848
  case "project":
188719
188849
  telemetry2.trackCliCommandProject(userSuppliedSubCommand);
188720
188850
  func = (init_project2(), __toCommonJS3(project_exports)).default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "48.9.2",
3
+ "version": "48.10.0",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -86,11 +86,11 @@
86
86
  "@types/which": "3.0.0",
87
87
  "@types/write-json-file": "2.2.1",
88
88
  "@types/yauzl-promise": "2.1.0",
89
- "@vercel/client": "17.2.3",
89
+ "@vercel/client": "17.2.4",
90
90
  "@vercel/error-utils": "2.0.3",
91
- "@vercel/frameworks": "3.15.2",
92
- "@vercel/fs-detectors": "5.7.5",
93
- "@vercel/routing-utils": "5.2.1",
91
+ "@vercel/frameworks": "3.15.3",
92
+ "@vercel/fs-detectors": "5.7.6",
93
+ "@vercel/routing-utils": "5.2.2",
94
94
  "@vitest/expect": "2.1.3",
95
95
  "ajv": "6.12.3",
96
96
  "alpha-sort": "2.0.1",
@@ -171,8 +171,8 @@
171
171
  "xdg-app-paths": "5.1.0",
172
172
  "yauzl-promise": "2.1.3",
173
173
  "@vercel-internals/constants": "1.0.4",
174
- "@vercel-internals/get-package-json": "1.0.0",
175
- "@vercel-internals/types": "3.0.6"
174
+ "@vercel-internals/types": "3.0.6",
175
+ "@vercel-internals/get-package-json": "1.0.0"
176
176
  },
177
177
  "scripts": {
178
178
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",