vercel 46.0.4 → 46.1.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 +249 -146
  2. package/package.json +12 -11
package/dist/index.js CHANGED
@@ -95014,74 +95014,6 @@ var init_update_current_team_after_login = __esm({
95014
95014
  }
95015
95015
  });
95016
95016
 
95017
- // ../detect-agent/dist/index.js
95018
- var require_dist20 = __commonJS2({
95019
- "../detect-agent/dist/index.js"(exports2, module2) {
95020
- "use strict";
95021
- var __defProp4 = Object.defineProperty;
95022
- var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
95023
- var __getOwnPropNames4 = Object.getOwnPropertyNames;
95024
- var __hasOwnProp4 = Object.prototype.hasOwnProperty;
95025
- var __export4 = (target, all) => {
95026
- for (var name in all)
95027
- __defProp4(target, name, { get: all[name], enumerable: true });
95028
- };
95029
- var __copyProps4 = (to, from, except, desc) => {
95030
- if (from && typeof from === "object" || typeof from === "function") {
95031
- for (let key of __getOwnPropNames4(from))
95032
- if (!__hasOwnProp4.call(to, key) && key !== except)
95033
- __defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
95034
- }
95035
- return to;
95036
- };
95037
- var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
95038
- var src_exports2 = {};
95039
- __export4(src_exports2, {
95040
- determineAgent: () => determineAgent2
95041
- });
95042
- module2.exports = __toCommonJS4(src_exports2);
95043
- var import_promises4 = require("fs/promises");
95044
- var import_node_fs3 = require("fs");
95045
- var devinLocalPath = "/opt/.devin";
95046
- var CURSOR = "cursor";
95047
- var CURSOR_CLI = "cursor-cli";
95048
- var CLAUDE = "claude";
95049
- var DEVIN = "devin";
95050
- var REPLIT = "replit";
95051
- var GEMINI = "gemini";
95052
- var CODEX = "codex";
95053
- async function determineAgent2() {
95054
- if (process.env.AI_AGENT) {
95055
- return process.env.AI_AGENT;
95056
- }
95057
- if (process.env.CURSOR_TRACE_ID) {
95058
- return CURSOR;
95059
- }
95060
- if (process.env.CURSOR_AGENT) {
95061
- return CURSOR_CLI;
95062
- }
95063
- if (process.env.GEMINI_CLI) {
95064
- return GEMINI;
95065
- }
95066
- if (process.env.CODEX_SANDBOX) {
95067
- return CODEX;
95068
- }
95069
- if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) {
95070
- return CLAUDE;
95071
- }
95072
- if (process.env.REPL_ID) {
95073
- return REPLIT;
95074
- }
95075
- try {
95076
- await (0, import_promises4.access)(devinLocalPath, import_node_fs3.constants.F_OK);
95077
- return DEVIN;
95078
- } catch (error3) {
95079
- return false;
95080
- }
95081
- }
95082
- }
95083
- });
95084
-
95085
95017
  // src/util/get-subcommand.ts
