vercel 44.2.7 → 44.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +127 -91
  2. package/package.json +12 -10
package/dist/index.js CHANGED
@@ -163,7 +163,7 @@ var require_universalify = __commonJS2({
163
163
  // ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
164
164
  var require_polyfills = __commonJS2({
165
165
  "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
166
- var constants = require("constants");
166
+ var constants2 = require("constants");
167
167
  var origCwd = process.cwd;
168
168
  var cwd = null;
169
169
  var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
@@ -188,7 +188,7 @@ var require_polyfills = __commonJS2({
188
188
  var chdir;
189
189
  module2.exports = patch;
190
190
  function patch(fs15) {
191
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
191
+ if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
192
192
  patchLchmod(fs15);
193
193
  }
194
194
  if (!fs15.lutimes) {
@@ -295,7 +295,7 @@ var require_polyfills = __commonJS2({
295
295
  fs16.lchmod = function(path11, mode, callback) {
296
296
  fs16.open(
297
297
  path11,
298
- constants.O_WRONLY | constants.O_SYMLINK,
298
+ constants2.O_WRONLY | constants2.O_SYMLINK,
299
299
  mode,
300
300
  function(err, fd) {
301
301
  if (err) {
@@ -313,7 +313,7 @@ var require_polyfills = __commonJS2({
313
313
  );
314
314
  };
315
315
  fs16.lchmodSync = function(path11, mode) {
316
- var fd = fs16.openSync(path11, constants.O_WRONLY | constants.O_SYMLINK, mode);
316
+ var fd = fs16.openSync(path11, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
317
317
  var threw = true;
318
318
  var ret;
319
319
  try {
@@ -333,9 +333,9 @@ var require_polyfills = __commonJS2({
333
333
  };
334
334
  }
335
335
  function patchLutimes(fs16) {
336
- if (constants.hasOwnProperty("O_SYMLINK") && fs16.futimes) {
336
+ if (constants2.hasOwnProperty("O_SYMLINK") && fs16.futimes) {
337
337
  fs16.lutimes = function(path11, at, mt, cb) {
338
- fs16.open(path11, constants.O_SYMLINK, function(er, fd) {
338
+ fs16.open(path11, constants2.O_SYMLINK, function(er, fd) {
339
339
  if (er) {
340
340
  if (cb)
341
341
  cb(er);
@@ -350,7 +350,7 @@ var require_polyfills = __commonJS2({
350
350
  });
351
351
  };
352
352
  fs16.lutimesSync = function(path11, at, mt) {
353
- var fd = fs16.openSync(path11, constants.O_SYMLINK);
353
+ var fd = fs16.openSync(path11, constants2.O_SYMLINK);
354
354
  var ret;
355
355
  var threw = true;
356
356
  try {
@@ -14366,7 +14366,7 @@ var require_prepareEvent = __commonJS2({
14366
14366
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/utils/prepareEvent.js"(exports2) {
14367
14367
  Object.defineProperty(exports2, "__esModule", { value: true });
14368
14368
  var utils = require_cjs();
14369
- var constants = require_constants();
14369
+ var constants2 = require_constants();
14370
14370
  var eventProcessors = require_eventProcessors();
14371
14371
  var scope = require_scope();
14372
14372
  var applyScopeDataToEvent = require_applyScopeDataToEvent();
@@ -14424,7 +14424,7 @@ var require_prepareEvent = __commonJS2({
14424
14424
  function applyClientOptions(event, options) {
14425
14425
  const { environment, release, dist, maxValueLength = 250 } = options;
14426
14426
  if (!("environment" in event)) {
14427
- event.environment = "environment" in options ? environment : constants.DEFAULT_ENVIRONMENT;
14427
+ event.environment = "environment" in options ? environment : constants2.DEFAULT_ENVIRONMENT;
14428
14428
  }
14429
14429
  if (event.release === void 0 && release !== void 0) {
14430
14430
  event.release = release;
@@ -14615,7 +14615,7 @@ var require_exports = __commonJS2({
14615
14615
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/exports.js"(exports2) {
14616
14616
  Object.defineProperty(exports2, "__esModule", { value: true });
14617
14617
  var utils = require_cjs();
14618
- var constants = require_constants();
14618
+ var constants2 = require_constants();
14619
14619
  var debugBuild = require_debug_build2();
14620
14620
  var hub = require_hub();
14621
14621
  var session = require_session();
@@ -14754,7 +14754,7 @@ var require_exports = __commonJS2({
14754
14754
  const client2 = getClient();
14755
14755
  const isolationScope = hub.getIsolationScope();
14756
14756
  const currentScope = getCurrentScope();
14757
- const { release, environment = constants.DEFAULT_ENVIRONMENT } = client2 && client2.getOptions() || {};
14757
+ const { release, environment = constants2.DEFAULT_ENVIRONMENT } = client2 && client2.getOptions() || {};
14758
14758
  const { userAgent: userAgent2 } = utils.GLOBAL_OBJ.navigator || {};
14759
14759
  const session$1 = session.makeSession({
14760
14760
  release,
@@ -14844,7 +14844,7 @@ var require_dynamicSamplingContext = __commonJS2({
14844
14844
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/tracing/dynamicSamplingContext.js"(exports2) {
14845
14845
  Object.defineProperty(exports2, "__esModule", { value: true });
14846
14846
  var utils = require_cjs();
14847
- var constants = require_constants();
14847
+ var constants2 = require_constants();
14848
14848
  var exports$1 = require_exports();
14849
14849
  var getRootSpan = require_getRootSpan();
14850
14850
  var spanUtils = require_spanUtils();
@@ -14853,7 +14853,7 @@ var require_dynamicSamplingContext = __commonJS2({
14853
14853
  const { publicKey: public_key } = client2.getDsn() || {};
14854
14854
  const { segment: user_segment } = scope && scope.getUser() || {};
14855
14855
  const dsc = utils.dropUndefinedKeys({
14856
- environment: options.environment || constants.DEFAULT_ENVIRONMENT,
14856
+ environment: options.environment || constants2.DEFAULT_ENVIRONMENT,
14857
14857
  release: options.release,
14858
14858
  user_segment,
14859
14859
  public_key,
@@ -15610,7 +15610,7 @@ var require_hub = __commonJS2({
15610
15610
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/hub.js"(exports2) {
15611
15611
  Object.defineProperty(exports2, "__esModule", { value: true });
15612
15612
  var utils = require_cjs();
15613
- var constants = require_constants();
15613
+ var constants2 = require_constants();
15614
15614
  var debugBuild = require_debug_build2();
15615
15615
  var scope = require_scope();
15616
15616
  var session = require_session();
@@ -16040,7 +16040,7 @@ Sentry.init({...});
16040
16040
  */
16041
16041
  startSession(context) {
16042
16042
  const { scope: scope2, client: client2 } = this.getStackTop();
16043
- const { release, environment = constants.DEFAULT_ENVIRONMENT } = client2 && client2.getOptions() || {};
16043
+ const { release, environment = constants2.DEFAULT_ENVIRONMENT } = client2 && client2.getOptions() || {};
16044
16044
  const { userAgent: userAgent2 } = utils.GLOBAL_OBJ.navigator || {};
16045
16045
  const session$1 = session.makeSession({
16046
16046
  release,
@@ -19115,7 +19115,7 @@ var require_constants2 = __commonJS2({
19115
19115
  var require_instance = __commonJS2({
19116
19116
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/metrics/instance.js"(exports2) {
19117
19117
  Object.defineProperty(exports2, "__esModule", { value: true });
19118
- var constants = require_constants2();
19118
+ var constants2 = require_constants2();
19119
19119
  var utils = require_utils4();
19120
19120
  var CounterMetric = class {
19121
19121
  constructor(_value) {
@@ -19199,10 +19199,10 @@ var require_instance = __commonJS2({
19199
19199
  }
19200
19200
  };
19201
19201
  var METRIC_MAP = {
19202
- [constants.COUNTER_METRIC_TYPE]: CounterMetric,
19203
- [constants.GAUGE_METRIC_TYPE]: GaugeMetric,
19204
- [constants.DISTRIBUTION_METRIC_TYPE]: DistributionMetric,
19205
- [constants.SET_METRIC_TYPE]: SetMetric
19202
+ [constants2.COUNTER_METRIC_TYPE]: CounterMetric,
19203
+ [constants2.GAUGE_METRIC_TYPE]: GaugeMetric,
19204
+ [constants2.DISTRIBUTION_METRIC_TYPE]: DistributionMetric,
19205
+ [constants2.SET_METRIC_TYPE]: SetMetric
19206
19206
  };
19207
19207
  exports2.CounterMetric = CounterMetric;
19208
19208
  exports2.DistributionMetric = DistributionMetric;
@@ -19217,7 +19217,7 @@ var require_aggregator = __commonJS2({
19217
19217
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/metrics/aggregator.js"(exports2) {
19218
19218
  Object.defineProperty(exports2, "__esModule", { value: true });
19219
19219
  var utils$1 = require_cjs();
19220
- var constants = require_constants2();
19220
+ var constants2 = require_constants2();
19221
19221
  var instance = require_instance();
19222
19222
  var metricSummary = require_metric_summary();
19223
19223
  var utils = require_utils4();
@@ -19241,11 +19241,11 @@ var require_aggregator = __commonJS2({
19241
19241
  this._client = _client;
19242
19242
  this._buckets = /* @__PURE__ */ new Map();
19243
19243
  this._bucketsTotalWeight = 0;
19244
- this._interval = setInterval(() => this._flush(), constants.DEFAULT_FLUSH_INTERVAL);
19244
+ this._interval = setInterval(() => this._flush(), constants2.DEFAULT_FLUSH_INTERVAL);
19245
19245
  if (this._interval.unref) {
19246
19246
  this._interval.unref();
19247
19247
  }
19248
- this._flushShift = Math.floor(Math.random() * constants.DEFAULT_FLUSH_INTERVAL / 1e3);
19248
+ this._flushShift = Math.floor(Math.random() * constants2.DEFAULT_FLUSH_INTERVAL / 1e3);
19249
19249
  this._forceFlush = false;
19250
19250
  }
19251
19251
  /**
@@ -19258,7 +19258,7 @@ var require_aggregator = __commonJS2({
19258
19258
  const unit = utils.sanitizeUnit(unsanitizedUnit);
19259
19259
  const bucketKey = utils.getBucketKey(metricType, name, unit, tags);
19260
19260
  let bucketItem = this._buckets.get(bucketKey);
19261
- const previousWeight = bucketItem && metricType === constants.SET_METRIC_TYPE ? bucketItem.metric.weight : 0;
19261
+ const previousWeight = bucketItem && metricType === constants2.SET_METRIC_TYPE ? bucketItem.metric.weight : 0;
19262
19262
  if (bucketItem) {
19263
19263
  bucketItem.metric.add(value);
19264
19264
  if (bucketItem.timestamp < timestamp) {
@@ -19279,7 +19279,7 @@ var require_aggregator = __commonJS2({
19279
19279
  const val = typeof value === "string" ? bucketItem.metric.weight - previousWeight : value;
19280
19280
  metricSummary.updateMetricSummaryOnActiveSpan(metricType, name, val, unit, unsanitizedTags, bucketKey);
19281
19281
  this._bucketsTotalWeight += bucketItem.metric.weight;
19282
- if (this._bucketsTotalWeight >= constants.MAX_WEIGHT) {
19282
+ if (this._bucketsTotalWeight >= constants2.MAX_WEIGHT) {
19283
19283
  this.flush();
19284
19284
  }
19285
19285
  }
@@ -19314,7 +19314,7 @@ var require_aggregator = __commonJS2({
19314
19314
  this._buckets.clear();
19315
19315
  return;
19316
19316
  }
19317
- const cutoffSeconds = Math.floor(utils$1.timestampInSeconds()) - constants.DEFAULT_FLUSH_INTERVAL / 1e3 - this._flushShift;
19317
+ const cutoffSeconds = Math.floor(utils$1.timestampInSeconds()) - constants2.DEFAULT_FLUSH_INTERVAL / 1e3 - this._flushShift;
19318
19318
  const flushedBuckets = /* @__PURE__ */ new Map();
19319
19319
  for (const [key, bucket] of this._buckets) {
19320
19320
  if (bucket.timestamp <= cutoffSeconds) {
@@ -20464,7 +20464,7 @@ var require_browser_aggregator = __commonJS2({
20464
20464
  "../../node_modules/.pnpm/@sentry+core@7.120.1/node_modules/@sentry/core/cjs/metrics/browser-aggregator.js"(exports2) {
20465
20465
  Object.defineProperty(exports2, "__esModule", { value: true });
20466
20466
  var utils$1 = require_cjs();
20467
- var constants = require_constants2();
20467
+ var constants2 = require_constants2();
20468
20468
  var instance = require_instance();
20469
20469
  var metricSummary = require_metric_summary();
20470
20470
  var utils = require_utils4();
@@ -20475,7 +20475,7 @@ var require_browser_aggregator = __commonJS2({
20475
20475
  constructor(_client) {
20476
20476
  this._client = _client;
20477
20477
  this._buckets = /* @__PURE__ */ new Map();
20478
- this._interval = setInterval(() => this.flush(), constants.DEFAULT_BROWSER_FLUSH_INTERVAL);
20478
+ this._interval = setInterval(() => this.flush(), constants2.DEFAULT_BROWSER_FLUSH_INTERVAL);
20479
20479
  }
20480
20480
  /**
20481
20481
  * @inheritDoc
@@ -20487,7 +20487,7 @@ var require_browser_aggregator = __commonJS2({
20487
20487
  const unit = utils.sanitizeUnit(unsanitizedUnit);
20488
20488
  const bucketKey = utils.getBucketKey(metricType, name, unit, tags);
20489
20489
  let bucketItem = this._buckets.get(bucketKey);
20490
- const previousWeight = bucketItem && metricType === constants.SET_METRIC_TYPE ? bucketItem.metric.weight : 0;
20490
+ const previousWeight = bucketItem && metricType === constants2.SET_METRIC_TYPE ? bucketItem.metric.weight : 0;
20491
20491
  if (bucketItem) {
20492
20492
  bucketItem.metric.add(value);
20493
20493
  if (bucketItem.timestamp < timestamp) {
@@ -20570,7 +20570,7 @@ var require_exports2 = __commonJS2({
20570
20570
  var debugBuild = require_debug_build2();
20571
20571
  var exports$1 = require_exports();
20572
20572
  var spanUtils = require_spanUtils();
20573
- var constants = require_constants2();
20573
+ var constants2 = require_constants2();
20574
20574
  var integration = require_integration2();
20575
20575
  function addToMetricsAggregator(metricType, name, value, data = {}) {
20576
20576
  const client2 = exports$1.getClient();
@@ -20598,16 +20598,16 @@ var require_exports2 = __commonJS2({
20598
20598
  }
20599
20599
  }
20600
20600
  function increment(name, value = 1, data) {
20601
- addToMetricsAggregator(constants.COUNTER_METRIC_TYPE, name, value, data);
20601
+ addToMetricsAggregator(constants2.COUNTER_METRIC_TYPE, name, value, data);
20602
20602
  }
20603
20603
  function distribution(name, value, data) {
20604
- addToMetricsAggregator(constants.DISTRIBUTION_METRIC_TYPE, name, value, data);
20604
+ addToMetricsAggregator(constants2.DISTRIBUTION_METRIC_TYPE, name, value, data);
20605
20605
  }
20606
20606
  function set2(name, value, data) {
20607
- addToMetricsAggregator(constants.SET_METRIC_TYPE, name, value, data);
20607
+ addToMetricsAggregator(constants2.SET_METRIC_TYPE, name, value, data);
20608
20608
  }
20609
20609
  function gauge(name, value, data) {
20610
- addToMetricsAggregator(constants.GAUGE_METRIC_TYPE, name, value, data);
20610
+ addToMetricsAggregator(constants2.GAUGE_METRIC_TYPE, name, value, data);
20611
20611
  }
20612
20612
  var metrics = {
20613
20613
  increment,
@@ -20669,7 +20669,7 @@ var require_cjs2 = __commonJS2({
20669
20669
  var spanUtils = require_spanUtils();
20670
20670
  var getRootSpan = require_getRootSpan();
20671
20671
  var sdkMetadata = require_sdkMetadata();
20672
- var constants = require_constants();
20672
+ var constants2 = require_constants();
20673
20673
  var metadata = require_metadata2();
20674
20674
  var requestdata = require_requestdata2();
20675
20675
  var inboundfilters = require_inboundfilters();
@@ -20786,7 +20786,7 @@ var require_cjs2 = __commonJS2({
20786
20786
  exports2.spanToTraceHeader = spanUtils.spanToTraceHeader;
20787
20787
  exports2.getRootSpan = getRootSpan.getRootSpan;
20788
20788
  exports2.applySdkMetadata = sdkMetadata.applySdkMetadata;
20789
- exports2.DEFAULT_ENVIRONMENT = constants.DEFAULT_ENVIRONMENT;
20789
+ exports2.DEFAULT_ENVIRONMENT = constants2.DEFAULT_ENVIRONMENT;
20790
20790
  exports2.ModuleMetadata = metadata.ModuleMetadata;
20791
20791
  exports2.moduleMetadataIntegration = metadata.moduleMetadataIntegration;
20792
20792
  exports2.RequestData = requestdata.RequestData;
@@ -46854,7 +46854,7 @@ var require_package = __commonJS2({
46854
46854
  "../client/package.json"(exports2, module2) {
46855
46855
  module2.exports = {
46856
46856
  name: "@vercel/client",
46857
- version: "15.3.6",
46857
+ version: "15.3.7",
46858
46858
  main: "dist/index.js",
46859
46859
  typings: "dist/index.d.ts",
46860
46860
  homepage: "https://vercel.com",
@@ -46893,10 +46893,10 @@ var require_package = __commonJS2({
46893
46893
  vitest: "2.0.1"
46894
46894
  },
46895
46895
  dependencies: {
46896
- "@vercel/build-utils": "10.6.1",
46896
+ "@vercel/build-utils": "10.6.2",
46897
46897
  "@vercel/error-utils": "2.0.3",
46898
46898
  "@vercel/microfrontends": "1.2.2",
46899
- "@vercel/routing-utils": "5.0.8",
46899
+ "@vercel/routing-utils": "5.1.0",
46900
46900
  "async-retry": "1.2.3",
46901
46901
  "async-sema": "3.0.0",
46902
46902
  "fs-extra": "8.0.1",
@@ -51471,7 +51471,7 @@ var require_scan = __commonJS2({
51471
51471
  var require_parse3 = __commonJS2({
51472
51472
  "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
51473
51473
  "use strict";
51474
- var constants = require_constants4();
51474
+ var constants2 = require_constants4();
51475
51475
  var utils = require_utils9();
51476
51476
  var {
51477
51477
  MAX_LENGTH,
@@ -51479,7 +51479,7 @@ var require_parse3 = __commonJS2({
51479
51479
  REGEX_NON_SPECIAL_CHARS,
51480
51480
  REGEX_SPECIAL_CHARS_BACKREF,
51481
51481
  REPLACEMENTS
51482
- } = constants;
51482
+ } = constants2;
51483
51483
  var expandRange = (args2, options) => {
51484
51484
  if (typeof options.expandRange === "function") {
51485
51485
  return options.expandRange(...args2, options);
@@ -51511,8 +51511,8 @@ var require_parse3 = __commonJS2({
51511
51511
  const tokens = [bos];
51512
51512
  const capture = opts.capture ? "" : "?:";
51513
51513
  const win32 = utils.isWindows(options);
51514
- const PLATFORM_CHARS = constants.globChars(win32);
51515
- const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
51514
+ const PLATFORM_CHARS = constants2.globChars(win32);
51515
+ const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS);
51516
51516
  const {
51517
51517
  DOT_LITERAL,
51518
51518
  PLUS_LITERAL,
@@ -52194,7 +52194,7 @@ var require_parse3 = __commonJS2({
52194
52194
  NO_DOTS_SLASH,
52195
52195
  STAR,
52196
52196
  START_ANCHOR
52197
- } = constants.globChars(win32);
52197
+ } = constants2.globChars(win32);
52198
52198
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
52199
52199
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
52200
52200
  const capture = opts.capture ? "" : "?:";
@@ -52256,7 +52256,7 @@ var require_picomatch = __commonJS2({
52256
52256
  var scan = require_scan();
52257
52257
  var parse11 = require_parse3();
52258
52258
  var utils = require_utils9();
52259
- var constants = require_constants4();
52259
+ var constants2 = require_constants4();
52260
52260
  var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
52261
52261
  var picomatch = (glob, options, returnState = false) => {
52262
52262
  if (Array.isArray(glob)) {
@@ -52387,7 +52387,7 @@ var require_picomatch = __commonJS2({
52387
52387
  return /$^/;
52388
52388
  }
52389
52389
  };
52390
- picomatch.constants = constants;
52390
+ picomatch.constants = constants2;
52391
52391
  module2.exports = picomatch;
52392
52392
  }
52393
52393
  });
@@ -55051,7 +55051,7 @@ var require_utils12 = __commonJS2({
55051
55051
  inferMicrofrontendsLocation: () => inferMicrofrontendsLocation
55052
55052
  });
55053
55053
  module2.exports = __toCommonJS4(utils_exports);
55054
- var import_node_fs3 = __toESM4(require("fs"), 1);
55054
+ var import_node_fs4 = __toESM4(require("fs"), 1);
55055
55055
  var import_node_path6 = require("path");
55056
55056
  var CONFIGURATION_FILENAMES = [
55057
55057
  "microfrontends.jsonc",
@@ -55060,7 +55060,7 @@ var require_utils12 = __commonJS2({
55060
55060
  function findConfig({ dir }) {
55061
55061
  for (const filename of CONFIGURATION_FILENAMES) {
55062
55062
  const maybeConfig = (0, import_node_path6.join)(dir, filename);
55063
- if (import_node_fs3.default.existsSync(maybeConfig)) {
55063
+ if (import_node_fs4.default.existsSync(maybeConfig)) {
55064
55064
  return maybeConfig;
55065
55065
  }
55066
55066
  }
@@ -59701,7 +59701,7 @@ var require_end_of_stream = __commonJS2({
59701
59701
  // ../../node_modules/.pnpm/tar-stream@1.6.2/node_modules/tar-stream/pack.js
59702
59702
  var require_pack = __commonJS2({
59703
59703
  "../../node_modules/.pnpm/tar-stream@1.6.2/node_modules/tar-stream/pack.js"(exports2, module2) {
59704
- var constants = require_fs_constants();
59704
+ var constants2 = require_fs_constants();
59705
59705
  var eos = require_end_of_stream();
59706
59706
  var util = require("util");
59707
59707
  var alloc = require_buffer_alloc();
@@ -59721,16 +59721,16 @@ var require_pack = __commonJS2({
59721
59721
  self2.push(END_OF_TAR.slice(0, 512 - size));
59722
59722
  };
59723
59723
  function modeToType(mode) {
59724
- switch (mode & constants.S_IFMT) {
59725
- case constants.S_IFBLK:
59724
+ switch (mode & constants2.S_IFMT) {
59725
+ case constants2.S_IFBLK:
59726
59726
  return "block-device";
59727
- case constants.S_IFCHR:
59727
+ case constants2.S_IFCHR:
59728
59728
  return "character-device";
59729
- case constants.S_IFDIR:
59729
+ case constants2.S_IFDIR:
59730
59730
  return "directory";
59731
- case constants.S_IFIFO:
59731
+ case constants2.S_IFIFO:
59732
59732
  return "fifo";
59733
- case constants.S_IFLNK:
59733
+ case constants2.S_IFLNK:
59734
59734
  return "symlink";
59735
59735
  }
59736
59736
  return "file";
@@ -87817,30 +87817,30 @@ var require_ipv4 = __commonJS2({
87817
87817
  Object.defineProperty(exports2, "__esModule", { value: true });
87818
87818
  exports2.Address4 = void 0;
87819
87819
  var common2 = __importStar2(require_common7());
87820
- var constants = __importStar2(require_constants7());
87820
+ var constants2 = __importStar2(require_constants7());
87821
87821
  var address_error_1 = require_address_error();
87822
87822
  var jsbn_1 = require_jsbn();
87823
87823
  var sprintf_js_1 = require_sprintf();
87824
87824
  var Address4 = class _Address4 {
87825
87825
  constructor(address) {
87826
- this.groups = constants.GROUPS;
87826
+ this.groups = constants2.GROUPS;
87827
87827
  this.parsedAddress = [];
87828
87828
  this.parsedSubnet = "";
87829
87829
  this.subnet = "/32";
87830
87830
  this.subnetMask = 32;
87831
87831
  this.v4 = true;
87832
- this.isCorrect = common2.isCorrect(constants.BITS);
87832
+ this.isCorrect = common2.isCorrect(constants2.BITS);
87833
87833
  this.isInSubnet = common2.isInSubnet;
87834
87834
  this.address = address;
87835
- const subnet = constants.RE_SUBNET_STRING.exec(address);
87835
+ const subnet = constants2.RE_SUBNET_STRING.exec(address);
87836
87836
  if (subnet) {
87837
87837
  this.parsedSubnet = subnet[0].replace("/", "");
87838
87838
  this.subnetMask = parseInt(this.parsedSubnet, 10);
87839
87839
  this.subnet = `/${this.subnetMask}`;
87840
- if (this.subnetMask < 0 || this.subnetMask > constants.BITS) {
87840
+ if (this.subnetMask < 0 || this.subnetMask > constants2.BITS) {
87841
87841
  throw new address_error_1.AddressError("Invalid subnet mask.");
87842
87842
  }
87843
- address = address.replace(constants.RE_SUBNET_STRING, "");
87843
+ address = address.replace(constants2.RE_SUBNET_STRING, "");
87844
87844
  }
87845
87845
  this.addressMinusSuffix = address;
87846
87846
  this.parsedAddress = this.parse(address);
@@ -87858,7 +87858,7 @@ var require_ipv4 = __commonJS2({
87858
87858
  */
87859
87859
  parse(address) {
87860
87860
  const groups = address.split(".");
87861
- if (!address.match(constants.RE_ADDRESS)) {
87861
+ if (!address.match(constants2.RE_ADDRESS)) {
87862
87862
  throw new address_error_1.AddressError("Invalid IPv4 address.");
87863
87863
  }
87864
87864
  return groups;
@@ -87941,7 +87941,7 @@ var require_ipv4 = __commonJS2({
87941
87941
  toGroup6() {
87942
87942
  const output2 = [];
87943
87943
  let i;
87944
- for (i = 0; i < constants.GROUPS; i += 2) {
87944
+ for (i = 0; i < constants2.GROUPS; i += 2) {
87945
87945
  const hex = (0, sprintf_js_1.sprintf)("%02x%02x", parseInt(this.parsedAddress[i], 10), parseInt(this.parsedAddress[i + 1], 10));
87946
87946
  output2.push((0, sprintf_js_1.sprintf)("%x", parseInt(hex, 16)));
87947
87947
  }
@@ -87963,7 +87963,7 @@ var require_ipv4 = __commonJS2({
87963
87963
  * @returns {BigInteger}
87964
87964
  */
87965
87965
  _startAddress() {
87966
- return new jsbn_1.BigInteger(this.mask() + "0".repeat(constants.BITS - this.subnetMask), 2);
87966
+ return new jsbn_1.BigInteger(this.mask() + "0".repeat(constants2.BITS - this.subnetMask), 2);
87967
87967
  }
87968
87968
  /**
87969
87969
  * The first address in the range given by this address' subnet.
@@ -87993,7 +87993,7 @@ var require_ipv4 = __commonJS2({
87993
87993
  * @returns {BigInteger}
87994
87994
  */
87995
87995
  _endAddress() {
87996
- return new jsbn_1.BigInteger(this.mask() + "1".repeat(constants.BITS - this.subnetMask), 2);
87996
+ return new jsbn_1.BigInteger(this.mask() + "1".repeat(constants2.BITS - this.subnetMask), 2);
87997
87997
  }
87998
87998
  /**
87999
87999
  * The last address in the range given by this address' subnet
@@ -88082,7 +88082,7 @@ var require_ipv4 = __commonJS2({
88082
88082
  * @returns {string}
88083
88083
  */
88084
88084
  binaryZeroPad() {
88085
- return this.bigInteger().toString(2).padStart(constants.BITS, "0");
88085
+ return this.bigInteger().toString(2).padStart(constants2.BITS, "0");
88086
88086
  }
88087
88087
  /**
88088
88088
  * Groups an IPv4 address for inclusion at the end of an IPv6 address
@@ -88090,7 +88090,7 @@ var require_ipv4 = __commonJS2({
88090
88090
  */
88091
88091
  groupForV6() {
88092
88092
  const segments = this.parsedAddress;
88093
- return this.address.replace(constants.RE_ADDRESS, (0, sprintf_js_1.sprintf)('<span class="hover-group group-v4 group-6">%s</span>.<span class="hover-group group-v4 group-7">%s</span>', segments.slice(0, 2).join("."), segments.slice(2, 4).join(".")));
88093
+ return this.address.replace(constants2.RE_ADDRESS, (0, sprintf_js_1.sprintf)('<span class="hover-group group-v4 group-6">%s</span>.<span class="hover-group group-v4 group-7">%s</span>', segments.slice(0, 2).join("."), segments.slice(2, 4).join(".")));
88094
88094
  }
88095
88095
  };
88096
88096
  exports2.Address4 = Address4;
@@ -94232,6 +94232,14 @@ var init_telemetry = __esm({
94232
94232
  value: String(import_node_os.default.cpus().length)
94233
94233
  });
94234
94234
  }
94235
+ trackAgenticUse(agent) {
94236
+ if (agent) {
94237
+ this.track({
94238
+ key: "agent",
94239
+ value: agent
94240
+ });
94241
+ }
94242
+ }
94235
94243
  trackPlatform() {
94236
94244
  this.track({
94237
94245
  key: "platform",
@@ -100870,10 +100878,10 @@ async function put2(client2, argv, rwToken) {
100870
100878
  let putBody;
100871
100879
  let pathname;
100872
100880
  try {
100873
- const stats = (0, import_node_fs.statSync)(filePath);
100881
+ const stats = (0, import_node_fs2.statSync)(filePath);
100874
100882
  const isFile2 = stats.isFile();
100875
100883
  if (isFile2) {
100876
- putBody = (0, import_node_fs.readFileSync)(filePath);
100884
+ putBody = (0, import_node_fs2.readFileSync)(filePath);
100877
100885
  pathname = pathnameFlag ?? (0, import_node_path.basename)(filePath);
100878
100886
  } else {
100879
100887
  output_manager_default.error("Path to upload is not a file");
@@ -100917,7 +100925,7 @@ async function put2(client2, argv, rwToken) {
100917
100925
  output_manager_default.success(result.url);
100918
100926
  return 0;
100919
100927
  }
100920
- var blob2, import_node_fs, import_error_utils12, import_node_path, import_chalk35;
100928
+ var blob2, import_node_fs2, import_error_utils12, import_node_path, import_chalk35;
100921
100929
  var init_put2 = __esm({
100922
100930
  "src/commands/blob/put.ts"() {
100923
100931
  "use strict";
@@ -100926,7 +100934,7 @@ var init_put2 = __esm({
100926
100934
  init_get_args();
100927
100935
  init_get_flags_specification();
100928
100936
  init_command35();
100929
- import_node_fs = require("fs");
100937
+ import_node_fs2 = require("fs");
100930
100938
  import_error_utils12 = __toESM3(require_dist2());
100931
100939
  import_node_path = require("path");
100932
100940
  init_pkg_name();
@@ -119654,7 +119662,7 @@ var require_local_file_system_detector = __commonJS2({
119654
119662
  LocalFileSystemDetector: () => LocalFileSystemDetector5
119655
119663
  });
119656
119664
  module2.exports = __toCommonJS4(local_file_system_detector_exports);
119657
- var import_promises3 = __toESM4(require("fs/promises"));
119665
+ var import_promises4 = __toESM4(require("fs/promises"));
119658
119666
  var import_path41 = require("path");
119659
119667
  var import_filesystem = require_filesystem();
119660
119668
  var import_error_utils39 = require_dist2();
@@ -119665,7 +119673,7 @@ var require_local_file_system_detector = __commonJS2({
119665
119673
  }
119666
119674
  async _hasPath(name) {
119667
119675
  try {
119668
- await import_promises3.default.stat(this.getFilePath(name));
119676
+ await import_promises4.default.stat(this.getFilePath(name));
119669
119677
  return true;
119670
119678
  } catch (err) {
119671
119679
  if ((0, import_error_utils39.isErrnoException)(err) && err.code === "ENOENT") {
@@ -119675,15 +119683,15 @@ var require_local_file_system_detector = __commonJS2({
119675
119683
  }
119676
119684
  }
119677
119685
  _readFile(name) {
119678
- return import_promises3.default.readFile(this.getFilePath(name));
119686
+ return import_promises4.default.readFile(this.getFilePath(name));
119679
119687
  }
119680
119688
  async _isFile(name) {
119681
- const stat2 = await import_promises3.default.stat(this.getFilePath(name));
119689
+ const stat2 = await import_promises4.default.stat(this.getFilePath(name));
119682
119690
  return stat2.isFile();
119683
119691
  }
119684
119692
  async _readdir(dir) {
119685
119693
  const dirPath = this.getFilePath(dir);
119686
- const entries = await import_promises3.default.readdir(dirPath, { withFileTypes: true });
119694
+ const entries = await import_promises4.default.readdir(dirPath, { withFileTypes: true });
119687
119695
  const result = [];
119688
119696
  for (const entry of entries) {
119689
119697
  let type;
@@ -131585,7 +131593,6 @@ var require_schemas = __commonJS2({
131585
131593
  };
131586
131594
  var routesSchema2 = {
131587
131595
  type: "array",
131588
- maxItems: 2048,
131589
131596
  deprecated: true,
131590
131597
  description: "A list of routes objects used to rewrite paths to point towards other internal or external paths",
131591
131598
  example: [{ dest: "https://docs.example.com", src: "/docs" }],
@@ -143808,12 +143815,14 @@ async function writeLambda(repoRootPath, outputDir, lambda, path11, functionConf
143808
143815
  const architecture = functionConfiguration?.architecture ?? lambda.architecture;
143809
143816
  const memory = functionConfiguration?.memory ?? lambda.memory;
143810
143817
  const maxDuration = functionConfiguration?.maxDuration ?? lambda.maxDuration;
143818
+ const experimentalTriggers = functionConfiguration?.experimentalTriggers ?? lambda.experimentalTriggers;
143811
143819
  const config2 = {
143812
143820
  ...lambda,
143813
143821
  handler: (0, import_build_utils11.normalizePath)(lambda.handler),
143814
143822
  architecture,
143815
143823
  memory,
143816
143824
  maxDuration,
143825
+ experimentalTriggers,
143817
143826
  filePathMap,
143818
143827
  type: void 0,
143819
143828
  files: void 0,
@@ -145564,8 +145573,8 @@ async function main3(client2) {
145564
145573
  } finally {
145565
145574
  try {
145566
145575
  const diagnosticsOutputPath = (0, import_path27.join)(outputDir, "diagnostics");
145567
- await (0, import_promises.mkdir)(diagnosticsOutputPath, { recursive: true });
145568
- await (0, import_promises.writeFile)(
145576
+ await (0, import_promises2.mkdir)(diagnosticsOutputPath, { recursive: true });
145577
+ await (0, import_promises2.writeFile)(
145569
145578
  (0, import_path27.join)(diagnosticsOutputPath, "cli_traces.json"),
145570
145579
  JSON.stringify(reporter.events)
145571
145580
  );
@@ -146061,7 +146070,7 @@ async function getFrameworkRoutes(framework, dirPrefix) {
146061
146070
  }
146062
146071
  return routes2;
146063
146072
  }
146064
- var import_chalk51, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises, InMemoryReporter;
146073
+ var import_chalk51, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2, import_promises2, InMemoryReporter;
146065
146074
  var init_build2 = __esm({
146066
146075
  "src/commands/build/index.ts"() {
146067
146076
  "use strict";
@@ -146102,7 +146111,7 @@ var init_build2 = __esm({
146102
146111
  init_help();
146103
146112
  init_pull4();
146104
146113
  init_command3();
146105
- import_promises = require("fs/promises");
146114
+ import_promises2 = require("fs/promises");
146106
146115
  InMemoryReporter = class {
146107
146116
  constructor() {
146108
146117
  this.events = [];
@@ -168962,7 +168971,7 @@ async function* refreshOidcToken(signal, client2, projectId, envValues, source,
168962
168971
  `${VERCEL_OIDC_TOKEN} expires in ${expiresAfterSecs}s; refreshing in ${refreshAfterSecs}s`
168963
168972
  );
168964
168973
  }
168965
- await (0, import_promises2.setTimeout)(refreshAfterMillis, void 0, { signal });
168974
+ await (0, import_promises3.setTimeout)(refreshAfterMillis, void 0, { signal });
168966
168975
  const envValuesOrNull = await pullEnvValuesUntilSuccessful(
168967
168976
  signal,
168968
168977
  client2,
@@ -168984,7 +168993,7 @@ async function pullEnvValuesUntilSuccessful(signal, client2, projectId, source,
168984
168993
  output_manager_default.debug(
168985
168994
  `Failed to pull environment; trying again in ${Math.round(millisToSecs(millis))}s`
168986
168995
  );
168987
- await (0, import_promises2.setTimeout)(millis, void 0, { signal });
168996
+ await (0, import_promises3.setTimeout)(millis, void 0, { signal });
168988
168997
  }
168989
168998
  }
168990
168999
  return null;
@@ -168995,11 +169004,11 @@ function clock() {
168995
169004
  function millisToSecs(millis) {
168996
169005
  return millis / 1e3;
168997
169006
  }
168998
- var import_promises2, import_jose2, import_ms15, import_perf_hooks, REFRESH_BEFORE_EXPIRY_MILLIS, THROTTLE_MILLIS;
169007
+ var import_promises3, import_jose2, import_ms15, import_perf_hooks, REFRESH_BEFORE_EXPIRY_MILLIS, THROTTLE_MILLIS;
168999
169008
  var init_refresh_oidc_token = __esm({
169000
169009
  "src/util/env/refresh-oidc-token.ts"() {
169001
169010
  "use strict";
169002
- import_promises2 = require("timers/promises");
169011
+ import_promises3 = require("timers/promises");
169003
169012
  import_jose2 = require("jose");
169004
169013
  import_ms15 = __toESM3(require_ms());
169005
169014
  import_perf_hooks = require("perf_hooks");
@@ -174277,15 +174286,15 @@ ${deployHint}`);
174277
174286
  }
174278
174287
  function prepareFolder(cwd, folder, force) {
174279
174288
  const dest = import_node_path4.default.join(cwd, folder);
174280
- if (import_node_fs2.default.existsSync(dest)) {
174281
- if (!import_node_fs2.default.lstatSync(dest).isDirectory()) {
174289
+ if (import_node_fs3.default.existsSync(dest)) {
174290
+ if (!import_node_fs3.default.lstatSync(dest).isDirectory()) {
174282
174291
  throw new Error(
174283
174292
  `Destination path "${import_chalk92.default.bold(
174284
174293
  folder
174285
174294
  )}" already exists and is not a directory.`
174286
174295
  );
174287
174296
  }
174288
- if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
174297
+ if (!force && import_node_fs3.default.readdirSync(dest).length !== 0) {
174289
174298
  throw new Error(
174290
174299
  `Destination path "${import_chalk92.default.bold(
174291
174300
  folder
@@ -174296,7 +174305,7 @@ function prepareFolder(cwd, folder, force) {
174296
174305
  }
174297
174306
  } else if (dest !== cwd) {
174298
174307
  try {
174299
- import_node_fs2.default.mkdirSync(dest);
174308
+ import_node_fs3.default.mkdirSync(dest);
174300
174309
  } catch (e2) {
174301
174310
  throw new Error(`Could not create directory "${import_chalk92.default.bold(folder)}".`);
174302
174311
  }
@@ -174321,11 +174330,11 @@ async function guess(client2, exampleList, name) {
174321
174330
  throw GuessError;
174322
174331
  }
174323
174332
  }
174324
- var import_node_fs2, import_node_path4, import_tar_fs, import_chalk92, EXAMPLE_API;
174333
+ var import_node_fs3, import_node_path4, import_tar_fs, import_chalk92, EXAMPLE_API;
174325
174334
  var init_init = __esm({
174326
174335
  "src/commands/init/init.ts"() {
174327
174336
  "use strict";
174328
- import_node_fs2 = __toESM3(require("fs"));
174337
+ import_node_fs3 = __toESM3(require("fs"));
174329
174338
  import_node_path4 = __toESM3(require("path"));
174330
174339
  import_tar_fs = __toESM3(require_tar_fs());
174331
174340
  import_chalk92 = __toESM3(require_source());
@@ -183660,6 +183669,9 @@ var RootTelemetryClient = class extends TelemetryClient {
183660
183669
  trackCPUs() {
183661
183670
  super.trackCPUs();
183662
183671
  }
183672
+ trackAgenticUse(agent) {
183673
+ super.trackAgenticUse(agent);
183674
+ }
183663
183675
  trackArch() {
183664
183676
  super.trackArch();
183665
183677
  }
@@ -183886,6 +183898,28 @@ function checkGuidanceStatus({ config: config2 }) {
183886
183898
  writeToConfigFile(config2);
183887
183899
  }
183888
183900
 
183901
+ // src/util/determine-agent.ts
183902
+ var import_promises = require("fs/promises");
183903
+ var import_node_fs = require("fs");
183904
+ var devinLocalPath = "/opt/.devin";
183905
+ var CURSOR = "cursor";
183906
+ var CLAUDE = "claude";
183907
+ var DEVIN = "devin";
183908
+ async function determineAgent() {
183909
+ if (process.env.CURSOR_TRACE_ID) {
183910
+ return CURSOR;
183911
+ }
183912
+ if (process.env.CLAUDE_CODE) {
183913
+ return CLAUDE;
183914
+ }
183915
+ try {
183916
+ await (0, import_promises.access)(devinLocalPath, import_node_fs.constants.F_OK);
183917
+ return DEVIN;
183918
+ } catch (error3) {
183919
+ return false;
183920
+ }
183921
+ }
183922
+
183889
183923
  // src/index.ts
183890
183924
  try {
183891
183925
  process.cwd();
@@ -184070,6 +184104,8 @@ var main16 = async () => {
184070
184104
  store: telemetryEventStore
184071
184105
  }
184072
184106
  });
184107
+ const agent = await determineAgent();
184108
+ telemetry2.trackAgenticUse(agent);
184073
184109
  telemetry2.trackCPUs();
184074
184110
  telemetry2.trackPlatform();
184075
184111
  telemetry2.trackArch();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "44.2.7",
3
+ "version": "44.2.9",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -22,17 +22,17 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@vercel/blob": "1.0.2",
25
- "@vercel/build-utils": "10.6.1",
25
+ "@vercel/build-utils": "10.6.2",
26
26
  "@vercel/fun": "1.1.6",
27
27
  "@vercel/go": "3.2.1",
28
28
  "@vercel/hydrogen": "1.2.2",
29
- "@vercel/next": "4.9.2",
30
- "@vercel/node": "5.3.0",
29
+ "@vercel/next": "4.9.3",
30
+ "@vercel/node": "5.3.1",
31
31
  "@vercel/python": "4.7.2",
32
32
  "@vercel/redwood": "2.3.3",
33
33
  "@vercel/remix-builder": "5.4.9",
34
34
  "@vercel/ruby": "2.2.0",
35
- "@vercel/static-build": "2.7.10",
35
+ "@vercel/static-build": "2.7.11",
36
36
  "chokidar": "4.0.0",
37
37
  "jose": "5.9.6"
38
38
  },
@@ -64,6 +64,7 @@
64
64
  "@types/load-json-file": "2.0.7",
65
65
  "@types/mime-types": "2.1.0",
66
66
  "@types/minimatch": "3.0.3",
67
+ "@types/mock-fs": "4.13.4",
67
68
  "@types/ms": "0.7.30",
68
69
  "@types/node": "18.0.0",
69
70
  "@types/node-fetch": "2.5.10",
@@ -78,11 +79,11 @@
78
79
  "@types/which": "3.0.0",
79
80
  "@types/write-json-file": "2.2.1",
80
81
  "@types/yauzl-promise": "2.1.0",
81
- "@vercel/client": "15.3.6",
82
+ "@vercel/client": "15.3.7",
82
83
  "@vercel/error-utils": "2.0.3",
83
84
  "@vercel/frameworks": "3.7.0",
84
- "@vercel/fs-detectors": "5.4.5",
85
- "@vercel/routing-utils": "5.0.8",
85
+ "@vercel/fs-detectors": "5.4.6",
86
+ "@vercel/routing-utils": "5.1.0",
86
87
  "@vitest/expect": "2.1.3",
87
88
  "ajv": "6.12.3",
88
89
  "alpha-sort": "2.0.1",
@@ -129,6 +130,7 @@
129
130
  "memfs": "4.14.0",
130
131
  "mime-types": "2.1.24",
131
132
  "minimatch": "3.1.2",
133
+ "mock-fs": "5.5.0",
132
134
  "ms": "2.1.2",
133
135
  "node-fetch": "2.6.7",
134
136
  "npm-package-arg": "6.1.0",
@@ -160,9 +162,9 @@
160
162
  "write-json-file": "2.2.0",
161
163
  "xdg-app-paths": "5.1.0",
162
164
  "yauzl-promise": "2.1.3",
163
- "@vercel-internals/types": "3.0.6",
165
+ "@vercel-internals/constants": "1.0.4",
164
166
  "@vercel-internals/get-package-json": "1.0.0",
165
- "@vercel-internals/constants": "1.0.4"
167
+ "@vercel-internals/types": "3.0.6"
166
168
  },
167
169
  "scripts": {
168
170
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",