vercel 45.0.9 → 46.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +600 -210
- package/package.json +7 -6
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 {
|
|
@@ -9374,7 +9374,7 @@ var require_log_symbols = __commonJS2({
|
|
|
9374
9374
|
"use strict";
|
|
9375
9375
|
var chalk126 = require_chalk();
|
|
9376
9376
|
var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
|
|
9377
|
-
var
|
|
9377
|
+
var main18 = {
|
|
9378
9378
|
info: chalk126.blue("\u2139"),
|
|
9379
9379
|
success: chalk126.green("\u2714"),
|
|
9380
9380
|
warning: chalk126.yellow("\u26A0"),
|
|
@@ -9386,7 +9386,7 @@ var require_log_symbols = __commonJS2({
|
|
|
9386
9386
|
warning: chalk126.yellow("\u203C"),
|
|
9387
9387
|
error: chalk126.red("\xD7")
|
|
9388
9388
|
};
|
|
9389
|
-
module2.exports = isSupported ?
|
|
9389
|
+
module2.exports = isSupported ? main18 : fallbacks;
|
|
9390
9390
|
}
|
|
9391
9391
|
});
|
|
9392
9392
|
|
|
@@ -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;
|
|
@@ -33419,9 +33419,43 @@ var init_command22 = __esm({
|
|
|
33419
33419
|
}
|
|
33420
33420
|
});
|
|
33421
33421
|
|
|
33422
|
+
// src/commands/mcp/command.ts
|
|
33423
|
+
var mcpCommand;
|
|
33424
|
+
var init_command23 = __esm({
|
|
33425
|
+
"src/commands/mcp/command.ts"() {
|
|
33426
|
+
"use strict";
|
|
33427
|
+
init_pkg_name();
|
|
33428
|
+
mcpCommand = {
|
|
33429
|
+
name: "mcp",
|
|
33430
|
+
aliases: [],
|
|
33431
|
+
description: "Set up MCP agents and configuration for Vercel integration",
|
|
33432
|
+
arguments: [],
|
|
33433
|
+
options: [
|
|
33434
|
+
{
|
|
33435
|
+
name: "project",
|
|
33436
|
+
description: "Set up project-specific MCP access for the currently linked project",
|
|
33437
|
+
shorthand: null,
|
|
33438
|
+
type: Boolean,
|
|
33439
|
+
deprecated: false
|
|
33440
|
+
}
|
|
33441
|
+
],
|
|
33442
|
+
examples: [
|
|
33443
|
+
{
|
|
33444
|
+
name: "Interactively set up MCP agents",
|
|
33445
|
+
value: `${packageName} mcp`
|
|
33446
|
+
},
|
|
33447
|
+
{
|
|
33448
|
+
name: "Set up project-specific MCP access",
|
|
33449
|
+
value: `${packageName} mcp --project`
|
|
33450
|
+
}
|
|
33451
|
+
]
|
|
33452
|
+
};
|
|
33453
|
+
}
|
|
33454
|
+
});
|
|
33455
|
+
|
|
33422
33456
|
// src/commands/microfrontends/command.ts
|
|
33423
33457
|
var pullSubcommand2, microfrontendsCommand;
|
|
33424
|
-
var
|
|
33458
|
+
var init_command24 = __esm({
|
|
33425
33459
|
"src/commands/microfrontends/command.ts"() {
|
|
33426
33460
|
"use strict";
|
|
33427
33461
|
init_pkg_name();
|
|
@@ -33464,7 +33498,7 @@ var init_command23 = __esm({
|
|
|
33464
33498
|
|
|
33465
33499
|
// src/commands/project/command.ts
|
|
33466
33500
|
var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
|
|
33467
|
-
var
|
|
33501
|
+
var init_command25 = __esm({
|
|
33468
33502
|
"src/commands/project/command.ts"() {
|
|
33469
33503
|
"use strict";
|
|
33470
33504
|
init_pkg_name();
|
|
@@ -33575,7 +33609,7 @@ var init_command24 = __esm({
|
|
|
33575
33609
|
|
|
33576
33610
|
// src/commands/promote/command.ts
|
|
33577
33611
|
var statusSubcommand2, promoteCommand;
|
|
33578
|
-
var
|
|
33612
|
+
var init_command26 = __esm({
|
|
33579
33613
|
"src/commands/promote/command.ts"() {
|
|
33580
33614
|
"use strict";
|
|
33581
33615
|
init_pkg_name();
|
|
@@ -33644,7 +33678,7 @@ var init_command25 = __esm({
|
|
|
33644
33678
|
|
|
33645
33679
|
// src/commands/pull/command.ts
|
|
33646
33680
|
var pullCommand;
|
|
33647
|
-
var
|
|
33681
|
+
var init_command27 = __esm({
|
|
33648
33682
|
"src/commands/pull/command.ts"() {
|
|
33649
33683
|
"use strict";
|
|
33650
33684
|
init_pkg_name();
|
|
@@ -33716,7 +33750,7 @@ var init_command26 = __esm({
|
|
|
33716
33750
|
|
|
33717
33751
|
// src/commands/redeploy/command.ts
|
|
33718
33752
|
var redeployCommand;
|
|
33719
|
-
var
|
|
33753
|
+
var init_command28 = __esm({
|
|
33720
33754
|
"src/commands/redeploy/command.ts"() {
|
|
33721
33755
|
"use strict";
|
|
33722
33756
|
init_pkg_name();
|
|
@@ -33767,7 +33801,7 @@ var init_command27 = __esm({
|
|
|
33767
33801
|
|
|
33768
33802
|
// src/commands/remove/command.ts
|
|
33769
33803
|
var removeCommand;
|
|
33770
|
-
var
|
|
33804
|
+
var init_command29 = __esm({
|
|
33771
33805
|
"src/commands/remove/command.ts"() {
|
|
33772
33806
|
"use strict";
|
|
33773
33807
|
init_pkg_name();
|
|
@@ -33817,7 +33851,7 @@ var init_command28 = __esm({
|
|
|
33817
33851
|
|
|
33818
33852
|
// src/commands/rollback/command.ts
|
|
33819
33853
|
var statusSubcommand3, rollbackCommand;
|
|
33820
|
-
var
|
|
33854
|
+
var init_command30 = __esm({
|
|
33821
33855
|
"src/commands/rollback/command.ts"() {
|
|
33822
33856
|
"use strict";
|
|
33823
33857
|
init_pkg_name();
|
|
@@ -33878,7 +33912,7 @@ var init_command29 = __esm({
|
|
|
33878
33912
|
|
|
33879
33913
|
// src/commands/rolling-release/command.ts
|
|
33880
33914
|
var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
|
|
33881
|
-
var
|
|
33915
|
+
var init_command31 = __esm({
|
|
33882
33916
|
"src/commands/rolling-release/command.ts"() {
|
|
33883
33917
|
"use strict";
|
|
33884
33918
|
init_arg_common();
|
|
@@ -34072,7 +34106,7 @@ var init_command30 = __esm({
|
|
|
34072
34106
|
|
|
34073
34107
|
// src/commands/target/command.ts
|
|
34074
34108
|
var listSubcommand8, targetCommand;
|
|
34075
|
-
var
|
|
34109
|
+
var init_command32 = __esm({
|
|
34076
34110
|
"src/commands/target/command.ts"() {
|
|
34077
34111
|
"use strict";
|
|
34078
34112
|
init_pkg_name();
|
|
@@ -34103,7 +34137,7 @@ var init_command31 = __esm({
|
|
|
34103
34137
|
|
|
34104
34138
|
// src/commands/teams/command.ts
|
|
34105
34139
|
var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
|
|
34106
|
-
var
|
|
34140
|
+
var init_command33 = __esm({
|
|
34107
34141
|
"src/commands/teams/command.ts"() {
|
|
34108
34142
|
"use strict";
|
|
34109
34143
|
init_pkg_name();
|
|
@@ -34194,7 +34228,7 @@ var init_command32 = __esm({
|
|
|
34194
34228
|
|
|
34195
34229
|
// src/commands/telemetry/command.ts
|
|
34196
34230
|
var statusSubcommand4, enableSubcommand2, flushSubcommand, disableSubcommand2, telemetryCommand;
|
|
34197
|
-
var
|
|
34231
|
+
var init_command34 = __esm({
|
|
34198
34232
|
"src/commands/telemetry/command.ts"() {
|
|
34199
34233
|
"use strict";
|
|
34200
34234
|
statusSubcommand4 = {
|
|
@@ -34249,7 +34283,7 @@ var init_command33 = __esm({
|
|
|
34249
34283
|
|
|
34250
34284
|
// src/commands/whoami/command.ts
|
|
34251
34285
|
var whoamiCommand;
|
|
34252
|
-
var
|
|
34286
|
+
var init_command35 = __esm({
|
|
34253
34287
|
"src/commands/whoami/command.ts"() {
|
|
34254
34288
|
"use strict";
|
|
34255
34289
|
init_pkg_name();
|
|
@@ -34271,7 +34305,7 @@ var init_command34 = __esm({
|
|
|
34271
34305
|
|
|
34272
34306
|
// src/commands/blob/command.ts
|
|
34273
34307
|
var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
|
|
34274
|
-
var
|
|
34308
|
+
var init_command36 = __esm({
|
|
34275
34309
|
"src/commands/blob/command.ts"() {
|
|
34276
34310
|
"use strict";
|
|
34277
34311
|
listSubcommand10 = {
|
|
@@ -34569,6 +34603,7 @@ var init_commands = __esm({
|
|
|
34569
34603
|
init_command33();
|
|
34570
34604
|
init_command34();
|
|
34571
34605
|
init_command35();
|
|
34606
|
+
init_command36();
|
|
34572
34607
|
init_output_manager();
|
|
34573
34608
|
commandsStructs = [
|
|
34574
34609
|
aliasCommand,
|
|
@@ -34593,6 +34628,7 @@ var init_commands = __esm({
|
|
|
34593
34628
|
loginCommand,
|
|
34594
34629
|
logoutCommand,
|
|
34595
34630
|
logsCommand,
|
|
34631
|
+
mcpCommand,
|
|
34596
34632
|
microfrontendsCommand,
|
|
34597
34633
|
projectCommand,
|
|
34598
34634
|
promoteCommand,
|
|
@@ -37625,7 +37661,7 @@ var require_figures = __commonJS2({
|
|
|
37625
37661
|
"use strict";
|
|
37626
37662
|
var escapeStringRegexp = require_escape_string_regexp();
|
|
37627
37663
|
var { platform } = process;
|
|
37628
|
-
var
|
|
37664
|
+
var main18 = {
|
|
37629
37665
|
tick: "\u2714",
|
|
37630
37666
|
cross: "\u2716",
|
|
37631
37667
|
star: "\u2605",
|
|
@@ -37711,12 +37747,12 @@ var require_figures = __commonJS2({
|
|
|
37711
37747
|
hamburger: "\u2261",
|
|
37712
37748
|
smiley: "\u263A",
|
|
37713
37749
|
mustache: "\u250C\u2500\u2510",
|
|
37714
|
-
heart:
|
|
37750
|
+
heart: main18.heart,
|
|
37715
37751
|
nodejs: "\u2666",
|
|
37716
|
-
arrowUp:
|
|
37717
|
-
arrowDown:
|
|
37718
|
-
arrowLeft:
|
|
37719
|
-
arrowRight:
|
|
37752
|
+
arrowUp: main18.arrowUp,
|
|
37753
|
+
arrowDown: main18.arrowDown,
|
|
37754
|
+
arrowLeft: main18.arrowLeft,
|
|
37755
|
+
arrowRight: main18.arrowRight,
|
|
37720
37756
|
radioOn: "(*)",
|
|
37721
37757
|
radioOff: "( )",
|
|
37722
37758
|
checkboxOn: "[\xD7]",
|
|
@@ -37744,14 +37780,14 @@ var require_figures = __commonJS2({
|
|
|
37744
37780
|
sevenEighths: "7/8"
|
|
37745
37781
|
};
|
|
37746
37782
|
if (platform === "linux") {
|
|
37747
|
-
|
|
37783
|
+
main18.questionMarkPrefix = "?";
|
|
37748
37784
|
}
|
|
37749
|
-
var figures4 = platform === "win32" ? windows :
|
|
37785
|
+
var figures4 = platform === "win32" ? windows : main18;
|
|
37750
37786
|
var fn2 = (string) => {
|
|
37751
|
-
if (figures4 ===
|
|
37787
|
+
if (figures4 === main18) {
|
|
37752
37788
|
return string;
|
|
37753
37789
|
}
|
|
37754
|
-
for (const [key, value] of Object.entries(
|
|
37790
|
+
for (const [key, value] of Object.entries(main18)) {
|
|
37755
37791
|
if (value === figures4[key]) {
|
|
37756
37792
|
continue;
|
|
37757
37793
|
}
|
|
@@ -37760,7 +37796,7 @@ var require_figures = __commonJS2({
|
|
|
37760
37796
|
return string;
|
|
37761
37797
|
};
|
|
37762
37798
|
module2.exports = Object.assign(fn2, figures4);
|
|
37763
|
-
module2.exports.main =
|
|
37799
|
+
module2.exports.main = main18;
|
|
37764
37800
|
module2.exports.windows = windows;
|
|
37765
37801
|
}
|
|
37766
37802
|
});
|
|
@@ -44058,7 +44094,7 @@ var require_write_json_file = __commonJS2({
|
|
|
44058
44094
|
};
|
|
44059
44095
|
var readFile6 = (fp) => pify(fs15.readFile)(fp, "utf8").catch(() => {
|
|
44060
44096
|
});
|
|
44061
|
-
var
|
|
44097
|
+
var main18 = (fp, data, opts) => {
|
|
44062
44098
|
return (opts.detectIndent ? readFile6(fp) : Promise.resolve()).then((str) => {
|
|
44063
44099
|
const indent = str ? detectIndent(str).indent : opts.indent;
|
|
44064
44100
|
const json = JSON.stringify(data, opts.replacer, indent);
|
|
@@ -44083,7 +44119,7 @@ var require_write_json_file = __commonJS2({
|
|
|
44083
44119
|
`, { mode: opts.mode });
|
|
44084
44120
|
};
|
|
44085
44121
|
module2.exports = (fp, data, opts) => {
|
|
44086
|
-
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(
|
|
44122
|
+
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(main18, fp, data, opts));
|
|
44087
44123
|
};
|
|
44088
44124
|
module2.exports.sync = (fp, data, opts) => {
|
|
44089
44125
|
makeDir.sync(path11.dirname(fp), { fs: fs15 });
|
|
@@ -51518,7 +51554,7 @@ var require_scan = __commonJS2({
|
|
|
51518
51554
|
var require_parse3 = __commonJS2({
|
|
51519
51555
|
"../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
51520
51556
|
"use strict";
|
|
51521
|
-
var
|
|
51557
|
+
var constants = require_constants4();
|
|
51522
51558
|
var utils = require_utils9();
|
|
51523
51559
|
var {
|
|
51524
51560
|
MAX_LENGTH,
|
|
@@ -51526,7 +51562,7 @@ var require_parse3 = __commonJS2({
|
|
|
51526
51562
|
REGEX_NON_SPECIAL_CHARS,
|
|
51527
51563
|
REGEX_SPECIAL_CHARS_BACKREF,
|
|
51528
51564
|
REPLACEMENTS
|
|
51529
|
-
} =
|
|
51565
|
+
} = constants;
|
|
51530
51566
|
var expandRange = (args2, options) => {
|
|
51531
51567
|
if (typeof options.expandRange === "function") {
|
|
51532
51568
|
return options.expandRange(...args2, options);
|
|
@@ -51558,8 +51594,8 @@ var require_parse3 = __commonJS2({
|
|
|
51558
51594
|
const tokens = [bos];
|
|
51559
51595
|
const capture = opts.capture ? "" : "?:";
|
|
51560
51596
|
const win32 = utils.isWindows(options);
|
|
51561
|
-
const PLATFORM_CHARS =
|
|
51562
|
-
const EXTGLOB_CHARS =
|
|
51597
|
+
const PLATFORM_CHARS = constants.globChars(win32);
|
|
51598
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
51563
51599
|
const {
|
|
51564
51600
|
DOT_LITERAL,
|
|
51565
51601
|
PLUS_LITERAL,
|
|
@@ -52241,7 +52277,7 @@ var require_parse3 = __commonJS2({
|
|
|
52241
52277
|
NO_DOTS_SLASH,
|
|
52242
52278
|
STAR,
|
|
52243
52279
|
START_ANCHOR
|
|
52244
|
-
} =
|
|
52280
|
+
} = constants.globChars(win32);
|
|
52245
52281
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
52246
52282
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
52247
52283
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -52303,7 +52339,7 @@ var require_picomatch = __commonJS2({
|
|
|
52303
52339
|
var scan = require_scan();
|
|
52304
52340
|
var parse11 = require_parse3();
|
|
52305
52341
|
var utils = require_utils9();
|
|
52306
|
-
var
|
|
52342
|
+
var constants = require_constants4();
|
|
52307
52343
|
var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
52308
52344
|
var picomatch = (glob, options, returnState = false) => {
|
|
52309
52345
|
if (Array.isArray(glob)) {
|
|
@@ -52434,7 +52470,7 @@ var require_picomatch = __commonJS2({
|
|
|
52434
52470
|
return /$^/;
|
|
52435
52471
|
}
|
|
52436
52472
|
};
|
|
52437
|
-
picomatch.constants =
|
|
52473
|
+
picomatch.constants = constants;
|
|
52438
52474
|
module2.exports = picomatch;
|
|
52439
52475
|
}
|
|
52440
52476
|
});
|
|
@@ -55098,7 +55134,7 @@ var require_utils12 = __commonJS2({
|
|
|
55098
55134
|
inferMicrofrontendsLocation: () => inferMicrofrontendsLocation
|
|
55099
55135
|
});
|
|
55100
55136
|
module2.exports = __toCommonJS4(utils_exports);
|
|
55101
|
-
var
|
|
55137
|
+
var import_node_fs3 = __toESM4(require("fs"), 1);
|
|
55102
55138
|
var import_node_path6 = require("path");
|
|
55103
55139
|
var CONFIGURATION_FILENAMES = [
|
|
55104
55140
|
"microfrontends.jsonc",
|
|
@@ -55107,7 +55143,7 @@ var require_utils12 = __commonJS2({
|
|
|
55107
55143
|
function findConfig({ dir }) {
|
|
55108
55144
|
for (const filename of CONFIGURATION_FILENAMES) {
|
|
55109
55145
|
const maybeConfig = (0, import_node_path6.join)(dir, filename);
|
|
55110
|
-
if (
|
|
55146
|
+
if (import_node_fs3.default.existsSync(maybeConfig)) {
|
|
55111
55147
|
return maybeConfig;
|
|
55112
55148
|
}
|
|
55113
55149
|
}
|
|
@@ -59748,7 +59784,7 @@ var require_end_of_stream = __commonJS2({
|
|
|
59748
59784
|
// ../../node_modules/.pnpm/tar-stream@1.6.2/node_modules/tar-stream/pack.js
|
|
59749
59785
|
var require_pack = __commonJS2({
|
|
59750
59786
|
"../../node_modules/.pnpm/tar-stream@1.6.2/node_modules/tar-stream/pack.js"(exports2, module2) {
|
|
59751
|
-
var
|
|
59787
|
+
var constants = require_fs_constants();
|
|
59752
59788
|
var eos = require_end_of_stream();
|
|
59753
59789
|
var util = require("util");
|
|
59754
59790
|
var alloc = require_buffer_alloc();
|
|
@@ -59768,16 +59804,16 @@ var require_pack = __commonJS2({
|
|
|
59768
59804
|
self2.push(END_OF_TAR.slice(0, 512 - size));
|
|
59769
59805
|
};
|
|
59770
59806
|
function modeToType(mode) {
|
|
59771
|
-
switch (mode &
|
|
59772
|
-
case
|
|
59807
|
+
switch (mode & constants.S_IFMT) {
|
|
59808
|
+
case constants.S_IFBLK:
|
|
59773
59809
|
return "block-device";
|
|
59774
|
-
case
|
|
59810
|
+
case constants.S_IFCHR:
|
|
59775
59811
|
return "character-device";
|
|
59776
|
-
case
|
|
59812
|
+
case constants.S_IFDIR:
|
|
59777
59813
|
return "directory";
|
|
59778
|
-
case
|
|
59814
|
+
case constants.S_IFIFO:
|
|
59779
59815
|
return "fifo";
|
|
59780
|
-
case
|
|
59816
|
+
case constants.S_IFLNK:
|
|
59781
59817
|
return "symlink";
|
|
59782
59818
|
}
|
|
59783
59819
|
return "file";
|
|
@@ -87854,30 +87890,30 @@ var require_ipv4 = __commonJS2({
|
|
|
87854
87890
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
87855
87891
|
exports2.Address4 = void 0;
|
|
87856
87892
|
var common2 = __importStar2(require_common7());
|
|
87857
|
-
var
|
|
87893
|
+
var constants = __importStar2(require_constants7());
|
|
87858
87894
|
var address_error_1 = require_address_error();
|
|
87859
87895
|
var jsbn_1 = require_jsbn();
|
|
87860
87896
|
var sprintf_js_1 = require_sprintf();
|
|
87861
87897
|
var Address4 = class _Address4 {
|
|
87862
87898
|
constructor(address) {
|
|
87863
|
-
this.groups =
|
|
87899
|
+
this.groups = constants.GROUPS;
|
|
87864
87900
|
this.parsedAddress = [];
|
|
87865
87901
|
this.parsedSubnet = "";
|
|
87866
87902
|
this.subnet = "/32";
|
|
87867
87903
|
this.subnetMask = 32;
|
|
87868
87904
|
this.v4 = true;
|
|
87869
|
-
this.isCorrect = common2.isCorrect(
|
|
87905
|
+
this.isCorrect = common2.isCorrect(constants.BITS);
|
|
87870
87906
|
this.isInSubnet = common2.isInSubnet;
|
|
87871
87907
|
this.address = address;
|
|
87872
|
-
const subnet =
|
|
87908
|
+
const subnet = constants.RE_SUBNET_STRING.exec(address);
|
|
87873
87909
|
if (subnet) {
|
|
87874
87910
|
this.parsedSubnet = subnet[0].replace("/", "");
|
|
87875
87911
|
this.subnetMask = parseInt(this.parsedSubnet, 10);
|
|
87876
87912
|
this.subnet = `/${this.subnetMask}`;
|
|
87877
|
-
if (this.subnetMask < 0 || this.subnetMask >
|
|
87913
|
+
if (this.subnetMask < 0 || this.subnetMask > constants.BITS) {
|
|
87878
87914
|
throw new address_error_1.AddressError("Invalid subnet mask.");
|
|
87879
87915
|
}
|
|
87880
|
-
address = address.replace(
|
|
87916
|
+
address = address.replace(constants.RE_SUBNET_STRING, "");
|
|
87881
87917
|
}
|
|
87882
87918
|
this.addressMinusSuffix = address;
|
|
87883
87919
|
this.parsedAddress = this.parse(address);
|
|
@@ -87895,7 +87931,7 @@ var require_ipv4 = __commonJS2({
|
|
|
87895
87931
|
*/
|
|
87896
87932
|
parse(address) {
|
|
87897
87933
|
const groups = address.split(".");
|
|
87898
|
-
if (!address.match(
|
|
87934
|
+
if (!address.match(constants.RE_ADDRESS)) {
|
|
87899
87935
|
throw new address_error_1.AddressError("Invalid IPv4 address.");
|
|
87900
87936
|
}
|
|
87901
87937
|
return groups;
|
|
@@ -87978,7 +88014,7 @@ var require_ipv4 = __commonJS2({
|
|
|
87978
88014
|
toGroup6() {
|
|
87979
88015
|
const output2 = [];
|
|
87980
88016
|
let i;
|
|
87981
|
-
for (i = 0; i <
|
|
88017
|
+
for (i = 0; i < constants.GROUPS; i += 2) {
|
|
87982
88018
|
const hex = (0, sprintf_js_1.sprintf)("%02x%02x", parseInt(this.parsedAddress[i], 10), parseInt(this.parsedAddress[i + 1], 10));
|
|
87983
88019
|
output2.push((0, sprintf_js_1.sprintf)("%x", parseInt(hex, 16)));
|
|
87984
88020
|
}
|
|
@@ -88000,7 +88036,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88000
88036
|
* @returns {BigInteger}
|
|
88001
88037
|
*/
|
|
88002
88038
|
_startAddress() {
|
|
88003
|
-
return new jsbn_1.BigInteger(this.mask() + "0".repeat(
|
|
88039
|
+
return new jsbn_1.BigInteger(this.mask() + "0".repeat(constants.BITS - this.subnetMask), 2);
|
|
88004
88040
|
}
|
|
88005
88041
|
/**
|
|
88006
88042
|
* The first address in the range given by this address' subnet.
|
|
@@ -88030,7 +88066,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88030
88066
|
* @returns {BigInteger}
|
|
88031
88067
|
*/
|
|
88032
88068
|
_endAddress() {
|
|
88033
|
-
return new jsbn_1.BigInteger(this.mask() + "1".repeat(
|
|
88069
|
+
return new jsbn_1.BigInteger(this.mask() + "1".repeat(constants.BITS - this.subnetMask), 2);
|
|
88034
88070
|
}
|
|
88035
88071
|
/**
|
|
88036
88072
|
* The last address in the range given by this address' subnet
|
|
@@ -88119,7 +88155,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88119
88155
|
* @returns {string}
|
|
88120
88156
|
*/
|
|
88121
88157
|
binaryZeroPad() {
|
|
88122
|
-
return this.bigInteger().toString(2).padStart(
|
|
88158
|
+
return this.bigInteger().toString(2).padStart(constants.BITS, "0");
|
|
88123
88159
|
}
|
|
88124
88160
|
/**
|
|
88125
88161
|
* Groups an IPv4 address for inclusion at the end of an IPv6 address
|
|
@@ -88127,7 +88163,7 @@ var require_ipv4 = __commonJS2({
|
|
|
88127
88163
|
*/
|
|
88128
88164
|
groupForV6() {
|
|
88129
88165
|
const segments = this.parsedAddress;
|
|
88130
|
-
return this.address.replace(
|
|
88166
|
+
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
88167
|
}
|
|
88132
88168
|
};
|
|
88133
88169
|
exports2.Address4 = Address4;
|
|
@@ -94912,6 +94948,74 @@ var init_update_current_team_after_login = __esm({
|
|
|
94912
94948
|
}
|
|
94913
94949
|
});
|
|
94914
94950
|
|
|
94951
|
+
// ../detect-agent/dist/index.js
|
|
94952
|
+
var require_dist20 = __commonJS2({
|
|
94953
|
+
"../detect-agent/dist/index.js"(exports2, module2) {
|
|
94954
|
+
"use strict";
|
|
94955
|
+
var __defProp4 = Object.defineProperty;
|
|
94956
|
+
var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
|
|
94957
|
+
var __getOwnPropNames4 = Object.getOwnPropertyNames;
|
|
94958
|
+
var __hasOwnProp4 = Object.prototype.hasOwnProperty;
|
|
94959
|
+
var __export4 = (target, all) => {
|
|
94960
|
+
for (var name in all)
|
|
94961
|
+
__defProp4(target, name, { get: all[name], enumerable: true });
|
|
94962
|
+
};
|
|
94963
|
+
var __copyProps4 = (to, from, except, desc) => {
|
|
94964
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
94965
|
+
for (let key of __getOwnPropNames4(from))
|
|
94966
|
+
if (!__hasOwnProp4.call(to, key) && key !== except)
|
|
94967
|
+
__defProp4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc4(from, key)) || desc.enumerable });
|
|
94968
|
+
}
|
|
94969
|
+
return to;
|
|
94970
|
+
};
|
|
94971
|
+
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
|
94972
|
+
var src_exports2 = {};
|
|
94973
|
+
__export4(src_exports2, {
|
|
94974
|
+
determineAgent: () => determineAgent2
|
|
94975
|
+
});
|
|
94976
|
+
module2.exports = __toCommonJS4(src_exports2);
|
|
94977
|
+
var import_promises4 = require("fs/promises");
|
|
94978
|
+
var import_node_fs3 = require("fs");
|
|
94979
|
+
var devinLocalPath = "/opt/.devin";
|
|
94980
|
+
var CURSOR = "cursor";
|
|
94981
|
+
var CURSOR_CLI = "cursor-cli";
|
|
94982
|
+
var CLAUDE = "claude";
|
|
94983
|
+
var DEVIN = "devin";
|
|
94984
|
+
var REPLIT = "replit";
|
|
94985
|
+
var GEMINI = "gemini";
|
|
94986
|
+
var CODEX = "codex";
|
|
94987
|
+
async function determineAgent2() {
|
|
94988
|
+
if (process.env.AI_AGENT) {
|
|
94989
|
+
return process.env.AI_AGENT;
|
|
94990
|
+
}
|
|
94991
|
+
if (process.env.CURSOR_TRACE_ID) {
|
|
94992
|
+
return CURSOR;
|
|
94993
|
+
}
|
|
94994
|
+
if (process.env.CURSOR_AGENT) {
|
|
94995
|
+
return CURSOR_CLI;
|
|
94996
|
+
}
|
|
94997
|
+
if (process.env.GEMINI_CLI) {
|
|
94998
|
+
return GEMINI;
|
|
94999
|
+
}
|
|
95000
|
+
if (process.env.CODEX_SANDBOX) {
|
|
95001
|
+
return CODEX;
|
|
95002
|
+
}
|
|
95003
|
+
if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) {
|
|
95004
|
+
return CLAUDE;
|
|
95005
|
+
}
|
|
95006
|
+
if (process.env.REPL_ID) {
|
|
95007
|
+
return REPLIT;
|
|
95008
|
+
}
|
|
95009
|
+
try {
|
|
95010
|
+
await (0, import_promises4.access)(devinLocalPath, import_node_fs3.constants.F_OK);
|
|
95011
|
+
return DEVIN;
|
|
95012
|
+
} catch (error3) {
|
|
95013
|
+
return false;
|
|
95014
|
+
}
|
|
95015
|
+
}
|
|
95016
|
+
}
|
|
95017
|
+
});
|
|
95018
|
+
|
|
94915
95019
|
// src/util/get-subcommand.ts
|
|
94916
95020
|
function getSubcommand(cliArgs, config2) {
|
|
94917
95021
|
const [subcommand, ...rest] = cliArgs;
|
|
@@ -100760,7 +100864,7 @@ var init_list4 = __esm({
|
|
|
100760
100864
|
init_get_command_flags();
|
|
100761
100865
|
init_get_args();
|
|
100762
100866
|
init_get_flags_specification();
|
|
100763
|
-
|
|
100867
|
+
init_command36();
|
|
100764
100868
|
init_pkg_name();
|
|
100765
100869
|
init_list3();
|
|
100766
100870
|
init_error2();
|
|
@@ -100938,10 +101042,10 @@ async function put2(client2, argv, rwToken) {
|
|
|
100938
101042
|
telemetryClient.trackCliInputSourceStdin();
|
|
100939
101043
|
} else {
|
|
100940
101044
|
try {
|
|
100941
|
-
const stats = (0,
|
|
101045
|
+
const stats = (0, import_node_fs.statSync)(filePath);
|
|
100942
101046
|
const isFile2 = stats.isFile();
|
|
100943
101047
|
if (isFile2) {
|
|
100944
|
-
const file = await (0,
|
|
101048
|
+
const file = await (0, import_promises.open)(filePath, "r");
|
|
100945
101049
|
putBody = file.createReadStream();
|
|
100946
101050
|
pathname = pathnameFlag ?? (0, import_node_path.basename)(filePath);
|
|
100947
101051
|
} else {
|
|
@@ -100989,7 +101093,7 @@ async function put2(client2, argv, rwToken) {
|
|
|
100989
101093
|
output_manager_default.success(result.url);
|
|
100990
101094
|
return 0;
|
|
100991
101095
|
}
|
|
100992
|
-
var blob2,
|
|
101096
|
+
var blob2, import_node_fs, import_promises, import_error_utils12, import_node_path, import_chalk35;
|
|
100993
101097
|
var init_put2 = __esm({
|
|
100994
101098
|
"src/commands/blob/put.ts"() {
|
|
100995
101099
|
"use strict";
|
|
@@ -100997,9 +101101,9 @@ var init_put2 = __esm({
|
|
|
100997
101101
|
blob2 = __toESM3(require("@vercel/blob"));
|
|
100998
101102
|
init_get_args();
|
|
100999
101103
|
init_get_flags_specification();
|
|
101000
|
-
|
|
101001
|
-
|
|
101002
|
-
|
|
101104
|
+
init_command36();
|
|
101105
|
+
import_node_fs = require("fs");
|
|
101106
|
+
import_promises = require("fs/promises");
|
|
101003
101107
|
import_error_utils12 = __toESM3(require_dist2());
|
|
101004
101108
|
import_node_path = require("path");
|
|
101005
101109
|
init_pkg_name();
|
|
@@ -101071,7 +101175,7 @@ var init_del2 = __esm({
|
|
|
101071
101175
|
blob3 = __toESM3(require("@vercel/blob"));
|
|
101072
101176
|
init_get_args();
|
|
101073
101177
|
init_get_flags_specification();
|
|
101074
|
-
|
|
101178
|
+
init_command36();
|
|
101075
101179
|
init_del();
|
|
101076
101180
|
init_error2();
|
|
101077
101181
|
init_pkg_name();
|
|
@@ -101190,7 +101294,7 @@ var init_copy2 = __esm({
|
|
|
101190
101294
|
blob4 = __toESM3(require("@vercel/blob"));
|
|
101191
101295
|
init_get_args();
|
|
101192
101296
|
init_get_flags_specification();
|
|
101193
|
-
|
|
101297
|
+
init_command36();
|
|
101194
101298
|
init_copy();
|
|
101195
101299
|
init_pkg_name();
|
|
101196
101300
|
}
|
|
@@ -119351,7 +119455,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
119351
119455
|
});
|
|
119352
119456
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
|
119353
119457
|
var import_semver4 = __toESM4(require_semver2());
|
|
119354
|
-
var import__98 =
|
|
119458
|
+
var import__98 = require_dist21();
|
|
119355
119459
|
async function detectFileSystemAPI2({
|
|
119356
119460
|
files,
|
|
119357
119461
|
projectSettings,
|
|
@@ -119538,7 +119642,7 @@ var require_detect_framework = __commonJS2({
|
|
|
119538
119642
|
removeSupersededFrameworks: () => removeSupersededFrameworks
|
|
119539
119643
|
});
|
|
119540
119644
|
module2.exports = __toCommonJS4(detect_framework_exports);
|
|
119541
|
-
var
|
|
119645
|
+
var import_child_process5 = require("child_process");
|
|
119542
119646
|
async function matches(fs15, framework) {
|
|
119543
119647
|
const { detectors } = framework;
|
|
119544
119648
|
if (!detectors) {
|
|
@@ -119715,7 +119819,7 @@ var require_detect_framework = __commonJS2({
|
|
|
119715
119819
|
function lookupInstalledVersion(cwd, packageName2) {
|
|
119716
119820
|
try {
|
|
119717
119821
|
const script = `require('${packageName2}/package.json').version`;
|
|
119718
|
-
return (0,
|
|
119822
|
+
return (0, import_child_process5.spawnSync)(cwd, ["-p", script], {
|
|
119719
119823
|
encoding: "utf-8"
|
|
119720
119824
|
}).stdout.trim();
|
|
119721
119825
|
} catch (error3) {
|
|
@@ -119944,7 +120048,7 @@ var require_local_file_system_detector = __commonJS2({
|
|
|
119944
120048
|
LocalFileSystemDetector: () => LocalFileSystemDetector5
|
|
119945
120049
|
});
|
|
119946
120050
|
module2.exports = __toCommonJS4(local_file_system_detector_exports);
|
|
119947
|
-
var
|
|
120051
|
+
var import_promises4 = __toESM4(require("fs/promises"));
|
|
119948
120052
|
var import_path41 = require("path");
|
|
119949
120053
|
var import_filesystem = require_filesystem();
|
|
119950
120054
|
var import_error_utils39 = require_dist2();
|
|
@@ -119955,7 +120059,7 @@ var require_local_file_system_detector = __commonJS2({
|
|
|
119955
120059
|
}
|
|
119956
120060
|
async _hasPath(name) {
|
|
119957
120061
|
try {
|
|
119958
|
-
await
|
|
120062
|
+
await import_promises4.default.stat(this.getFilePath(name));
|
|
119959
120063
|
return true;
|
|
119960
120064
|
} catch (err) {
|
|
119961
120065
|
if ((0, import_error_utils39.isErrnoException)(err) && err.code === "ENOENT") {
|
|
@@ -119965,15 +120069,15 @@ var require_local_file_system_detector = __commonJS2({
|
|
|
119965
120069
|
}
|
|
119966
120070
|
}
|
|
119967
120071
|
_readFile(name) {
|
|
119968
|
-
return
|
|
120072
|
+
return import_promises4.default.readFile(this.getFilePath(name));
|
|
119969
120073
|
}
|
|
119970
120074
|
async _isFile(name) {
|
|
119971
|
-
const stat2 = await
|
|
120075
|
+
const stat2 = await import_promises4.default.stat(this.getFilePath(name));
|
|
119972
120076
|
return stat2.isFile();
|
|
119973
120077
|
}
|
|
119974
120078
|
async _readdir(dir) {
|
|
119975
120079
|
const dirPath = this.getFilePath(dir);
|
|
119976
|
-
const entries = await
|
|
120080
|
+
const entries = await import_promises4.default.readdir(dirPath, { withFileTypes: true });
|
|
119977
120081
|
const result = [];
|
|
119978
120082
|
for (const entry of entries) {
|
|
119979
120083
|
let type;
|
|
@@ -126304,7 +126408,7 @@ var require_detect_instrumentation = __commonJS2({
|
|
|
126304
126408
|
});
|
|
126305
126409
|
|
|
126306
126410
|
// ../fs-detectors/dist/index.js
|
|
126307
|
-
var
|
|
126411
|
+
var require_dist21 = __commonJS2({
|
|
126308
126412
|
"../fs-detectors/dist/index.js"(exports2, module2) {
|
|
126309
126413
|
"use strict";
|
|
126310
126414
|
var __defProp4 = Object.defineProperty;
|
|
@@ -126407,7 +126511,7 @@ var init_detect_projects = __esm({
|
|
|
126407
126511
|
"use strict";
|
|
126408
126512
|
import_path13 = require("path");
|
|
126409
126513
|
import_frameworks = __toESM3(require_frameworks());
|
|
126410
|
-
import_fs_detectors = __toESM3(
|
|
126514
|
+
import_fs_detectors = __toESM3(require_dist21());
|
|
126411
126515
|
}
|
|
126412
126516
|
});
|
|
126413
126517
|
|
|
@@ -127267,7 +127371,7 @@ var init_store_add2 = __esm({
|
|
|
127267
127371
|
init_pkg_name();
|
|
127268
127372
|
init_get_flags_specification();
|
|
127269
127373
|
init_get_args();
|
|
127270
|
-
|
|
127374
|
+
init_command36();
|
|
127271
127375
|
init_store_add();
|
|
127272
127376
|
init_error2();
|
|
127273
127377
|
}
|
|
@@ -127343,7 +127447,7 @@ var init_store_remove = __esm({
|
|
|
127343
127447
|
init_error2();
|
|
127344
127448
|
init_output_manager();
|
|
127345
127449
|
init_get_flags_specification();
|
|
127346
|
-
|
|
127450
|
+
init_command36();
|
|
127347
127451
|
init_get_args();
|
|
127348
127452
|
init_link2();
|
|
127349
127453
|
}
|
|
@@ -129767,7 +129871,7 @@ var init_store_get2 = __esm({
|
|
|
129767
129871
|
init_get_args();
|
|
129768
129872
|
init_get_flags_specification();
|
|
129769
129873
|
init_link2();
|
|
129770
|
-
|
|
129874
|
+
init_command36();
|
|
129771
129875
|
import_date_fns = __toESM3(require_date_fns());
|
|
129772
129876
|
import_chalk40 = __toESM3(require_source());
|
|
129773
129877
|
init_store_get();
|
|
@@ -129846,7 +129950,7 @@ var init_store2 = __esm({
|
|
|
129846
129950
|
init_get_invalid_subcommand();
|
|
129847
129951
|
init_get_subcommand();
|
|
129848
129952
|
init_help();
|
|
129849
|
-
|
|
129953
|
+
init_command36();
|
|
129850
129954
|
init_get_flags_specification();
|
|
129851
129955
|
init_output_manager();
|
|
129852
129956
|
init_commands();
|
|
@@ -130004,7 +130108,7 @@ var init_token = __esm({
|
|
|
130004
130108
|
import_node_path2 = require("path");
|
|
130005
130109
|
init_diff_env_files();
|
|
130006
130110
|
init_get_flags_specification();
|
|
130007
|
-
|
|
130111
|
+
init_command36();
|
|
130008
130112
|
init_get_args();
|
|
130009
130113
|
init_pkg_name();
|
|
130010
130114
|
init_cmd();
|
|
@@ -130122,7 +130226,7 @@ var init_blob2 = __esm({
|
|
|
130122
130226
|
init_get_subcommand();
|
|
130123
130227
|
init_help();
|
|
130124
130228
|
init_list4();
|
|
130125
|
-
|
|
130229
|
+
init_command36();
|
|
130126
130230
|
init_get_flags_specification();
|
|
130127
130231
|
init_output_manager();
|
|
130128
130232
|
init_commands();
|
|
@@ -130193,7 +130297,7 @@ var require_main3 = __commonJS2({
|
|
|
130193
130297
|
});
|
|
130194
130298
|
|
|
130195
130299
|
// ../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js
|
|
130196
|
-
var
|
|
130300
|
+
var require_dist22 = __commonJS2({
|
|
130197
130301
|
"../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
|
|
130198
130302
|
"use strict";
|
|
130199
130303
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -130563,7 +130667,7 @@ var require_dist21 = __commonJS2({
|
|
|
130563
130667
|
});
|
|
130564
130668
|
|
|
130565
130669
|
// ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
|
|
130566
|
-
var
|
|
130670
|
+
var require_dist23 = __commonJS2({
|
|
130567
130671
|
"../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
|
|
130568
130672
|
"use strict";
|
|
130569
130673
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -130987,8 +131091,8 @@ var require_superstatic = __commonJS2({
|
|
|
130987
131091
|
});
|
|
130988
131092
|
module2.exports = __toCommonJS4(superstatic_exports);
|
|
130989
131093
|
var import_url24 = require("url");
|
|
130990
|
-
var import_path_to_regexp =
|
|
130991
|
-
var import_path_to_regexp_updated =
|
|
131094
|
+
var import_path_to_regexp = require_dist22();
|
|
131095
|
+
var import_path_to_regexp_updated = require_dist23();
|
|
130992
131096
|
function cloneKeys(keys) {
|
|
130993
131097
|
if (typeof keys === "undefined") {
|
|
130994
131098
|
return void 0;
|
|
@@ -131384,7 +131488,7 @@ var require_append = __commonJS2({
|
|
|
131384
131488
|
appendRoutesToPhase: () => appendRoutesToPhase4
|
|
131385
131489
|
});
|
|
131386
131490
|
module2.exports = __toCommonJS4(append_exports);
|
|
131387
|
-
var import_index =
|
|
131491
|
+
var import_index = require_dist24();
|
|
131388
131492
|
function appendRoutesToPhase4({
|
|
131389
131493
|
routes: prevRoutes,
|
|
131390
131494
|
newRoutes,
|
|
@@ -131452,7 +131556,7 @@ var require_merge4 = __commonJS2({
|
|
|
131452
131556
|
mergeRoutes: () => mergeRoutes3
|
|
131453
131557
|
});
|
|
131454
131558
|
module2.exports = __toCommonJS4(merge_exports);
|
|
131455
|
-
var import_index =
|
|
131559
|
+
var import_index = require_dist24();
|
|
131456
131560
|
function getBuilderRoutesMapping(builds) {
|
|
131457
131561
|
const builderRoutes = {};
|
|
131458
131562
|
for (const { entrypoint, routes: routes2, use } of builds) {
|
|
@@ -132171,7 +132275,7 @@ var require_types6 = __commonJS2({
|
|
|
132171
132275
|
});
|
|
132172
132276
|
|
|
132173
132277
|
// ../routing-utils/dist/index.js
|
|
132174
|
-
var
|
|
132278
|
+
var require_dist24 = __commonJS2({
|
|
132175
132279
|
"../routing-utils/dist/index.js"(exports2, module2) {
|
|
132176
132280
|
"use strict";
|
|
132177
132281
|
var __defProp4 = Object.defineProperty;
|
|
@@ -133722,7 +133826,7 @@ var init_import_builders = __esm({
|
|
|
133722
133826
|
import_path17 = require("path");
|
|
133723
133827
|
import_module2 = require("module");
|
|
133724
133828
|
import_fs_extra10 = __toESM3(require_lib());
|
|
133725
|
-
import_fs_detectors2 = __toESM3(
|
|
133829
|
+
import_fs_detectors2 = __toESM3(require_dist21());
|
|
133726
133830
|
import_execa3 = __toESM3(require_execa());
|
|
133727
133831
|
init_static_builder();
|
|
133728
133832
|
init_link2();
|
|
@@ -133789,7 +133893,7 @@ var init_monorepo = __esm({
|
|
|
133789
133893
|
"src/util/build/monorepo.ts"() {
|
|
133790
133894
|
"use strict";
|
|
133791
133895
|
import_path18 = require("path");
|
|
133792
|
-
import_fs_detectors3 = __toESM3(
|
|
133896
|
+
import_fs_detectors3 = __toESM3(require_dist21());
|
|
133793
133897
|
import_title3 = __toESM3(require_lib4());
|
|
133794
133898
|
import_build_utils9 = require("@vercel/build-utils");
|
|
133795
133899
|
init_output_manager();
|
|
@@ -144518,7 +144622,7 @@ var init_validate_config = __esm({
|
|
|
144518
144622
|
"src/util/validate-config.ts"() {
|
|
144519
144623
|
"use strict";
|
|
144520
144624
|
import_ajv2 = __toESM3(require_ajv());
|
|
144521
|
-
import_routing_utils = __toESM3(
|
|
144625
|
+
import_routing_utils = __toESM3(require_dist24());
|
|
144522
144626
|
import_build_utils12 = require("@vercel/build-utils");
|
|
144523
144627
|
import_client5 = __toESM3(require_dist7());
|
|
144524
144628
|
imagesSchema = {
|
|
@@ -145764,7 +145868,7 @@ var init_pull4 = __esm({
|
|
|
145764
145868
|
init_ensure_link();
|
|
145765
145869
|
init_humanize_path();
|
|
145766
145870
|
init_help();
|
|
145767
|
-
|
|
145871
|
+
init_command27();
|
|
145768
145872
|
init_parse_target();
|
|
145769
145873
|
init_get_flags_specification();
|
|
145770
145874
|
init_error2();
|
|
@@ -145949,8 +146053,8 @@ async function main3(client2) {
|
|
|
145949
146053
|
} finally {
|
|
145950
146054
|
try {
|
|
145951
146055
|
const diagnosticsOutputPath = (0, import_path27.join)(outputDir, "diagnostics");
|
|
145952
|
-
await (0,
|
|
145953
|
-
await (0,
|
|
146056
|
+
await (0, import_promises2.mkdir)(diagnosticsOutputPath, { recursive: true });
|
|
146057
|
+
await (0, import_promises2.writeFile)(
|
|
145954
146058
|
(0, import_path27.join)(diagnosticsOutputPath, "cli_traces.json"),
|
|
145955
146059
|
JSON.stringify(reporter.events)
|
|
145956
146060
|
);
|
|
@@ -146446,7 +146550,7 @@ async function getFrameworkRoutes(framework, dirPrefix) {
|
|
|
146446
146550
|
}
|
|
146447
146551
|
return routes2;
|
|
146448
146552
|
}
|
|
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,
|
|
146553
|
+
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
146554
|
var init_build2 = __esm({
|
|
146451
146555
|
"src/commands/build/index.ts"() {
|
|
146452
146556
|
"use strict";
|
|
@@ -146459,8 +146563,8 @@ var init_build2 = __esm({
|
|
|
146459
146563
|
import_build_utils13 = require("@vercel/build-utils");
|
|
146460
146564
|
import_client6 = __toESM3(require_dist7());
|
|
146461
146565
|
import_frameworks5 = __toESM3(require_frameworks());
|
|
146462
|
-
import_fs_detectors4 = __toESM3(
|
|
146463
|
-
import_routing_utils2 = __toESM3(
|
|
146566
|
+
import_fs_detectors4 = __toESM3(require_dist21());
|
|
146567
|
+
import_routing_utils2 = __toESM3(require_dist24());
|
|
146464
146568
|
init_output_manager();
|
|
146465
146569
|
init_corepack();
|
|
146466
146570
|
init_import_builders();
|
|
@@ -146487,7 +146591,7 @@ var init_build2 = __esm({
|
|
|
146487
146591
|
init_help();
|
|
146488
146592
|
init_pull4();
|
|
146489
146593
|
init_command3();
|
|
146490
|
-
|
|
146594
|
+
import_promises2 = require("fs/promises");
|
|
146491
146595
|
InMemoryReporter = class {
|
|
146492
146596
|
constructor() {
|
|
146493
146597
|
this.events = [];
|
|
@@ -166032,7 +166136,7 @@ var require_src3 = __commonJS2({
|
|
|
166032
166136
|
});
|
|
166033
166137
|
|
|
166034
166138
|
// ../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js
|
|
166035
|
-
var
|
|
166139
|
+
var require_dist25 = __commonJS2({
|
|
166036
166140
|
"../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js"(exports2, module2) {
|
|
166037
166141
|
"use strict";
|
|
166038
166142
|
function noop() {
|
|
@@ -166209,7 +166313,7 @@ var init_path_helpers = __esm({
|
|
|
166209
166313
|
});
|
|
166210
166314
|
|
|
166211
166315
|
// ../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js
|
|
166212
|
-
var
|
|
166316
|
+
var require_dist26 = __commonJS2({
|
|
166213
166317
|
"../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js"(exports2, module2) {
|
|
166214
166318
|
"use strict";
|
|
166215
166319
|
var characterClasses = {
|
|
@@ -166544,9 +166648,9 @@ var init_router = __esm({
|
|
|
166544
166648
|
"src/util/dev/router.ts"() {
|
|
166545
166649
|
"use strict";
|
|
166546
166650
|
import_url17 = __toESM3(require("url"));
|
|
166547
|
-
import_pcre_to_regexp = __toESM3(
|
|
166651
|
+
import_pcre_to_regexp = __toESM3(require_dist26());
|
|
166548
166652
|
init_is_url();
|
|
166549
|
-
import_routing_utils3 = __toESM3(
|
|
166653
|
+
import_routing_utils3 = __toESM3(require_dist24());
|
|
166550
166654
|
init_parse_query_string();
|
|
166551
166655
|
}
|
|
166552
166656
|
});
|
|
@@ -167039,14 +167143,14 @@ var init_builder = __esm({
|
|
|
167039
167143
|
import_child_process3 = require("child_process");
|
|
167040
167144
|
import_fun = require("@vercel/fun");
|
|
167041
167145
|
import_build_utils16 = require("@vercel/build-utils");
|
|
167042
|
-
import_fs_detectors5 = __toESM3(
|
|
167146
|
+
import_fs_detectors5 = __toESM3(require_dist21());
|
|
167043
167147
|
import_pluralize6 = __toESM3(require_pluralize());
|
|
167044
167148
|
import_minimatch3 = __toESM3(require_minimatch2());
|
|
167045
167149
|
init_highlight();
|
|
167046
167150
|
init_tree_kill();
|
|
167047
167151
|
init_path_helpers();
|
|
167048
167152
|
init_errors_ts();
|
|
167049
|
-
import_routing_utils4 = __toESM3(
|
|
167153
|
+
import_routing_utils4 = __toESM3(require_dist24());
|
|
167050
167154
|
init_get_update_command();
|
|
167051
167155
|
init_pkg_name();
|
|
167052
167156
|
init_import_builders();
|
|
@@ -167608,7 +167712,7 @@ var init_server = __esm({
|
|
|
167608
167712
|
import_chokidar = require("chokidar");
|
|
167609
167713
|
import_dotenv2 = __toESM3(require_main3());
|
|
167610
167714
|
import_path35 = __toESM3(require("path"));
|
|
167611
|
-
import_once = __toESM3(
|
|
167715
|
+
import_once = __toESM3(require_dist25());
|
|
167612
167716
|
import_directory = __toESM3(require_directory());
|
|
167613
167717
|
import_get_port = __toESM3(require_get_port());
|
|
167614
167718
|
import_is_port_reachable = __toESM3(require_is_port_reachable());
|
|
@@ -167616,9 +167720,9 @@ var init_server = __esm({
|
|
|
167616
167720
|
import_npm_package_arg2 = __toESM3(require_npa());
|
|
167617
167721
|
import_json_parse_better_errors3 = __toESM3(require_json_parse_better_errors());
|
|
167618
167722
|
import_client12 = __toESM3(require_dist7());
|
|
167619
|
-
import_routing_utils5 = __toESM3(
|
|
167723
|
+
import_routing_utils5 = __toESM3(require_dist24());
|
|
167620
167724
|
import_build_utils17 = require("@vercel/build-utils");
|
|
167621
|
-
import_fs_detectors6 = __toESM3(
|
|
167725
|
+
import_fs_detectors6 = __toESM3(require_dist21());
|
|
167622
167726
|
import_frameworks6 = __toESM3(require_frameworks());
|
|
167623
167727
|
init_cmd();
|
|
167624
167728
|
init_link();
|
|
@@ -169373,7 +169477,7 @@ async function* refreshOidcToken(signal, client2, projectId, envValues, source,
|
|
|
169373
169477
|
`${VERCEL_OIDC_TOKEN} expires in ${expiresAfterSecs}s; refreshing in ${refreshAfterSecs}s`
|
|
169374
169478
|
);
|
|
169375
169479
|
}
|
|
169376
|
-
await (0,
|
|
169480
|
+
await (0, import_promises3.setTimeout)(refreshAfterMillis, void 0, { signal });
|
|
169377
169481
|
const envValuesOrNull = await pullEnvValuesUntilSuccessful(
|
|
169378
169482
|
signal,
|
|
169379
169483
|
client2,
|
|
@@ -169395,7 +169499,7 @@ async function pullEnvValuesUntilSuccessful(signal, client2, projectId, source,
|
|
|
169395
169499
|
output_manager_default.debug(
|
|
169396
169500
|
`Failed to pull environment; trying again in ${Math.round(millisToSecs(millis))}s`
|
|
169397
169501
|
);
|
|
169398
|
-
await (0,
|
|
169502
|
+
await (0, import_promises3.setTimeout)(millis, void 0, { signal });
|
|
169399
169503
|
}
|
|
169400
169504
|
}
|
|
169401
169505
|
return null;
|
|
@@ -169406,11 +169510,11 @@ function clock() {
|
|
|
169406
169510
|
function millisToSecs(millis) {
|
|
169407
169511
|
return millis / 1e3;
|
|
169408
169512
|
}
|
|
169409
|
-
var
|
|
169513
|
+
var import_promises3, import_jose, import_ms15, import_perf_hooks, REFRESH_BEFORE_EXPIRY_MILLIS, THROTTLE_MILLIS;
|
|
169410
169514
|
var init_refresh_oidc_token = __esm({
|
|
169411
169515
|
"src/util/env/refresh-oidc-token.ts"() {
|
|
169412
169516
|
"use strict";
|
|
169413
|
-
|
|
169517
|
+
import_promises3 = require("timers/promises");
|
|
169414
169518
|
import_jose = require("jose");
|
|
169415
169519
|
import_ms15 = __toESM3(require_ms());
|
|
169416
169520
|
import_perf_hooks = require("perf_hooks");
|
|
@@ -174688,15 +174792,15 @@ ${deployHint}`);
|
|
|
174688
174792
|
}
|
|
174689
174793
|
function prepareFolder(cwd, folder, force) {
|
|
174690
174794
|
const dest = import_node_path4.default.join(cwd, folder);
|
|
174691
|
-
if (
|
|
174692
|
-
if (!
|
|
174795
|
+
if (import_node_fs2.default.existsSync(dest)) {
|
|
174796
|
+
if (!import_node_fs2.default.lstatSync(dest).isDirectory()) {
|
|
174693
174797
|
throw new Error(
|
|
174694
174798
|
`Destination path "${import_chalk93.default.bold(
|
|
174695
174799
|
folder
|
|
174696
174800
|
)}" already exists and is not a directory.`
|
|
174697
174801
|
);
|
|
174698
174802
|
}
|
|
174699
|
-
if (!force &&
|
|
174803
|
+
if (!force && import_node_fs2.default.readdirSync(dest).length !== 0) {
|
|
174700
174804
|
throw new Error(
|
|
174701
174805
|
`Destination path "${import_chalk93.default.bold(
|
|
174702
174806
|
folder
|
|
@@ -174707,7 +174811,7 @@ function prepareFolder(cwd, folder, force) {
|
|
|
174707
174811
|
}
|
|
174708
174812
|
} else if (dest !== cwd) {
|
|
174709
174813
|
try {
|
|
174710
|
-
|
|
174814
|
+
import_node_fs2.default.mkdirSync(dest);
|
|
174711
174815
|
} catch (e2) {
|
|
174712
174816
|
throw new Error(`Could not create directory "${import_chalk93.default.bold(folder)}".`);
|
|
174713
174817
|
}
|
|
@@ -174732,11 +174836,11 @@ async function guess(client2, exampleList, name) {
|
|
|
174732
174836
|
throw GuessError;
|
|
174733
174837
|
}
|
|
174734
174838
|
}
|
|
174735
|
-
var
|
|
174839
|
+
var import_node_fs2, import_node_path4, import_tar_fs, import_chalk93, EXAMPLE_API;
|
|
174736
174840
|
var init_init = __esm({
|
|
174737
174841
|
"src/commands/init/init.ts"() {
|
|
174738
174842
|
"use strict";
|
|
174739
|
-
|
|
174843
|
+
import_node_fs2 = __toESM3(require("fs"));
|
|
174740
174844
|
import_node_path4 = __toESM3(require("path"));
|
|
174741
174845
|
import_tar_fs = __toESM3(require_tar_fs());
|
|
174742
174846
|
import_chalk93 = __toESM3(require_source());
|
|
@@ -174928,8 +175032,8 @@ var init_builds = __esm({
|
|
|
174928
175032
|
}
|
|
174929
175033
|
}
|
|
174930
175034
|
const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
|
|
174931
|
-
const
|
|
174932
|
-
return `${import_chalk94.default.grey(corner)} ${color(
|
|
175035
|
+
const main18 = prefix + path11 + finalSize + finalRegion;
|
|
175036
|
+
return `${import_chalk94.default.grey(corner)} ${color(main18)}`;
|
|
174933
175037
|
};
|
|
174934
175038
|
getDirPath = (path11, level = 0, highestLevel = null) => {
|
|
174935
175039
|
const parts = path11.split("/").slice(0, -1);
|
|
@@ -178764,6 +178868,314 @@ var init_logs3 = __esm({
|
|
|
178764
178868
|
}
|
|
178765
178869
|
});
|
|
178766
178870
|
|
|
178871
|
+
// src/commands/mcp/mcp.ts
|
|
178872
|
+
function getAvailableClients() {
|
|
178873
|
+
return [
|
|
178874
|
+
"Claude Code",
|
|
178875
|
+
"Claude.ai and Claude for desktop",
|
|
178876
|
+
"Cursor",
|
|
178877
|
+
"VS Code with Copilot"
|
|
178878
|
+
];
|
|
178879
|
+
}
|
|
178880
|
+
function safeExecSync(command, options = {}) {
|
|
178881
|
+
try {
|
|
178882
|
+
return (0, import_child_process4.execSync)(command, {
|
|
178883
|
+
stdio: "pipe",
|
|
178884
|
+
encoding: "utf8",
|
|
178885
|
+
...options
|
|
178886
|
+
});
|
|
178887
|
+
} catch (error3) {
|
|
178888
|
+
return { error: error3.message, stderr: error3.stderr?.toString() || "" };
|
|
178889
|
+
}
|
|
178890
|
+
}
|
|
178891
|
+
async function getProjectSpecificUrl(client2) {
|
|
178892
|
+
try {
|
|
178893
|
+
const linkedProject = await getLinkedProject(client2);
|
|
178894
|
+
if (linkedProject.status !== "linked" || !linkedProject.org || !linkedProject.project) {
|
|
178895
|
+
return null;
|
|
178896
|
+
}
|
|
178897
|
+
const { org, project } = linkedProject;
|
|
178898
|
+
return {
|
|
178899
|
+
url: `${MCP_ENDPOINT}/${org.slug}/${project.name}`,
|
|
178900
|
+
projectName: project.name
|
|
178901
|
+
};
|
|
178902
|
+
} catch (error3) {
|
|
178903
|
+
return null;
|
|
178904
|
+
}
|
|
178905
|
+
}
|
|
178906
|
+
async function mcp(client2) {
|
|
178907
|
+
output_manager_default.print("\u{1F680} Vercel MCP Setup \u2014 Automated\n");
|
|
178908
|
+
const isProjectSpecific = client2.argv.includes("--project");
|
|
178909
|
+
if (isProjectSpecific) {
|
|
178910
|
+
output_manager_default.print("\u{1F517} Setting up project-specific MCP access...\n");
|
|
178911
|
+
const projectInfo = await getProjectSpecificUrl(client2);
|
|
178912
|
+
if (!projectInfo) {
|
|
178913
|
+
output_manager_default.print(
|
|
178914
|
+
"\u274C No linked project found. Please link your project first:\n"
|
|
178915
|
+
);
|
|
178916
|
+
output_manager_default.print(" vercel link\n");
|
|
178917
|
+
return 1;
|
|
178918
|
+
}
|
|
178919
|
+
output_manager_default.print(`\u2705 Project-specific URL: ${projectInfo.url}
|
|
178920
|
+
`);
|
|
178921
|
+
output_manager_default.print(
|
|
178922
|
+
"This URL will automatically provide project and team context.\n\n"
|
|
178923
|
+
);
|
|
178924
|
+
}
|
|
178925
|
+
const availableClients = getAvailableClients();
|
|
178926
|
+
const selectedClients = await client2.input.checkbox({
|
|
178927
|
+
message: "Select MCP clients to set up:",
|
|
178928
|
+
choices: availableClients.map((name) => ({
|
|
178929
|
+
name,
|
|
178930
|
+
value: name,
|
|
178931
|
+
short: name
|
|
178932
|
+
}))
|
|
178933
|
+
});
|
|
178934
|
+
if (!Array.isArray(selectedClients) || selectedClients.length === 0) {
|
|
178935
|
+
output_manager_default.print("\nNo clients selected. Exiting.\n");
|
|
178936
|
+
return 0;
|
|
178937
|
+
}
|
|
178938
|
+
const summary = [];
|
|
178939
|
+
output_manager_default.print("\nStarting setup...\n");
|
|
178940
|
+
for (const clientName of selectedClients) {
|
|
178941
|
+
output_manager_default.print(`\u{1F527} Setting up ${clientName}...
|
|
178942
|
+
`);
|
|
178943
|
+
if (clientName === "Claude Code") {
|
|
178944
|
+
const mcpUrl = isProjectSpecific ? (await getProjectSpecificUrl(client2))?.url : MCP_ENDPOINT;
|
|
178945
|
+
const mcpName = isProjectSpecific ? `vercel-${(await getProjectSpecificUrl(client2))?.projectName}` : "vercel";
|
|
178946
|
+
output_manager_default.print(`\u{1F517} Adding Vercel MCP to Claude Code...
|
|
178947
|
+
`);
|
|
178948
|
+
const result = safeExecSync(
|
|
178949
|
+
`claude mcp add --transport http ${mcpName} ${mcpUrl}`
|
|
178950
|
+
);
|
|
178951
|
+
if (typeof result === "object" && "error" in result) {
|
|
178952
|
+
if (result.stderr?.includes("already exists")) {
|
|
178953
|
+
summary.push("\u2705 Claude Code: Vercel MCP already configured");
|
|
178954
|
+
output_manager_default.print("\u2139\uFE0F Vercel MCP is already configured in Claude Code\n");
|
|
178955
|
+
} else {
|
|
178956
|
+
summary.push("\u274C Claude Code: Failed to add MCP server");
|
|
178957
|
+
output_manager_default.print("\u{1F4A1} Manual commands:\n");
|
|
178958
|
+
output_manager_default.print(
|
|
178959
|
+
` claude mcp add --transport http ${mcpName} ${mcpUrl}
|
|
178960
|
+
`
|
|
178961
|
+
);
|
|
178962
|
+
output_manager_default.print(
|
|
178963
|
+
" # Or use the /mcp command in Claude Code to authenticate\n"
|
|
178964
|
+
);
|
|
178965
|
+
}
|
|
178966
|
+
} else {
|
|
178967
|
+
summary.push("\u2705 Claude Code: Vercel MCP added successfully");
|
|
178968
|
+
output_manager_default.print("\u2705 Successfully added Vercel MCP to Claude Code\n");
|
|
178969
|
+
output_manager_default.print(
|
|
178970
|
+
"\u2139\uFE0F You may need to authenticate using the /mcp command in Claude Code\n"
|
|
178971
|
+
);
|
|
178972
|
+
}
|
|
178973
|
+
} else if (clientName === "Claude.ai and Claude for desktop") {
|
|
178974
|
+
output_manager_default.print(
|
|
178975
|
+
"\u{1F517} Manual setup required for Claude.ai and Claude for desktop\n"
|
|
178976
|
+
);
|
|
178977
|
+
output_manager_default.print("\u{1F4A1} Setup instructions:\n");
|
|
178978
|
+
output_manager_default.print(" 1. Open Settings in the sidebar\n");
|
|
178979
|
+
output_manager_default.print(
|
|
178980
|
+
" 2. Navigate to Connectors and select Add custom connector\n"
|
|
178981
|
+
);
|
|
178982
|
+
output_manager_default.print(" 3. Configure the connector:\n");
|
|
178983
|
+
if (isProjectSpecific) {
|
|
178984
|
+
const projectInfo = await getProjectSpecificUrl(client2);
|
|
178985
|
+
const projectName = projectInfo?.projectName || "project";
|
|
178986
|
+
output_manager_default.print(` \u2022 Name: Vercel ${projectName}
|
|
178987
|
+
`);
|
|
178988
|
+
output_manager_default.print(` \u2022 URL: ${projectInfo?.url}
|
|
178989
|
+
`);
|
|
178990
|
+
} else {
|
|
178991
|
+
output_manager_default.print(" \u2022 Name: Vercel\n");
|
|
178992
|
+
output_manager_default.print(` \u2022 URL: ${MCP_ENDPOINT}
|
|
178993
|
+
`);
|
|
178994
|
+
}
|
|
178995
|
+
output_manager_default.print(" 4. Complete the authentication flow\n");
|
|
178996
|
+
summary.push("\u2139\uFE0F Claude.ai/Desktop: Manual setup required");
|
|
178997
|
+
} else if (clientName === "Cursor") {
|
|
178998
|
+
output_manager_default.print("\u{1F517} Setting up Cursor MCP...\n");
|
|
178999
|
+
const mcpUrl = isProjectSpecific ? (await getProjectSpecificUrl(client2))?.url : MCP_ENDPOINT;
|
|
179000
|
+
const serverName = isProjectSpecific ? `vercel-${(await getProjectSpecificUrl(client2))?.projectName}` : "vercel";
|
|
179001
|
+
const config2 = {
|
|
179002
|
+
url: mcpUrl,
|
|
179003
|
+
name: serverName
|
|
179004
|
+
};
|
|
179005
|
+
const configJson = JSON.stringify(config2);
|
|
179006
|
+
const encodedConfig = Buffer.from(configJson).toString("base64");
|
|
179007
|
+
const oneClickUrl = `cursor://anysphere.cursor-deeplink/mcp/install?name=${serverName}&config=${encodedConfig}`;
|
|
179008
|
+
output_manager_default.print(`\u{1F517} Generated Cursor deep link: ${oneClickUrl}
|
|
179009
|
+
`);
|
|
179010
|
+
try {
|
|
179011
|
+
if (process.platform === "darwin") {
|
|
179012
|
+
(0, import_child_process4.execSync)(`open '${oneClickUrl}'`);
|
|
179013
|
+
} else if (process.platform === "win32") {
|
|
179014
|
+
(0, import_child_process4.execSync)(`start ${oneClickUrl}`);
|
|
179015
|
+
} else {
|
|
179016
|
+
(0, import_child_process4.execSync)(`xdg-open '${oneClickUrl}'`);
|
|
179017
|
+
}
|
|
179018
|
+
summary.push("\u2705 Cursor: One-click installer opened");
|
|
179019
|
+
output_manager_default.print("\u2705 Successfully opened Cursor one-click installer\n");
|
|
179020
|
+
} catch (error3) {
|
|
179021
|
+
summary.push("\u26A0\uFE0F Cursor: Deep link may not have worked");
|
|
179022
|
+
output_manager_default.print("\u26A0\uFE0F Deep link may not have opened Cursor settings\n");
|
|
179023
|
+
}
|
|
179024
|
+
output_manager_default.print("\u{1F4A1} Manual setup (recommended):\n");
|
|
179025
|
+
output_manager_default.print(" 1. Open Cursor\n");
|
|
179026
|
+
output_manager_default.print(" 2. Go to Settings (Cmd+, / Ctrl+,)\n");
|
|
179027
|
+
output_manager_default.print(" 3. Navigate to MCP section\n");
|
|
179028
|
+
output_manager_default.print(' 4. Click "Add Server"\n');
|
|
179029
|
+
output_manager_default.print(" 5. Enter the following details:\n");
|
|
179030
|
+
output_manager_default.print(` \u2022 Name: ${serverName}
|
|
179031
|
+
`);
|
|
179032
|
+
output_manager_default.print(` \u2022 URL: ${mcpUrl}
|
|
179033
|
+
`);
|
|
179034
|
+
output_manager_default.print(' 6. Click "Add" and follow the authorization prompts\n');
|
|
179035
|
+
output_manager_default.print("\n");
|
|
179036
|
+
output_manager_default.print(" Or try the deep link manually:\n");
|
|
179037
|
+
output_manager_default.print(` ${oneClickUrl}
|
|
179038
|
+
`);
|
|
179039
|
+
output_manager_default.print(" (Copy and paste this URL in your browser)\n");
|
|
179040
|
+
} else if (clientName === "VS Code with Copilot") {
|
|
179041
|
+
output_manager_default.print("\u{1F50D} Checking for GitHub Copilot...\n");
|
|
179042
|
+
const copilotCheck = safeExecSync(
|
|
179043
|
+
"code --list-extensions | grep -i copilot"
|
|
179044
|
+
);
|
|
179045
|
+
if (typeof copilotCheck === "object" && "error" in copilotCheck) {
|
|
179046
|
+
output_manager_default.print(
|
|
179047
|
+
"\u26A0\uFE0F GitHub Copilot not detected. MCP functionality may be limited.\n"
|
|
179048
|
+
);
|
|
179049
|
+
output_manager_default.print(" 1. Open VS Code\n");
|
|
179050
|
+
output_manager_default.print(" 2. Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)\n");
|
|
179051
|
+
output_manager_default.print(' 3. Search for "GitHub Copilot"\n');
|
|
179052
|
+
output_manager_default.print(
|
|
179053
|
+
" 4. Install and authenticate with your GitHub account\n"
|
|
179054
|
+
);
|
|
179055
|
+
output_manager_default.print(" 5. Restart VS Code\n");
|
|
179056
|
+
output_manager_default.print("\n");
|
|
179057
|
+
} else {
|
|
179058
|
+
output_manager_default.print("\u2705 GitHub Copilot detected\n");
|
|
179059
|
+
}
|
|
179060
|
+
output_manager_default.print("\u{1F517} Setting up Vercel MCP in VS Code...\n");
|
|
179061
|
+
const mcpUrl = isProjectSpecific ? (await getProjectSpecificUrl(client2))?.url : MCP_ENDPOINT;
|
|
179062
|
+
const serverName = isProjectSpecific ? `vercel-${(await getProjectSpecificUrl(client2))?.projectName}` : "vercel";
|
|
179063
|
+
const config2 = {
|
|
179064
|
+
name: serverName,
|
|
179065
|
+
url: mcpUrl
|
|
179066
|
+
};
|
|
179067
|
+
const encodedConfig = encodeURIComponent(JSON.stringify(config2));
|
|
179068
|
+
const oneClickUrl = `vscode:mcp/install?${encodedConfig}`;
|
|
179069
|
+
try {
|
|
179070
|
+
if (process.platform === "darwin") {
|
|
179071
|
+
(0, import_child_process4.execSync)(`open '${oneClickUrl}'`);
|
|
179072
|
+
} else if (process.platform === "win32") {
|
|
179073
|
+
(0, import_child_process4.execSync)(`start ${oneClickUrl}`);
|
|
179074
|
+
} else {
|
|
179075
|
+
(0, import_child_process4.execSync)(`xdg-open '${oneClickUrl}'`);
|
|
179076
|
+
}
|
|
179077
|
+
summary.push("\u2705 VS Code: One-click installer opened");
|
|
179078
|
+
output_manager_default.print("\u2705 Successfully opened VS Code one-click installer\n");
|
|
179079
|
+
output_manager_default.print("\u2139\uFE0F Follow the prompts in VS Code to complete setup\n");
|
|
179080
|
+
output_manager_default.print(
|
|
179081
|
+
"\u2139\uFE0F You may need to authorize the connection when prompted\n"
|
|
179082
|
+
);
|
|
179083
|
+
} catch (error3) {
|
|
179084
|
+
summary.push("\u274C VS Code: Failed to open one-click installer");
|
|
179085
|
+
output_manager_default.print("\u{1F4A1} Manual setup instructions:\n");
|
|
179086
|
+
output_manager_default.print(" 1. Open VS Code\n");
|
|
179087
|
+
output_manager_default.print(
|
|
179088
|
+
" 2. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)\n"
|
|
179089
|
+
);
|
|
179090
|
+
output_manager_default.print(' 3. Type "MCP: Add Server" and press Enter\n');
|
|
179091
|
+
output_manager_default.print(" 4. Select HTTP\n");
|
|
179092
|
+
output_manager_default.print(" 5. Enter the following details:\n");
|
|
179093
|
+
output_manager_default.print(` \u2022 URL: ${mcpUrl}
|
|
179094
|
+
`);
|
|
179095
|
+
output_manager_default.print(` \u2022 Name: ${serverName}
|
|
179096
|
+
`);
|
|
179097
|
+
output_manager_default.print(
|
|
179098
|
+
" 6. Select Global or Workspace depending on your needs\n"
|
|
179099
|
+
);
|
|
179100
|
+
output_manager_default.print(" 7. Click Add\n");
|
|
179101
|
+
output_manager_default.print(" 8. Follow the authorization steps\n");
|
|
179102
|
+
output_manager_default.print("\n");
|
|
179103
|
+
output_manager_default.print(" Or use the one-click installer manually:\n");
|
|
179104
|
+
output_manager_default.print(` ${oneClickUrl}
|
|
179105
|
+
`);
|
|
179106
|
+
}
|
|
179107
|
+
}
|
|
179108
|
+
output_manager_default.print("\u2500".repeat(50) + "\n");
|
|
179109
|
+
}
|
|
179110
|
+
output_manager_default.print("\u{1F4CA} Setup Summary\n");
|
|
179111
|
+
output_manager_default.print("\u2500".repeat(50) + "\n");
|
|
179112
|
+
summary.forEach((line) => output_manager_default.print(`${line}
|
|
179113
|
+
`));
|
|
179114
|
+
if (isProjectSpecific) {
|
|
179115
|
+
const projectInfo = await getProjectSpecificUrl(client2);
|
|
179116
|
+
output_manager_default.print(`\u{1F517} Project-specific MCP URL: ${projectInfo?.url}
|
|
179117
|
+
`);
|
|
179118
|
+
}
|
|
179119
|
+
output_manager_default.print(
|
|
179120
|
+
"\u{1F517} Official documentation: https://vercel.com/docs/mcp/vercel-mcp\n"
|
|
179121
|
+
);
|
|
179122
|
+
output_manager_default.print(`\u{1F512} Official endpoint: ${MCP_ENDPOINT}
|
|
179123
|
+
`);
|
|
179124
|
+
output_manager_default.print("\u2728 Setup complete! Restart your clients if needed.\n");
|
|
179125
|
+
return 0;
|
|
179126
|
+
}
|
|
179127
|
+
var import_child_process4, MCP_ENDPOINT;
|
|
179128
|
+
var init_mcp = __esm({
|
|
179129
|
+
"src/commands/mcp/mcp.ts"() {
|
|
179130
|
+
"use strict";
|
|
179131
|
+
init_output_manager();
|
|
179132
|
+
import_child_process4 = require("child_process");
|
|
179133
|
+
init_link2();
|
|
179134
|
+
MCP_ENDPOINT = "https://mcp.vercel.com";
|
|
179135
|
+
}
|
|
179136
|
+
});
|
|
179137
|
+
|
|
179138
|
+
// src/commands/mcp/index.ts
|
|
179139
|
+
var mcp_exports = {};
|
|
179140
|
+
__export3(mcp_exports, {
|
|
179141
|
+
default: () => main13
|
|
179142
|
+
});
|
|
179143
|
+
async function main13(client2) {
|
|
179144
|
+
let parsedArgs;
|
|
179145
|
+
const flagsSpecification = getFlagsSpecification(mcpCommand.options);
|
|
179146
|
+
try {
|
|
179147
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
|
179148
|
+
} catch (error3) {
|
|
179149
|
+
printError(error3);
|
|
179150
|
+
return 1;
|
|
179151
|
+
}
|
|
179152
|
+
if (parsedArgs.flags["--help"]) {
|
|
179153
|
+
output_manager_default.print(help2(mcpCommand, { columns: client2.stderr.columns }));
|
|
179154
|
+
return 2;
|
|
179155
|
+
}
|
|
179156
|
+
if (parsedArgs.flags["--project"]) {
|
|
179157
|
+
client2.argv.push("--project");
|
|
179158
|
+
}
|
|
179159
|
+
try {
|
|
179160
|
+
return await mcp(client2);
|
|
179161
|
+
} catch (err) {
|
|
179162
|
+
output_manager_default.prettyError(err);
|
|
179163
|
+
return 1;
|
|
179164
|
+
}
|
|
179165
|
+
}
|
|
179166
|
+
var init_mcp2 = __esm({
|
|
179167
|
+
"src/commands/mcp/index.ts"() {
|
|
179168
|
+
"use strict";
|
|
179169
|
+
init_get_args();
|
|
179170
|
+
init_error2();
|
|
179171
|
+
init_help();
|
|
179172
|
+
init_command23();
|
|
179173
|
+
init_get_flags_specification();
|
|
179174
|
+
init_output_manager();
|
|
179175
|
+
init_mcp();
|
|
179176
|
+
}
|
|
179177
|
+
});
|
|
179178
|
+
|
|
178767
179179
|
// ../../node_modules/.pnpm/email-validator@1.1.1/node_modules/email-validator/index.js
|
|
178768
179180
|
var require_email_validator = __commonJS2({
|
|
178769
179181
|
"../../node_modules/.pnpm/email-validator@1.1.1/node_modules/email-validator/index.js"(exports2) {
|
|
@@ -179283,7 +179695,7 @@ var init_pull5 = __esm({
|
|
|
179283
179695
|
init_humanize_path();
|
|
179284
179696
|
init_stamp();
|
|
179285
179697
|
import_fs_extra23 = __toESM3(require_lib());
|
|
179286
|
-
|
|
179698
|
+
init_command24();
|
|
179287
179699
|
init_get_flags_specification();
|
|
179288
179700
|
init_get_args();
|
|
179289
179701
|
init_error2();
|
|
@@ -179312,9 +179724,9 @@ var init_microfrontends = __esm({
|
|
|
179312
179724
|
// src/commands/microfrontends/index.ts
|
|
179313
179725
|
var microfrontends_exports = {};
|
|
179314
179726
|
__export3(microfrontends_exports, {
|
|
179315
|
-
default: () =>
|
|
179727
|
+
default: () => main14
|
|
179316
179728
|
});
|
|
179317
|
-
async function
|
|
179729
|
+
async function main14(client2) {
|
|
179318
179730
|
const telemetry2 = new MicrofrontendsTelemetryClient({
|
|
179319
179731
|
opts: {
|
|
179320
179732
|
store: client2.telemetryEventStore
|
|
@@ -179378,7 +179790,7 @@ var init_microfrontends2 = __esm({
|
|
|
179378
179790
|
init_error2();
|
|
179379
179791
|
init_help();
|
|
179380
179792
|
init_pull5();
|
|
179381
|
-
|
|
179793
|
+
init_command24();
|
|
179382
179794
|
init_get_flags_specification();
|
|
179383
179795
|
init_output_manager();
|
|
179384
179796
|
init_commands();
|
|
@@ -179477,7 +179889,7 @@ var init_add12 = __esm({
|
|
|
179477
179889
|
init_create_project();
|
|
179478
179890
|
init_output_manager();
|
|
179479
179891
|
init_add11();
|
|
179480
|
-
|
|
179892
|
+
init_command25();
|
|
179481
179893
|
init_get_args();
|
|
179482
179894
|
init_get_flags_specification();
|
|
179483
179895
|
init_error2();
|
|
@@ -179634,7 +180046,7 @@ var init_inspect6 = __esm({
|
|
|
179634
180046
|
init_pkg_name();
|
|
179635
180047
|
init_inspect5();
|
|
179636
180048
|
init_output_manager();
|
|
179637
|
-
|
|
180049
|
+
init_command25();
|
|
179638
180050
|
init_get_args();
|
|
179639
180051
|
init_get_flags_specification();
|
|
179640
180052
|
init_error2();
|
|
@@ -179825,7 +180237,7 @@ var init_list10 = __esm({
|
|
|
179825
180237
|
init_pkg_name();
|
|
179826
180238
|
init_list9();
|
|
179827
180239
|
init_output_manager();
|
|
179828
|
-
|
|
180240
|
+
init_command25();
|
|
179829
180241
|
init_get_args();
|
|
179830
180242
|
init_get_flags_specification();
|
|
179831
180243
|
init_error2();
|
|
@@ -179942,7 +180354,7 @@ var init_rm10 = __esm({
|
|
|
179942
180354
|
init_get_args();
|
|
179943
180355
|
init_get_flags_specification();
|
|
179944
180356
|
init_error2();
|
|
179945
|
-
|
|
180357
|
+
init_command25();
|
|
179946
180358
|
e = encodeURIComponent;
|
|
179947
180359
|
}
|
|
179948
180360
|
});
|
|
@@ -179985,9 +180397,9 @@ var init_project = __esm({
|
|
|
179985
180397
|
// src/commands/project/index.ts
|
|
179986
180398
|
var project_exports = {};
|
|
179987
180399
|
__export3(project_exports, {
|
|
179988
|
-
default: () =>
|
|
180400
|
+
default: () => main15
|
|
179989
180401
|
});
|
|
179990
|
-
async function
|
|
180402
|
+
async function main15(client2) {
|
|
179991
180403
|
const telemetry2 = new ProjectTelemetryClient({
|
|
179992
180404
|
opts: {
|
|
179993
180405
|
store: client2.telemetryEventStore
|
|
@@ -180069,7 +180481,7 @@ var init_project2 = __esm({
|
|
|
180069
180481
|
init_inspect6();
|
|
180070
180482
|
init_list10();
|
|
180071
180483
|
init_rm10();
|
|
180072
|
-
|
|
180484
|
+
init_command25();
|
|
180073
180485
|
init_get_flags_specification();
|
|
180074
180486
|
init_project();
|
|
180075
180487
|
init_output_manager();
|
|
@@ -180532,7 +180944,7 @@ var init_promote2 = __esm({
|
|
|
180532
180944
|
import_error_utils33 = __toESM3(require_dist2());
|
|
180533
180945
|
init_request_promote();
|
|
180534
180946
|
init_status2();
|
|
180535
|
-
|
|
180947
|
+
init_command26();
|
|
180536
180948
|
init_help();
|
|
180537
180949
|
init_get_flags_specification();
|
|
180538
180950
|
init_promote();
|
|
@@ -180926,7 +181338,7 @@ var init_redeploy2 = __esm({
|
|
|
180926
181338
|
init_stamp();
|
|
180927
181339
|
init_ua();
|
|
180928
181340
|
init_help();
|
|
180929
|
-
|
|
181341
|
+
init_command28();
|
|
180930
181342
|
init_get_flags_specification();
|
|
180931
181343
|
init_output_manager();
|
|
180932
181344
|
init_redeploy();
|
|
@@ -181313,7 +181725,7 @@ var init_remove6 = __esm({
|
|
|
181313
181725
|
init_error2();
|
|
181314
181726
|
init_now_error();
|
|
181315
181727
|
init_help();
|
|
181316
|
-
|
|
181728
|
+
init_command29();
|
|
181317
181729
|
init_get_flags_specification();
|
|
181318
181730
|
init_remove5();
|
|
181319
181731
|
init_output_manager();
|
|
@@ -181586,7 +181998,7 @@ var init_rollback2 = __esm({
|
|
|
181586
181998
|
init_request_rollback();
|
|
181587
181999
|
init_status3();
|
|
181588
182000
|
init_help();
|
|
181589
|
-
|
|
182001
|
+
init_command30();
|
|
181590
182002
|
init_get_flags_specification();
|
|
181591
182003
|
init_rollback();
|
|
181592
182004
|
init_output_manager();
|
|
@@ -182162,7 +182574,7 @@ var init_rolling_release2 = __esm({
|
|
|
182162
182574
|
init_get_args();
|
|
182163
182575
|
init_get_flags_specification();
|
|
182164
182576
|
init_help();
|
|
182165
|
-
|
|
182577
|
+
init_command31();
|
|
182166
182578
|
init_request_rolling_release();
|
|
182167
182579
|
init_start_rolling_release();
|
|
182168
182580
|
init_configure_rolling_release();
|
|
@@ -182294,7 +182706,7 @@ var init_list11 = __esm({
|
|
|
182294
182706
|
import_chalk123 = __toESM3(require_source());
|
|
182295
182707
|
init_table();
|
|
182296
182708
|
init_output_manager();
|
|
182297
|
-
|
|
182709
|
+
init_command32();
|
|
182298
182710
|
init_pkg_name();
|
|
182299
182711
|
init_ensure_link();
|
|
182300
182712
|
init_format_project();
|
|
@@ -182332,9 +182744,9 @@ var init_target = __esm({
|
|
|
182332
182744
|
// src/commands/target/index.ts
|
|
182333
182745
|
var target_exports = {};
|
|
182334
182746
|
__export3(target_exports, {
|
|
182335
|
-
default: () =>
|
|
182747
|
+
default: () => main16
|
|
182336
182748
|
});
|
|
182337
|
-
async function
|
|
182749
|
+
async function main16(client2) {
|
|
182338
182750
|
let parsedArgs;
|
|
182339
182751
|
const flagsSpecification = getFlagsSpecification(targetCommand.options);
|
|
182340
182752
|
try {
|
|
@@ -182387,7 +182799,7 @@ var init_target2 = __esm({
|
|
|
182387
182799
|
init_get_invalid_subcommand();
|
|
182388
182800
|
init_help();
|
|
182389
182801
|
init_list11();
|
|
182390
|
-
|
|
182802
|
+
init_command32();
|
|
182391
182803
|
init_get_flags_specification();
|
|
182392
182804
|
init_error2();
|
|
182393
182805
|
init_output_manager();
|
|
@@ -182534,7 +182946,7 @@ var init_list13 = __esm({
|
|
|
182534
182946
|
init_get_args();
|
|
182535
182947
|
init_error2();
|
|
182536
182948
|
init_get_flags_specification();
|
|
182537
|
-
|
|
182949
|
+
init_command33();
|
|
182538
182950
|
init_output_manager();
|
|
182539
182951
|
init_list12();
|
|
182540
182952
|
}
|
|
@@ -182733,7 +183145,7 @@ var init_invite2 = __esm({
|
|
|
182733
183145
|
init_get_args();
|
|
182734
183146
|
init_get_flags_specification();
|
|
182735
183147
|
init_error2();
|
|
182736
|
-
|
|
183148
|
+
init_command33();
|
|
182737
183149
|
validateEmail2 = (data) => email.test(data.trim()) || data.length === 0;
|
|
182738
183150
|
domains = Array.from(
|
|
182739
183151
|
/* @__PURE__ */ new Set([
|
|
@@ -183034,7 +183446,7 @@ var init_switch2 = __esm({
|
|
|
183034
183446
|
init_files();
|
|
183035
183447
|
init_output_manager();
|
|
183036
183448
|
init_switch();
|
|
183037
|
-
|
|
183449
|
+
init_command33();
|
|
183038
183450
|
init_get_args();
|
|
183039
183451
|
init_get_flags_specification();
|
|
183040
183452
|
init_error2();
|
|
@@ -183186,7 +183598,7 @@ var init_teams2 = __esm({
|
|
|
183186
183598
|
init_switch2();
|
|
183187
183599
|
init_invite2();
|
|
183188
183600
|
init_get_args();
|
|
183189
|
-
|
|
183601
|
+
init_command33();
|
|
183190
183602
|
init_help();
|
|
183191
183603
|
init_get_flags_specification();
|
|
183192
183604
|
init_error2();
|
|
@@ -183427,7 +183839,7 @@ var init_telemetry3 = __esm({
|
|
|
183427
183839
|
init_enable2();
|
|
183428
183840
|
init_disable2();
|
|
183429
183841
|
init_flush();
|
|
183430
|
-
|
|
183842
|
+
init_command34();
|
|
183431
183843
|
init_get_flags_specification();
|
|
183432
183844
|
init_telemetry2();
|
|
183433
183845
|
import_chalk129 = __toESM3(require_source());
|
|
@@ -183490,7 +183902,7 @@ var init_whoami2 = __esm({
|
|
|
183490
183902
|
"src/commands/whoami/index.ts"() {
|
|
183491
183903
|
"use strict";
|
|
183492
183904
|
init_help();
|
|
183493
|
-
|
|
183905
|
+
init_command35();
|
|
183494
183906
|
init_get_scope();
|
|
183495
183907
|
init_get_args();
|
|
183496
183908
|
init_get_flags_specification();
|
|
@@ -184355,33 +184767,8 @@ function checkGuidanceStatus({ config: config2 }) {
|
|
|
184355
184767
|
writeToConfigFile(config2);
|
|
184356
184768
|
}
|
|
184357
184769
|
|
|
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
184770
|
// src/index.ts
|
|
184771
|
+
var import_detect_agent = __toESM3(require_dist20());
|
|
184385
184772
|
try {
|
|
184386
184773
|
process.cwd();
|
|
184387
184774
|
} catch (err) {
|
|
@@ -184418,7 +184805,7 @@ Sentry.init({
|
|
|
184418
184805
|
var client;
|
|
184419
184806
|
var { isTTY: isTTY2 } = process.stdout;
|
|
184420
184807
|
var apiUrl = "https://api.vercel.com";
|
|
184421
|
-
var
|
|
184808
|
+
var main17 = async () => {
|
|
184422
184809
|
if (process.env.FORCE_TTY === "1") {
|
|
184423
184810
|
isTTY2 = true;
|
|
184424
184811
|
process.stdout.isTTY = true;
|
|
@@ -184565,7 +184952,7 @@ var main16 = async () => {
|
|
|
184565
184952
|
store: telemetryEventStore
|
|
184566
184953
|
}
|
|
184567
184954
|
});
|
|
184568
|
-
const agent = await determineAgent();
|
|
184955
|
+
const agent = await (0, import_detect_agent.determineAgent)();
|
|
184569
184956
|
telemetry2.trackAgenticUse(agent);
|
|
184570
184957
|
telemetry2.trackCPUs();
|
|
184571
184958
|
telemetry2.trackPlatform();
|
|
@@ -184890,6 +185277,9 @@ var main16 = async () => {
|
|
|
184890
185277
|
telemetry2.trackCliCommandLogs(userSuppliedSubCommand);
|
|
184891
185278
|
func = (init_logs3(), __toCommonJS3(logs_exports)).default;
|
|
184892
185279
|
break;
|
|
185280
|
+
case "mcp":
|
|
185281
|
+
func = (init_mcp2(), __toCommonJS3(mcp_exports)).default;
|
|
185282
|
+
break;
|
|
184893
185283
|
case "login":
|
|
184894
185284
|
telemetry2.trackCliCommandLogin(userSuppliedSubCommand);
|
|
184895
185285
|
func = (init_login3(), __toCommonJS3(login_exports)).default;
|
|
@@ -185041,7 +185431,7 @@ ${err.stack}`);
|
|
|
185041
185431
|
};
|
|
185042
185432
|
process.on("unhandledRejection", handleRejection);
|
|
185043
185433
|
process.on("uncaughtException", handleUnexpected);
|
|
185044
|
-
|
|
185434
|
+
main17().then(async (exitCode2) => {
|
|
185045
185435
|
if (isTTY2 && !process.env.NO_UPDATE_NOTIFIER) {
|
|
185046
185436
|
const latest = getLatestVersion({
|
|
185047
185437
|
pkg: pkg_default
|