vercel 45.0.8 → 45.0.10
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.
- package/dist/index.js +182 -139
- package/package.json +9 -8
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
|
|
166
|
+
var constants = 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 (
|
|
191
|
+
if (constants.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
|
-
|
|
298
|
+
constants.O_WRONLY | constants.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,
|
|
316
|
+
var fd = fs16.openSync(path11, constants.O_WRONLY | constants.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 (
|
|
336
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs16.futimes) {
|
|
337
337
|
fs16.lutimes = function(path11, at, mt, cb) {
|
|
338
|
-
fs16.open(path11,
|
|
338
|
+
fs16.open(path11, constants.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,
|
|
353
|
+
var fd = fs16.openSync(path11, constants.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
|
|
14369
|
+
var constants = 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 :
|
|
14427
|
+
event.environment = "environment" in options ? environment : constants.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
|
|
14618
|
+
var constants = 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 =
|
|
14757
|
+
const { release, environment = constants.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
|
|
14847
|
+
var constants = 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 ||
|
|
14856
|
+
environment: options.environment || constants.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
|
|
15613
|
+
var constants = 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 =
|
|
16043
|
+
const { release, environment = constants.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
|
|
19118
|
+
var constants = 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
|
-
[
|
|
19203
|
-
[
|
|
19204
|
-
[
|
|
19205
|
-
[
|
|
19202
|
+
[constants.COUNTER_METRIC_TYPE]: CounterMetric,
|
|
19203
|
+
[constants.GAUGE_METRIC_TYPE]: GaugeMetric,
|
|
19204
|
+
[constants.DISTRIBUTION_METRIC_TYPE]: DistributionMetric,
|
|
19205
|
+
[constants.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
|
|
19220
|
+
var constants = 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(),
|
|
19244
|
+
this._interval = setInterval(() => this._flush(), constants.DEFAULT_FLUSH_INTERVAL);
|
|
19245
19245
|
if (this._interval.unref) {
|
|
19246
19246
|
this._interval.unref();
|
|
19247
19247
|
}
|
|
19248
|
-
this._flushShift = Math.floor(Math.random() *
|
|
19248
|
+
this._flushShift = Math.floor(Math.random() * constants.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 ===
|
|
19261
|
+
const previousWeight = bucketItem && metricType === constants.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 >=
|
|
19282
|
+
if (this._bucketsTotalWeight >= constants.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()) -
|
|
19317
|
+
const cutoffSeconds = Math.floor(utils$1.timestampInSeconds()) - constants.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
|
|
20467
|
+
var constants = 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(),
|
|
20478
|
+
this._interval = setInterval(() => this.flush(), constants.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 ===
|
|
20490
|
+
const previousWeight = bucketItem && metricType === constants.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
|
|
20573
|
+
var constants = 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(
|
|
20601
|
+
addToMetricsAggregator(constants.COUNTER_METRIC_TYPE, name, value, data);
|
|
20602
20602
|
}
|
|
20603
20603
|
function distribution(name, value, data) {
|
|
20604
|
-
addToMetricsAggregator(
|
|
20604
|
+
addToMetricsAggregator(constants.DISTRIBUTION_METRIC_TYPE, name, value, data);
|
|
20605
20605
|
}
|
|
20606
20606
|
function set2(name, value, data) {
|
|
20607
|
-
addToMetricsAggregator(
|
|
20607
|
+
addToMetricsAggregator(constants.SET_METRIC_TYPE, name, value, data);
|
|
20608
20608
|
}
|
|
20609
20609
|
function gauge(name, value, data) {
|
|
20610
|
-
addToMetricsAggregator(
|
|
20610
|
+
addToMetricsAggregator(constants.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
|
|
20672
|
+
var constants = 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 =
|
|
20789
|
+
exports2.DEFAULT_ENVIRONMENT = constants.DEFAULT_ENVIRONMENT;
|
|
20790
20790
|
exports2.ModuleMetadata = metadata.ModuleMetadata;
|
|
20791
20791
|
exports2.moduleMetadataIntegration = metadata.moduleMetadataIntegration;
|
|
20792
20792
|
exports2.RequestData = requestdata.RequestData;
|
|
@@ -51518,7 +51518,7 @@ var require_scan = __commonJS2({
|
|
|
51518
51518
|
var require_parse3 = __commonJS2({
|
|
51519
51519
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
51520
51520
|
"use strict";
|
|
51521
|
-
var
|
|
51521
|
+
var constants = require_constants4();
|
|
51522
51522
|
var utils = require_utils9();
|
|
51523
51523
|
var {
|
|
51524
51524
|
MAX_LENGTH,
|
|
@@ -51526,7 +51526,7 @@ var require_parse3 = __commonJS2({
|
|
|
51526
51526
|
REGEX_NON_SPECIAL_CHARS,
|
|
51527
51527
|
REGEX_SPECIAL_CHARS_BACKREF,
|
|
51528
51528
|
REPLACEMENTS
|
|
51529
|
-
} =
|
|
51529
|
+
} = constants;
|
|
51530
51530
|
var expandRange = (args2, options) => {
|
|
51531
51531
|
if (typeof options.expandRange === "function") {
|
|
51532
51532
|
return options.expandRange(...args2, options);
|
|
@@ -51558,8 +51558,8 @@ var require_parse3 = __commonJS2({
|
|
|
51558
51558
|
const tokens = [bos];
|
|
51559
51559
|
const capture = opts.capture ? "" : "?:";
|
|
51560
51560
|
const win32 = utils.isWindows(options);
|
|
51561
|
-
const PLATFORM_CHARS =
|
|
51562
|
-
const EXTGLOB_CHARS =
|
|
51561
|
+
const PLATFORM_CHARS = constants.globChars(win32);
|
|
51562
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
51563
51563
|
const {
|
|
51564
51564
|
DOT_LITERAL,
|
|
51565
51565
|
PLUS_LITERAL,
|
|
@@ -52241,7 +52241,7 @@ var require_parse3 = __commonJS2({
|
|
|
52241
52241
|
NO_DOTS_SLASH,
|
|
52242
52242
|
STAR,
|
|
52243
52243
|
START_ANCHOR
|
|
52244
|
-
} =
|
|
52244
|
+
} = constants.globChars(win32);
|
|
52245
52245
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
52246
52246
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
52247
52247
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -52303,7 +52303,7 @@ var require_picomatch = __commonJS2({
|
|
|
52303
52303
|
var scan = require_scan();
|
|
52304
52304
|
var parse11 = require_parse3();
|
|
52305
52305
|
var utils = require_utils9();
|
|
52306
|
-
var
|
|
52306
|
+
var constants = require_constants4();
|
|
52307
52307
|
var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
52308
52308
|
var picomatch = (glob, options, returnState = false) => {
|
|
52309
52309
|
if (Array.isArray(glob)) {
|
|
@@ -52434,7 +52434,7 @@ var require_picomatch = __commonJS2({
|
|
|
52434
52434
|
return /$^/;
|
|
52435
52435
|
}
|
|
52436
52436
|
};
|
|
52437
|
-
picomatch.constants =
|
|
52437
|
+
picomatch.constants = constants;
|
|
52438
52438
|
module2.exports = picomatch;
|
|
52439
52439
|
}
|
|
52440
52440
|
});
|
|
@@ -55098,7 +55098,7 @@ var require_utils12 = __commonJS2({
|
|
|
55098
55098
|
inferMicrofrontendsLocation: () => inferMicrofrontendsLocation
|
|
55099
55099
|
});
|
|
55100
55100
|
module2.exports = __toCommonJS4(utils_exports);
|
|
55101
|
-
var
|
|
55101
|
+
var import_node_fs3 = __toESM4(require("fs"), 1);
|
|
55102
55102
|
var import_node_path6 = require("path");
|
|
55103
55103
|
var CONFIGURATION_FILENAMES = [
|
|
55104
55104
|
"microfrontends.jsonc",
|
|
@@ -55107,7 +55107,7 @@ var require_utils12 = __commonJS2({
|
|
|
55107
55107
|
function findConfig({ dir }) {
|
|
55108
55108
|
for (const filename of CONFIGURATION_FILENAMES) {
|
|
55109
55109
|
const maybeConfig = (0, import_node_path6.join)(dir, filename);
|
|
55110
|
-
if (
|
|
55110
|
+
if (import_node_fs3.default.existsSync(maybeConfig)) {
|
|
55111
55111
|
return maybeConfig;
|
|
55112
55112
|
}
|
|
55113
55113
|
}
|
|
@@ -59748,7 +59748,7 @@ var require_end_of_stream = __commonJS2({
|
|
|
59748
59748
|
// ../../node_modules/.pnpm/tar-stream@1.6.2/node_modules/tar-stream/pack.js
|
|
59749
59749
|
var require_pack = __commonJS2({
|
|
59750
59750
|
"../../node_modules/.pnpm/tar-stream@1.6.2/node_modules/tar-stream/pack.js"(exports2, module2) {
|
|
59751
|
-
var
|
|
59751
|
+
var constants = require_fs_constants();
|
|
59752
59752
|
var eos = require_end_of_stream();
|
|
59753
59753
|
var util = require("util");
|
|
59754
59754
|
var alloc = require_buffer_alloc();
|
|
@@ -59768,16 +59768,16 @@ var require_pack = __commonJS2({
|
|
|
59768
59768
|
self2.push(END_OF_TAR.slice(0, 512 - size));
|
|
59769
59769
|
};
|
|
59770
59770
|
function modeToType(mode) {
|
|
59771
|
-
switch (mode &
|
|
59772
|
-
case
|
|
59771
|
+
switch (mode & constants.S_IFMT) {
|
|
59772
|
+
case constants.S_IFBLK:
|
|
59773
59773
|
return "block-device";
|
|
59774
|
-
case
|
|
59774
|
+
case constants.S_IFCHR:
|
|
59775
59775
|
return "character-device";
|
|
59776
|
-
case
|
|
59776
|
+
case constants.S_IFDIR:
|
|
59777
59777
|
return "directory";
|
|
59778
|
-
case
|
|
59778
|
+
case constants.S_IFIFO:
|
|
59779
59779
|
return "fifo";
|
|
59780
|
-
case
|
|
59780
|
+
case constants.S_IFLNK:
|
|
59781
59781
|
return "symlink";
|
|
59782
59782
|
}
|
|
59783
59783
|
return "file";
|
|
@@ -87854,30 +87854,30 @@ var require_ipv4 = __commonJS2({
|
|
|
87854
87854
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
87855
87855
|
exports2.Address4 = void 0;
|
|
87856
87856
|
var common2 = __importStar2(require_common7());
|
|
87857
|
-
var
|
|
87857
|
+
var constants = __importStar2(require_constants7());
|
|
87858
87858
|
var address_error_1 = require_address_error();
|
|
87859
87859
|
var jsbn_1 = require_jsbn();
|
|
87860
87860
|
var sprintf_js_1 = require_sprintf();
|
|
87861
87861
|
var Address4 = class _Address4 {
|
|
87862
87862
|
constructor(address) {
|
|
87863
|
-
this.groups =
|
|
87863
|
+
this.groups = constants.GROUPS;
|
|
87864
87864
|
this.parsedAddress = [];
|
|
87865
87865
|
this.parsedSubnet = "";
|
|
87866
87866
|
this.subnet = "/32";
|
|
87867
87867
|
this.subnetMask = 32;
|
|
87868
87868
|
this.v4 = true;
|
|
87869
|
-
this.isCorrect = common2.isCorrect(
|
|
87869
|
+
this.isCorrect = common2.isCorrect(constants.BITS);
|
|
87870
87870
|
this.isInSubnet = common2.isInSubnet;
|
|
87871
87871
|
this.address = address;
|
|
87872
|
-
const subnet =
|
|
87872
|
+
const subnet = constants.RE_SUBNET_STRING.exec(address);
|
|
87873
87873
|
if (subnet) {
|
|
87874
87874
|
this.parsedSubnet = subnet[0].replace("/", "");
|
|
87875
87875
|
this.subnetMask = parseInt(this.parsedSubnet, 10);
|
|
87876
87876
|
this.subnet = `/${this.subnetMask}`;
|
|
87877
|
-
if (this.subnetMask < 0 || this.subnetMask >
|
|
87877
|
+
if (this.subnetMask < 0 || this.subnetMask > constants.BITS) {
|
|
87878
87878
|
throw new address_error_1.AddressError("Invalid subnet mask.");
|
|
87879
87879
|
}
|
|
87880
|
-
address = address.replace(
|
|
87880
|
+
address = address.replace(constants.RE_SUBNET_STRING, "");
|
|
87881
87881
|
}
|
|
87882
87882
|
this.addressMinusSuffix = address;
|
|
87883
87883
|
this.parsedAddress = this.parse(address);
|
|
@@ -87895,7 +87895,7 @@ var require_ipv4 = __commonJS2({
|
|
|
87895
87895
|
*/
|
|
87896
87896
|
parse(address) {
|
|
87897
87897
|
const groups = address.split(".");
|
|
87898
|
-
if (!address.match(
|
|
87898
|
+
if (!address.match(constants.RE_ADDRESS)) {
|
|
87899
87899
|
throw new address_error_1.AddressError("Invalid IPv4 address.");
|
|
87900
87900
|
}
|
|
87901
87901
|
return groups;
|
|
@@ -87978,7 +87978,7 @@ var require_ipv4 = __commonJS2({
|
|
|
87978
87978
|
toGroup6() {
|
|
87979
87979
|
const output2 = [];
|
|
87980
87980
|
let i;
|
|
87981
|
-
for (i = 0; i <
|
|
87981
|
+
for (i = 0; i < constants.GROUPS; i += 2) {
|
|
87982
87982
|
const hex = (0, sprintf_js_1.sprintf)("%02x%02x", parseInt(this.parsedAddress[i], 10), parseInt(this.parsedAddress[i + 1], 10));
|
|
87983
87983
|
output2.push((0, sprintf_js_1.sprintf)("%x", parseInt(hex, 16)));
|
|
87984
87984
|
}
|
|
@@ -88000,7 +88000,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88000
88000
|
* @returns {BigInteger}
|
|
88001
88001
|
*/
|
|
88002
88002
|
_startAddress() {
|
|
88003
|
-
return new jsbn_1.BigInteger(this.mask() + "0".repeat(
|
|
88003
|
+
return new jsbn_1.BigInteger(this.mask() + "0".repeat(constants.BITS - this.subnetMask), 2);
|
|
88004
88004
|
}
|
|
88005
88005
|
/**
|
|
88006
88006
|
* The first address in the range given by this address' subnet.
|
|
@@ -88030,7 +88030,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88030
88030
|
* @returns {BigInteger}
|
|
88031
88031
|
*/
|
|
88032
88032
|
_endAddress() {
|
|
88033
|
-
return new jsbn_1.BigInteger(this.mask() + "1".repeat(
|
|
88033
|
+
return new jsbn_1.BigInteger(this.mask() + "1".repeat(constants.BITS - this.subnetMask), 2);
|
|
88034
88034
|
}
|
|
88035
88035
|
/**
|
|
88036
88036
|
* The last address in the range given by this address' subnet
|
|
@@ -88119,7 +88119,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88119
88119
|
* @returns {string}
|
|
88120
88120
|
*/
|
|
88121
88121
|
binaryZeroPad() {
|
|
88122
|
-
return this.bigInteger().toString(2).padStart(
|
|
88122
|
+
return this.bigInteger().toString(2).padStart(constants.BITS, "0");
|
|
88123
88123
|
}
|
|
88124
88124
|
/**
|
|
88125
88125
|
* Groups an IPv4 address for inclusion at the end of an IPv6 address
|
|
@@ -88127,7 +88127,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88127
88127
|
*/
|
|
88128
88128
|
groupForV6() {
|
|
88129
88129
|
const segments = this.parsedAddress;
|
|
88130
|
-
return this.address.replace(
|
|
88130
|
+
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(".")));
|
|
88131
88131
|
}
|
|
88132
88132
|
};
|
|
88133
88133
|
exports2.Address4 = Address4;
|
|
@@ -94912,6 +94912,74 @@ var init_update_current_team_after_login = __esm({
|
|
|
94912
94912
|
}
|
|
94913
94913
|
});
|
|
94914
94914
|
|
|
94915
|
+
// ../detect-agent/dist/index.js
|
|
94916
|
+
var require_dist20 = __commonJS2({
|
|
94917
|
+
"../detect-agent/dist/index.js"(exports2, module2) {
|
|
94918
|
+
"use strict";
|
|
94919
|
+
var __defProp4 = Object.defineProperty;
|
|
94920
|
+
var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
|
|
94921
|
+
var __getOwnPropNames4 = Object.getOwnPropertyNames;
|
|
94922
|
+
var __hasOwnProp4 = Object.prototype.hasOwnProperty;
|
|
94923
|
+
var __export4 = (target, all) => {
|
|
94924
|
+
for (var name in all)
|
|
94925
|
+
__defProp4(target, name, { get: all[name], enumerable: true });
|
|
94926
|
+
};
|
|
94927
|
+
var __copyProps4 = (to, from, except, desc) => {
|
|
94928
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
94929
|
+
for (let key of __getOwnPropNames4(from))
|
|
94930
|
+
if (!__hasOwnProp4.call(to, key) && key !== except)
|
|
94931
|
+
__defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
|
|
94932
|
+
}
|
|
94933
|
+
return to;
|
|
94934
|
+
};
|
|
94935
|
+
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
|
94936
|
+
var src_exports2 = {};
|
|
94937
|
+
__export4(src_exports2, {
|
|
94938
|
+
determineAgent: () => determineAgent2
|
|
94939
|
+
});
|
|
94940
|
+
module2.exports = __toCommonJS4(src_exports2);
|
|
94941
|
+
var import_promises4 = require("fs/promises");
|
|
94942
|
+
var import_node_fs3 = require("fs");
|
|
94943
|
+
var devinLocalPath = "/opt/.devin";
|
|
94944
|
+
var CURSOR = "cursor";
|
|
94945
|
+
var CURSOR_CLI = "cursor-cli";
|
|
94946
|
+
var CLAUDE = "claude";
|
|
94947
|
+
var DEVIN = "devin";
|
|
94948
|
+
var REPLIT = "replit";
|
|
94949
|
+
var GEMINI = "gemini";
|
|
94950
|
+
var CODEX = "codex";
|
|
94951
|
+
async function determineAgent2() {
|
|
94952
|
+
if (process.env.AI_AGENT) {
|
|
94953
|
+
return process.env.AI_AGENT;
|
|
94954
|
+
}
|
|
94955
|
+
if (process.env.CURSOR_TRACE_ID) {
|
|
94956
|
+
return CURSOR;
|
|
94957
|
+
}
|
|
94958
|
+
if (process.env.CURSOR_AGENT) {
|
|
94959
|
+
return CURSOR_CLI;
|
|
94960
|
+
}
|
|
94961
|
+
if (process.env.GEMINI_CLI) {
|
|
94962
|
+
return GEMINI;
|
|
94963
|
+
}
|
|
94964
|
+
if (process.env.CODEX_SANDBOX) {
|
|
94965
|
+
return CODEX;
|
|
94966
|
+
}
|
|
94967
|
+
if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) {
|
|
94968
|
+
return CLAUDE;
|
|
94969
|
+
}
|
|
94970
|
+
if (process.env.REPL_ID) {
|
|
94971
|
+
return REPLIT;
|
|
94972
|
+
}
|
|
94973
|
+
try {
|
|
94974
|
+
await (0, import_promises4.access)(devinLocalPath, import_node_fs3.constants.F_OK);
|
|
94975
|
+
return DEVIN;
|
|
94976
|
+
} catch (error3) {
|
|
94977
|
+
return false;
|
|
94978
|
+
}
|
|
94979
|
+
}
|
|
94980
|
+
}
|
|
94981
|
+
});
|
|
94982
|
+
|
|
94915
94983
|
// src/util/get-subcommand.ts
|
|
94916
94984
|
function getSubcommand(cliArgs, config2) {
|
|
94917
94985
|
const [subcommand, ...rest] = cliArgs;
|
|
@@ -100938,10 +101006,10 @@ async function put2(client2, argv, rwToken) {
|
|
|
100938
101006
|
telemetryClient.trackCliInputSourceStdin();
|
|
100939
101007
|
} else {
|
|
100940
101008
|
try {
|
|
100941
|
-
const stats = (0,
|
|
101009
|
+
const stats = (0, import_node_fs.statSync)(filePath);
|
|
100942
101010
|
const isFile2 = stats.isFile();
|
|
100943
101011
|
if (isFile2) {
|
|
100944
|
-
const file = await (0,
|
|
101012
|
+
const file = await (0, import_promises.open)(filePath, "r");
|
|
100945
101013
|
putBody = file.createReadStream();
|
|
100946
101014
|
pathname = pathnameFlag ?? (0, import_node_path.basename)(filePath);
|
|
100947
101015
|
} else {
|
|
@@ -100989,7 +101057,7 @@ async function put2(client2, argv, rwToken) {
|
|
|
100989
101057
|
output_manager_default.success(result.url);
|
|
100990
101058
|
return 0;
|
|
100991
101059
|
}
|
|
100992
|
-
var blob2,
|
|
101060
|
+
var blob2, import_node_fs, import_promises, import_error_utils12, import_node_path, import_chalk35;
|
|
100993
101061
|
var init_put2 = __esm({
|
|
100994
101062
|
"src/commands/blob/put.ts"() {
|
|
100995
101063
|
"use strict";
|
|
@@ -100998,8 +101066,8 @@ var init_put2 = __esm({
|
|
|
100998
101066
|
init_get_args();
|
|
100999
101067
|
init_get_flags_specification();
|
|
101000
101068
|
init_command35();
|
|
101001
|
-
|
|
101002
|
-
|
|
101069
|
+
import_node_fs = require("fs");
|
|
101070
|
+
import_promises = require("fs/promises");
|
|
101003
101071
|
import_error_utils12 = __toESM3(require_dist2());
|
|
101004
101072
|
import_node_path = require("path");
|
|
101005
101073
|
init_pkg_name();
|
|
@@ -119351,7 +119419,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
119351
119419
|
});
|
|
119352
119420
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
|
119353
119421
|
var import_semver4 = __toESM4(require_semver2());
|
|
119354
|
-
var import__98 =
|
|
119422
|
+
var import__98 = require_dist21();
|
|
119355
119423
|
async function detectFileSystemAPI2({
|
|
119356
119424
|
files,
|
|
119357
119425
|
projectSettings,
|
|
@@ -119944,7 +120012,7 @@ var require_local_file_system_detector = __commonJS2({
|
|
|
119944
120012
|
LocalFileSystemDetector: () => LocalFileSystemDetector5
|
|
119945
120013
|
});
|
|
119946
120014
|
module2.exports = __toCommonJS4(local_file_system_detector_exports);
|
|
119947
|
-
var
|
|
120015
|
+
var import_promises4 = __toESM4(require("fs/promises"));
|
|
119948
120016
|
var import_path41 = require("path");
|
|
119949
120017
|
var import_filesystem = require_filesystem();
|
|
119950
120018
|
var import_error_utils39 = require_dist2();
|
|
@@ -119955,7 +120023,7 @@ var require_local_file_system_detector = __commonJS2({
|
|
|
119955
120023
|
}
|
|
119956
120024
|
async _hasPath(name) {
|
|
119957
120025
|
try {
|
|
119958
|
-
await
|
|
120026
|
+
await import_promises4.default.stat(this.getFilePath(name));
|
|
119959
120027
|
return true;
|
|
119960
120028
|
} catch (err) {
|
|
119961
120029
|
if ((0, import_error_utils39.isErrnoException)(err) && err.code === "ENOENT") {
|
|
@@ -119965,15 +120033,15 @@ var require_local_file_system_detector = __commonJS2({
|
|
|
119965
120033
|
}
|
|
119966
120034
|
}
|
|
119967
120035
|
_readFile(name) {
|
|
119968
|
-
return
|
|
120036
|
+
return import_promises4.default.readFile(this.getFilePath(name));
|
|
119969
120037
|
}
|
|
119970
120038
|
async _isFile(name) {
|
|
119971
|
-
const stat2 = await
|
|
120039
|
+
const stat2 = await import_promises4.default.stat(this.getFilePath(name));
|
|
119972
120040
|
return stat2.isFile();
|
|
119973
120041
|
}
|
|
119974
120042
|
async _readdir(dir) {
|
|
119975
120043
|
const dirPath = this.getFilePath(dir);
|
|
119976
|
-
const entries = await
|
|
120044
|
+
const entries = await import_promises4.default.readdir(dirPath, { withFileTypes: true });
|
|
119977
120045
|
const result = [];
|
|
119978
120046
|
for (const entry of entries) {
|
|
119979
120047
|
let type;
|
|
@@ -126304,7 +126372,7 @@ var require_detect_instrumentation = __commonJS2({
|
|
|
126304
126372
|
});
|
|
126305
126373
|
|
|
126306
126374
|
// ../fs-detectors/dist/index.js
|
|
126307
|
-
var
|
|
126375
|
+
var require_dist21 = __commonJS2({
|
|
126308
126376
|
"../fs-detectors/dist/index.js"(exports2, module2) {
|
|
126309
126377
|
"use strict";
|
|
126310
126378
|
var __defProp4 = Object.defineProperty;
|
|
@@ -126407,7 +126475,7 @@ var init_detect_projects = __esm({
|
|
|
126407
126475
|
"use strict";
|
|
126408
126476
|
import_path13 = require("path");
|
|
126409
126477
|
import_frameworks = __toESM3(require_frameworks());
|
|
126410
|
-
import_fs_detectors = __toESM3(
|
|
126478
|
+
import_fs_detectors = __toESM3(require_dist21());
|
|
126411
126479
|
}
|
|
126412
126480
|
});
|
|
126413
126481
|
|
|
@@ -130193,7 +130261,7 @@ var require_main3 = __commonJS2({
|
|
|
130193
130261
|
});
|
|
130194
130262
|
|
|
130195
130263
|
// ../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js
|
|
130196
|
-
var
|
|
130264
|
+
var require_dist22 = __commonJS2({
|
|
130197
130265
|
"../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
|
|
130198
130266
|
"use strict";
|
|
130199
130267
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -130563,7 +130631,7 @@ var require_dist21 = __commonJS2({
|
|
|
130563
130631
|
});
|
|
130564
130632
|
|
|
130565
130633
|
// ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
|
|
130566
|
-
var
|
|
130634
|
+
var require_dist23 = __commonJS2({
|
|
130567
130635
|
"../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
|
|
130568
130636
|
"use strict";
|
|
130569
130637
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -130987,8 +131055,8 @@ var require_superstatic = __commonJS2({
|
|
|
130987
131055
|
});
|
|
130988
131056
|
module2.exports = __toCommonJS4(superstatic_exports);
|
|
130989
131057
|
var import_url24 = require("url");
|
|
130990
|
-
var import_path_to_regexp =
|
|
130991
|
-
var import_path_to_regexp_updated =
|
|
131058
|
+
var import_path_to_regexp = require_dist22();
|
|
131059
|
+
var import_path_to_regexp_updated = require_dist23();
|
|
130992
131060
|
function cloneKeys(keys) {
|
|
130993
131061
|
if (typeof keys === "undefined") {
|
|
130994
131062
|
return void 0;
|
|
@@ -131384,7 +131452,7 @@ var require_append = __commonJS2({
|
|
|
131384
131452
|
appendRoutesToPhase: () => appendRoutesToPhase4
|
|
131385
131453
|
});
|
|
131386
131454
|
module2.exports = __toCommonJS4(append_exports);
|
|
131387
|
-
var import_index =
|
|
131455
|
+
var import_index = require_dist24();
|
|
131388
131456
|
function appendRoutesToPhase4({
|
|
131389
131457
|
routes: prevRoutes,
|
|
131390
131458
|
newRoutes,
|
|
@@ -131452,7 +131520,7 @@ var require_merge4 = __commonJS2({
|
|
|
131452
131520
|
mergeRoutes: () => mergeRoutes3
|
|
131453
131521
|
});
|
|
131454
131522
|
module2.exports = __toCommonJS4(merge_exports);
|
|
131455
|
-
var import_index =
|
|
131523
|
+
var import_index = require_dist24();
|
|
131456
131524
|
function getBuilderRoutesMapping(builds) {
|
|
131457
131525
|
const builderRoutes = {};
|
|
131458
131526
|
for (const { entrypoint, routes: routes2, use } of builds) {
|
|
@@ -132171,7 +132239,7 @@ var require_types6 = __commonJS2({
|
|
|
132171
132239
|
});
|
|
132172
132240
|
|
|
132173
132241
|
// ../routing-utils/dist/index.js
|
|
132174
|
-
var
|
|
132242
|
+
var require_dist24 = __commonJS2({
|
|
132175
132243
|
"../routing-utils/dist/index.js"(exports2, module2) {
|
|
132176
132244
|
"use strict";
|
|
132177
132245
|
var __defProp4 = Object.defineProperty;
|
|
@@ -133722,7 +133790,7 @@ var init_import_builders = __esm({
|
|
|
133722
133790
|
import_path17 = require("path");
|
|
133723
133791
|
import_module2 = require("module");
|
|
133724
133792
|
import_fs_extra10 = __toESM3(require_lib());
|
|
133725
|
-
import_fs_detectors2 = __toESM3(
|
|
133793
|
+
import_fs_detectors2 = __toESM3(require_dist21());
|
|
133726
133794
|
import_execa3 = __toESM3(require_execa());
|
|
133727
133795
|
init_static_builder();
|
|
133728
133796
|
init_link2();
|
|
@@ -133789,7 +133857,7 @@ var init_monorepo = __esm({
|
|
|
133789
133857
|
"src/util/build/monorepo.ts"() {
|
|
133790
133858
|
"use strict";
|
|
133791
133859
|
import_path18 = require("path");
|
|
133792
|
-
import_fs_detectors3 = __toESM3(
|
|
133860
|
+
import_fs_detectors3 = __toESM3(require_dist21());
|
|
133793
133861
|
import_title3 = __toESM3(require_lib4());
|
|
133794
133862
|
import_build_utils9 = require("@vercel/build-utils");
|
|
133795
133863
|
init_output_manager();
|
|
@@ -144518,7 +144586,7 @@ var init_validate_config = __esm({
|
|
|
144518
144586
|
"src/util/validate-config.ts"() {
|
|
144519
144587
|
"use strict";
|
|
144520
144588
|
import_ajv2 = __toESM3(require_ajv());
|
|
144521
|
-
import_routing_utils = __toESM3(
|
|
144589
|
+
import_routing_utils = __toESM3(require_dist24());
|
|
144522
144590
|
import_build_utils12 = require("@vercel/build-utils");
|
|
144523
144591
|
import_client5 = __toESM3(require_dist7());
|
|
144524
144592
|
imagesSchema = {
|
|
@@ -145949,8 +146017,8 @@ async function main3(client2) {
|
|
|
145949
146017
|
} finally {
|
|
145950
146018
|
try {
|
|
145951
146019
|
const diagnosticsOutputPath = (0, import_path27.join)(outputDir, "diagnostics");
|
|
145952
|
-
await (0,
|
|
145953
|
-
await (0,
|
|
146020
|
+
await (0, import_promises2.mkdir)(diagnosticsOutputPath, { recursive: true });
|
|
146021
|
+
await (0, import_promises2.writeFile)(
|
|
145954
146022
|
(0, import_path27.join)(diagnosticsOutputPath, "cli_traces.json"),
|
|
145955
146023
|
JSON.stringify(reporter.events)
|
|
145956
146024
|
);
|
|
@@ -146446,7 +146514,7 @@ async function getFrameworkRoutes(framework, dirPrefix) {
|
|
|
146446
146514
|
}
|
|
146447
146515
|
return routes2;
|
|
146448
146516
|
}
|
|
146449
|
-
var import_chalk52, import_dotenv, import_fs_extra18, import_minimatch2, import_path27, import_semver3, import_build_utils13, import_client6, import_frameworks5, import_fs_detectors4, import_routing_utils2,
|
|
146517
|
+
var import_chalk52, 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;
|
|
146450
146518
|
var init_build2 = __esm({
|
|
146451
146519
|
"src/commands/build/index.ts"() {
|
|
146452
146520
|
"use strict";
|
|
@@ -146459,8 +146527,8 @@ var init_build2 = __esm({
|
|
|
146459
146527
|
import_build_utils13 = require("@vercel/build-utils");
|
|
146460
146528
|
import_client6 = __toESM3(require_dist7());
|
|
146461
146529
|
import_frameworks5 = __toESM3(require_frameworks());
|
|
146462
|
-
import_fs_detectors4 = __toESM3(
|
|
146463
|
-
import_routing_utils2 = __toESM3(
|
|
146530
|
+
import_fs_detectors4 = __toESM3(require_dist21());
|
|
146531
|
+
import_routing_utils2 = __toESM3(require_dist24());
|
|
146464
146532
|
init_output_manager();
|
|
146465
146533
|
init_corepack();
|
|
146466
146534
|
init_import_builders();
|
|
@@ -146487,7 +146555,7 @@ var init_build2 = __esm({
|
|
|
146487
146555
|
init_help();
|
|
146488
146556
|
init_pull4();
|
|
146489
146557
|
init_command3();
|
|
146490
|
-
|
|
146558
|
+
import_promises2 = require("fs/promises");
|
|
146491
146559
|
InMemoryReporter = class {
|
|
146492
146560
|
constructor() {
|
|
146493
146561
|
this.events = [];
|
|
@@ -166032,7 +166100,7 @@ var require_src3 = __commonJS2({
|
|
|
166032
166100
|
});
|
|
166033
166101
|
|
|
166034
166102
|
// ../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js
|
|
166035
|
-
var
|
|
166103
|
+
var require_dist25 = __commonJS2({
|
|
166036
166104
|
"../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js"(exports2, module2) {
|
|
166037
166105
|
"use strict";
|
|
166038
166106
|
function noop() {
|
|
@@ -166209,7 +166277,7 @@ var init_path_helpers = __esm({
|
|
|
166209
166277
|
});
|
|
166210
166278
|
|
|
166211
166279
|
// ../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js
|
|
166212
|
-
var
|
|
166280
|
+
var require_dist26 = __commonJS2({
|
|
166213
166281
|
"../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js"(exports2, module2) {
|
|
166214
166282
|
"use strict";
|
|
166215
166283
|
var characterClasses = {
|
|
@@ -166544,9 +166612,9 @@ var init_router = __esm({
|
|
|
166544
166612
|
"src/util/dev/router.ts"() {
|
|
166545
166613
|
"use strict";
|
|
166546
166614
|
import_url17 = __toESM3(require("url"));
|
|
166547
|
-
import_pcre_to_regexp = __toESM3(
|
|
166615
|
+
import_pcre_to_regexp = __toESM3(require_dist26());
|
|
166548
166616
|
init_is_url();
|
|
166549
|
-
import_routing_utils3 = __toESM3(
|
|
166617
|
+
import_routing_utils3 = __toESM3(require_dist24());
|
|
166550
166618
|
init_parse_query_string();
|
|
166551
166619
|
}
|
|
166552
166620
|
});
|
|
@@ -167039,14 +167107,14 @@ var init_builder = __esm({
|
|
|
167039
167107
|
import_child_process3 = require("child_process");
|
|
167040
167108
|
import_fun = require("@vercel/fun");
|
|
167041
167109
|
import_build_utils16 = require("@vercel/build-utils");
|
|
167042
|
-
import_fs_detectors5 = __toESM3(
|
|
167110
|
+
import_fs_detectors5 = __toESM3(require_dist21());
|
|
167043
167111
|
import_pluralize6 = __toESM3(require_pluralize());
|
|
167044
167112
|
import_minimatch3 = __toESM3(require_minimatch2());
|
|
167045
167113
|
init_highlight();
|
|
167046
167114
|
init_tree_kill();
|
|
167047
167115
|
init_path_helpers();
|
|
167048
167116
|
init_errors_ts();
|
|
167049
|
-
import_routing_utils4 = __toESM3(
|
|
167117
|
+
import_routing_utils4 = __toESM3(require_dist24());
|
|
167050
167118
|
init_get_update_command();
|
|
167051
167119
|
init_pkg_name();
|
|
167052
167120
|
init_import_builders();
|
|
@@ -167608,7 +167676,7 @@ var init_server = __esm({
|
|
|
167608
167676
|
import_chokidar = require("chokidar");
|
|
167609
167677
|
import_dotenv2 = __toESM3(require_main3());
|
|
167610
167678
|
import_path35 = __toESM3(require("path"));
|
|
167611
|
-
import_once = __toESM3(
|
|
167679
|
+
import_once = __toESM3(require_dist25());
|
|
167612
167680
|
import_directory = __toESM3(require_directory());
|
|
167613
167681
|
import_get_port = __toESM3(require_get_port());
|
|
167614
167682
|
import_is_port_reachable = __toESM3(require_is_port_reachable());
|
|
@@ -167616,9 +167684,9 @@ var init_server = __esm({
|
|
|
167616
167684
|
import_npm_package_arg2 = __toESM3(require_npa());
|
|
167617
167685
|
import_json_parse_better_errors3 = __toESM3(require_json_parse_better_errors());
|
|
167618
167686
|
import_client12 = __toESM3(require_dist7());
|
|
167619
|
-
import_routing_utils5 = __toESM3(
|
|
167687
|
+
import_routing_utils5 = __toESM3(require_dist24());
|
|
167620
167688
|
import_build_utils17 = require("@vercel/build-utils");
|
|
167621
|
-
import_fs_detectors6 = __toESM3(
|
|
167689
|
+
import_fs_detectors6 = __toESM3(require_dist21());
|
|
167622
167690
|
import_frameworks6 = __toESM3(require_frameworks());
|
|
167623
167691
|
init_cmd();
|
|
167624
167692
|
init_link();
|
|
@@ -169373,7 +169441,7 @@ async function* refreshOidcToken(signal, client2, projectId, envValues, source,
|
|
|
169373
169441
|
`${VERCEL_OIDC_TOKEN} expires in ${expiresAfterSecs}s; refreshing in ${refreshAfterSecs}s`
|
|
169374
169442
|
);
|
|
169375
169443
|
}
|
|
169376
|
-
await (0,
|
|
169444
|
+
await (0, import_promises3.setTimeout)(refreshAfterMillis, void 0, { signal });
|
|
169377
169445
|
const envValuesOrNull = await pullEnvValuesUntilSuccessful(
|
|
169378
169446
|
signal,
|
|
169379
169447
|
client2,
|
|
@@ -169395,7 +169463,7 @@ async function pullEnvValuesUntilSuccessful(signal, client2, projectId, source,
|
|
|
169395
169463
|
output_manager_default.debug(
|
|
169396
169464
|
`Failed to pull environment; trying again in ${Math.round(millisToSecs(millis))}s`
|
|
169397
169465
|
);
|
|
169398
|
-
await (0,
|
|
169466
|
+
await (0, import_promises3.setTimeout)(millis, void 0, { signal });
|
|
169399
169467
|
}
|
|
169400
169468
|
}
|
|
169401
169469
|
return null;
|
|
@@ -169406,11 +169474,11 @@ function clock() {
|
|
|
169406
169474
|
function millisToSecs(millis) {
|
|
169407
169475
|
return millis / 1e3;
|
|
169408
169476
|
}
|
|
169409
|
-
var
|
|
169477
|
+
var import_promises3, import_jose, import_ms15, import_perf_hooks, REFRESH_BEFORE_EXPIRY_MILLIS, THROTTLE_MILLIS;
|
|
169410
169478
|
var init_refresh_oidc_token = __esm({
|
|
169411
169479
|
"src/util/env/refresh-oidc-token.ts"() {
|
|
169412
169480
|
"use strict";
|
|
169413
|
-
|
|
169481
|
+
import_promises3 = require("timers/promises");
|
|
169414
169482
|
import_jose = require("jose");
|
|
169415
169483
|
import_ms15 = __toESM3(require_ms());
|
|
169416
169484
|
import_perf_hooks = require("perf_hooks");
|
|
@@ -174688,15 +174756,15 @@ ${deployHint}`);
|
|
|
174688
174756
|
}
|
|
174689
174757
|
function prepareFolder(cwd, folder, force) {
|
|
174690
174758
|
const dest = import_node_path4.default.join(cwd, folder);
|
|
174691
|
-
if (
|
|
174692
|
-
if (!
|
|
174759
|
+
if (import_node_fs2.default.existsSync(dest)) {
|
|
174760
|
+
if (!import_node_fs2.default.lstatSync(dest).isDirectory()) {
|
|
174693
174761
|
throw new Error(
|
|
174694
174762
|
`Destination path "${import_chalk93.default.bold(
|
|
174695
174763
|
folder
|
|
174696
174764
|
)}" already exists and is not a directory.`
|
|
174697
174765
|
);
|
|
174698
174766
|
}
|
|
174699
|
-
if (!force &&
|
|
174767
|
+
if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
|
|
174700
174768
|
throw new Error(
|
|
174701
174769
|
`Destination path "${import_chalk93.default.bold(
|
|
174702
174770
|
folder
|
|
@@ -174707,7 +174775,7 @@ function prepareFolder(cwd, folder, force) {
|
|
|
174707
174775
|
}
|
|
174708
174776
|
} else if (dest !== cwd) {
|
|
174709
174777
|
try {
|
|
174710
|
-
|
|
174778
|
+
import_node_fs2.default.mkdirSync(dest);
|
|
174711
174779
|
} catch (e2) {
|
|
174712
174780
|
throw new Error(`Could not create directory "${import_chalk93.default.bold(folder)}".`);
|
|
174713
174781
|
}
|
|
@@ -174732,11 +174800,11 @@ async function guess(client2, exampleList, name) {
|
|
|
174732
174800
|
throw GuessError;
|
|
174733
174801
|
}
|
|
174734
174802
|
}
|
|
174735
|
-
var
|
|
174803
|
+
var import_node_fs2, import_node_path4, import_tar_fs, import_chalk93, EXAMPLE_API;
|
|
174736
174804
|
var init_init = __esm({
|
|
174737
174805
|
"src/commands/init/init.ts"() {
|
|
174738
174806
|
"use strict";
|
|
174739
|
-
|
|
174807
|
+
import_node_fs2 = __toESM3(require("fs"));
|
|
174740
174808
|
import_node_path4 = __toESM3(require("path"));
|
|
174741
174809
|
import_tar_fs = __toESM3(require_tar_fs());
|
|
174742
174810
|
import_chalk93 = __toESM3(require_source());
|
|
@@ -184355,33 +184423,8 @@ function checkGuidanceStatus({ config: config2 }) {
|
|
|
184355
184423
|
writeToConfigFile(config2);
|
|
184356
184424
|
}
|
|
184357
184425
|
|
|
184358
|
-
// src/util/determine-agent.ts
|
|
184359
|
-
var import_promises = require("fs/promises");
|
|
184360
|
-
var import_node_fs = require("fs");
|
|
184361
|
-
var devinLocalPath = "/opt/.devin";
|
|
184362
|
-
var CURSOR = "cursor";
|
|
184363
|
-
var CLAUDE = "claude";
|
|
184364
|
-
var DEVIN = "devin";
|
|
184365
|
-
var REPLIT = "replit";
|
|
184366
|
-
async function determineAgent() {
|
|
184367
|
-
if (process.env.CURSOR_TRACE_ID) {
|
|
184368
|
-
return CURSOR;
|
|
184369
|
-
}
|
|
184370
|
-
if (process.env.CLAUDE_CODE) {
|
|
184371
|
-
return CLAUDE;
|
|
184372
|
-
}
|
|
184373
|
-
if (process.env.REPL_ID) {
|
|
184374
|
-
return REPLIT;
|
|
184375
|
-
}
|
|
184376
|
-
try {
|
|
184377
|
-
await (0, import_promises.access)(devinLocalPath, import_node_fs.constants.F_OK);
|
|
184378
|
-
return DEVIN;
|
|
184379
|
-
} catch (error3) {
|
|
184380
|
-
return false;
|
|
184381
|
-
}
|
|
184382
|
-
}
|
|
184383
|
-
|
|
184384
184426
|
// src/index.ts
|
|
184427
|
+
var import_detect_agent = __toESM3(require_dist20());
|
|
184385
184428
|
try {
|
|
184386
184429
|
process.cwd();
|
|
184387
184430
|
} catch (err) {
|
|
@@ -184565,7 +184608,7 @@ var main16 = async () => {
|
|
|
184565
184608
|
store: telemetryEventStore
|
|
184566
184609
|
}
|
|
184567
184610
|
});
|
|
184568
|
-
const agent = await determineAgent();
|
|
184611
|
+
const agent = await (0, import_detect_agent.determineAgent)();
|
|
184569
184612
|
telemetry2.trackAgenticUse(agent);
|
|
184570
184613
|
telemetry2.trackCPUs();
|
|
184571
184614
|
telemetry2.trackPlatform();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "45.0.
|
|
3
|
+
"version": "45.0.10",
|
|
4
4
|
"preferGlobal": true,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "The command-line interface for Vercel",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"@vercel/build-utils": "11.0.1",
|
|
26
26
|
"@vercel/fun": "1.1.6",
|
|
27
27
|
"@vercel/go": "3.2.3",
|
|
28
|
-
"@vercel/express": "0.0.
|
|
29
|
-
"@vercel/hono": "0.0.
|
|
28
|
+
"@vercel/express": "0.0.6",
|
|
29
|
+
"@vercel/hono": "0.0.14",
|
|
30
30
|
"@vercel/hydrogen": "1.2.3",
|
|
31
31
|
"@vercel/next": "4.11.2",
|
|
32
|
-
"@vercel/node": "5.3.
|
|
32
|
+
"@vercel/node": "5.3.13",
|
|
33
33
|
"@vercel/python": "5.0.0",
|
|
34
34
|
"@vercel/redwood": "2.3.4",
|
|
35
35
|
"@vercel/remix-builder": "5.4.10",
|
|
@@ -82,9 +82,10 @@
|
|
|
82
82
|
"@types/write-json-file": "2.2.1",
|
|
83
83
|
"@types/yauzl-promise": "2.1.0",
|
|
84
84
|
"@vercel/client": "15.3.14",
|
|
85
|
+
"@vercel/detect-agent": "0.2.0",
|
|
85
86
|
"@vercel/error-utils": "2.0.3",
|
|
86
|
-
"@vercel/frameworks": "3.7.
|
|
87
|
-
"@vercel/fs-detectors": "5.4.
|
|
87
|
+
"@vercel/frameworks": "3.7.7",
|
|
88
|
+
"@vercel/fs-detectors": "5.4.13",
|
|
88
89
|
"@vercel/routing-utils": "5.1.1",
|
|
89
90
|
"@vitest/expect": "2.1.3",
|
|
90
91
|
"ajv": "6.12.3",
|
|
@@ -164,9 +165,9 @@
|
|
|
164
165
|
"write-json-file": "2.2.0",
|
|
165
166
|
"xdg-app-paths": "5.1.0",
|
|
166
167
|
"yauzl-promise": "2.1.3",
|
|
167
|
-
"@vercel-internals/get-package-json": "1.0.0",
|
|
168
168
|
"@vercel-internals/constants": "1.0.4",
|
|
169
|
-
"@vercel-internals/types": "3.0.6"
|
|
169
|
+
"@vercel-internals/types": "3.0.6",
|
|
170
|
+
"@vercel-internals/get-package-json": "1.0.0"
|
|
170
171
|
},
|
|
171
172
|
"scripts": {
|
|
172
173
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
|