vercel 58.4.4 → 58.5.1

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 (87) hide show
  1. package/dist/chunks/{add-P7WBQMBW.js → add-2KSAN7EK.js} +42 -7
  2. package/dist/chunks/{add-245XOFJO.js → add-HTKUQ3KF.js} +2 -2
  3. package/dist/chunks/{add-XH24V5VU.js → add-Y3ACMZQ3.js} +2 -2
  4. package/dist/chunks/{build-M7NJYJPE.js → build-SOTUMEPT.js} +2 -2
  5. package/dist/chunks/{chunk-MAHXF73X.js → chunk-3L2YLLHC.js} +1 -1
  6. package/dist/chunks/{chunk-M5NOLAJ4.js → chunk-4PZ2IIZI.js} +1 -1
  7. package/dist/chunks/{chunk-2LBVX2H3.js → chunk-4ZZI2JPE.js} +1 -1
  8. package/dist/chunks/{chunk-3QAUXPIR.js → chunk-7RTO3VPE.js} +82 -44
  9. package/dist/chunks/{chunk-XE5VSQ25.js → chunk-CVZWB2MA.js} +1 -1
  10. package/dist/chunks/{chunk-YCPUAG77.js → chunk-FQ4R66UG.js} +1 -1
  11. package/dist/chunks/{chunk-CPFNFVCL.js → chunk-GE5R7SYE.js} +1 -1
  12. package/dist/chunks/{chunk-SJYAUEZR.js → chunk-GKLT2ZGC.js} +3 -15
  13. package/dist/chunks/{chunk-NJUPUGOE.js → chunk-HT2XWSAJ.js} +1 -1
  14. package/dist/chunks/chunk-I2XE3GMB.js +21 -0
  15. package/dist/chunks/{chunk-4BUPRO5B.js → chunk-I5F5AE2Q.js} +1 -1
  16. package/dist/chunks/{chunk-IEDUCUDV.js → chunk-IKIPDMQT.js} +7 -5
  17. package/dist/chunks/{chunk-Y5GTPWXB.js → chunk-IRX26ZL5.js} +1 -1
  18. package/dist/chunks/{chunk-UE3JUVUZ.js → chunk-LTEFJ3VD.js} +2 -2
  19. package/dist/chunks/{chunk-4CCY5OPH.js → chunk-LXRK7KPA.js} +263 -192
  20. package/dist/chunks/{chunk-2FMPLU44.js → chunk-MEOBIY2L.js} +2 -2
  21. package/dist/chunks/chunk-MXLA3VQS.js +20 -0
  22. package/dist/chunks/{chunk-62MH5KPX.js → chunk-NXLNRLL7.js} +1 -1
  23. package/dist/chunks/{chunk-2WILSD7J.js → chunk-OQ6UFVGM.js} +1 -1
  24. package/dist/chunks/{chunk-ZGBBPJ6B.js → chunk-PGH6RJJF.js} +1 -1
  25. package/dist/chunks/{chunk-YDUINEII.js → chunk-QS5I33VI.js} +5 -3
  26. package/dist/chunks/{chunk-EBLH23AQ.js → chunk-TEQKKTJQ.js} +4 -7
  27. package/dist/chunks/{chunk-2MAPZXVV.js → chunk-TQE7DRGH.js} +5 -5
  28. package/dist/chunks/{chunk-4UYKSYKQ.js → chunk-UMA66MKW.js} +66 -2
  29. package/dist/chunks/{chunk-HSYF5SI3.js → chunk-YFQSZI5Q.js} +1 -1
  30. package/dist/chunks/{chunk-AQDWMAPM.js → chunk-Z3VYQ7JP.js} +7 -5
  31. package/dist/chunks/chunk-ZHDQMUK4.js +96 -0
  32. package/dist/chunks/{chunk-NJ6QXKQD.js → chunk-ZYCVYZSR.js} +1 -1
  33. package/dist/chunks/{clear-HWIKQ4NC.js → clear-GLMDDDUR.js} +2 -2
  34. package/dist/chunks/{compile-vercel-config-U5NRIMZ2.js → compile-vercel-config-7JTL7U5E.js} +1 -1
  35. package/dist/chunks/{constants-3FSSR6E7.js → constants-T6BULVX6.js} +1 -1
  36. package/dist/chunks/{delete-NVMGVD5Z.js → delete-HE6FCDYS.js} +2 -2
  37. package/dist/chunks/{delete-FZCOUFGN.js → delete-M3DCAYTX.js} +2 -2
  38. package/dist/chunks/{disable-ERM2BWEQ.js → disable-LHOHFHGU.js} +2 -2
  39. package/dist/chunks/{discard-KM5OLEN4.js → discard-D2SI77HA.js} +2 -2
  40. package/dist/chunks/{edit-TOSB2EMI.js → edit-PSUYL34C.js} +2 -2
  41. package/dist/chunks/{edit-HT3UTATZ.js → edit-XCJDQOZR.js} +3 -3
  42. package/dist/chunks/{enable-BQL6AOQV.js → enable-QXXBU3QH.js} +2 -2
  43. package/dist/chunks/{export-UOWQHOG3.js → export-CRCAJ72L.js} +2 -2
  44. package/dist/chunks/{image-F5SC6Q7Y.js → image-4YES44D3.js} +3 -3
  45. package/dist/chunks/{inspect-LGKOLH2O.js → inspect-CFJWOYWD.js} +3 -3
  46. package/dist/chunks/{inspect-GKJ6T5H4.js → inspect-FEW47KAZ.js} +2 -2
  47. package/dist/chunks/{inspect-PZJM2CWT.js → inspect-GYUTUSOP.js} +5 -5
  48. package/dist/chunks/{inspect-35FU5R62.js → inspect-JIGB2JK7.js} +2 -2
  49. package/dist/chunks/{inspect-5J5GSTOB.js → inspect-WUT7EW6R.js} +2 -2
  50. package/dist/chunks/{list-ITFJYYQ2.js → list-4N6HI5LH.js} +5 -5
  51. package/dist/chunks/{list-2IIE7CAP.js → list-W4ZLROFI.js} +3 -3
  52. package/dist/chunks/{list-KZETH3ZE.js → list-ZQOF2B2L.js} +1 -1
  53. package/dist/chunks/{login-BQPJCJEZ.js → login-FWYKZ642.js} +2 -2
  54. package/dist/chunks/{ls-UXUEP54B.js → ls-7YYHSZIR.js} +2 -2
  55. package/dist/chunks/{ls-ZZFLH7PK.js → ls-AV2WYGNW.js} +2 -2
  56. package/dist/chunks/{ls-DL2LA35C.js → ls-DD7RQ7KH.js} +2 -2
  57. package/dist/chunks/{ls-7GHDK4MD.js → ls-V7E37ERN.js} +6 -6
  58. package/dist/chunks/{ls-YSFWSM6J.js → ls-VOD4NK6A.js} +2 -2
  59. package/dist/chunks/{open-ADNJQN5E.js → open-YEJQVMYZ.js} +2 -2
  60. package/dist/chunks/{permissions-72SZCBIY.js → permissions-OJCRKNGQ.js} +4 -4
  61. package/dist/chunks/{publish-OOAGSEBM.js → publish-XDKQYIKH.js} +2 -2
  62. package/dist/chunks/{push-B6TZDXNF.js → push-Z2EQUVOV.js} +2 -2
  63. package/dist/chunks/{query-LZWS5TDH.js → query-KEICHLVN.js} +1 -1
  64. package/dist/chunks/{reorder-MRHFKPMK.js → reorder-Z6YCND2X.js} +2 -2
  65. package/dist/chunks/{reply-BKTJXO3B.js → reply-CIWFPTEK.js} +2 -2
  66. package/dist/chunks/{resolve-BKVGSGPN.js → resolve-BYDSKVYN.js} +2 -2
  67. package/dist/chunks/{restore-USR7SKWV.js → restore-2KP5DLEC.js} +2 -2
  68. package/dist/chunks/{rm-KUWPNZIS.js → rm-5Z75EGOZ.js} +2 -2
  69. package/dist/chunks/{rm-2UO6BT3A.js → rm-FRKS6Y2G.js} +4 -4
  70. package/dist/chunks/{rm-37MKKV3I.js → rm-RJOWQHQV.js} +2 -2
  71. package/dist/chunks/{rm-VY3OHKFH.js → rm-TNCPDKEX.js} +2 -2
  72. package/dist/chunks/{rule-inspect-JVDOOTWK.js → rule-inspect-NOSNKD63.js} +6 -13
  73. package/dist/chunks/{rules-NTBFZBIF.js → rules-THS42KX4.js} +9 -6
  74. package/dist/chunks/{schema-6EZ72OVH.js → schema-MDLX6ZDL.js} +1 -1
  75. package/dist/chunks/schema-R54OXIXC.js +426 -0
  76. package/dist/chunks/{tags-HNPC63QA.js → tags-NDPHPWME.js} +2 -2
  77. package/dist/chunks/{update-LUYWNZP3.js → update-YAN3MGMW.js} +36 -4
  78. package/dist/commands/build/index.js +60 -21
  79. package/dist/commands/deploy/index.js +21 -14
  80. package/dist/commands/dev/index.js +33 -9
  81. package/dist/commands/env/index.js +7 -7
  82. package/dist/commands/link/index.js +8 -8
  83. package/dist/commands/list/index.js +2 -2
  84. package/dist/commands-bulk.js +1183 -941
  85. package/dist/index.js +11 -10
  86. package/dist/version.mjs +1 -1
  87. package/package.json +47 -47
