@depup/vercel 58.4.4-depup.0 → 58.9.0-depup.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 (99) hide show
  1. package/README.md +7 -7
  2. package/changes.json +6 -6
  3. package/dist/chunks/{add-245XOFJO.js → add-EN4KBTT6.js} +7 -7
  4. package/dist/chunks/{add-XH24V5VU.js → add-HFK7NUGY.js} +5 -5
  5. package/dist/chunks/{add-P7WBQMBW.js → add-ZVQJE6BF.js} +45 -10
  6. package/dist/chunks/{build-M7NJYJPE.js → build-IDCBAC3R.js} +7 -7
  7. package/dist/chunks/{chunk-2WILSD7J.js → chunk-2PPATWD6.js} +1 -1
  8. package/dist/chunks/{chunk-WR7JTCGL.js → chunk-3BU2UCGV.js} +1 -1
  9. package/dist/chunks/{chunk-MAHXF73X.js → chunk-3L2YLLHC.js} +1 -1
  10. package/dist/chunks/{chunk-M5NOLAJ4.js → chunk-766B6IIX.js} +1 -1
  11. package/dist/chunks/{chunk-CPFNFVCL.js → chunk-7AB6QOKM.js} +1 -1
  12. package/dist/chunks/chunk-7N26744Z.js +1337 -0
  13. package/dist/chunks/{chunk-4CCY5OPH.js → chunk-BX4IGDGM.js} +349 -228
  14. package/dist/chunks/{chunk-XE5VSQ25.js → chunk-CKIZU3CI.js} +1 -1
  15. package/dist/chunks/{chunk-IEDUCUDV.js → chunk-DDUZ2VME.js} +39 -14
  16. package/dist/chunks/{chunk-YDUINEII.js → chunk-DQXBNALU.js} +6 -4
  17. package/dist/chunks/{chunk-ZGBBPJ6B.js → chunk-E3DRV4WI.js} +92 -1377
  18. package/dist/chunks/{chunk-AW5YINX6.js → chunk-ELA5VN3A.js} +36 -3
  19. package/dist/chunks/{chunk-HSYF5SI3.js → chunk-F45WFNLZ.js} +1 -1
  20. package/dist/chunks/{chunk-YCPUAG77.js → chunk-FBG4AMAX.js} +1 -1
  21. package/dist/chunks/chunk-G2S2QKKF.js +96 -0
  22. package/dist/chunks/{chunk-NJUPUGOE.js → chunk-HT2XWSAJ.js} +1 -1
  23. package/dist/chunks/chunk-I2XE3GMB.js +21 -0
  24. package/dist/chunks/{chunk-AQDWMAPM.js → chunk-KES53W3V.js} +11 -9
  25. package/dist/chunks/{chunk-XPKWKPWA.js → chunk-KXDWXXJH.js} +27 -1
  26. package/dist/chunks/chunk-MXLA3VQS.js +20 -0
  27. package/dist/chunks/{chunk-2FMPLU44.js → chunk-N22RS64U.js} +4 -3
  28. package/dist/chunks/{chunk-3QAUXPIR.js → chunk-NFZHW6HH.js} +224 -52
  29. package/dist/chunks/{chunk-UE3JUVUZ.js → chunk-PNSWZSLC.js} +2 -2
  30. package/dist/chunks/{chunk-2LBVX2H3.js → chunk-Q6OJHDZK.js} +2 -2
  31. package/dist/chunks/{chunk-Y5GTPWXB.js → chunk-QRRCK6VX.js} +2 -2
  32. package/dist/chunks/{chunk-EBLH23AQ.js → chunk-TEQKKTJQ.js} +4 -7
  33. package/dist/chunks/{chunk-62MH5KPX.js → chunk-TIBP3CPZ.js} +6 -6
  34. package/dist/chunks/{chunk-NJ6QXKQD.js → chunk-U6CTW37A.js} +1 -1
  35. package/dist/chunks/{chunk-4UYKSYKQ.js → chunk-UMA66MKW.js} +66 -2
  36. package/dist/chunks/chunk-WWPV6Z24.js +2910 -0
  37. package/dist/chunks/{chunk-4BUPRO5B.js → chunk-YTIUSEWE.js} +1 -1
  38. package/dist/chunks/{chunk-SJYAUEZR.js → chunk-YUISINFV.js} +3 -15
  39. package/dist/chunks/{clear-HWIKQ4NC.js → clear-W4AEVUND.js} +5 -5
  40. package/dist/chunks/{compile-vercel-config-U5NRIMZ2.js → compile-vercel-config-Q45PSZDQ.js} +2 -2
  41. package/dist/chunks/config-MZ3KLGOK.js +159 -0
  42. package/dist/chunks/{constants-3FSSR6E7.js → constants-T6BULVX6.js} +1 -1
  43. package/dist/chunks/{delete-NVMGVD5Z.js → delete-7NADCRED.js} +3 -3
  44. package/dist/chunks/{delete-FZCOUFGN.js → delete-NAZTL2IK.js} +5 -5
  45. package/dist/chunks/{disable-ERM2BWEQ.js → disable-SB224IIS.js} +3 -3
  46. package/dist/chunks/{discard-KM5OLEN4.js → discard-MME6PI7B.js} +3 -3
  47. package/dist/chunks/{edit-TOSB2EMI.js → edit-HKQEFIOY.js} +6 -6
  48. package/dist/chunks/{edit-HT3UTATZ.js → edit-NW4YBUR6.js} +4 -4
  49. package/dist/chunks/{enable-BQL6AOQV.js → enable-QEL5CXVD.js} +3 -3
  50. package/dist/chunks/{export-UOWQHOG3.js → export-XDOZTLG3.js} +3 -3
  51. package/dist/chunks/{image-F5SC6Q7Y.js → image-AJMRAAOW.js} +3 -3
  52. package/dist/chunks/import-builders-7UG32FQA.js +28 -0
  53. package/dist/chunks/{inspect-LGKOLH2O.js → inspect-4YTOMOOP.js} +6 -6
  54. package/dist/chunks/{inspect-5J5GSTOB.js → inspect-DGBKWCS4.js} +5 -5
  55. package/dist/chunks/{inspect-PZJM2CWT.js → inspect-JPZFHGAF.js} +8 -8
  56. package/dist/chunks/{inspect-GKJ6T5H4.js → inspect-T6HYEMLA.js} +5 -5
  57. package/dist/chunks/{inspect-35FU5R62.js → inspect-TW5DENBM.js} +7 -7
  58. package/dist/chunks/{list-ITFJYYQ2.js → list-ESW6P765.js} +10 -10
  59. package/dist/chunks/{list-2IIE7CAP.js → list-T7LXP6VX.js} +6 -6
  60. package/dist/chunks/{list-KZETH3ZE.js → list-YQ4LADLW.js} +4 -4
  61. package/dist/chunks/{login-BQPJCJEZ.js → login-VJESL6WK.js} +7 -7
  62. package/dist/chunks/{ls-7GHDK4MD.js → ls-2DYO6E4E.js} +14 -14
  63. package/dist/chunks/{ls-UXUEP54B.js → ls-4A6CGBPD.js} +5 -5
  64. package/dist/chunks/{ls-DL2LA35C.js → ls-5AQBMBOG.js} +5 -5
  65. package/dist/chunks/{ls-ZZFLH7PK.js → ls-5I2W7LZQ.js} +7 -7
  66. package/dist/chunks/{ls-YSFWSM6J.js → ls-Y46O3BCS.js} +5 -5
  67. package/dist/chunks/{open-ADNJQN5E.js → open-SZDSII6L.js} +4 -4
  68. package/dist/chunks/{permissions-72SZCBIY.js → permissions-HRR47E2L.js} +4 -4
  69. package/dist/chunks/{publish-OOAGSEBM.js → publish-D2QWFUP4.js} +3 -3
  70. package/dist/chunks/{push-B6TZDXNF.js → push-75R5ZZIW.js} +7 -7
  71. package/dist/chunks/{query-LZWS5TDH.js → query-LL2GMJWQ.js} +4 -4
  72. package/dist/chunks/{reorder-MRHFKPMK.js → reorder-GNCRV6CV.js} +3 -3
  73. package/dist/chunks/{reply-BKTJXO3B.js → reply-S3UUI6C6.js} +6 -6
  74. package/dist/chunks/{resolve-BKVGSGPN.js → resolve-PCBDK47N.js} +5 -5
  75. package/dist/chunks/{restore-USR7SKWV.js → restore-SXI5SHGJ.js} +3 -3
  76. package/dist/chunks/{rm-37MKKV3I.js → rm-574XTDSM.js} +5 -5
  77. package/dist/chunks/{rm-KUWPNZIS.js → rm-BEIAUTSF.js} +7 -7
  78. package/dist/chunks/{rm-VY3OHKFH.js → rm-YK2EGEPB.js} +5 -5
  79. package/dist/chunks/{rm-2UO6BT3A.js → rm-ZFWVI6JE.js} +7 -7
  80. package/dist/chunks/{rule-inspect-JVDOOTWK.js → rule-inspect-QDQUU3EO.js} +14 -21
  81. package/dist/chunks/{rules-NTBFZBIF.js → rules-FNA3NXZZ.js} +9 -6
  82. package/dist/chunks/{schema-6EZ72OVH.js → schema-5CASPRP6.js} +3 -3
  83. package/dist/chunks/schema-ZNPIMQL5.js +426 -0
  84. package/dist/chunks/{tags-HNPC63QA.js → tags-SRHDQUF6.js} +2 -2
  85. package/dist/chunks/{types-QTOA2BTQ.js → types-UWI4HETD.js} +1 -1
  86. package/dist/chunks/{update-LUYWNZP3.js → update-FSTNM3OX.js} +39 -7
  87. package/dist/commands/build/index.js +271 -2923
  88. package/dist/commands/deploy/index.js +35 -23
  89. package/dist/commands/dev/index.js +41 -18
  90. package/dist/commands/env/index.js +92 -153
  91. package/dist/commands/link/index.js +11 -11
  92. package/dist/commands/list/index.js +6 -6
  93. package/dist/commands-bulk.js +4953 -2881
  94. package/dist/index.js +22 -16
  95. package/dist/vc.js +11 -14
  96. package/dist/version.mjs +1 -1
  97. package/package.json +71 -65
  98. package/dist/chunks/chunk-2MAPZXVV.js +0 -206
  99. package/dist/chunks/{chunk-BUZRVER7.js → chunk-P65EEFTR.js} +3 -3