95086
95018
  function getSubcommand(cliArgs, config2) {
95087
95019
  const [subcommand, ...rest] = cliArgs;
@@ -116571,6 +116503,10 @@ var require_frameworks = __commonJS2({
116571
116503
  path: "app.ts",
116572
116504
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116573
116505
  },
116506
+ {
116507
+ path: "app.cts",
116508
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116509
+ },
116574
116510
  {
116575
116511
  path: "index.cjs",
116576
116512
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
@@ -116591,6 +116527,10 @@ var require_frameworks = __commonJS2({
116591
116527
  path: "index.ts",
116592
116528
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116593
116529
  },
116530
+ {
116531
+ path: "index.cts",
116532
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116533
+ },
116594
116534
  {
116595
116535
  path: "server.cjs",
116596
116536
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
@@ -116611,6 +116551,10 @@ var require_frameworks = __commonJS2({
116611
116551
  path: "server.ts",
116612
116552
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116613
116553
  },
116554
+ {
116555
+ path: "server.cts",
116556
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116557
+ },
116614
116558
  {
116615
116559
  path: "src/index.cjs",
116616
116560
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
@@ -116630,6 +116574,58 @@ var require_frameworks = __commonJS2({
116630
116574
  {
116631
116575
  path: "src/index.ts",
116632
116576
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116577
+ },
116578
+ {
116579
+ path: "src/index.cts",
116580
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116581
+ },
116582
+ {
116583
+ path: "src/app.cjs",
116584
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116585
+ },
116586
+ {
116587
+ path: "src/app.js",
116588
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116589
+ },
116590
+ {
116591
+ path: "src/app.mjs",
116592
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116593
+ },
116594
+ {
116595
+ path: "src/app.mts",
116596
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116597
+ },
116598
+ {
116599
+ path: "src/app.ts",
116600
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116601
+ },
116602
+ {
116603
+ path: "src/app.cts",
116604
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116605
+ },
116606
+ {
116607
+ path: "src/server.cjs",
116608
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116609
+ },
116610
+ {
116611
+ path: "src/server.js",
116612
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116613
+ },
116614
+ {
116615
+ path: "src/server.mjs",
116616
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116617
+ },
116618
+ {
116619
+ path: "src/server.mts",
116620
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116621
+ },
116622
+ {
116623
+ path: "src/server.ts",
116624
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116625
+ },
116626
+ {
116627
+ path: "src/server.cts",
116628
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']hono["']\\s*(?:\\))?`
116633
116629
  }
116634
116630
  ]
116635
116631
  },
@@ -116693,6 +116689,10 @@ var require_frameworks = __commonJS2({
116693
116689
  path: "app.ts",
116694
116690
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116695
116691
  },
116692
+ {
116693
+ path: "app.cts",
116694
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116695
+ },
116696
116696
  {
116697
116697
  path: "index.cjs",
116698
116698
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
@@ -116713,6 +116713,10 @@ var require_frameworks = __commonJS2({
116713
116713
  path: "index.ts",
116714
116714
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116715
116715
  },
116716
+ {
116717
+ path: "index.cts",
116718
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116719
+ },
116716
116720
  {
116717
116721
  path: "server.cjs",
116718
116722
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
@@ -116733,6 +116737,10 @@ var require_frameworks = __commonJS2({
116733
116737
  path: "server.ts",
116734
116738
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116735
116739
  },
116740
+ {
116741
+ path: "server.cts",
116742
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116743
+ },
116736
116744
  {
116737
116745
  path: "src/index.cjs",
116738
116746
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
@@ -116752,6 +116760,58 @@ var require_frameworks = __commonJS2({
116752
116760
  {
116753
116761
  path: "src/index.ts",
116754
116762
  matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116763
+ },
116764
+ {
116765
+ path: "src/index.cts",
116766
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116767
+ },
116768
+ {
116769
+ path: "src/app.cjs",
116770
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116771
+ },
116772
+ {
116773
+ path: "src/app.js",
116774
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116775
+ },
116776
+ {
116777
+ path: "src/app.mjs",
116778
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116779
+ },
116780
+ {
116781
+ path: "src/app.mts",
116782
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116783
+ },
116784
+ {
116785
+ path: "src/app.ts",
116786
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116787
+ },
116788
+ {
116789
+ path: "src/app.cts",
116790
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116791
+ },
116792
+ {
116793
+ path: "src/server.js",
116794
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116795
+ },
116796
+ {
116797
+ path: "src/server.cjs",
116798
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116799
+ },
116800
+ {
116801
+ path: "src/server.mjs",
116802
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116803
+ },
116804
+ {
116805
+ path: "src/server.ts",
116806
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116807
+ },
116808
+ {
116809
+ path: "src/server.mts",
116810
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116811
+ },
116812
+ {
116813
+ path: "src/server.cts",
116814
+ matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']express["']\\s*(?:\\))?`
116755
116815
  }
116756
116816
  ]
116757
116817
  },
@@ -119600,7 +119660,7 @@ var require_detect_file_system_api = __commonJS2({
119600
119660
  });
119601
119661
  module2.exports = __toCommonJS4(detect_file_system_api_exports);
119602
119662
  var import_semver4 = __toESM4(require_semver2());
119603
- var import__98 = require_dist21();
119663
+ var import__98 = require_dist20();
119604
119664
  async function detectFileSystemAPI2({
119605
119665
  files,
119606
119666
  projectSettings,
@@ -126553,7 +126613,7 @@ var require_detect_instrumentation = __commonJS2({
126553
126613
  });
126554
126614
 
126555
126615
  // ../fs-detectors/dist/index.js
126556
- var require_dist21 = __commonJS2({
126616
+ var require_dist20 = __commonJS2({
126557
126617
  "../fs-detectors/dist/index.js"(exports2, module2) {
126558
126618
  "use strict";
126559
126619
  var __defProp4 = Object.defineProperty;
@@ -126656,7 +126716,7 @@ var init_detect_projects = __esm({
126656
126716
  "use strict";
126657
126717
  import_path13 = require("path");
126658
126718
  import_frameworks = __toESM3(require_frameworks());
126659
- import_fs_detectors = __toESM3(require_dist21());
126719
+ import_fs_detectors = __toESM3(require_dist20());
126660
126720
  }
126661
126721
  });
126662
126722
 
@@ -130442,7 +130502,7 @@ var require_main3 = __commonJS2({
130442
130502
  });
130443
130503
 
130444
130504
  // ../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js
130445
- var require_dist22 = __commonJS2({
130505
+ var require_dist21 = __commonJS2({
130446
130506
  "../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
130447
130507
  "use strict";
130448
130508
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -130812,7 +130872,7 @@ var require_dist22 = __commonJS2({
130812
130872
  });
130813
130873
 
130814
130874
  // ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
130815
- var require_dist23 = __commonJS2({
130875
+ var require_dist22 = __commonJS2({
130816
130876
  "../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
130817
130877
  "use strict";
130818
130878
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -131236,8 +131296,8 @@ var require_superstatic = __commonJS2({
131236
131296
  });
131237
131297
  module2.exports = __toCommonJS4(superstatic_exports);
131238
131298
  var import_url24 = require("url");
131239
- var import_path_to_regexp = require_dist22();
131240
- var import_path_to_regexp_updated = require_dist23();
131299
+ var import_path_to_regexp = require_dist21();
131300
+ var import_path_to_regexp_updated = require_dist22();
131241
131301
  function cloneKeys(keys) {
131242
131302
  if (typeof keys === "undefined") {
131243
131303
  return void 0;
@@ -131633,7 +131693,7 @@ var require_append = __commonJS2({
131633
131693
  appendRoutesToPhase: () => appendRoutesToPhase4
131634
131694
  });
131635
131695
  module2.exports = __toCommonJS4(append_exports);
131636
- var import_index = require_dist24();
131696
+ var import_index = require_dist23();
131637
131697
  function appendRoutesToPhase4({
131638
131698
  routes: prevRoutes,
131639
131699
  newRoutes,
@@ -131701,7 +131761,7 @@ var require_merge4 = __commonJS2({
131701
131761
  mergeRoutes: () => mergeRoutes3
131702
131762
  });
131703
131763
  module2.exports = __toCommonJS4(merge_exports);
131704
- var import_index = require_dist24();
131764
+ var import_index = require_dist23();
131705
131765
  function getBuilderRoutesMapping(builds) {
131706
131766
  const builderRoutes = {};
131707
131767
  for (const { entrypoint, routes: routes2, use } of builds) {
@@ -132420,7 +132480,7 @@ var require_types6 = __commonJS2({
132420
132480
  });
132421
132481
 
132422
132482
  // ../routing-utils/dist/index.js
132423
- var require_dist24 = __commonJS2({
132483
+ var require_dist23 = __commonJS2({
132424
132484
  "../routing-utils/dist/index.js"(exports2, module2) {
132425
132485
  "use strict";
132426
132486
  var __defProp4 = Object.defineProperty;
@@ -133971,7 +134031,7 @@ var init_import_builders = __esm({
133971
134031
  import_path17 = require("path");
133972
134032
  import_module2 = require("module");
133973
134033
  import_fs_extra10 = __toESM3(require_lib());
133974
- import_fs_detectors2 = __toESM3(require_dist21());
134034
+ import_fs_detectors2 = __toESM3(require_dist20());
133975
134035
  import_execa3 = __toESM3(require_execa());
133976
134036
  init_static_builder();
133977
134037
  init_link2();
@@ -134038,7 +134098,7 @@ var init_monorepo = __esm({
134038
134098
  "src/util/build/monorepo.ts"() {
134039
134099
  "use strict";
134040
134100
  import_path18 = require("path");
134041
- import_fs_detectors3 = __toESM3(require_dist21());
134101
+ import_fs_detectors3 = __toESM3(require_dist20());
134042
134102
  import_title3 = __toESM3(require_lib4());
134043
134103
  import_build_utils9 = require("@vercel/build-utils");
134044
134104
  init_output_manager();
@@ -144769,7 +144829,7 @@ var init_validate_config = __esm({
144769
144829
  "src/util/validate-config.ts"() {
144770
144830
  "use strict";
144771
144831
  import_ajv2 = __toESM3(require_ajv());
144772
- import_routing_utils = __toESM3(require_dist24());
144832
+ import_routing_utils = __toESM3(require_dist23());
144773
144833
  import_build_utils12 = require("@vercel/build-utils");
144774
144834
  import_client5 = __toESM3(require_dist7());
144775
144835
  imagesSchema = {
@@ -146430,7 +146490,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span) {
146430
146490
  throw new import_build_utils13.NowBuildError({
146431
146491
  code: "NODEJS_DISCONTINUED_VERSION",
146432
146492
  message: `The Runtime "${build2.use}" is using "${lambdaRuntime}", which is discontinued. Please upgrade your Runtime to a more recent version or consult the author for more details.`,
146433
- link: "https://github.com/vercel/vercel/blob/main/DEVELOPING_A_RUNTIME.md#lambdaruntime"
146493
+ link: "https://vercel.link/function-runtimes"
146434
146494
  });
146435
146495
  }
146436
146496
  }
@@ -146710,8 +146770,8 @@ var init_build2 = __esm({
146710
146770
  import_build_utils13 = require("@vercel/build-utils");
146711
146771
  import_client6 = __toESM3(require_dist7());
146712
146772
  import_frameworks5 = __toESM3(require_frameworks());
146713
- import_fs_detectors4 = __toESM3(require_dist21());
146714
- import_routing_utils2 = __toESM3(require_dist24());
146773
+ import_fs_detectors4 = __toESM3(require_dist20());
146774
+ import_routing_utils2 = __toESM3(require_dist23());
146715
146775
  init_output_manager();
146716
146776
  init_corepack();
146717
146777
  init_import_builders();
@@ -166283,7 +166343,7 @@ var require_src3 = __commonJS2({
166283
166343
  });
166284
166344
 
166285
166345
  // ../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js
166286
- var require_dist25 = __commonJS2({
166346
+ var require_dist24 = __commonJS2({
166287
166347
  "../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js"(exports2, module2) {
166288
166348
  "use strict";
166289
166349
  function noop() {
@@ -166460,7 +166520,7 @@ var init_path_helpers = __esm({
166460
166520
  });
166461
166521
 
166462
166522
  // ../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js
166463
- var require_dist26 = __commonJS2({
166523
+ var require_dist25 = __commonJS2({
166464
166524
  "../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js"(exports2, module2) {
166465
166525
  "use strict";
166466
166526
  var characterClasses = {
@@ -166795,9 +166855,9 @@ var init_router = __esm({
166795
166855
  "src/util/dev/router.ts"() {
166796
166856
  "use strict";
166797
166857
  import_url17 = __toESM3(require("url"));
166798
- import_pcre_to_regexp = __toESM3(require_dist26());
166858
+ import_pcre_to_regexp = __toESM3(require_dist25());
166799
166859
  init_is_url();
166800
- import_routing_utils3 = __toESM3(require_dist24());
166860
+ import_routing_utils3 = __toESM3(require_dist23());
166801
166861
  init_parse_query_string();
166802
166862
  }
166803
166863
  });
@@ -167290,14 +167350,14 @@ var init_builder = __esm({
167290
167350
  import_child_process3 = require("child_process");
167291
167351
  import_fun = require("@vercel/fun");
167292
167352
  import_build_utils16 = require("@vercel/build-utils");
167293
- import_fs_detectors5 = __toESM3(require_dist21());
167353
+ import_fs_detectors5 = __toESM3(require_dist20());
167294
167354
  import_pluralize6 = __toESM3(require_pluralize());
167295
167355
  import_minimatch3 = __toESM3(require_minimatch2());
167296
167356
  init_highlight();
167297
167357
  init_tree_kill();
167298
167358
  init_path_helpers();
167299
167359
  init_errors_ts();
167300
- import_routing_utils4 = __toESM3(require_dist24());
167360
+ import_routing_utils4 = __toESM3(require_dist23());
167301
167361
  init_get_update_command();
167302
167362
  init_pkg_name();
167303
167363
  init_import_builders();
@@ -167859,7 +167919,7 @@ var init_server = __esm({
167859
167919
  import_chokidar = require("chokidar");
167860
167920
  import_dotenv2 = __toESM3(require_main3());
167861
167921
  import_path35 = __toESM3(require("path"));
167862
- import_once = __toESM3(require_dist25());
167922
+ import_once = __toESM3(require_dist24());
167863
167923
  import_directory = __toESM3(require_directory());
167864
167924
  import_get_port = __toESM3(require_get_port());
167865
167925
  import_is_port_reachable = __toESM3(require_is_port_reachable());
@@ -167867,9 +167927,9 @@ var init_server = __esm({
167867
167927
  import_npm_package_arg2 = __toESM3(require_npa());
167868
167928
  import_json_parse_better_errors3 = __toESM3(require_json_parse_better_errors());
167869
167929
  import_client12 = __toESM3(require_dist7());
167870
- import_routing_utils5 = __toESM3(require_dist24());
167930
+ import_routing_utils5 = __toESM3(require_dist23());
167871
167931
  import_build_utils17 = require("@vercel/build-utils");
167872
- import_fs_detectors6 = __toESM3(require_dist21());
167932
+ import_fs_detectors6 = __toESM3(require_dist20());
167873
167933
  import_frameworks6 = __toESM3(require_frameworks());
167874
167934
  init_cmd();
167875
167935
  init_link();
@@ -179084,18 +179144,17 @@ async function mcp(client2) {
179084
179144
  if (clientName === "Claude Code") {
179085
179145
  const mcpUrl = isProjectSpecific ? (await getProjectSpecificUrl(client2))?.url : MCP_ENDPOINT;
179086
179146
  const mcpName = isProjectSpecific ? `vercel-${(await getProjectSpecificUrl(client2))?.projectName}` : "vercel";
179087
- output_manager_default.print(`\u{1F517} Adding Vercel MCP to Claude Code...
179088
- `);
179089
179147
  const result = safeExecSync(
179090
179148
  `claude mcp add --transport http ${mcpName} ${mcpUrl}`
179091
179149
  );
179092
179150
  if (typeof result === "object" && "error" in result) {
179093
179151
  if (result.stderr?.includes("already exists")) {
179094
179152
  summary.push("\u2705 Claude Code: Vercel MCP already configured");
179095
- output_manager_default.print("\u2139\uFE0F Vercel MCP is already configured in Claude Code\n");
179153
+ output_manager_default.print("\u2139\uFE0F Vercel MCP is already configured in Claude Code\n");
179154
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179096
179155
  } else {
179097
179156
  summary.push("\u274C Claude Code: Failed to add MCP server");
179098
- output_manager_default.print("\u{1F4A1} Manual commands:\n");
179157
+ output_manager_default.print("\u{1F4A1} Manual setup required:\n");
179099
179158
  output_manager_default.print(
179100
179159
  ` claude mcp add --transport http ${mcpName} ${mcpUrl}
179101
179160
  `
@@ -179103,6 +179162,7 @@ async function mcp(client2) {
179103
179162
  output_manager_default.print(
179104
179163
  " # Or use the /mcp command in Claude Code to authenticate\n"
179105
179164
  );
179165
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179106
179166
  }
179107
179167
  } else {
179108
179168
  summary.push("\u2705 Claude Code: Vercel MCP added successfully");
@@ -179110,12 +179170,12 @@ async function mcp(client2) {
179110
179170
  output_manager_default.print(
179111
179171
  "\u2139\uFE0F You may need to authenticate using the /mcp command in Claude Code\n"
179112
179172
  );
179173
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179113
179174
  }
179114
179175
  } else if (clientName === "Claude.ai and Claude for desktop") {
179115
179176
  output_manager_default.print(
179116
- "\u{1F517} Manual setup required for Claude.ai and Claude for desktop\n"
179177
+ "\u{1F4A1} Manual setup required for Claude.ai and Claude for desktop\n"
179117
179178
  );
179118
- output_manager_default.print("\u{1F4A1} Setup instructions:\n");
179119
179179
  output_manager_default.print(" 1. Open Settings in the sidebar\n");
179120
179180
  output_manager_default.print(
179121
179181
  " 2. Navigate to Connectors and select Add custom connector\n"
@@ -179134,11 +179194,51 @@ async function mcp(client2) {
179134
179194
  `);
179135
179195
  }
179136
179196
  output_manager_default.print(" 4. Complete the authentication flow\n");
179137
- summary.push("\u2139\uFE0F Claude.ai/Desktop: Manual setup required");
179197
+ summary.push("\u2139\uFE0F Claude.ai/Desktop: Manual setup required");
179198
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179138
179199
  } else if (clientName === "Cursor") {
179139
- output_manager_default.print("\u{1F517} Setting up Cursor MCP...\n");
179200
+ const cursorCheck = safeExecSync(
179201
+ process.platform === "darwin" ? "ls /Applications/Cursor.app" : process.platform === "win32" ? "where cursor" : "which cursor"
179202
+ );
179203
+ if (typeof cursorCheck === "object" && "error" in cursorCheck) {
179204
+ output_manager_default.print("\u26A0\uFE0F Cursor not detected. Please install Cursor first.\n");
179205
+ output_manager_default.print(" Download from: https://cursor.sh\n");
179206
+ output_manager_default.print("\n");
179207
+ summary.push("\u26A0\uFE0F Cursor: Not installed");
179208
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179209
+ continue;
179210
+ }
179140
179211
  const mcpUrl = isProjectSpecific ? (await getProjectSpecificUrl(client2))?.url : MCP_ENDPOINT;
179141
179212
  const serverName = isProjectSpecific ? `vercel-${(await getProjectSpecificUrl(client2))?.projectName}` : "vercel";
179213
+ const cursorConfigPath = process.platform === "darwin" ? `${process.env.HOME}/Library/Application Support/Cursor/User/settings.json` : process.platform === "win32" ? `${process.env.APPDATA}/Cursor/User/settings.json` : `${process.env.HOME}/.config/Cursor/User/settings.json`;
179214
+ const cursorMcpPath = process.platform === "darwin" ? `${process.env.HOME}/.cursor/mcp.json` : process.platform === "win32" ? `${process.env.APPDATA}/Cursor/mcp.json` : `${process.env.HOME}/.cursor/mcp.json`;
179215
+ let cursorAlreadyConfigured = false;
179216
+ try {
179217
+ const fs15 = require("fs");
179218
+ if (fs15.existsSync(cursorMcpPath)) {
179219
+ const configContent = fs15.readFileSync(cursorMcpPath, "utf8");
179220
+ const config3 = JSON.parse(configContent);
179221
+ const mcpServers = config3.mcpServers || {};
179222
+ cursorAlreadyConfigured = Object.values(mcpServers).some(
179223
+ (server) => server.url === mcpUrl || server.url === MCP_ENDPOINT
179224
+ );
179225
+ }
179226
+ if (!cursorAlreadyConfigured && fs15.existsSync(cursorConfigPath)) {
179227
+ const configContent = fs15.readFileSync(cursorConfigPath, "utf8");
179228
+ const config3 = JSON.parse(configContent);
179229
+ const mcpServers = config3["mcp.servers"] || {};
179230
+ cursorAlreadyConfigured = Object.values(mcpServers).some(
179231
+ (server) => server.url === mcpUrl || server.url === MCP_ENDPOINT
179232
+ );
179233
+ }
179234
+ } catch (error3) {
179235
+ }
179236
+ if (cursorAlreadyConfigured) {
179237
+ summary.push("\u2705 Cursor: Vercel MCP already configured");
179238
+ output_manager_default.print("\u2139\uFE0F Vercel MCP is already configured in Cursor\n");
179239
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179240
+ continue;
179241
+ }
179142
179242
  const config2 = {
179143
179243
  url: mcpUrl,
179144
179244
  name: serverName
@@ -179146,8 +179246,6 @@ async function mcp(client2) {
179146
179246
  const configJson = JSON.stringify(config2);
179147
179247
  const encodedConfig = Buffer.from(configJson).toString("base64");
179148
179248
  const oneClickUrl = `cursor://anysphere.cursor-deeplink/mcp/install?name=${serverName}&config=${encodedConfig}`;
179149
- output_manager_default.print(`\u{1F517} Generated Cursor deep link: ${oneClickUrl}
179150
- `);
179151
179249
  try {
179152
179250
  if (process.platform === "darwin") {
179153
179251
  (0, import_child_process4.execSync)(`open '${oneClickUrl}'`);
@@ -179157,29 +179255,26 @@ async function mcp(client2) {
179157
179255
  (0, import_child_process4.execSync)(`xdg-open '${oneClickUrl}'`);
179158
179256
  }
179159
179257
  summary.push("\u2705 Cursor: One-click installer opened");
179160
- output_manager_default.print("\u2705 Successfully opened Cursor one-click installer\n");
179258
+ output_manager_default.print("\u2139\uFE0F Follow the prompts in Cursor to complete setup\n");
179161
179259
  } catch (error3) {
179162
179260
  summary.push("\u26A0\uFE0F Cursor: Deep link may not have worked");
179163
- output_manager_default.print("\u26A0\uFE0F Deep link may not have opened Cursor settings\n");
179164
- }
179165
- output_manager_default.print("\u{1F4A1} Manual setup (recommended):\n");
179166
- output_manager_default.print(" 1. Open Cursor\n");
179167
- output_manager_default.print(" 2. Go to Settings (Cmd+, / Ctrl+,)\n");
179168
- output_manager_default.print(" 3. Navigate to MCP section\n");
179169
- output_manager_default.print(' 4. Click "Add Server"\n');
179170
- output_manager_default.print(" 5. Enter the following details:\n");
179171
- output_manager_default.print(` \u2022 Name: ${serverName}
179172
- `);
179173
- output_manager_default.print(` \u2022 URL: ${mcpUrl}
179261
+ output_manager_default.print("\u26A0\uFE0F Could not open Cursor automatically\n");
179262
+ output_manager_default.print("\u{1F4A1} Manual setup:\n");
179263
+ output_manager_default.print(" 1. Open Cursor\n");
179264
+ output_manager_default.print(" 2. Go to Settings (Cmd+, / Ctrl+,)\n");
179265
+ output_manager_default.print(" 3. Navigate to MCP section\n");
179266
+ output_manager_default.print(' 4. Click "Add Server"\n');
179267
+ output_manager_default.print(" 5. Enter the following details:\n");
179268
+ output_manager_default.print(` \u2022 Name: ${serverName}
179174
179269
  `);
179175
- output_manager_default.print(' 6. Click "Add" and follow the authorization prompts\n');
179176
- output_manager_default.print("\n");
179177
- output_manager_default.print(" Or try the deep link manually:\n");
179178
- output_manager_default.print(` ${oneClickUrl}
179270
+ output_manager_default.print(` \u2022 URL: ${mcpUrl}
179179
179271
  `);
179180
- output_manager_default.print(" (Copy and paste this URL in your browser)\n");
179272
+ output_manager_default.print(
179273
+ ' 6. Click "Add" and follow the authorization prompts\n'
179274
+ );
179275
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179276
+ }
179181
179277
  } else if (clientName === "VS Code with Copilot") {
179182
- output_manager_default.print("\u{1F50D} Checking for GitHub Copilot...\n");
179183
179278
  const copilotCheck = safeExecSync(
179184
179279
  "code --list-extensions | grep -i copilot"
179185
179280
  );
@@ -179195,12 +179290,38 @@ async function mcp(client2) {
179195
179290
  );
179196
179291
  output_manager_default.print(" 5. Restart VS Code\n");
179197
179292
  output_manager_default.print("\n");
179198
- } else {
179199
- output_manager_default.print("\u2705 GitHub Copilot detected\n");
179200
179293
  }
179201
- output_manager_default.print("\u{1F517} Setting up Vercel MCP in VS Code...\n");
179202
179294
  const mcpUrl = isProjectSpecific ? (await getProjectSpecificUrl(client2))?.url : MCP_ENDPOINT;
179203
179295
  const serverName = isProjectSpecific ? `vercel-${(await getProjectSpecificUrl(client2))?.projectName}` : "vercel";
179296
+ const vscodeConfigPath = process.platform === "darwin" ? `${process.env.HOME}/Library/Application Support/Code/User/settings.json` : process.platform === "win32" ? `${process.env.APPDATA}/Code/User/settings.json` : `${process.env.HOME}/.config/Code/User/settings.json`;
179297
+ const vscodeMcpPath = process.platform === "darwin" ? `${process.env.HOME}/Library/Application Support/Code/User/mcp.json` : process.platform === "win32" ? `${process.env.APPDATA}/Code/User/mcp.json` : `${process.env.HOME}/.config/Code/User/mcp.json`;
179298
+ let vscodeAlreadyConfigured = false;
179299
+ try {
179300
+ const fs15 = require("fs");
179301
+ if (fs15.existsSync(vscodeMcpPath)) {
179302
+ const configContent = fs15.readFileSync(vscodeMcpPath, "utf8");
179303
+ const config3 = JSON.parse(configContent);
179304
+ const mcpServers = config3.servers || {};
179305
+ vscodeAlreadyConfigured = Object.values(mcpServers).some(
179306
+ (server) => server.url === mcpUrl || server.url === MCP_ENDPOINT
179307
+ );
179308
+ }
179309
+ if (!vscodeAlreadyConfigured && fs15.existsSync(vscodeConfigPath)) {
179310
+ const configContent = fs15.readFileSync(vscodeConfigPath, "utf8");
179311
+ const config3 = JSON.parse(configContent);
179312
+ const mcpServers = config3["mcp.servers"] || {};
179313
+ vscodeAlreadyConfigured = Object.values(mcpServers).some(
179314
+ (server) => server.url === mcpUrl || server.url === MCP_ENDPOINT
179315
+ );
179316
+ }
179317
+ } catch (error3) {
179318
+ }
179319
+ if (vscodeAlreadyConfigured) {
179320
+ summary.push("\u2705 VS Code: Vercel MCP already configured");
179321
+ output_manager_default.print("\u2139\uFE0F Vercel MCP is already configured in VS Code\n");
179322
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179323
+ continue;
179324
+ }
179204
179325
  const config2 = {
179205
179326
  name: serverName,
179206
179327
  url: mcpUrl
@@ -179216,11 +179337,7 @@ async function mcp(client2) {
179216
179337
  (0, import_child_process4.execSync)(`xdg-open '${oneClickUrl}'`);
179217
179338
  }
179218
179339
  summary.push("\u2705 VS Code: One-click installer opened");
179219
- output_manager_default.print("\u2705 Successfully opened VS Code one-click installer\n");
179220
- output_manager_default.print("\u2139\uFE0F Follow the prompts in VS Code to complete setup\n");
179221
- output_manager_default.print(
179222
- "\u2139\uFE0F You may need to authorize the connection when prompted\n"
179223
- );
179340
+ output_manager_default.print("\u2139\uFE0F Follow the prompts in VS Code to complete setup\n");
179224
179341
  } catch (error3) {
179225
179342
  summary.push("\u274C VS Code: Failed to open one-click installer");
179226
179343
  output_manager_default.print("\u{1F4A1} Manual setup instructions:\n");
@@ -179240,28 +179357,14 @@ async function mcp(client2) {
179240
179357
  );
179241
179358
  output_manager_default.print(" 7. Click Add\n");
179242
179359
  output_manager_default.print(" 8. Follow the authorization steps\n");
179243
- output_manager_default.print("\n");
179244
- output_manager_default.print(" Or use the one-click installer manually:\n");
179245
- output_manager_default.print(` ${oneClickUrl}
179246
- `);
179360
+ output_manager_default.print("\u2500".repeat(50) + "\n");
179247
179361
  }
179248
179362
  }
179249
- output_manager_default.print("\u2500".repeat(50) + "\n");
179250
179363
  }
179251
179364
  output_manager_default.print("\u{1F4CA} Setup Summary\n");
179252
179365
  output_manager_default.print("\u2500".repeat(50) + "\n");
179253
179366
  summary.forEach((line) => output_manager_default.print(`${line}
179254
179367
  `));
179255
- if (isProjectSpecific) {
179256
- const projectInfo = await getProjectSpecificUrl(client2);
179257
- output_manager_default.print(`\u{1F517} Project-specific MCP URL: ${projectInfo?.url}
179258
- `);
179259
- }
179260
- output_manager_default.print(
179261
- "\u{1F517} Official documentation: https://vercel.com/docs/mcp/vercel-mcp\n"
179262
- );
179263
- output_manager_default.print(`\u{1F512} Official endpoint: ${MCP_ENDPOINT}
179264
- `);
179265
179368
  output_manager_default.print("\u2728 Setup complete! Restart your clients if needed.\n");
179266
179369
  return 0;
179267
179370
  }
@@ -183055,7 +183158,7 @@ async function list8(client2, argv) {
183055
183158
  client2.stdout.write("\n");
183056
183159
  const teamTable = table(
183057
183160
  [
183058
- ["id", "email / name"].map((str) => (0, import_chalk124.gray)(str)),
183161
+ ["id", "Team name"].map((str) => (0, import_chalk124.gray)(str)),
183059
183162
  ...teamList.map((team) => [team.value, team.name])
183060
183163
  ],
183061
183164
  { hsep: 5 }
@@ -184909,7 +185012,7 @@ function checkGuidanceStatus({ config: config2 }) {
184909
185012
  }
184910
185013
 
184911
185014
  // src/index.ts
184912
- var import_detect_agent = __toESM3(require_dist20());
185015
+ var import_detect_agent = require("@vercel/detect-agent");
184913
185016
  try {
184914
185017
  process.cwd();
184915
185018
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "46.0.4",
3
+ "version": "46.1.0",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -23,18 +23,19 @@
23
23
  "dependencies": {
24
24
  "@vercel/blob": "1.0.2",
25
25
  "@vercel/build-utils": "11.0.2",
26
+ "@vercel/detect-agent": "0.2.0",
26
27
  "@vercel/fun": "1.1.6",
27
28
  "@vercel/go": "3.2.3",
28
- "@vercel/express": "0.0.8",
29
- "@vercel/hono": "0.0.16",
30
- "@vercel/hydrogen": "1.2.3",
31
- "@vercel/next": "4.12.1",
32
- "@vercel/node": "5.3.15",
29
+ "@vercel/express": "0.0.10",
30
+ "@vercel/hono": "0.0.18",
31
+ "@vercel/hydrogen": "1.2.4",
32
+ "@vercel/next": "4.12.2",
33
+ "@vercel/node": "5.3.17",
33
34
  "@vercel/python": "5.0.0",
34
- "@vercel/redwood": "2.3.5",
35
- "@vercel/remix-builder": "5.4.11",
35
+ "@vercel/redwood": "2.3.6",
36
+ "@vercel/remix-builder": "5.4.12",
36
37
  "@vercel/ruby": "2.2.1",
37
- "@vercel/static-build": "2.7.19",
38
+ "@vercel/static-build": "2.7.20",
38
39
  "chokidar": "4.0.0",
39
40
  "jose": "5.9.6"
40
41
  },
@@ -84,8 +85,8 @@
84
85
  "@vercel/client": "15.3.15",
85
86
  "@vercel/detect-agent": "0.2.0",
86
87
  "@vercel/error-utils": "2.0.3",
87
- "@vercel/frameworks": "3.8.1",
88
- "@vercel/fs-detectors": "5.4.15",
88
+ "@vercel/frameworks": "3.8.2",
89
+ "@vercel/fs-detectors": "5.4.16",
89
90
  "@vercel/routing-utils": "5.1.1",
90
91
  "@vitest/expect": "2.1.3",
91
92
  "ajv": "6.12.3",