@@ -851,51 +851,51 @@ var require_uri_all = __commonJS({
851
851
  }
852
852
  return uriTokens.join("");
853
853
  }
854
- function resolveComponents(base2, relative3) {
854
+ function resolveComponents(base2, relative4) {
855
855
  var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
856
856
  var skipNormalization = arguments[3];
857
857
  var target = {};
858
858
  if (!skipNormalization) {
859
859
  base2 = parse3(serialize(base2, options), options);
860
- relative3 = parse3(serialize(relative3, options), options);
860
+ relative4 = parse3(serialize(relative4, options), options);
861
861
  }
862
862
  options = options || {};
863
- if (!options.tolerant && relative3.scheme) {
864
- target.scheme = relative3.scheme;
865
- target.userinfo = relative3.userinfo;
866
- target.host = relative3.host;
867
- target.port = relative3.port;
868
- target.path = removeDotSegments(relative3.path || "");
869
- target.query = relative3.query;
863
+ if (!options.tolerant && relative4.scheme) {
864
+ target.scheme = relative4.scheme;
865
+ target.userinfo = relative4.userinfo;
866
+ target.host = relative4.host;
867
+ target.port = relative4.port;
868
+ target.path = removeDotSegments(relative4.path || "");
869
+ target.query = relative4.query;
870
870
  } else {
871
- if (relative3.userinfo !== void 0 || relative3.host !== void 0 || relative3.port !== void 0) {
872
- target.userinfo = relative3.userinfo;
873
- target.host = relative3.host;
874
- target.port = relative3.port;
875
- target.path = removeDotSegments(relative3.path || "");
876
- target.query = relative3.query;
871
+ if (relative4.userinfo !== void 0 || relative4.host !== void 0 || relative4.port !== void 0) {
872
+ target.userinfo = relative4.userinfo;
873
+ target.host = relative4.host;
874
+ target.port = relative4.port;
875
+ target.path = removeDotSegments(relative4.path || "");
876
+ target.query = relative4.query;
877
877
  } else {
878
- if (!relative3.path) {
878
+ if (!relative4.path) {
879
879
  target.path = base2.path;
880
- if (relative3.query !== void 0) {
881
- target.query = relative3.query;
880
+ if (relative4.query !== void 0) {
881
+ target.query = relative4.query;
882
882
  } else {
883
883
  target.query = base2.query;
884
884
  }
885
885
  } else {
886
- if (relative3.path.charAt(0) === "/") {
887
- target.path = removeDotSegments(relative3.path);
886
+ if (relative4.path.charAt(0) === "/") {
887
+ target.path = removeDotSegments(relative4.path);
888
888
  } else {
889
889
  if ((base2.userinfo !== void 0 || base2.host !== void 0 || base2.port !== void 0) && !base2.path) {
890
- target.path = "/" + relative3.path;
890
+ target.path = "/" + relative4.path;
891
891
  } else if (!base2.path) {
892
- target.path = relative3.path;
892
+ target.path = relative4.path;
893
893
  } else {
894
- target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative3.path;
894
+ target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative4.path;
895
895
  }
896
896
  target.path = removeDotSegments(target.path);
897
897
  }
898
- target.query = relative3.query;
898
+ target.query = relative4.query;
899
899
  }
900
900
  target.userinfo = base2.userinfo;
901
901
  target.host = base2.host;
@@ -903,10 +903,10 @@ var require_uri_all = __commonJS({
903
903
  }
904
904
  target.scheme = base2.scheme;
905
905
  }
906
- target.fragment = relative3.fragment;
906
+ target.fragment = relative4.fragment;
907
907
  return target;
908
908
  }
909
- function resolve4(baseURI, relativeURI, options) {
909
+ function resolve5(baseURI, relativeURI, options) {
910
910
  var schemelessOptions = assign({ scheme: "null" }, options);
911
911
  return serialize(resolveComponents(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
912
912
  }
@@ -1174,7 +1174,7 @@ var require_uri_all = __commonJS({
1174
1174
  exports2.removeDotSegments = removeDotSegments;
1175
1175
  exports2.serialize = serialize;
1176
1176
  exports2.resolveComponents = resolveComponents;
1177
- exports2.resolve = resolve4;
1177
+ exports2.resolve = resolve5;
1178
1178
  exports2.normalize = normalize;
1179
1179
  exports2.equal = equal;
1180
1180
  exports2.escapeComponent = escapeComponent;
@@ -1560,20 +1560,20 @@ var require_resolve = __commonJS({
1560
1560
  var util = require_util();
1561
1561
  var SchemaObject = require_schema_obj();
1562
1562
  var traverse = require_json_schema_traverse();
1563
- module.exports = resolve4;
1564
- resolve4.normalizeId = normalizeId;
1565
- resolve4.fullPath = getFullPath;
1566
- resolve4.url = resolveUrl;
1567
- resolve4.ids = resolveIds;
1568
- resolve4.inlineRef = inlineRef;
1569
- resolve4.schema = resolveSchema;
1570
- function resolve4(compile, root, ref) {
1563
+ module.exports = resolve5;
1564
+ resolve5.normalizeId = normalizeId;
1565
+ resolve5.fullPath = getFullPath;
1566
+ resolve5.url = resolveUrl;
1567
+ resolve5.ids = resolveIds;
1568
+ resolve5.inlineRef = inlineRef;
1569
+ resolve5.schema = resolveSchema;
1570
+ function resolve5(compile, root, ref) {
1571
1571
  var refVal = this._refs[ref];
1572
1572
  if (typeof refVal == "string") {
1573
1573
  if (this._refs[refVal])
1574
1574
  refVal = this._refs[refVal];
1575
1575
  else
1576
- return resolve4.call(this, compile, root, refVal);
1576
+ return resolve5.call(this, compile, root, refVal);
1577
1577
  }
1578
1578
  refVal = refVal || this._schemas[ref];
1579
1579
  if (refVal instanceof SchemaObject) {
@@ -1799,7 +1799,7 @@ var require_resolve = __commonJS({
1799
1799
  var require_error_classes = __commonJS({
1800
1800
  "../../node_modules/.pnpm/ajv@6.12.3/node_modules/ajv/lib/compile/error_classes.js"(exports, module) {
1801
1801
  "use strict";
1802
- var resolve4 = require_resolve();
1802
+ var resolve5 = require_resolve();
1803
1803
  module.exports = {
1804
1804
  Validation: errorSubclass(ValidationError2),
1805
1805
  MissingRef: errorSubclass(MissingRefError)
@@ -1814,8 +1814,8 @@ var require_error_classes = __commonJS({
1814
1814
  };
1815
1815
  function MissingRefError(baseId, ref, message) {
1816
1816
  this.message = message || MissingRefError.message(baseId, ref);
1817
- this.missingRef = resolve4.url(baseId, ref);
1818
- this.missingSchema = resolve4.normalizeId(resolve4.fullPath(this.missingRef));
1817
+ this.missingRef = resolve5.url(baseId, ref);
1818
+ this.missingSchema = resolve5.normalizeId(resolve5.fullPath(this.missingRef));
1819
1819
  }
1820
1820
  function errorSubclass(Subclass) {
1821
1821
  Subclass.prototype = Object.create(Error.prototype);
@@ -2374,7 +2374,7 @@ var require_validate = __commonJS({
2374
2374
  var require_compile = __commonJS({
2375
2375
  "../../node_modules/.pnpm/ajv@6.12.3/node_modules/ajv/lib/compile/index.js"(exports, module) {
2376
2376
  "use strict";
2377
- var resolve4 = require_resolve();
2377
+ var resolve5 = require_resolve();
2378
2378
  var util = require_util();
2379
2379
  var errorClasses = require_error_classes();
2380
2380
  var stableStringify = require_fast_json_stable_stringify();
@@ -2434,7 +2434,7 @@ var require_compile = __commonJS({
2434
2434
  RULES,
2435
2435
  validate: validateGenerator,
2436
2436
  util,
2437
- resolve: resolve4,
2437
+ resolve: resolve5,
2438
2438
  resolveRef,
2439
2439
  usePattern,
2440
2440
  useDefault,
@@ -2496,7 +2496,7 @@ var require_compile = __commonJS({
2496
2496
  return validate;
2497
2497
  }
2498
2498
  function resolveRef(baseId2, ref, isRoot) {
2499
- ref = resolve4.url(baseId2, ref);
2499
+ ref = resolve5.url(baseId2, ref);
2500
2500
  var refIndex = refs[ref];
2501
2501
  var _refVal, refCode;
2502
2502
  if (refIndex !== void 0) {
@@ -2513,11 +2513,11 @@ var require_compile = __commonJS({
2513
2513
  }
2514
2514
  }
2515
2515
  refCode = addLocalRef(ref);
2516
- var v2 = resolve4.call(self2, localCompile, root, ref);
2516
+ var v2 = resolve5.call(self2, localCompile, root, ref);
2517
2517
  if (v2 === void 0) {
2518
2518
  var localSchema = localRefs && localRefs[ref];
2519
2519
  if (localSchema) {
2520
- v2 = resolve4.inlineRef(localSchema, opts.inlineRefs) ? localSchema : compile.call(self2, localSchema, root, localRefs, baseId2);
2520
+ v2 = resolve5.inlineRef(localSchema, opts.inlineRefs) ? localSchema : compile.call(self2, localSchema, root, localRefs, baseId2);
2521
2521
  }
2522
2522
  }
2523
2523
  if (v2 === void 0) {
@@ -6152,7 +6152,7 @@ var require_ajv = __commonJS({
6152
6152
  "../../node_modules/.pnpm/ajv@6.12.3/node_modules/ajv/lib/ajv.js"(exports, module) {
6153
6153
  "use strict";
6154
6154
  var compileSchema = require_compile();
6155
- var resolve4 = require_resolve();
6155
+ var resolve5 = require_resolve();
6156
6156
  var Cache = require_cache();
6157
6157
  var SchemaObject = require_schema_obj();
6158
6158
  var stableStringify = require_fast_json_stable_stringify();
@@ -6244,7 +6244,7 @@ var require_ajv = __commonJS({
6244
6244
  var id = this._getId(schema);
6245
6245
  if (id !== void 0 && typeof id != "string")
6246
6246
  throw new Error("schema id must be string");
6247
- key = resolve4.normalizeId(key || id);
6247
+ key = resolve5.normalizeId(key || id);
6248
6248
  checkUnique(this, key);
6249
6249
  this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
6250
6250
  return this;
@@ -6290,7 +6290,7 @@ var require_ajv = __commonJS({
6290
6290
  }
6291
6291
  }
6292
6292
  function _getSchemaFragment(self2, ref) {
6293
- var res = resolve4.schema.call(self2, { schema: {} }, ref);
6293
+ var res = resolve5.schema.call(self2, { schema: {} }, ref);
6294
6294
  if (res) {
6295
6295
  var schema = res.schema, root = res.root, baseId = res.baseId;
6296
6296
  var v = compileSchema.call(self2, schema, root, void 0, baseId);
@@ -6306,7 +6306,7 @@ var require_ajv = __commonJS({
6306
6306
  }
6307
6307
  }
6308
6308
  function _getSchemaObj(self2, keyRef) {
6309
- keyRef = resolve4.normalizeId(keyRef);
6309
+ keyRef = resolve5.normalizeId(keyRef);
6310
6310
  return self2._schemas[keyRef] || self2._refs[keyRef] || self2._fragments[keyRef];
6311
6311
  }
6312
6312
  function removeSchema(schemaKeyRef) {
@@ -6334,7 +6334,7 @@ var require_ajv = __commonJS({
6334
6334
  this._cache.del(cacheKey);
6335
6335
  var id = this._getId(schemaKeyRef);
6336
6336
  if (id) {
6337
- id = resolve4.normalizeId(id);
6337
+ id = resolve5.normalizeId(id);
6338
6338
  delete this._schemas[id];
6339
6339
  delete this._refs[id];
6340
6340
  }
@@ -6359,14 +6359,14 @@ var require_ajv = __commonJS({
6359
6359
  if (cached)
6360
6360
  return cached;
6361
6361
  shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
6362
- var id = resolve4.normalizeId(this._getId(schema));
6362
+ var id = resolve5.normalizeId(this._getId(schema));
6363
6363
  if (id && shouldAddSchema)
6364
6364
  checkUnique(this, id);
6365
6365
  var willValidate = this._opts.validateSchema !== false && !skipValidation;
6366
6366
  var recursiveMeta;
6367
- if (willValidate && !(recursiveMeta = id && id == resolve4.normalizeId(schema.$schema)))
6367
+ if (willValidate && !(recursiveMeta = id && id == resolve5.normalizeId(schema.$schema)))
6368
6368
  this.validateSchema(schema, true);
6369
- var localRefs = resolve4.ids.call(this, schema);
6369
+ var localRefs = resolve5.ids.call(this, schema);
6370
6370
  var schemaObj = new SchemaObject({
6371
6371
  id,
6372
6372
  schema,
@@ -6538,8 +6538,8 @@ var require_universalify = __commonJS({
6538
6538
  if (typeof args[args.length - 1] === "function")
6539
6539
  fn.apply(this, args);
6540
6540
  else {
6541
- return new Promise((resolve4, reject) => {
6542
- args.push((err, res) => err != null ? reject(err) : resolve4(res));
6541
+ return new Promise((resolve5, reject) => {
6542
+ args.push((err, res) => err != null ? reject(err) : resolve5(res));
6543
6543
  fn.apply(this, args);
6544
6544
  });
6545
6545
  }
@@ -6612,19 +6612,19 @@ var require_fs = __commonJS({
6612
6612
  if (typeof callback === "function") {
6613
6613
  return fs5.exists(filename, callback);
6614
6614
  }
6615
- return new Promise((resolve4) => {
6616
- return fs5.exists(filename, resolve4);
6615
+ return new Promise((resolve5) => {
6616
+ return fs5.exists(filename, resolve5);
6617
6617
  });
6618
6618
  };
6619
6619
  exports.read = function(fd, buffer, offset, length, position, callback) {
6620
6620
  if (typeof callback === "function") {
6621
6621
  return fs5.read(fd, buffer, offset, length, position, callback);
6622
6622
  }
6623
- return new Promise((resolve4, reject) => {
6623
+ return new Promise((resolve5, reject) => {
6624
6624
  fs5.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
6625
6625
  if (err)
6626
6626
  return reject(err);
6627
- resolve4({ bytesRead, buffer: buffer2 });
6627
+ resolve5({ bytesRead, buffer: buffer2 });
6628
6628
  });
6629
6629
  });
6630
6630
  };
@@ -6632,11 +6632,11 @@ var require_fs = __commonJS({
6632
6632
  if (typeof args[args.length - 1] === "function") {
6633
6633
  return fs5.write(fd, buffer, ...args);
6634
6634
  }
6635
- return new Promise((resolve4, reject) => {
6635
+ return new Promise((resolve5, reject) => {
6636
6636
  fs5.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
6637
6637
  if (err)
6638
6638
  return reject(err);
6639
- resolve4({ bytesWritten, buffer: buffer2 });
6639
+ resolve5({ bytesWritten, buffer: buffer2 });
6640
6640
  });
6641
6641
  });
6642
6642
  };
@@ -6645,11 +6645,11 @@ var require_fs = __commonJS({
6645
6645
  if (typeof args[args.length - 1] === "function") {
6646
6646
  return fs5.writev(fd, buffers, ...args);
6647
6647
  }
6648
- return new Promise((resolve4, reject) => {
6648
+ return new Promise((resolve5, reject) => {
6649
6649
  fs5.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
6650
6650
  if (err)
6651
6651
  return reject(err);
6652
- resolve4({ bytesWritten, buffers: buffers2 });
6652
+ resolve5({ bytesWritten, buffers: buffers2 });
6653
6653
  });
6654
6654
  });
6655
6655
  };
@@ -7893,11 +7893,11 @@ var require_symlink = __commonJS({
7893
7893
  });
7894
7894
  }
7895
7895
  function _createSymlink(srcpath, dstpath, type, callback) {
7896
- symlinkPaths(srcpath, dstpath, (err, relative3) => {
7896
+ symlinkPaths(srcpath, dstpath, (err, relative4) => {
7897
7897
  if (err)
7898
7898
  return callback(err);
7899
- srcpath = relative3.toDst;
7900
- symlinkType(relative3.toCwd, type, (err2, type2) => {
7899
+ srcpath = relative4.toDst;
7900
+ symlinkType(relative4.toCwd, type, (err2, type2) => {
7901
7901
  if (err2)
7902
7902
  return callback(err2);
7903
7903
  const dir = path.dirname(dstpath);
@@ -7927,9 +7927,9 @@ var require_symlink = __commonJS({
7927
7927
  if (areIdentical(srcStat, dstStat))
7928
7928
  return;
7929
7929
  }
7930
- const relative3 = symlinkPathsSync(srcpath, dstpath);
7931
- srcpath = relative3.toDst;
7932
- type = symlinkTypeSync(relative3.toCwd, type);
7930
+ const relative4 = symlinkPathsSync(srcpath, dstpath);
7931
+ srcpath = relative4.toDst;
7932
+ type = symlinkTypeSync(relative4.toCwd, type);
7933
7933
  const dir = path.dirname(dstpath);
7934
7934
  const exists = fs5.existsSync(dir);
7935
7935
  if (exists)
@@ -29580,6 +29580,7 @@ var require_detect_builders = __commonJS({
29580
29580
  REGEX_MIDDLEWARE_FILES: () => REGEX_MIDDLEWARE_FILES,
29581
29581
  REGEX_NON_VERCEL_PLATFORM_FILES: () => REGEX_NON_VERCEL_PLATFORM_FILES2,
29582
29582
  REGEX_VERCEL_PLATFORM_FILES: () => REGEX_VERCEL_PLATFORM_FILES,
29583
+ builderToFrameworks: () => builderToFrameworks2,
29583
29584
  detectApiDirectory: () => detectApiDirectory2,
29584
29585
  detectApiExtensions: () => detectApiExtensions2,
29585
29586
  detectBuilders: () => detectBuilders2,
@@ -29624,6 +29625,21 @@ var require_detect_builders = __commonJS({
29624
29625
  var slugToFramework = new Map(
29625
29626
  import_frameworks2.frameworkList.map((f) => [f.slug, f])
29626
29627
  );
29628
+ var builderToFrameworks2 = (() => {
29629
+ const map = /* @__PURE__ */ new Map();
29630
+ for (const f of import_frameworks2.frameworkList) {
29631
+ if (!f.useRuntime?.use)
29632
+ continue;
29633
+ const builder = f.useRuntime.use;
29634
+ const entry = map.get(builder);
29635
+ if (entry) {
29636
+ entry.push(f);
29637
+ } else {
29638
+ map.set(builder, [f]);
29639
+ }
29640
+ }
29641
+ return map;
29642
+ })();
29627
29643
  function sortFiles(fileA, fileB) {
29628
29644
  return fileA.localeCompare(fileB);
29629
29645
  }
@@ -34459,7 +34475,7 @@ var require_get_workspace_package_paths = __commonJS({
34459
34475
  async function getPackagePaths(packages, fs5) {
34460
34476
  return (await Promise.all(
34461
34477
  packages.map(
34462
- (packageGlob) => new Promise((resolve4, reject) => {
34478
+ (packageGlob) => new Promise((resolve5, reject) => {
34463
34479
  (0, import_glob.default)(
34464
34480
  normalizePath3(posixPath.join(packageGlob, "package.json")),
34465
34481
  {
@@ -34470,7 +34486,7 @@ var require_get_workspace_package_paths = __commonJS({
34470
34486
  if (err)
34471
34487
  reject(err);
34472
34488
  else
34473
- resolve4(matches);
34489
+ resolve5(matches);
34474
34490
  }
34475
34491
  );
34476
34492
  })
@@ -35047,6 +35063,7 @@ var require_dist6 = __commonJS({
35047
35063
  Workspace: () => import_get_workspaces.Workspace,
35048
35064
  WorkspaceType: () => import_get_workspaces.WorkspaceType,
35049
35065
  autoDetectServices: () => import_auto_detect.autoDetectServices,
35066
+ builderToFrameworks: () => import_detect_builders.builderToFrameworks,
35050
35067
  detectApiDirectory: () => import_detect_builders.detectApiDirectory,
35051
35068
  detectApiExtensions: () => import_detect_builders.detectApiExtensions,
35052
35069
  detectBuilders: () => import_detect_builders.detectBuilders,
@@ -35343,14 +35360,14 @@ var require_open = __commonJS({
35343
35360
  }
35344
35361
  const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
35345
35362
  if (options.wait) {
35346
- return new Promise((resolve4, reject) => {
35363
+ return new Promise((resolve5, reject) => {
35347
35364
  subprocess.once("error", reject);
35348
35365
  subprocess.once("close", (exitCode) => {
35349
35366
  if (options.allowNonzeroExitCode && exitCode > 0) {
35350
35367
  reject(new Error(`Exited with code ${exitCode}`));
35351
35368
  return;
35352
35369
  }
35353
- resolve4(subprocess);
35370
+ resolve5(subprocess);
35354
35371
  });
35355
35372
  });
35356
35373
  }
@@ -35471,11 +35488,11 @@ var require_universalify2 = __commonJS({
35471
35488
  if (typeof arguments[arguments.length - 1] === "function")
35472
35489
  fn.apply(this, arguments);
35473
35490
  else {
35474
- return new Promise((resolve4, reject) => {
35491
+ return new Promise((resolve5, reject) => {
35475
35492
  arguments[arguments.length] = (err, res) => {
35476
35493
  if (err)
35477
35494
  return reject(err);
35478
- resolve4(res);
35495
+ resolve5(res);
35479
35496
  };
35480
35497
  arguments.length++;
35481
35498
  fn.apply(this, arguments);
@@ -35550,19 +35567,19 @@ var require_fs3 = __commonJS({
35550
35567
  if (typeof callback === "function") {
35551
35568
  return fs5.exists(filename, callback);
35552
35569
  }
35553
- return new Promise((resolve4) => {
35554
- return fs5.exists(filename, resolve4);
35570
+ return new Promise((resolve5) => {
35571
+ return fs5.exists(filename, resolve5);
35555
35572
  });
35556
35573
  };
35557
35574
  exports.read = function(fd, buffer, offset, length, position, callback) {
35558
35575
  if (typeof callback === "function") {
35559
35576
  return fs5.read(fd, buffer, offset, length, position, callback);
35560
35577
  }
35561
- return new Promise((resolve4, reject) => {
35578
+ return new Promise((resolve5, reject) => {
35562
35579
  fs5.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
35563
35580
  if (err)
35564
35581
  return reject(err);
35565
- resolve4({ bytesRead, buffer: buffer2 });
35582
+ resolve5({ bytesRead, buffer: buffer2 });
35566
35583
  });
35567
35584
  });
35568
35585
  };
@@ -35570,11 +35587,11 @@ var require_fs3 = __commonJS({
35570
35587
  if (typeof args[args.length - 1] === "function") {
35571
35588
  return fs5.write(fd, buffer, ...args);
35572
35589
  }
35573
- return new Promise((resolve4, reject) => {
35590
+ return new Promise((resolve5, reject) => {
35574
35591
  fs5.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
35575
35592
  if (err)
35576
35593
  return reject(err);
35577
- resolve4({ bytesWritten, buffer: buffer2 });
35594
+ resolve5({ bytesWritten, buffer: buffer2 });
35578
35595
  });
35579
35596
  });
35580
35597
  };
@@ -36973,11 +36990,11 @@ var require_symlink2 = __commonJS({
36973
36990
  return callback(err);
36974
36991
  if (destinationExists)
36975
36992
  return callback(null);
36976
- symlinkPaths(srcpath, dstpath, (err2, relative3) => {
36993
+ symlinkPaths(srcpath, dstpath, (err2, relative4) => {
36977
36994
  if (err2)
36978
36995
  return callback(err2);
36979
- srcpath = relative3.toDst;
36980
- symlinkType(relative3.toCwd, type, (err3, type2) => {
36996
+ srcpath = relative4.toDst;
36997
+ symlinkType(relative4.toCwd, type, (err3, type2) => {
36981
36998
  if (err3)
36982
36999
  return callback(err3);
36983
37000
  const dir = path.dirname(dstpath);
@@ -37000,9 +37017,9 @@ var require_symlink2 = __commonJS({
37000
37017
  const destinationExists = fs5.existsSync(dstpath);
37001
37018
  if (destinationExists)
37002
37019
  return void 0;
37003
- const relative3 = symlinkPathsSync(srcpath, dstpath);
37004
- srcpath = relative3.toDst;
37005
- type = symlinkTypeSync(relative3.toCwd, type);
37020
+ const relative4 = symlinkPathsSync(srcpath, dstpath);
37021
+ srcpath = relative4.toDst;
37022
+ type = symlinkTypeSync(relative4.toCwd, type);
37006
37023
  const dir = path.dirname(dstpath);
37007
37024
  const exists = fs5.existsSync(dir);
37008
37025
  if (exists)
@@ -37586,12 +37603,12 @@ var require_lib6 = __commonJS({
37586
37603
  if (token !== void 0) {
37587
37604
  return token;
37588
37605
  }
37589
- return new Promise((resolve4, reject) => {
37606
+ return new Promise((resolve5, reject) => {
37590
37607
  if (this.pauseFn && !this.paused) {
37591
37608
  this.paused = true;
37592
37609
  this.pauseFn();
37593
37610
  }
37594
- this.waiting.push({ resolve: resolve4, reject });
37611
+ this.waiting.push({ resolve: resolve5, reject });
37595
37612
  });
37596
37613
  }
37597
37614
  release(token) {
@@ -38147,7 +38164,7 @@ var require_package = __commonJS({
38147
38164
  "../client/package.json"(exports, module) {
38148
38165
  module.exports = {
38149
38166
  name: "@vercel/client",
38150
- version: "18.2.3",
38167
+ version: "18.2.5",
38151
38168
  main: "dist/index.js",
38152
38169
  typings: "dist/index.d.ts",
38153
38170
  homepage: "https://vercel.com",
@@ -38286,14 +38303,14 @@ var require_readdir_recursive = __commonJS({
38286
38303
  function readdir(path, ignores) {
38287
38304
  ignores = ignores.map(toMatcherFunction);
38288
38305
  let list2 = [];
38289
- return new Promise(function(resolve4, reject) {
38306
+ return new Promise(function(resolve5, reject) {
38290
38307
  import_fs4.default.readdir(path, function(err, files) {
38291
38308
  if (err) {
38292
38309
  return reject(err);
38293
38310
  }
38294
38311
  let pending = files.length;
38295
38312
  if (!pending) {
38296
- return resolve4(list2);
38313
+ return resolve5(list2);
38297
38314
  }
38298
38315
  files.forEach(function(file) {
38299
38316
  const filePath = import_path13.default.join(path, file);
@@ -38305,7 +38322,7 @@ var require_readdir_recursive = __commonJS({
38305
38322
  if (matches) {
38306
38323
  pending -= 1;
38307
38324
  if (!pending) {
38308
- return resolve4(list2);
38325
+ return resolve5(list2);
38309
38326
  }
38310
38327
  return null;
38311
38328
  }
@@ -38317,14 +38334,14 @@ var require_readdir_recursive = __commonJS({
38317
38334
  list2 = list2.concat(res);
38318
38335
  pending -= 1;
38319
38336
  if (!pending) {
38320
- return resolve4(list2);
38337
+ return resolve5(list2);
38321
38338
  }
38322
38339
  }).catch(reject);
38323
38340
  } else {
38324
38341
  list2.push(filePath);
38325
38342
  pending -= 1;
38326
38343
  if (!pending) {
38327
- return resolve4(list2);
38344
+ return resolve5(list2);
38328
38345
  }
38329
38346
  }
38330
38347
  });
@@ -43473,15 +43490,15 @@ var require_pattern2 = __commonJS({
43473
43490
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
43474
43491
  function partitionAbsoluteAndRelative(patterns) {
43475
43492
  const absolute = [];
43476
- const relative3 = [];
43493
+ const relative4 = [];
43477
43494
  for (const pattern of patterns) {
43478
43495
  if (isAbsolute(pattern)) {
43479
43496
  absolute.push(pattern);
43480
43497
  } else {
43481
- relative3.push(pattern);
43498
+ relative4.push(pattern);
43482
43499
  }
43483
43500
  }
43484
- return [absolute, relative3];
43501
+ return [absolute, relative4];
43485
43502
  }
43486
43503
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
43487
43504
  function isAbsolute(pattern) {
@@ -44576,42 +44593,42 @@ var require_queue = __commonJS({
44576
44593
  queue.drained = drained;
44577
44594
  return queue;
44578
44595
  function push(value) {
44579
- var p = new Promise(function(resolve4, reject) {
44596
+ var p = new Promise(function(resolve5, reject) {
44580
44597
  pushCb(value, function(err, result) {
44581
44598
  if (err) {
44582
44599
  reject(err);
44583
44600
  return;
44584
44601
  }
44585
- resolve4(result);
44602
+ resolve5(result);
44586
44603
  });
44587
44604
  });
44588
44605
  p.catch(noop);
44589
44606
  return p;
44590
44607
  }
44591
44608
  function unshift(value) {
44592
- var p = new Promise(function(resolve4, reject) {
44609
+ var p = new Promise(function(resolve5, reject) {
44593
44610
  unshiftCb(value, function(err, result) {
44594
44611
  if (err) {
44595
44612
  reject(err);
44596
44613
  return;
44597
44614
  }
44598
- resolve4(result);
44615
+ resolve5(result);
44599
44616
  });
44600
44617
  });
44601
44618
  p.catch(noop);
44602
44619
  return p;
44603
44620
  }
44604
44621
  function drained() {
44605
- var p = new Promise(function(resolve4) {
44622
+ var p = new Promise(function(resolve5) {
44606
44623
  process.nextTick(function() {
44607
44624
  if (queue.idle()) {
44608
- resolve4();
44625
+ resolve5();
44609
44626
  } else {
44610
44627
  var previousDrain = queue.drain;
44611
44628
  queue.drain = function() {
44612
44629
  if (typeof previousDrain === "function")
44613
44630
  previousDrain();
44614
- resolve4();
44631
+ resolve5();
44615
44632
  queue.drain = previousDrain;
44616
44633
  };
44617
44634
  }
@@ -45097,9 +45114,9 @@ var require_stream3 = __commonJS({
45097
45114
  });
45098
45115
  }
45099
45116
  _getStat(filepath) {
45100
- return new Promise((resolve4, reject) => {
45117
+ return new Promise((resolve5, reject) => {
45101
45118
  this._stat(filepath, this._fsStatSettings, (error, stats) => {
45102
- return error === null ? resolve4(stats) : reject(error);
45119
+ return error === null ? resolve5(stats) : reject(error);
45103
45120
  });
45104
45121
  });
45105
45122
  }
@@ -45123,10 +45140,10 @@ var require_async6 = __commonJS({
45123
45140
  this._readerStream = new stream_1.default(this._settings);
45124
45141
  }
45125
45142
  dynamic(root, options) {
45126
- return new Promise((resolve4, reject) => {
45143
+ return new Promise((resolve5, reject) => {
45127
45144
  this._walkAsync(root, options, (error, entries) => {
45128
45145
  if (error === null) {
45129
- resolve4(entries);
45146
+ resolve5(entries);
45130
45147
  } else {
45131
45148
  reject(error);
45132
45149
  }
@@ -45136,10 +45153,10 @@ var require_async6 = __commonJS({
45136
45153
  async static(patterns, options) {
45137
45154
  const entries = [];
45138
45155
  const stream = this._readerStream.static(patterns, options);
45139
- return new Promise((resolve4, reject) => {
45156
+ return new Promise((resolve5, reject) => {
45140
45157
  stream.once("error", reject);
45141
45158
  stream.on("data", (entry) => entries.push(entry));
45142
- stream.once("end", () => resolve4(entries));
45159
+ stream.once("end", () => resolve5(entries));
45143
45160
  });
45144
45161
  }
45145
45162
  };
@@ -45796,9 +45813,9 @@ var require_out4 = __commonJS({
45796
45813
  }
45797
45814
  });
45798
45815
 
45799
- // ../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@babel+core@7.24.4_@opentelemetry+api@1.9.1_re_fa32ee5de0d684b82ca1c937ce3b2ece/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs
45816
+ // ../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@opentelemetry+api@1.9.1_react-dom@18.3.1_reac_dafed8485844cbf4d92e1fbe0bf15d03/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs
45800
45817
  var require_utils8 = __commonJS({
45801
- "../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@babel+core@7.24.4_@opentelemetry+api@1.9.1_re_fa32ee5de0d684b82ca1c937ce3b2ece/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs"(exports, module) {
45818
+ "../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@opentelemetry+api@1.9.1_react-dom@18.3.1_reac_dafed8485844cbf4d92e1fbe0bf15d03/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs"(exports, module) {
45802
45819
  "use strict";
45803
45820
  var __create = Object.create;
45804
45821
  var __defProp = Object.defineProperty;
@@ -46058,7 +46075,8 @@ var require_utils9 = __commonJS({
46058
46075
  getApiDeploymentsUrl: () => getApiDeploymentsUrl,
46059
46076
  getVercelIgnore: () => getVercelIgnore2,
46060
46077
  parseVercelConfig: () => parseVercelConfig,
46061
- prepareFiles: () => prepareFiles
46078
+ prepareFiles: () => prepareFiles,
46079
+ shouldInlineStaticFiles: () => shouldInlineStaticFiles
46062
46080
  });
46063
46081
  module.exports = __toCommonJS2(utils_exports);
46064
46082
  var import_path13 = __require("path");
@@ -46393,8 +46411,33 @@ ${clearRelative(ignoreFile)}`);
46393
46411
  }
46394
46412
  };
46395
46413
  var isWin = process.platform.includes("win");
46414
+ var INLINE_STATIC_EXTENSIONS = [".html", ".htm", ".md"];
46415
+ var MAX_INLINE_FILES = 10;
46416
+ var MAX_INLINE_TOTAL_BYTES = 5 * 1024 * 1024;
46417
+ var S_IFREG = 32768;
46418
+ var S_IFMT = 61440;
46419
+ function shouldInlineStaticFiles(files) {
46420
+ let count = 0;
46421
+ let totalBytes = 0;
46422
+ for (const file of files.values()) {
46423
+ if ((file.mode & S_IFMT) !== S_IFREG)
46424
+ return false;
46425
+ if (!file.data)
46426
+ return false;
46427
+ for (const name of file.names) {
46428
+ const lower = name.toLowerCase();
46429
+ if (!INLINE_STATIC_EXTENSIONS.some((ext) => lower.endsWith(ext))) {
46430
+ return false;
46431
+ }
46432
+ count += 1;
46433
+ totalBytes += file.data.byteLength;
46434
+ }
46435
+ }
46436
+ return count > 0 && count <= MAX_INLINE_FILES && totalBytes <= MAX_INLINE_TOTAL_BYTES;
46437
+ }
46396
46438
  var prepareFiles = (files, clientOptions) => {
46397
46439
  const preparedFiles = [];
46440
+ const inlineStaticFiles = shouldInlineStaticFiles(files);
46398
46441
  for (const [sha, file] of files) {
46399
46442
  for (const name of file.names) {
46400
46443
  let fileName;
@@ -46404,8 +46447,18 @@ ${clearRelative(ignoreFile)}`);
46404
46447
  const segments = name.split(import_path13.sep);
46405
46448
  fileName = segments[segments.length - 1];
46406
46449
  }
46450
+ const normalizedName = isWin ? fileName.replace(/\\/g, "/") : fileName;
46451
+ if (inlineStaticFiles && file.data) {
46452
+ preparedFiles.push({
46453
+ file: normalizedName,
46454
+ data: file.data.toString("base64"),
46455
+ encoding: "base64",
46456
+ mode: file.mode
46457
+ });
46458
+ continue;
46459
+ }
46407
46460
  preparedFiles.push({
46408
- file: isWin ? fileName.replace(/\\/g, "/") : fileName,
46461
+ file: normalizedName,
46409
46462
  size: file.data?.byteLength ?? file.size,
46410
46463
  mode: file.mode,
46411
46464
  sha: sha || void 0
@@ -46543,12 +46596,12 @@ var require_check_deployment_status = __commonJS({
46543
46596
  await (0, import_sleep_promise.default)(duration);
46544
46597
  return;
46545
46598
  }
46546
- await new Promise((resolve4) => {
46599
+ await new Promise((resolve5) => {
46547
46600
  const timeout = setTimeout(finish, duration);
46548
46601
  function finish() {
46549
46602
  clearTimeout(timeout);
46550
46603
  signal?.removeEventListener("abort", onAbort);
46551
- resolve4();
46604
+ resolve5();
46552
46605
  }
46553
46606
  function onAbort() {
46554
46607
  if (getAliasAssignedEvent(signal, deploymentId))
@@ -47175,7 +47228,7 @@ var require_lib7 = __commonJS({
47175
47228
  "../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js"(exports, module) {
47176
47229
  var retrier = require_retry2();
47177
47230
  function retry(fn, opts) {
47178
- function run(resolve4, reject) {
47231
+ function run(resolve5, reject) {
47179
47232
  var options = opts || {};
47180
47233
  var op = retrier.operation(options);
47181
47234
  function bail(err) {
@@ -47200,7 +47253,7 @@ var require_lib7 = __commonJS({
47200
47253
  onError(err, num);
47201
47254
  return;
47202
47255
  }
47203
- Promise.resolve(val).then(resolve4).catch(function catchIt(err) {
47256
+ Promise.resolve(val).then(resolve5).catch(function catchIt(err) {
47204
47257
  onError(err, num);
47205
47258
  });
47206
47259
  }
@@ -53509,7 +53562,7 @@ import { parse as tomlParse2 } from "smol-toml";
53509
53562
  var import_ajv = __toESM(require_ajv(), 1);
53510
53563
  var import_fs_extra8 = __toESM(require_lib2(), 1);
53511
53564
  import fs4 from "fs";
53512
- import { join as join9, relative as relative2 } from "path";
53565
+ import { join as join9, relative as relative3 } from "path";
53513
53566
  import { promisify } from "util";
53514
53567
 
53515
53568
  // src/util/projects/get-project-by-id-or-name.ts
@@ -53978,13 +54031,13 @@ var CancelablePromise = class _CancelablePromise extends Promise {
53978
54031
  });
53979
54032
  }
53980
54033
  static withResolver() {
53981
- let resolve4;
54034
+ let resolve5;
53982
54035
  let reject;
53983
54036
  const promise = new _CancelablePromise((res, rej) => {
53984
- resolve4 = res;
54037
+ resolve5 = res;
53985
54038
  reject = rej;
53986
54039
  });
53987
- return { promise, resolve: resolve4, reject };
54040
+ return { promise, resolve: resolve5, reject };
53988
54041
  }
53989
54042
  };
53990
54043
 
@@ -54347,7 +54400,7 @@ function createPrompt(view) {
54347
54400
  const screen = new ScreenManager(rl);
54348
54401
  let cancel = () => {
54349
54402
  };
54350
- const answer = new CancelablePromise((resolve4, reject) => {
54403
+ const answer = new CancelablePromise((resolve5, reject) => {
54351
54404
  withHooks(rl, (store) => {
54352
54405
  function checkCursorPos() {
54353
54406
  screen.checkCursorPos();
@@ -54380,7 +54433,7 @@ function createPrompt(view) {
54380
54433
  function done(value) {
54381
54434
  setImmediate(() => {
54382
54435
  onExit2();
54383
- resolve4(value);
54436
+ resolve5(value);
54384
54437
  });
54385
54438
  }
54386
54439
  function workLoop(resolvedConfig) {
@@ -54872,13 +54925,65 @@ var import_fs_extra = __toESM(require_lib2(), 1);
54872
54925
  var import_ini = __toESM(require_ini(), 1);
54873
54926
  var import_git_last_commit = __toESM(require_source3(), 1);
54874
54927
  var import_error_utils = __toESM(require_dist(), 1);
54875
- import { join } from "path";
54928
+ import { join as join2, relative, resolve as resolve3 } from "path";
54876
54929
  import { exec } from "child_process";
54930
+
54931
+ // src/util/git-helpers.ts
54932
+ import { execSync } from "child_process";
54933
+ import { join, resolve as resolve2 } from "path";
54934
+ var DEFAULT_GIT_EXEC_OPTS = {
54935
+ unsafe: false
54936
+ };
54937
+ function getGitRootDirectory(opts) {
54938
+ const { cwd, unsafe } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
54939
+ try {
54940
+ const gitRoot = execSync("git rev-parse --show-toplevel", {
54941
+ cwd,
54942
+ encoding: "utf8",
54943
+ stdio: ["ignore", "pipe", "ignore"]
54944
+ });
54945
+ return gitRoot.trim();
54946
+ } catch (error) {
54947
+ if (unsafe) {
54948
+ throw error;
54949
+ }
54950
+ return null;
54951
+ }
54952
+ }
54953
+ function getGitCommonDirectory(opts) {
54954
+ const { cwd, unsafe } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
54955
+ try {
54956
+ const gitCommonDir = execSync("git rev-parse --git-common-dir", {
54957
+ cwd,
54958
+ encoding: "utf8",
54959
+ stdio: ["ignore", "pipe", "ignore"]
54960
+ });
54961
+ return gitCommonDir.trim();
54962
+ } catch (error) {
54963
+ if (unsafe) {
54964
+ throw error;
54965
+ }
54966
+ return null;
54967
+ }
54968
+ }
54969
+ function getGitConfigPath(opts) {
54970
+ const { cwd } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
54971
+ const gitCommonDir = getGitCommonDirectory(opts);
54972
+ if (gitCommonDir === null) {
54973
+ return null;
54974
+ }
54975
+ const absoluteGitCommonDir = resolve2(cwd, gitCommonDir);
54976
+ return join(absoluteGitCommonDir, "config");
54977
+ }
54978
+
54979
+ // src/util/create-git-meta.ts
54877
54980
  async function createGitMeta(directory, project) {
54981
+ const gitRoot = getGitRootDirectory({ cwd: directory });
54982
+ const gitConfigPath = join2(gitRoot || directory, ".git/config");
54878
54983
  let remoteUrl;
54879
54984
  if (project?.link) {
54880
54985
  const { repo } = project.link;
54881
- const remoteUrls = await getRemoteUrls(join(directory, ".git/config"));
54986
+ const remoteUrls = await getRemoteUrls(gitConfigPath);
54882
54987
  if (remoteUrls) {
54883
54988
  for (const urlValue of Object.values(remoteUrls)) {
54884
54989
  if (urlValue.includes(repo)) {
@@ -54888,7 +54993,7 @@ async function createGitMeta(directory, project) {
54888
54993
  }
54889
54994
  }
54890
54995
  if (!remoteUrl) {
54891
- remoteUrl = await getOriginUrl(join(directory, ".git/config"));
54996
+ remoteUrl = await getOriginUrl(gitConfigPath);
54892
54997
  }
54893
54998
  const [commitResult, dirtyResult] = await Promise.allSettled([
54894
54999
  getLastCommit(directory),
@@ -54917,24 +55022,38 @@ ${dirtyResult.reason}`
54917
55022
  commitMessage: commit.subject,
54918
55023
  commitRef: commit.branch,
54919
55024
  commitSha: commit.hash,
54920
- dirty
55025
+ dirty,
55026
+ rootDirectory: getRootDirectory(directory, gitRoot)
54921
55027
  };
54922
55028
  }
55029
+ function getRootDirectory(directory, gitRoot = getGitRootDirectory({ cwd: directory })) {
55030
+ if (!gitRoot) {
55031
+ return;
55032
+ }
55033
+ const rootDirectory = relative(gitRoot, resolve3(directory)).replace(
55034
+ /\\/g,
55035
+ "/"
55036
+ );
55037
+ if (rootDirectory === ".." || rootDirectory.startsWith("../")) {
55038
+ return;
55039
+ }
55040
+ return rootDirectory === "." ? "" : rootDirectory;
55041
+ }
54923
55042
  function getLastCommit(directory) {
54924
- return new Promise((resolve4, reject) => {
55043
+ return new Promise((resolve5, reject) => {
54925
55044
  import_git_last_commit.default.getLastCommit(
54926
55045
  (err, commit) => {
54927
55046
  if (err) {
54928
55047
  return reject((0, import_error_utils.normalizeError)(err));
54929
55048
  }
54930
- resolve4(commit);
55049
+ resolve5(commit);
54931
55050
  },
54932
55051
  { dst: directory }
54933
55052
  );
54934
55053
  });
54935
55054
  }
54936
55055
  function isDirty(directory) {
54937
- return new Promise((resolve4, reject) => {
55056
+ return new Promise((resolve5, reject) => {
54938
55057
  exec(
54939
55058
  "git --no-optional-locks status -s",
54940
55059
  { cwd: directory },
@@ -54945,7 +55064,7 @@ function isDirty(directory) {
54945
55064
  if (stderr !== void 0 && stderr.trim().length > 0) {
54946
55065
  return reject(new Error(stderr));
54947
55066
  }
54948
- resolve4(stdout.trim().length > 0);
55067
+ resolve5(stdout.trim().length > 0);
54949
55068
  }
54950
55069
  );
54951
55070
  });
@@ -55233,11 +55352,11 @@ ${import_chalk6.default.dim(` ${description}`)}` : "";
55233
55352
  // src/util/link/add-to-gitignore.ts
55234
55353
  var import_fs_extra2 = __toESM(require_lib2(), 1);
55235
55354
  import os from "os";
55236
- import { join as join2 } from "path";
55355
+ import { join as join3 } from "path";
55237
55356
  async function addToGitIgnore(path, ignore = VERCEL_DIR) {
55238
55357
  let isGitIgnoreUpdated = false;
55239
55358
  try {
55240
- const gitIgnorePath = join2(path, ".gitignore");
55359
+ const gitIgnorePath = join3(path, ".gitignore");
55241
55360
  let gitIgnore = await (0, import_fs_extra2.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
55242
55361
  const EOL = gitIgnore.includes("\r\n") ? "\r\n" : os.EOL;
55243
55362
  let contentModified = false;
@@ -55275,7 +55394,7 @@ async function createProject(client, settings) {
55275
55394
  // src/util/projects/detect-projects.ts
55276
55395
  var import_frameworks = __toESM(require_frameworks(), 1);
55277
55396
  var import_fs_detectors = __toESM(require_dist6(), 1);
55278
- import { join as join3 } from "path";
55397
+ import { join as join4 } from "path";
55279
55398
  async function detectProjects(cwd) {
55280
55399
  const fs5 = new import_fs_detectors.LocalFileSystemDetector(cwd);
55281
55400
  const workspaces = await (0, import_fs_detectors.getWorkspaces)({ fs: fs5 });
@@ -55294,7 +55413,7 @@ async function detectProjects(cwd) {
55294
55413
  await Promise.all(
55295
55414
  packagePaths.map(async (p) => {
55296
55415
  const frameworks = await (0, import_fs_detectors.detectFrameworks)({
55297
- fs: fs5.chdir(join3(".", p)),
55416
+ fs: fs5.chdir(join4(".", p)),
55298
55417
  frameworkList: import_frameworks.frameworkList
55299
55418
  });
55300
55419
  if (frameworks.length === 0)
@@ -55748,54 +55867,6 @@ async function confirmRepoConnect(client, yes, connectedProvider, connectedRepoP
55748
55867
  return shouldReplaceProject;
55749
55868
  }
55750
55869
 
55751
- // src/util/git-helpers.ts
55752
- import { execSync } from "child_process";
55753
- import { join as join4, resolve as resolve2 } from "path";
55754
- var DEFAULT_GIT_EXEC_OPTS = {
55755
- unsafe: false
55756
- };
55757
- function getGitRootDirectory(opts) {
55758
- const { cwd, unsafe } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
55759
- try {
55760
- const gitRoot = execSync("git rev-parse --show-toplevel", {
55761
- cwd,
55762
- encoding: "utf8",
55763
- stdio: ["ignore", "pipe", "ignore"]
55764
- });
55765
- return gitRoot.trim();
55766
- } catch (error) {
55767
- if (unsafe) {
55768
- throw error;
55769
- }
55770
- return null;
55771
- }
55772
- }
55773
- function getGitCommonDirectory(opts) {
55774
- const { cwd, unsafe } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
55775
- try {
55776
- const gitCommonDir = execSync("git rev-parse --git-common-dir", {
55777
- cwd,
55778
- encoding: "utf8",
55779
- stdio: ["ignore", "pipe", "ignore"]
55780
- });
55781
- return gitCommonDir.trim();
55782
- } catch (error) {
55783
- if (unsafe) {
55784
- throw error;
55785
- }
55786
- return null;
55787
- }
55788
- }
55789
- function getGitConfigPath(opts) {
55790
- const { cwd } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
55791
- const gitCommonDir = getGitCommonDirectory(opts);
55792
- if (gitCommonDir === null) {
55793
- return null;
55794
- }
55795
- const absoluteGitCommonDir = resolve2(cwd, gitCommonDir);
55796
- return join4(absoluteGitCommonDir, "config");
55797
- }
55798
-
55799
55870
  // src/util/link/repo.ts
55800
55871
  var home = homedir2();
55801
55872
  async function getRepoLink(client, cwd) {
@@ -56223,7 +56294,7 @@ function findProjectsFromPath(projects, path) {
56223
56294
  var import_chalk13 = __toESM(require_source(), 1);
56224
56295
  var import_fs_extra5 = __toESM(require_lib2(), 1);
56225
56296
  import { closeSync, openSync, readSync } from "fs";
56226
- import { resolve as resolve3 } from "path";
56297
+ import { resolve as resolve4 } from "path";
56227
56298
 
56228
56299
  // src/util/env/get-env-records.ts
56229
56300
  import { URLSearchParams as URLSearchParams3 } from "url";
@@ -56665,7 +56736,7 @@ async function login(client, telemetry) {
56665
56736
  return 0;
56666
56737
  }
56667
56738
  async function wait(intervalMs) {
56668
- await new Promise((resolve4) => setTimeout(resolve4, intervalMs));
56739
+ await new Promise((resolve5) => setTimeout(resolve5, intervalMs));
56669
56740
  }
56670
56741
 
56671
56742
  // src/util/env/challenge-recovery.ts
@@ -57399,7 +57470,7 @@ function parseTarget({
57399
57470
  }
57400
57471
 
57401
57472
  // src/util/get-scope.ts
57402
- import { relative } from "path";
57473
+ import { relative as relative2 } from "path";
57403
57474
  async function getScope(client, opts = {}) {
57404
57475
  const user = await getUser(client);
57405
57476
  let contextName = user.username || user.email;
@@ -57442,7 +57513,7 @@ async function getScope(client, opts = {}) {
57442
57513
  const repoConfig = repoLink.repoConfig;
57443
57514
  const projects = findProjectsFromPath(
57444
57515
  repoConfig.projects,
57445
- relative(repoLink.rootPath, cwd)
57516
+ relative2(repoLink.rootPath, cwd)
57446
57517
  );
57447
57518
  if (projects.length === 1) {
57448
57519
  localOrgId = projects[0].orgId ?? repoLink.repoConfig.orgId ?? void 0;
@@ -57839,7 +57910,7 @@ async function pull(client, argv, source = "vercel-cli:env:pull", options = {})
57839
57910
  return 0;
57840
57911
  }
57841
57912
  async function envPullCommandLogic(client, filename, skipConfirmation, environment, link, gitBranch, cwd, source, deploymentId, { oidcTokenOnly = false } = {}) {
57842
- const fullPath = resolve3(cwd, filename);
57913
+ const fullPath = resolve4(cwd, filename);
57843
57914
  const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
57844
57915
  const exists = typeof head !== "undefined";
57845
57916
  if (head === CONTENTS_PREFIX && !oidcTokenOnly) {
@@ -59030,7 +59101,7 @@ async function getProjectLinkFromRepoLink(client, path, projectName, projectName
59030
59101
  }
59031
59102
  const projects = findProjectsFromPath(
59032
59103
  repoLink.repoConfig.projects,
59033
- relative2(repoLink.rootPath, path)
59104
+ relative3(repoLink.rootPath, path)
59034
59105
  );
59035
59106
  let project;
59036
59107
  if (projectName && projectNameIsExplicit) {
@@ -59613,7 +59684,7 @@ async function compileVercelConfig(workPath) {
59613
59684
  process.send(config);
59614
59685
  `;
59615
59686
  await writeFile4(loaderPath, loaderScript, "utf-8");
59616
- const config = await new Promise((resolve4, reject) => {
59687
+ const config = await new Promise((resolve5, reject) => {
59617
59688
  const child = fork(loaderPath, [tempOutPath], {
59618
59689
  stdio: ["pipe", "pipe", "pipe", "ipc"]
59619
59690
  });
@@ -59636,7 +59707,7 @@ async function compileVercelConfig(workPath) {
59636
59707
  child.on("message", (message) => {
59637
59708
  clearTimeout(timeout);
59638
59709
  child.kill();
59639
- resolve4(message);
59710
+ resolve5(message);
59640
59711
  });
59641
59712
  child.on("error", (err) => {
59642
59713
  clearTimeout(timeout);