vercel 44.2.7 → 44.2.8

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 +122 -87
  2. package/package.json +4 -2
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;
@@ -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;
@@ -145564,8 +145572,8 @@ async function main3(client2) {
145564
145572
  } finally {
145565
145573
  try {
145566
145574
  const diagnosticsOutputPath = (0, import_path27.join)(outputDir, "diagnostics");
145567
- await (0, import_promises.mkdir)(diagnosticsOutputPath, { recursive: true });
145568
- await (0, import_promises.writeFile)(
145575
+ await (0, import_promises2.mkdir)(diagnosticsOutputPath, { recursive: true });
145576
+ await (0, import_promises2.writeFile)(
145569
145577
  (0, import_path27.join)(diagnosticsOutputPath, "cli_traces.json"),
145570
145578
  JSON.stringify(reporter.events)
145571
145579
  );
@@ -146061,7 +146069,7 @@ async function getFrameworkRoutes(framework, dirPrefix) {
146061
146069
  }
146062
146070
  return routes2;
146063
146071
  }
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;
146072
+ 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
146073
  var init_build2 = __esm({
146066
146074
  "src/commands/build/index.ts"() {
146067
146075
  "use strict";
@@ -146102,7 +146110,7 @@ var init_build2 = __esm({
146102
146110
  init_help();
146103
146111
  init_pull4();
146104
146112
  init_command3();
146105
- import_promises = require("fs/promises");
146113
+ import_promises2 = require("fs/promises");
146106
146114
  InMemoryReporter = class {
146107
146115
  constructor() {
146108
146116
  this.events = [];
@@ -168962,7 +168970,7 @@ async function* refreshOidcToken(signal, client2, projectId, envValues, source,
168962
168970
  `${VERCEL_OIDC_TOKEN} expires in ${expiresAfterSecs}s; refreshing in ${refreshAfterSecs}s`
168963
168971
  );
168964
168972
  }
168965
- await (0, import_promises2.setTimeout)(refreshAfterMillis, void 0, { signal });
168973
+ await (0, import_promises3.setTimeout)(refreshAfterMillis, void 0, { signal });
168966
168974
  const envValuesOrNull = await pullEnvValuesUntilSuccessful(
168967
168975
  signal,
168968
168976
  client2,
@@ -168984,7 +168992,7 @@ async function pullEnvValuesUntilSuccessful(signal, client2, projectId, source,
168984
168992
  output_manager_default.debug(
168985
168993
  `Failed to pull environment; trying again in ${Math.round(millisToSecs(millis))}s`
168986
168994
  );
168987
- await (0, import_promises2.setTimeout)(millis, void 0, { signal });
168995
+ await (0, import_promises3.setTimeout)(millis, void 0, { signal });
168988
168996
  }
168989
168997
  }
168990
168998
  return null;
@@ -168995,11 +169003,11 @@ function clock() {
168995
169003
  function millisToSecs(millis) {
168996
169004
  return millis / 1e3;
168997
169005
  }
168998
- var import_promises2, import_jose2, import_ms15, import_perf_hooks, REFRESH_BEFORE_EXPIRY_MILLIS, THROTTLE_MILLIS;
169006
+ var import_promises3, import_jose2, import_ms15, import_perf_hooks, REFRESH_BEFORE_EXPIRY_MILLIS, THROTTLE_MILLIS;
168999
169007
  var init_refresh_oidc_token = __esm({
169000
169008
  "src/util/env/refresh-oidc-token.ts"() {
169001
169009
  "use strict";
169002
- import_promises2 = require("timers/promises");
169010
+ import_promises3 = require("timers/promises");
169003
169011
  import_jose2 = require("jose");
169004
169012
  import_ms15 = __toESM3(require_ms());
169005
169013
  import_perf_hooks = require("perf_hooks");
@@ -174277,15 +174285,15 @@ ${deployHint}`);
174277
174285
  }
174278
174286
  function prepareFolder(cwd, folder, force) {
174279
174287
  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()) {
174288
+ if (import_node_fs3.default.existsSync(dest)) {
174289
+ if (!import_node_fs3.default.lstatSync(dest).isDirectory()) {
174282
174290
  throw new Error(
174283
174291
  `Destination path "${import_chalk92.default.bold(
174284
174292
  folder
174285
174293
  )}" already exists and is not a directory.`
174286
174294
  );
174287
174295
  }
174288
- if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
174296
+ if (!force && import_node_fs3.default.readdirSync(dest).length !== 0) {
174289
174297
  throw new Error(
174290
174298
  `Destination path "${import_chalk92.default.bold(
174291
174299
  folder
@@ -174296,7 +174304,7 @@ function prepareFolder(cwd, folder, force) {
174296
174304
  }
174297
174305
  } else if (dest !== cwd) {
174298
174306
  try {
174299
- import_node_fs2.default.mkdirSync(dest);
174307
+ import_node_fs3.default.mkdirSync(dest);
174300
174308
  } catch (e2) {
174301
174309
  throw new Error(`Could not create directory "${import_chalk92.default.bold(folder)}".`);
174302
174310
  }
@@ -174321,11 +174329,11 @@ async function guess(client2, exampleList, name) {
174321
174329
  throw GuessError;
174322
174330
  }
174323
174331
  }
174324
- var import_node_fs2, import_node_path4, import_tar_fs, import_chalk92, EXAMPLE_API;
174332
+ var import_node_fs3, import_node_path4, import_tar_fs, import_chalk92, EXAMPLE_API;
174325
174333
  var init_init = __esm({
174326
174334
  "src/commands/init/init.ts"() {
174327
174335
  "use strict";
174328
- import_node_fs2 = __toESM3(require("fs"));
174336
+ import_node_fs3 = __toESM3(require("fs"));
174329
174337
  import_node_path4 = __toESM3(require("path"));
174330
174338
  import_tar_fs = __toESM3(require_tar_fs());
174331
174339
  import_chalk92 = __toESM3(require_source());
@@ -183660,6 +183668,9 @@ var RootTelemetryClient = class extends TelemetryClient {
183660
183668
  trackCPUs() {
183661
183669
  super.trackCPUs();
183662
183670
  }
183671
+ trackAgenticUse(agent) {
183672
+ super.trackAgenticUse(agent);
183673
+ }
183663
183674
  trackArch() {
183664
183675
  super.trackArch();
183665
183676
  }
@@ -183886,6 +183897,28 @@ function checkGuidanceStatus({ config: config2 }) {
183886
183897
  writeToConfigFile(config2);
183887
183898
  }
183888
183899
 
183900
+ // src/util/determine-agent.ts
183901
+ var import_promises = require("fs/promises");
183902
+ var import_node_fs = require("fs");
183903
+ var devinLocalPath = "/opt/.devin";
183904
+ var CURSOR = "cursor";
183905
+ var CLAUDE = "claude";
183906
+ var DEVIN = "devin";
183907
+ async function determineAgent() {
183908
+ if (process.env.CURSOR_TRACE_ID) {
183909
+ return CURSOR;
183910
+ }
183911
+ if (process.env.CLAUDE_CODE) {
183912
+ return CLAUDE;
183913
+ }
183914
+ try {
183915
+ await (0, import_promises.access)(devinLocalPath, import_node_fs.constants.F_OK);
183916
+ return DEVIN;
183917
+ } catch (error3) {
183918
+ return false;
183919
+ }
183920
+ }
183921
+
183889
183922
  // src/index.ts
183890
183923
  try {
183891
183924
  process.cwd();
@@ -184070,6 +184103,8 @@ var main16 = async () => {
184070
184103
  store: telemetryEventStore
184071
184104
  }
184072
184105
  });
184106
+ const agent = await determineAgent();
184107
+ telemetry2.trackAgenticUse(agent);
184073
184108
  telemetry2.trackCPUs();
184074
184109
  telemetry2.trackPlatform();
184075
184110
  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.8",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -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",
@@ -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,8 +162,8 @@
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",
164
165
  "@vercel-internals/get-package-json": "1.0.0",
166
+ "@vercel-internals/types": "3.0.6",
165
167
  "@vercel-internals/constants": "1.0.4"
166
168
  },
167
169
  "scripts": {