@@ -20,6 +20,9 @@ import {
20
20
  outputAgentError,
21
21
  shouldEmitNonInteractiveCommandError
22
22
  } from "./chunk-TJJ562C5.js";
23
+ import {
24
+ require_ms
25
+ } from "./chunk-GGP5R3FU.js";
23
26
  import {
24
27
  printError,
25
28
  require_string_width,
@@ -77,9 +80,6 @@ import {
77
80
  require_dist,
78
81
  require_escape_string_regexp
79
82
  } from "./chunk-OX7KI3LF.js";
80
- import {
81
- require_ms
82
- } from "./chunk-GGP5R3FU.js";
83
83
  import {
84
84
  require_ansi_styles,
85
85
  require_source,
@@ -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)
@@ -14510,7 +14510,7 @@ var require_frameworks = __commonJS({
14510
14510
  name: "Dojo",
14511
14511
  slug: "dojo",
14512
14512
  demo: "https://dojo-template.vercel.app",
14513
- logo: "https://api-frameworks.vercel.sh/framework-logos/dojo.png",
14513
+ logo: "https://api-frameworks.vercel.sh/framework-logos/dojo.svg",
14514
14514
  tagline: "Dojo is a modern progressive, TypeScript first framework.",
14515
14515
  description: "A Dojo app, created with the Dojo CLI's cli-create-app command.",
14516
14516
  website: "https://dojo.io",
@@ -14669,7 +14669,7 @@ var require_frameworks = __commonJS({
14669
14669
  name: "Scully",
14670
14670
  slug: "scully",
14671
14671
  demo: "https://scully-template.vercel.app",
14672
- logo: "https://api-frameworks.vercel.sh/framework-logos/scullyio-logo.png",
14672
+ logo: "https://api-frameworks.vercel.sh/framework-logos/scullyio-logo.svg",
14673
14673
  tagline: "Scully is a static site generator for Angular.",
14674
14674
  description: "The Static Site Generator for Angular apps.",
14675
14675
  website: "https://github.com/scullyio/scully",
@@ -15575,7 +15575,7 @@ var require_frameworks = __commonJS({
15575
15575
  name: "Zola",
15576
15576
  slug: "zola",
15577
15577
  demo: "https://zola-template.vercel.app",
15578
- logo: "https://api-frameworks.vercel.sh/framework-logos/zola.png",
15578
+ logo: "https://api-frameworks.vercel.sh/framework-logos/zola.svg",
15579
15579
  tagline: "Everything you need to make a static site engine in one binary.",
15580
15580
  description: 'A Zola app, created with the "Getting Started" tutorial.',
15581
15581
  website: "https://www.getzola.org",
@@ -15801,7 +15801,7 @@ var require_frameworks = __commonJS({
15801
15801
  name: "VuePress",
15802
15802
  slug: "vuepress",
15803
15803
  demo: "https://vuepress-starter-template.vercel.app",
15804
- logo: "https://api-frameworks.vercel.sh/framework-logos/vuepress.png",
15804
+ logo: "https://api-frameworks.vercel.sh/framework-logos/vuepress.svg",
15805
15805
  tagline: "Vue-powered Static Site Generator",
15806
15806
  description: "Vue-powered Static Site Generator",
15807
15807
  website: "https://vuepress.vuejs.org/",
@@ -15833,7 +15833,7 @@ var require_frameworks = __commonJS({
15833
15833
  name: "Parcel",
15834
15834
  slug: "parcel",
15835
15835
  demo: "https://parcel-template.vercel.app",
15836
- logo: "https://api-frameworks.vercel.sh/framework-logos/parcel.png",
15836
+ logo: "https://api-frameworks.vercel.sh/framework-logos/parcel.svg",
15837
15837
  tagline: "Parcel is a zero configuration build tool for the web that scales to projects of any size and complexity.",
15838
15838
  description: "A vanilla web app built with Parcel.",
15839
15839
  website: "https://parceljs.org",
@@ -15985,8 +15985,8 @@ var require_frameworks = __commonJS({
15985
15985
  name: "FastHTML",
15986
15986
  slug: "fasthtml",
15987
15987
  demo: "https://fasthtml-template.vercel.app",
15988
- logo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml.png",
15989
- darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml-dark.png",
15988
+ logo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml.svg",
15989
+ darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml-dark.svg",
15990
15990
  tagline: "The fastest way to create an HTML app",
15991
15991
  description: "A library for writing fast and scalable Starlette-powered web applications",
15992
15992
  website: "https://fastht.ml",
@@ -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.7",
38151
38168
  main: "dist/index.js",
38152
38169
  typings: "dist/index.d.ts",
38153
38170
  homepage: "https://vercel.com",
@@ -38162,11 +38179,10 @@ var require_package = __commonJS({
38162
38179
  },
38163
38180
  scripts: {
38164
38181
  build: "node ../../utils/build.mjs",
38165
- test: "vitest run --config ../../vitest.config.mts",
38166
- "vitest-run": "vitest -c ./vitest.config.mts",
38167
- "vitest-unit": "glob --absolute 'tests/unit.*.test.ts'",
38168
- "vitest-e2e": "glob --absolute 'tests/integration-*.test.ts'",
38169
- "type-check": "tsc --noEmit"
38182
+ test: "vitest run --config ./vitest.config.mts",
38183
+ "test-e2e": "vitest run --config ./vitest.config.mts tests/integration-",
38184
+ "type-check": "tsc --noEmit",
38185
+ "test-unit": "vitest run --config ./vitest.config.mts tests/unit."
38170
38186
  },
38171
38187
  engines: {
38172
38188
  node: ">= 20"
@@ -38286,14 +38302,14 @@ var require_readdir_recursive = __commonJS({
38286
38302
  function readdir(path, ignores) {
38287
38303
  ignores = ignores.map(toMatcherFunction);
38288
38304
  let list2 = [];
38289
- return new Promise(function(resolve4, reject) {
38305
+ return new Promise(function(resolve5, reject) {
38290
38306
  import_fs4.default.readdir(path, function(err, files) {
38291
38307
  if (err) {
38292
38308
  return reject(err);
38293
38309
  }
38294
38310
  let pending = files.length;
38295
38311
  if (!pending) {
38296
- return resolve4(list2);
38312
+ return resolve5(list2);
38297
38313
  }
38298
38314
  files.forEach(function(file) {
38299
38315
  const filePath = import_path13.default.join(path, file);
@@ -38305,7 +38321,7 @@ var require_readdir_recursive = __commonJS({
38305
38321
  if (matches) {
38306
38322
  pending -= 1;
38307
38323
  if (!pending) {
38308
- return resolve4(list2);
38324
+ return resolve5(list2);
38309
38325
  }
38310
38326
  return null;
38311
38327
  }
@@ -38317,14 +38333,14 @@ var require_readdir_recursive = __commonJS({
38317
38333
  list2 = list2.concat(res);
38318
38334
  pending -= 1;
38319
38335
  if (!pending) {
38320
- return resolve4(list2);
38336
+ return resolve5(list2);
38321
38337
  }
38322
38338
  }).catch(reject);
38323
38339
  } else {
38324
38340
  list2.push(filePath);
38325
38341
  pending -= 1;
38326
38342
  if (!pending) {
38327
- return resolve4(list2);
38343
+ return resolve5(list2);
38328
38344
  }
38329
38345
  }
38330
38346
  });
@@ -43473,15 +43489,15 @@ var require_pattern2 = __commonJS({
43473
43489
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
43474
43490
  function partitionAbsoluteAndRelative(patterns) {
43475
43491
  const absolute = [];
43476
- const relative3 = [];
43492
+ const relative4 = [];
43477
43493
  for (const pattern of patterns) {
43478
43494
  if (isAbsolute(pattern)) {
43479
43495
  absolute.push(pattern);
43480
43496
  } else {
43481
- relative3.push(pattern);
43497
+ relative4.push(pattern);
43482
43498
  }
43483
43499
  }
43484
- return [absolute, relative3];
43500
+ return [absolute, relative4];
43485
43501
  }
43486
43502
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
43487
43503
  function isAbsolute(pattern) {
@@ -44576,42 +44592,42 @@ var require_queue = __commonJS({
44576
44592
  queue.drained = drained;
44577
44593
  return queue;
44578
44594
  function push(value) {
44579
- var p = new Promise(function(resolve4, reject) {
44595
+ var p = new Promise(function(resolve5, reject) {
44580
44596
  pushCb(value, function(err, result) {
44581
44597
  if (err) {
44582
44598
  reject(err);
44583
44599
  return;
44584
44600
  }
44585
- resolve4(result);
44601
+ resolve5(result);
44586
44602
  });
44587
44603
  });
44588
44604
  p.catch(noop);
44589
44605
  return p;
44590
44606
  }
44591
44607
  function unshift(value) {
44592
- var p = new Promise(function(resolve4, reject) {
44608
+ var p = new Promise(function(resolve5, reject) {
44593
44609
  unshiftCb(value, function(err, result) {
44594
44610
  if (err) {
44595
44611
  reject(err);
44596
44612
  return;
44597
44613
  }
44598
- resolve4(result);
44614
+ resolve5(result);
44599
44615
  });
44600
44616
  });
44601
44617
  p.catch(noop);
44602
44618
  return p;
44603
44619
  }
44604
44620
  function drained() {
44605
- var p = new Promise(function(resolve4) {
44621
+ var p = new Promise(function(resolve5) {
44606
44622
  process.nextTick(function() {
44607
44623
  if (queue.idle()) {
44608
- resolve4();
44624
+ resolve5();
44609
44625
  } else {
44610
44626
  var previousDrain = queue.drain;
44611
44627
  queue.drain = function() {
44612
44628
  if (typeof previousDrain === "function")
44613
44629
  previousDrain();
44614
- resolve4();
44630
+ resolve5();
44615
44631
  queue.drain = previousDrain;
44616
44632
  };
44617
44633
  }
@@ -45097,9 +45113,9 @@ var require_stream3 = __commonJS({
45097
45113
  });
45098
45114
  }
45099
45115
  _getStat(filepath) {
45100
- return new Promise((resolve4, reject) => {
45116
+ return new Promise((resolve5, reject) => {
45101
45117
  this._stat(filepath, this._fsStatSettings, (error, stats) => {
45102
- return error === null ? resolve4(stats) : reject(error);
45118
+ return error === null ? resolve5(stats) : reject(error);
45103
45119
  });
45104
45120
  });
45105
45121
  }
@@ -45123,10 +45139,10 @@ var require_async6 = __commonJS({
45123
45139
  this._readerStream = new stream_1.default(this._settings);
45124
45140
  }
45125
45141
  dynamic(root, options) {
45126
- return new Promise((resolve4, reject) => {
45142
+ return new Promise((resolve5, reject) => {
45127
45143
  this._walkAsync(root, options, (error, entries) => {
45128
45144
  if (error === null) {
45129
- resolve4(entries);
45145
+ resolve5(entries);
45130
45146
  } else {
45131
45147
  reject(error);
45132
45148
  }
@@ -45136,10 +45152,10 @@ var require_async6 = __commonJS({
45136
45152
  async static(patterns, options) {
45137
45153
  const entries = [];
45138
45154
  const stream = this._readerStream.static(patterns, options);
45139
- return new Promise((resolve4, reject) => {
45155
+ return new Promise((resolve5, reject) => {
45140
45156
  stream.once("error", reject);
45141
45157
  stream.on("data", (entry) => entries.push(entry));
45142
- stream.once("end", () => resolve4(entries));
45158
+ stream.once("end", () => resolve5(entries));
45143
45159
  });
45144
45160
  }
45145
45161
  };
@@ -45796,9 +45812,9 @@ var require_out4 = __commonJS({
45796
45812
  }
45797
45813
  });
45798
45814
 
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
45815
+ // ../../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
45816
  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) {
45817
+ "../../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
45818
  "use strict";
45803
45819
  var __create = Object.create;
45804
45820
  var __defProp = Object.defineProperty;
@@ -46058,7 +46074,8 @@ var require_utils9 = __commonJS({
46058
46074
  getApiDeploymentsUrl: () => getApiDeploymentsUrl,
46059
46075
  getVercelIgnore: () => getVercelIgnore2,
46060
46076
  parseVercelConfig: () => parseVercelConfig,
46061
- prepareFiles: () => prepareFiles
46077
+ prepareFiles: () => prepareFiles,
46078
+ shouldInlineStaticFiles: () => shouldInlineStaticFiles
46062
46079
  });
46063
46080
  module.exports = __toCommonJS2(utils_exports);
46064
46081
  var import_path13 = __require("path");
@@ -46393,8 +46410,33 @@ ${clearRelative(ignoreFile)}`);
46393
46410
  }
46394
46411
  };
46395
46412
  var isWin = process.platform.includes("win");
46413
+ var INLINE_STATIC_EXTENSIONS = [".html", ".htm", ".md"];
46414
+ var MAX_INLINE_FILES = 10;
46415
+ var MAX_INLINE_TOTAL_BYTES = 5 * 1024 * 1024;
46416
+ var S_IFREG = 32768;
46417
+ var S_IFMT = 61440;
46418
+ function shouldInlineStaticFiles(files) {
46419
+ let count = 0;
46420
+ let totalBytes = 0;
46421
+ for (const file of files.values()) {
46422
+ if ((file.mode & S_IFMT) !== S_IFREG)
46423
+ return false;
46424
+ if (!file.data)
46425
+ return false;
46426
+ for (const name of file.names) {
46427
+ const lower = name.toLowerCase();
46428
+ if (!INLINE_STATIC_EXTENSIONS.some((ext) => lower.endsWith(ext))) {
46429
+ return false;
46430
+ }
46431
+ count += 1;
46432
+ totalBytes += file.data.byteLength;
46433
+ }
46434
+ }
46435
+ return count > 0 && count <= MAX_INLINE_FILES && totalBytes <= MAX_INLINE_TOTAL_BYTES;
46436
+ }
46396
46437
  var prepareFiles = (files, clientOptions) => {
46397
46438
  const preparedFiles = [];
46439
+ const inlineStaticFiles = shouldInlineStaticFiles(files);
46398
46440
  for (const [sha, file] of files) {
46399
46441
  for (const name of file.names) {
46400
46442
  let fileName;
@@ -46404,8 +46446,18 @@ ${clearRelative(ignoreFile)}`);
46404
46446
  const segments = name.split(import_path13.sep);
46405
46447
  fileName = segments[segments.length - 1];
46406
46448
  }
46449
+ const normalizedName = isWin ? fileName.replace(/\\/g, "/") : fileName;
46450
+ if (inlineStaticFiles && file.data) {
46451
+ preparedFiles.push({
46452
+ file: normalizedName,
46453
+ data: file.data.toString("base64"),
46454
+ encoding: "base64",
46455
+ mode: file.mode
46456
+ });
46457
+ continue;
46458
+ }
46407
46459
  preparedFiles.push({
46408
- file: isWin ? fileName.replace(/\\/g, "/") : fileName,
46460
+ file: normalizedName,
46409
46461
  size: file.data?.byteLength ?? file.size,
46410
46462
  mode: file.mode,
46411
46463
  sha: sha || void 0
@@ -46543,12 +46595,12 @@ var require_check_deployment_status = __commonJS({
46543
46595
  await (0, import_sleep_promise.default)(duration);
46544
46596
  return;
46545
46597
  }
46546
- await new Promise((resolve4) => {
46598
+ await new Promise((resolve5) => {
46547
46599
  const timeout = setTimeout(finish, duration);
46548
46600
  function finish() {
46549
46601
  clearTimeout(timeout);
46550
46602
  signal?.removeEventListener("abort", onAbort);
46551
- resolve4();
46603
+ resolve5();
46552
46604
  }
46553
46605
  function onAbort() {
46554
46606
  if (getAliasAssignedEvent(signal, deploymentId))
@@ -47175,7 +47227,7 @@ var require_lib7 = __commonJS({
47175
47227
  "../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js"(exports, module) {
47176
47228
  var retrier = require_retry2();
47177
47229
  function retry(fn, opts) {
47178
- function run(resolve4, reject) {
47230
+ function run(resolve5, reject) {
47179
47231
  var options = opts || {};
47180
47232
  var op = retrier.operation(options);
47181
47233
  function bail(err) {
@@ -47200,7 +47252,7 @@ var require_lib7 = __commonJS({
47200
47252
  onError(err, num);
47201
47253
  return;
47202
47254
  }
47203
- Promise.resolve(val).then(resolve4).catch(function catchIt(err) {
47255
+ Promise.resolve(val).then(resolve5).catch(function catchIt(err) {
47204
47256
  onError(err, num);
47205
47257
  });
47206
47258
  }
@@ -53509,7 +53561,7 @@ import { parse as tomlParse2 } from "smol-toml";
53509
53561
  var import_ajv = __toESM(require_ajv(), 1);
53510
53562
  var import_fs_extra8 = __toESM(require_lib2(), 1);
53511
53563
  import fs4 from "fs";
53512
- import { join as join9, relative as relative2 } from "path";
53564
+ import { join as join9, relative as relative3 } from "path";
53513
53565
  import { promisify } from "util";
53514
53566
 
53515
53567
  // src/util/projects/get-project-by-id-or-name.ts
@@ -53978,13 +54030,13 @@ var CancelablePromise = class _CancelablePromise extends Promise {
53978
54030
  });
53979
54031
  }
53980
54032
  static withResolver() {
53981
- let resolve4;
54033
+ let resolve5;
53982
54034
  let reject;
53983
54035
  const promise = new _CancelablePromise((res, rej) => {
53984
- resolve4 = res;
54036
+ resolve5 = res;
53985
54037
  reject = rej;
53986
54038
  });
53987
- return { promise, resolve: resolve4, reject };
54039
+ return { promise, resolve: resolve5, reject };
53988
54040
  }
53989
54041
  };
53990
54042
 
@@ -54347,7 +54399,7 @@ function createPrompt(view) {
54347
54399
  const screen = new ScreenManager(rl);
54348
54400
  let cancel = () => {
54349
54401
  };
54350
- const answer = new CancelablePromise((resolve4, reject) => {
54402
+ const answer = new CancelablePromise((resolve5, reject) => {
54351
54403
  withHooks(rl, (store) => {
54352
54404
  function checkCursorPos() {
54353
54405
  screen.checkCursorPos();
@@ -54380,7 +54432,7 @@ function createPrompt(view) {
54380
54432
  function done(value) {
54381
54433
  setImmediate(() => {
54382
54434
  onExit2();
54383
- resolve4(value);
54435
+ resolve5(value);
54384
54436
  });
54385
54437
  }
54386
54438
  function workLoop(resolvedConfig) {
@@ -54872,13 +54924,65 @@ var import_fs_extra = __toESM(require_lib2(), 1);
54872
54924
  var import_ini = __toESM(require_ini(), 1);
54873
54925
  var import_git_last_commit = __toESM(require_source3(), 1);
54874
54926
  var import_error_utils = __toESM(require_dist(), 1);
54875
- import { join } from "path";
54927
+ import { join as join2, relative, resolve as resolve3 } from "path";
54876
54928
  import { exec } from "child_process";
54929
+
54930
+ // src/util/git-helpers.ts
54931
+ import { execSync } from "child_process";
54932
+ import { join, resolve as resolve2 } from "path";
54933
+ var DEFAULT_GIT_EXEC_OPTS = {
54934
+ unsafe: false
54935
+ };
54936
+ function getGitRootDirectory(opts) {
54937
+ const { cwd, unsafe } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
54938
+ try {
54939
+ const gitRoot = execSync("git rev-parse --show-toplevel", {
54940
+ cwd,
54941
+ encoding: "utf8",
54942
+ stdio: ["ignore", "pipe", "ignore"]
54943
+ });
54944
+ return gitRoot.trim();
54945
+ } catch (error) {
54946
+ if (unsafe) {
54947
+ throw error;
54948
+ }
54949
+ return null;
54950
+ }
54951
+ }
54952
+ function getGitCommonDirectory(opts) {
54953
+ const { cwd, unsafe } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
54954
+ try {
54955
+ const gitCommonDir = execSync("git rev-parse --git-common-dir", {
54956
+ cwd,
54957
+ encoding: "utf8",
54958
+ stdio: ["ignore", "pipe", "ignore"]
54959
+ });
54960
+ return gitCommonDir.trim();
54961
+ } catch (error) {
54962
+ if (unsafe) {
54963
+ throw error;
54964
+ }
54965
+ return null;
54966
+ }
54967
+ }
54968
+ function getGitConfigPath(opts) {
54969
+ const { cwd } = { ...DEFAULT_GIT_EXEC_OPTS, ...opts };
54970
+ const gitCommonDir = getGitCommonDirectory(opts);
54971
+ if (gitCommonDir === null) {
54972
+ return null;
54973
+ }
54974
+ const absoluteGitCommonDir = resolve2(cwd, gitCommonDir);
54975
+ return join(absoluteGitCommonDir, "config");
54976
+ }
54977
+
54978
+ // src/util/create-git-meta.ts
54877
54979
  async function createGitMeta(directory, project) {
54980
+ const gitRoot = getGitRootDirectory({ cwd: directory });
54981
+ const gitConfigPath = join2(gitRoot || directory, ".git/config");
54878
54982
  let remoteUrl;
54879
54983
  if (project?.link) {
54880
54984
  const { repo } = project.link;
54881
- const remoteUrls = await getRemoteUrls(join(directory, ".git/config"));
54985
+ const remoteUrls = await getRemoteUrls(gitConfigPath);
54882
54986
  if (remoteUrls) {
54883
54987
  for (const urlValue of Object.values(remoteUrls)) {
54884
54988
  if (urlValue.includes(repo)) {
@@ -54888,7 +54992,7 @@ async function createGitMeta(directory, project) {
54888
54992
  }
54889
54993
  }
54890
54994
  if (!remoteUrl) {
54891
- remoteUrl = await getOriginUrl(join(directory, ".git/config"));
54995
+ remoteUrl = await getOriginUrl(gitConfigPath);
54892
54996
  }
54893
54997
  const [commitResult, dirtyResult] = await Promise.allSettled([
54894
54998
  getLastCommit(directory),
@@ -54917,24 +55021,38 @@ ${dirtyResult.reason}`
54917
55021
  commitMessage: commit.subject,
54918
55022
  commitRef: commit.branch,
54919
55023
  commitSha: commit.hash,
54920
- dirty
55024
+ dirty,
55025
+ rootDirectory: getRootDirectory(directory, gitRoot)
54921
55026
  };
54922
55027
  }
55028
+ function getRootDirectory(directory, gitRoot = getGitRootDirectory({ cwd: directory })) {
55029
+ if (!gitRoot) {
55030
+ return;
55031
+ }
55032
+ const rootDirectory = relative(gitRoot, resolve3(directory)).replace(
55033
+ /\\/g,
55034
+ "/"
55035
+ );
55036
+ if (rootDirectory === ".." || rootDirectory.startsWith("../")) {
55037
+ return;
55038
+ }
55039
+ return rootDirectory === "." ? "" : rootDirectory;
55040
+ }
54923
55041
  function getLastCommit(directory) {
54924
- return new Promise((resolve4, reject) => {
55042
+ return new Promise((resolve5, reject) => {
54925
55043
  import_git_last_commit.default.getLastCommit(
54926
55044
  (err, commit) => {
54927
55045
  if (err) {
54928
55046
  return reject((0, import_error_utils.normalizeError)(err));
54929
55047
  }
54930
- resolve4(commit);
55048
+ resolve5(commit);
54931
55049
  },
54932
55050
  { dst: directory }
54933
55051
  );
54934
55052
  });
54935
55053
  }
54936
55054
  function isDirty(directory) {
54937
- return new Promise((resolve4, reject) => {
55055
+ return new Promise((resolve5, reject) => {
54938
55056
  exec(
54939
55057
  "git --no-optional-locks status -s",
54940
55058
  { cwd: directory },
@@ -54945,7 +55063,7 @@ function isDirty(directory) {
54945
55063
  if (stderr !== void 0 && stderr.trim().length > 0) {
54946
55064
  return reject(new Error(stderr));
54947
55065
  }
54948
- resolve4(stdout.trim().length > 0);
55066
+ resolve5(stdout.trim().length > 0);
54949
55067
  }
54950
55068
  );
54951
55069
  });
@@ -55233,11 +55351,11 @@ ${import_chalk6.default.dim(` ${description}`)}` : "";
55233
55351
  // src/util/link/add-to-gitignore.ts
55234
55352
  var import_fs_extra2 = __toESM(require_lib2(), 1);
55235
55353
  import os from "os";
55236
- import { join as join2 } from "path";
55354
+ import { join as join3 } from "path";
55237
55355
  async function addToGitIgnore(path, ignore = VERCEL_DIR) {
55238
55356
  let isGitIgnoreUpdated = false;
55239
55357
  try {
55240
- const gitIgnorePath = join2(path, ".gitignore");
55358
+ const gitIgnorePath = join3(path, ".gitignore");
55241
55359
  let gitIgnore = await (0, import_fs_extra2.readFile)(gitIgnorePath, "utf8").catch(() => null) ?? "";
55242
55360
  const EOL = gitIgnore.includes("\r\n") ? "\r\n" : os.EOL;
55243
55361
  let contentModified = false;
@@ -55275,7 +55393,7 @@ async function createProject(client, settings) {
55275
55393
  // src/util/projects/detect-projects.ts
55276
55394
  var import_frameworks = __toESM(require_frameworks(), 1);
55277
55395
  var import_fs_detectors = __toESM(require_dist6(), 1);
55278
- import { join as join3 } from "path";
55396
+ import { join as join4 } from "path";
55279
55397
  async function detectProjects(cwd) {
55280
55398
  const fs5 = new import_fs_detectors.LocalFileSystemDetector(cwd);
55281
55399
  const workspaces = await (0, import_fs_detectors.getWorkspaces)({ fs: fs5 });
@@ -55294,7 +55412,7 @@ async function detectProjects(cwd) {
55294
55412
  await Promise.all(
55295
55413
  packagePaths.map(async (p) => {
55296
55414
  const frameworks = await (0, import_fs_detectors.detectFrameworks)({
55297
- fs: fs5.chdir(join3(".", p)),
55415
+ fs: fs5.chdir(join4(".", p)),
55298
55416
  frameworkList: import_frameworks.frameworkList
55299
55417
  });
55300
55418
  if (frameworks.length === 0)
@@ -55748,54 +55866,6 @@ async function confirmRepoConnect(client, yes, connectedProvider, connectedRepoP
55748
55866
  return shouldReplaceProject;
55749
55867
  }
55750
55868
 
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
55869
  // src/util/link/repo.ts
55800
55870
  var home = homedir2();
55801
55871
  async function getRepoLink(client, cwd) {
@@ -56223,7 +56293,7 @@ function findProjectsFromPath(projects, path) {
56223
56293
  var import_chalk13 = __toESM(require_source(), 1);
56224
56294
  var import_fs_extra5 = __toESM(require_lib2(), 1);
56225
56295
  import { closeSync, openSync, readSync } from "fs";
56226
- import { resolve as resolve3 } from "path";
56296
+ import { resolve as resolve4 } from "path";
56227
56297
 
56228
56298
  // src/util/env/get-env-records.ts
56229
56299
  import { URLSearchParams as URLSearchParams3 } from "url";
@@ -56665,7 +56735,7 @@ async function login(client, telemetry) {
56665
56735
  return 0;
56666
56736
  }
56667
56737
  async function wait(intervalMs) {
56668
- await new Promise((resolve4) => setTimeout(resolve4, intervalMs));
56738
+ await new Promise((resolve5) => setTimeout(resolve5, intervalMs));
56669
56739
  }
56670
56740
 
56671
56741
  // src/util/env/challenge-recovery.ts
@@ -57025,14 +57095,18 @@ var addSubcommand = {
57025
57095
  {
57026
57096
  name: "environment",
57027
57097
  required: false
57028
- },
57029
- {
57030
- name: "git-branch",
57031
- required: false
57032
57098
  }
57033
57099
  ],
57034
57100
  options: [
57035
57101
  projectOption,
57102
+ {
57103
+ name: "git-branch",
57104
+ description: "Set the Git branch for a Preview Environment Variable",
57105
+ shorthand: null,
57106
+ type: String,
57107
+ argument: "NAME",
57108
+ deprecated: false
57109
+ },
57036
57110
  {
57037
57111
  name: "sensitive",
57038
57112
  description: "Store the value as sensitive for Production or Preview",
@@ -57062,7 +57136,7 @@ var addSubcommand = {
57062
57136
  },
57063
57137
  {
57064
57138
  ...yesOption,
57065
- description: "Skip the confirmation prompt when adding an Environment Variable"
57139
+ description: "Accept default choices when adding an Environment Variable"
57066
57140
  },
57067
57141
  {
57068
57142
  name: "guidance",
@@ -57113,8 +57187,8 @@ var addSubcommand = {
57113
57187
  {
57114
57188
  name: "Add a new Environment Variable for a specific Environment and Git Branch",
57115
57189
  value: [
57116
- `${packageName} env add <name> ${targetPlaceholder} <gitbranch>`,
57117
- `${packageName} env add DB_PASS preview feat1`
57190
+ `${packageName} env add <name> ${targetPlaceholder} --git-branch <name>`,
57191
+ `${packageName} env add DB_PASS preview --git-branch feat1`
57118
57192
  ]
57119
57193
  },
57120
57194
  {
@@ -57399,7 +57473,7 @@ function parseTarget({
57399
57473
  }
57400
57474
 
57401
57475
  // src/util/get-scope.ts
57402
- import { relative } from "path";
57476
+ import { relative as relative2 } from "path";
57403
57477
  async function getScope(client, opts = {}) {
57404
57478
  const user = await getUser(client);
57405
57479
  let contextName = user.username || user.email;
@@ -57442,7 +57516,7 @@ async function getScope(client, opts = {}) {
57442
57516
  const repoConfig = repoLink.repoConfig;
57443
57517
  const projects = findProjectsFromPath(
57444
57518
  repoConfig.projects,
57445
- relative(repoLink.rootPath, cwd)
57519
+ relative2(repoLink.rootPath, cwd)
57446
57520
  );
57447
57521
  if (projects.length === 1) {
57448
57522
  localOrgId = projects[0].orgId ?? repoLink.repoConfig.orgId ?? void 0;
@@ -57839,7 +57913,7 @@ async function pull(client, argv, source = "vercel-cli:env:pull", options = {})
57839
57913
  return 0;
57840
57914
  }
57841
57915
  async function envPullCommandLogic(client, filename, skipConfirmation, environment, link, gitBranch, cwd, source, deploymentId, { oidcTokenOnly = false } = {}) {
57842
- const fullPath = resolve3(cwd, filename);
57916
+ const fullPath = resolve4(cwd, filename);
57843
57917
  const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
57844
57918
  const exists = typeof head !== "undefined";
57845
57919
  if (head === CONTENTS_PREFIX && !oidcTokenOnly) {
@@ -58736,28 +58810,42 @@ import {
58736
58810
  function createDetectEntrypoint(projectRoot) {
58737
58811
  return async ({ workPath, framework }) => {
58738
58812
  const absWorkPath = normalizePath2(join6(projectRoot, workPath));
58813
+ let builderName;
58739
58814
  if (isPythonFramework(framework)) {
58740
- const { detectEntrypoint } = await import("@vercel/python");
58741
- return detectEntrypoint({
58742
- workPath: absWorkPath,
58743
- framework
58744
- });
58815
+ builderName = "@vercel/python";
58816
+ } else if (isNodeBackendFramework(framework)) {
58817
+ builderName = "@vercel/backends";
58818
+ } else if (framework === "go") {
58819
+ builderName = "@vercel/go";
58820
+ } else {
58821
+ return null;
58745
58822
  }
58746
- if (isNodeBackendFramework(framework)) {
58747
- const { detectEntrypoint } = await import("@vercel/backends");
58748
- return detectEntrypoint({
58749
- workPath: absWorkPath
58750
- });
58823
+ const detectEntrypoint = await loadBuilderDetectEntrypoint(
58824
+ builderName,
58825
+ projectRoot
58826
+ );
58827
+ if (!detectEntrypoint) {
58828
+ return null;
58751
58829
  }
58752
- if (framework === "go") {
58753
- const { detectEntrypoint } = await import("@vercel/go");
58830
+ if (builderName === "@vercel/python") {
58754
58831
  return detectEntrypoint({
58755
- workPath: absWorkPath
58832
+ workPath: absWorkPath,
58833
+ framework
58756
58834
  });
58757
58835
  }
58758
- return null;
58836
+ return detectEntrypoint({ workPath: absWorkPath });
58759
58837
  };
58760
58838
  }
58839
+ async function loadBuilderDetectEntrypoint(name, projectRoot) {
58840
+ const { importBuilders } = await import("./import-builders-7UG32FQA.js");
58841
+ const builders = await importBuilders(/* @__PURE__ */ new Set([name]), projectRoot);
58842
+ const loaded = builders.get(name);
58843
+ if (!loaded) {
58844
+ return void 0;
58845
+ }
58846
+ const detect = loaded.builder.detectEntrypoint;
58847
+ return typeof detect === "function" ? detect : void 0;
58848
+ }
58761
58849
 
58762
58850
  // src/util/projects/detect-services.ts
58763
58851
  async function isExperimentalServicesEnabled(cwd) {
@@ -58973,6 +59061,9 @@ var VERCEL_DIR_REPO = "repo.json";
58973
59061
  function isOwnerLookupUnavailableLink(link) {
58974
59062
  return "ownerLookupUnavailable" in link && link.ownerLookupUnavailable === true;
58975
59063
  }
59064
+ function isOrgSlugUnavailableLink(link) {
59065
+ return "orgSlugUnavailable" in link && link.orgSlugUnavailable === true;
59066
+ }
58976
59067
  function isOwnerLookupUnavailableError(error) {
58977
59068
  return isAPIError(error) && error.status === 403 && error.code === "team_unauthorized";
58978
59069
  }
@@ -59030,7 +59121,7 @@ async function getProjectLinkFromRepoLink(client, path, projectName, projectName
59030
59121
  }
59031
59122
  const projects = findProjectsFromPath(
59032
59123
  repoLink.repoConfig.projects,
59033
- relative2(repoLink.rootPath, path)
59124
+ relative3(repoLink.rootPath, path)
59034
59125
  );
59035
59126
  let project;
59036
59127
  if (projectName && projectNameIsExplicit) {
@@ -59080,6 +59171,7 @@ async function getProjectLinkFromRepoLink(client, path, projectName, projectName
59080
59171
  repoRoot: repoLink.rootPath,
59081
59172
  orgId,
59082
59173
  projectId: project.id,
59174
+ projectName: project.name,
59083
59175
  projectRootDirectory: project.directory
59084
59176
  };
59085
59177
  }
@@ -59211,6 +59303,34 @@ async function getLinkedProject(client, options = {}) {
59211
59303
  if (!link) {
59212
59304
  return { status: "not_linked", org: null, project: null, orgId };
59213
59305
  }
59306
+ if (options.skipRemoteLookup && link.projectName) {
59307
+ const settings = link.settings;
59308
+ const project2 = {
59309
+ ...settings,
59310
+ id: link.projectId,
59311
+ accountId: link.orgId,
59312
+ name: link.projectName,
59313
+ createdAt: settings?.createdAt ?? 0,
59314
+ updatedAt: settings?.createdAt ?? 0,
59315
+ rootDirectory: link.projectRootDirectory ?? settings?.rootDirectory ?? null
59316
+ };
59317
+ const localProjectLink = {
59318
+ status: "linked",
59319
+ org: {
59320
+ type: link.orgId.startsWith("team_") ? "team" : "user",
59321
+ id: link.orgId,
59322
+ slug: ""
59323
+ },
59324
+ project: project2,
59325
+ repoRoot: link.repoRoot,
59326
+ orgSlugUnavailable: true
59327
+ };
59328
+ return {
59329
+ ...localProjectLink,
59330
+ projectRootDirectory: link.projectRootDirectory,
59331
+ orgId: link.orgId
59332
+ };
59333
+ }
59214
59334
  output_manager_default.spinner("Retrieving project\u2026", 1e3);
59215
59335
  let org = null;
59216
59336
  let project = null;
@@ -59613,7 +59733,7 @@ async function compileVercelConfig(workPath) {
59613
59733
  process.send(config);
59614
59734
  `;
59615
59735
  await writeFile4(loaderPath, loaderScript, "utf-8");
59616
- const config = await new Promise((resolve4, reject) => {
59736
+ const config = await new Promise((resolve5, reject) => {
59617
59737
  const child = fork(loaderPath, [tempOutPath], {
59618
59738
  stdio: ["pipe", "pipe", "pipe", "ipc"]
59619
59739
  });
@@ -59636,7 +59756,7 @@ async function compileVercelConfig(workPath) {
59636
59756
  child.on("message", (message) => {
59637
59757
  clearTimeout(timeout);
59638
59758
  child.kill();
59639
- resolve4(message);
59759
+ resolve5(message);
59640
59760
  });
59641
59761
  child.on("error", (err) => {
59642
59762
  clearTimeout(timeout);
@@ -59831,6 +59951,7 @@ export {
59831
59951
  VERCEL_DIR_README,
59832
59952
  VERCEL_DIR_PROJECT,
59833
59953
  isOwnerLookupUnavailableLink,
59954
+ isOrgSlugUnavailableLink,
59834
59955
  getVercelDirectory,
59835
59956
  getProjectLink,
59836
59957
  getLinkFromDir,