vercel 48.8.2 → 48.9.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 +442 -217
- package/package.json +21 -20
package/dist/index.js
CHANGED
|
@@ -32913,9 +32913,69 @@ var init_command13 = __esm({
|
|
|
32913
32913
|
}
|
|
32914
32914
|
});
|
|
32915
32915
|
|
|
32916
|
+
// src/commands/httpstat/command.ts
|
|
32917
|
+
var httpstatCommand;
|
|
32918
|
+
var init_command14 = __esm({
|
|
32919
|
+
"src/commands/httpstat/command.ts"() {
|
|
32920
|
+
"use strict";
|
|
32921
|
+
init_pkg_name();
|
|
32922
|
+
httpstatCommand = {
|
|
32923
|
+
name: "httpstat",
|
|
32924
|
+
aliases: [],
|
|
32925
|
+
description: "Execute httpstat with automatic deployment URL and protection bypass to visualize HTTP timing statistics.",
|
|
32926
|
+
arguments: [
|
|
32927
|
+
{
|
|
32928
|
+
name: "path",
|
|
32929
|
+
required: true
|
|
32930
|
+
}
|
|
32931
|
+
],
|
|
32932
|
+
options: [
|
|
32933
|
+
{
|
|
32934
|
+
name: "deployment",
|
|
32935
|
+
shorthand: null,
|
|
32936
|
+
type: String,
|
|
32937
|
+
deprecated: false,
|
|
32938
|
+
description: "The deployment ID to target",
|
|
32939
|
+
argument: "ID"
|
|
32940
|
+
},
|
|
32941
|
+
{
|
|
32942
|
+
name: "protection-bypass",
|
|
32943
|
+
shorthand: null,
|
|
32944
|
+
type: String,
|
|
32945
|
+
deprecated: false,
|
|
32946
|
+
description: "Protection bypass secret for accessing protected deployments",
|
|
32947
|
+
argument: "SECRET"
|
|
32948
|
+
}
|
|
32949
|
+
],
|
|
32950
|
+
examples: [
|
|
32951
|
+
{
|
|
32952
|
+
name: "Visualize timing for a GET request to an API endpoint",
|
|
32953
|
+
value: `${packageName} httpstat /api/hello`
|
|
32954
|
+
},
|
|
32955
|
+
{
|
|
32956
|
+
name: "Make a POST request with data and see timing details",
|
|
32957
|
+
value: `${packageName} httpstat /api/users -- -X POST -d '{"name": "John"}'`
|
|
32958
|
+
},
|
|
32959
|
+
{
|
|
32960
|
+
name: "Target a specific deployment by ID",
|
|
32961
|
+
value: `${packageName} httpstat /api/status --deployment ERiL45NJvP8ghWxgbvCM447bmxwV`
|
|
32962
|
+
},
|
|
32963
|
+
{
|
|
32964
|
+
name: "Use curl flags after the separator",
|
|
32965
|
+
value: `${packageName} httpstat /api/test -- -H "Content-Type: application/json" -X PUT`
|
|
32966
|
+
},
|
|
32967
|
+
{
|
|
32968
|
+
name: "Use with protection bypass secret",
|
|
32969
|
+
value: `${packageName} httpstat /api/protected --protection-bypass <secret>`
|
|
32970
|
+
}
|
|
32971
|
+
]
|
|
32972
|
+
};
|
|
32973
|
+
}
|
|
32974
|
+
});
|
|
32975
|
+
|
|
32916
32976
|
// src/commands/init/command.ts
|
|
32917
32977
|
var initCommand;
|
|
32918
|
-
var
|
|
32978
|
+
var init_command15 = __esm({
|
|
32919
32979
|
"src/commands/init/command.ts"() {
|
|
32920
32980
|
"use strict";
|
|
32921
32981
|
init_pkg_name();
|
|
@@ -32965,7 +33025,7 @@ var init_command14 = __esm({
|
|
|
32965
33025
|
|
|
32966
33026
|
// src/commands/inspect/command.ts
|
|
32967
33027
|
var inspectCommand;
|
|
32968
|
-
var
|
|
33028
|
+
var init_command16 = __esm({
|
|
32969
33029
|
"src/commands/inspect/command.ts"() {
|
|
32970
33030
|
"use strict";
|
|
32971
33031
|
init_pkg_name();
|
|
@@ -33031,7 +33091,7 @@ var init_command15 = __esm({
|
|
|
33031
33091
|
|
|
33032
33092
|
// src/commands/install/command.ts
|
|
33033
33093
|
var installCommand;
|
|
33034
|
-
var
|
|
33094
|
+
var init_command17 = __esm({
|
|
33035
33095
|
"src/commands/install/command.ts"() {
|
|
33036
33096
|
"use strict";
|
|
33037
33097
|
init_pkg_name();
|
|
@@ -33058,7 +33118,7 @@ var init_command16 = __esm({
|
|
|
33058
33118
|
|
|
33059
33119
|
// src/commands/integration-resource/command.ts
|
|
33060
33120
|
var removeSubcommand6, disconnectSubcommand2, createThresholdSubcommand, integrationResourceCommand;
|
|
33061
|
-
var
|
|
33121
|
+
var init_command18 = __esm({
|
|
33062
33122
|
"src/commands/integration-resource/command.ts"() {
|
|
33063
33123
|
"use strict";
|
|
33064
33124
|
init_arg_common();
|
|
@@ -33209,7 +33269,7 @@ var init_command17 = __esm({
|
|
|
33209
33269
|
|
|
33210
33270
|
// src/commands/integration/command.ts
|
|
33211
33271
|
var addSubcommand5, openSubcommand, listSubcommand6, balanceSubcommand, removeSubcommand7, integrationCommand;
|
|
33212
|
-
var
|
|
33272
|
+
var init_command19 = __esm({
|
|
33213
33273
|
"src/commands/integration/command.ts"() {
|
|
33214
33274
|
"use strict";
|
|
33215
33275
|
init_arg_common();
|
|
@@ -33371,7 +33431,7 @@ var init_command18 = __esm({
|
|
|
33371
33431
|
|
|
33372
33432
|
// src/commands/link/command.ts
|
|
33373
33433
|
var linkCommand;
|
|
33374
|
-
var
|
|
33434
|
+
var init_command20 = __esm({
|
|
33375
33435
|
"src/commands/link/command.ts"() {
|
|
33376
33436
|
"use strict";
|
|
33377
33437
|
init_pkg_name();
|
|
@@ -33427,7 +33487,7 @@ var init_command19 = __esm({
|
|
|
33427
33487
|
|
|
33428
33488
|
// src/commands/list/command.ts
|
|
33429
33489
|
var listCommand;
|
|
33430
|
-
var
|
|
33490
|
+
var init_command21 = __esm({
|
|
33431
33491
|
"src/commands/list/command.ts"() {
|
|
33432
33492
|
"use strict";
|
|
33433
33493
|
init_pkg_name();
|
|
@@ -33513,7 +33573,7 @@ var init_command20 = __esm({
|
|
|
33513
33573
|
|
|
33514
33574
|
// src/commands/login/command.ts
|
|
33515
33575
|
var loginCommand;
|
|
33516
|
-
var
|
|
33576
|
+
var init_command22 = __esm({
|
|
33517
33577
|
"src/commands/login/command.ts"() {
|
|
33518
33578
|
"use strict";
|
|
33519
33579
|
init_pkg_name();
|
|
@@ -33564,7 +33624,7 @@ var init_command21 = __esm({
|
|
|
33564
33624
|
|
|
33565
33625
|
// src/commands/logout/command.ts
|
|
33566
33626
|
var logoutCommand;
|
|
33567
|
-
var
|
|
33627
|
+
var init_command23 = __esm({
|
|
33568
33628
|
"src/commands/logout/command.ts"() {
|
|
33569
33629
|
"use strict";
|
|
33570
33630
|
init_pkg_name();
|
|
@@ -33586,7 +33646,7 @@ var init_command22 = __esm({
|
|
|
33586
33646
|
|
|
33587
33647
|
// src/commands/logs/command.ts
|
|
33588
33648
|
var CommandTimeout, logsCommand;
|
|
33589
|
-
var
|
|
33649
|
+
var init_command24 = __esm({
|
|
33590
33650
|
"src/commands/logs/command.ts"() {
|
|
33591
33651
|
"use strict";
|
|
33592
33652
|
init_pkg_name();
|
|
@@ -33660,7 +33720,7 @@ var init_command23 = __esm({
|
|
|
33660
33720
|
|
|
33661
33721
|
// src/commands/mcp/command.ts
|
|
33662
33722
|
var mcpCommand;
|
|
33663
|
-
var
|
|
33723
|
+
var init_command25 = __esm({
|
|
33664
33724
|
"src/commands/mcp/command.ts"() {
|
|
33665
33725
|
"use strict";
|
|
33666
33726
|
init_pkg_name();
|
|
@@ -33694,7 +33754,7 @@ var init_command24 = __esm({
|
|
|
33694
33754
|
|
|
33695
33755
|
// src/commands/microfrontends/command.ts
|
|
33696
33756
|
var pullSubcommand2, microfrontendsCommand;
|
|
33697
|
-
var
|
|
33757
|
+
var init_command26 = __esm({
|
|
33698
33758
|
"src/commands/microfrontends/command.ts"() {
|
|
33699
33759
|
"use strict";
|
|
33700
33760
|
init_pkg_name();
|
|
@@ -33737,7 +33797,7 @@ var init_command25 = __esm({
|
|
|
33737
33797
|
|
|
33738
33798
|
// src/commands/project/command.ts
|
|
33739
33799
|
var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
|
|
33740
|
-
var
|
|
33800
|
+
var init_command27 = __esm({
|
|
33741
33801
|
"src/commands/project/command.ts"() {
|
|
33742
33802
|
"use strict";
|
|
33743
33803
|
init_pkg_name();
|
|
@@ -33848,7 +33908,7 @@ var init_command26 = __esm({
|
|
|
33848
33908
|
|
|
33849
33909
|
// src/commands/promote/command.ts
|
|
33850
33910
|
var statusSubcommand2, promoteCommand;
|
|
33851
|
-
var
|
|
33911
|
+
var init_command28 = __esm({
|
|
33852
33912
|
"src/commands/promote/command.ts"() {
|
|
33853
33913
|
"use strict";
|
|
33854
33914
|
init_pkg_name();
|
|
@@ -33917,7 +33977,7 @@ var init_command27 = __esm({
|
|
|
33917
33977
|
|
|
33918
33978
|
// src/commands/pull/command.ts
|
|
33919
33979
|
var pullCommand;
|
|
33920
|
-
var
|
|
33980
|
+
var init_command29 = __esm({
|
|
33921
33981
|
"src/commands/pull/command.ts"() {
|
|
33922
33982
|
"use strict";
|
|
33923
33983
|
init_pkg_name();
|
|
@@ -33989,7 +34049,7 @@ var init_command28 = __esm({
|
|
|
33989
34049
|
|
|
33990
34050
|
// src/commands/redeploy/command.ts
|
|
33991
34051
|
var redeployCommand;
|
|
33992
|
-
var
|
|
34052
|
+
var init_command30 = __esm({
|
|
33993
34053
|
"src/commands/redeploy/command.ts"() {
|
|
33994
34054
|
"use strict";
|
|
33995
34055
|
init_pkg_name();
|
|
@@ -34040,7 +34100,7 @@ var init_command29 = __esm({
|
|
|
34040
34100
|
|
|
34041
34101
|
// src/commands/remove/command.ts
|
|
34042
34102
|
var removeCommand;
|
|
34043
|
-
var
|
|
34103
|
+
var init_command31 = __esm({
|
|
34044
34104
|
"src/commands/remove/command.ts"() {
|
|
34045
34105
|
"use strict";
|
|
34046
34106
|
init_pkg_name();
|
|
@@ -34090,7 +34150,7 @@ var init_command30 = __esm({
|
|
|
34090
34150
|
|
|
34091
34151
|
// src/commands/rollback/command.ts
|
|
34092
34152
|
var statusSubcommand3, rollbackCommand;
|
|
34093
|
-
var
|
|
34153
|
+
var init_command32 = __esm({
|
|
34094
34154
|
"src/commands/rollback/command.ts"() {
|
|
34095
34155
|
"use strict";
|
|
34096
34156
|
init_pkg_name();
|
|
@@ -34151,7 +34211,7 @@ var init_command31 = __esm({
|
|
|
34151
34211
|
|
|
34152
34212
|
// src/commands/rolling-release/command.ts
|
|
34153
34213
|
var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
|
|
34154
|
-
var
|
|
34214
|
+
var init_command33 = __esm({
|
|
34155
34215
|
"src/commands/rolling-release/command.ts"() {
|
|
34156
34216
|
"use strict";
|
|
34157
34217
|
init_arg_common();
|
|
@@ -34345,7 +34405,7 @@ var init_command32 = __esm({
|
|
|
34345
34405
|
|
|
34346
34406
|
// src/commands/target/command.ts
|
|
34347
34407
|
var listSubcommand8, targetCommand;
|
|
34348
|
-
var
|
|
34408
|
+
var init_command34 = __esm({
|
|
34349
34409
|
"src/commands/target/command.ts"() {
|
|
34350
34410
|
"use strict";
|
|
34351
34411
|
init_pkg_name();
|
|
@@ -34376,7 +34436,7 @@ var init_command33 = __esm({
|
|
|
34376
34436
|
|
|
34377
34437
|
// src/commands/teams/command.ts
|
|
34378
34438
|
var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
|
|
34379
|
-
var
|
|
34439
|
+
var init_command35 = __esm({
|
|
34380
34440
|
"src/commands/teams/command.ts"() {
|
|
34381
34441
|
"use strict";
|
|
34382
34442
|
init_pkg_name();
|
|
@@ -34467,7 +34527,7 @@ var init_command34 = __esm({
|
|
|
34467
34527
|
|
|
34468
34528
|
// src/commands/telemetry/command.ts
|
|
34469
34529
|
var statusSubcommand4, enableSubcommand2, flushSubcommand, disableSubcommand2, telemetryCommand;
|
|
34470
|
-
var
|
|
34530
|
+
var init_command36 = __esm({
|
|
34471
34531
|
"src/commands/telemetry/command.ts"() {
|
|
34472
34532
|
"use strict";
|
|
34473
34533
|
statusSubcommand4 = {
|
|
@@ -34522,7 +34582,7 @@ var init_command35 = __esm({
|
|
|
34522
34582
|
|
|
34523
34583
|
// src/commands/whoami/command.ts
|
|
34524
34584
|
var whoamiCommand;
|
|
34525
|
-
var
|
|
34585
|
+
var init_command37 = __esm({
|
|
34526
34586
|
"src/commands/whoami/command.ts"() {
|
|
34527
34587
|
"use strict";
|
|
34528
34588
|
init_pkg_name();
|
|
@@ -34544,7 +34604,7 @@ var init_command36 = __esm({
|
|
|
34544
34604
|
|
|
34545
34605
|
// src/commands/blob/command.ts
|
|
34546
34606
|
var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
|
|
34547
|
-
var
|
|
34607
|
+
var init_command38 = __esm({
|
|
34548
34608
|
"src/commands/blob/command.ts"() {
|
|
34549
34609
|
"use strict";
|
|
34550
34610
|
listSubcommand10 = {
|
|
@@ -34844,6 +34904,7 @@ var init_commands = __esm({
|
|
|
34844
34904
|
init_command35();
|
|
34845
34905
|
init_command36();
|
|
34846
34906
|
init_command37();
|
|
34907
|
+
init_command38();
|
|
34847
34908
|
init_output_manager();
|
|
34848
34909
|
commandsStructs = [
|
|
34849
34910
|
aliasCommand,
|
|
@@ -34859,6 +34920,7 @@ var init_commands = __esm({
|
|
|
34859
34920
|
domainsCommand,
|
|
34860
34921
|
envCommand,
|
|
34861
34922
|
gitCommand,
|
|
34923
|
+
httpstatCommand,
|
|
34862
34924
|
initCommand,
|
|
34863
34925
|
inspectCommand,
|
|
34864
34926
|
installCommand,
|
|
@@ -44976,7 +45038,7 @@ var init_login2 = __esm({
|
|
|
44976
45038
|
import_chalk18 = __toESM3(require_source());
|
|
44977
45039
|
init_get_args();
|
|
44978
45040
|
init_help();
|
|
44979
|
-
|
|
45041
|
+
init_command22();
|
|
44980
45042
|
init_get_flags_specification();
|
|
44981
45043
|
init_error2();
|
|
44982
45044
|
init_output_manager();
|
|
@@ -49640,7 +49702,7 @@ var require_package = __commonJS2({
|
|
|
49640
49702
|
"../client/package.json"(exports2, module2) {
|
|
49641
49703
|
module2.exports = {
|
|
49642
49704
|
name: "@vercel/client",
|
|
49643
|
-
version: "17.2.
|
|
49705
|
+
version: "17.2.2",
|
|
49644
49706
|
main: "dist/index.js",
|
|
49645
49707
|
typings: "dist/index.d.ts",
|
|
49646
49708
|
homepage: "https://vercel.com",
|
|
@@ -49679,7 +49741,7 @@ var require_package = __commonJS2({
|
|
|
49679
49741
|
vitest: "2.0.1"
|
|
49680
49742
|
},
|
|
49681
49743
|
dependencies: {
|
|
49682
|
-
"@vercel/build-utils": "
|
|
49744
|
+
"@vercel/build-utils": "13.0.0",
|
|
49683
49745
|
"@vercel/error-utils": "2.0.3",
|
|
49684
49746
|
"@vercel/microfrontends": "1.2.2",
|
|
49685
49747
|
"@vercel/routing-utils": "5.2.1",
|
|
@@ -58074,7 +58136,7 @@ var require_utils14 = __commonJS2({
|
|
|
58074
58136
|
var import_async_sema = require_lib9();
|
|
58075
58137
|
var import_fs_extra25 = require_lib8();
|
|
58076
58138
|
var import_readdir_recursive = __toESM4(require_readdir_recursive());
|
|
58077
|
-
var
|
|
58139
|
+
var import_utils6 = require_utils13();
|
|
58078
58140
|
var semaphore = new import_async_sema.Sema(10);
|
|
58079
58141
|
var API_FILES = "/v2/files";
|
|
58080
58142
|
var EVENTS_ARRAY = [
|
|
@@ -58164,12 +58226,12 @@ var require_utils14 = __commonJS2({
|
|
|
58164
58226
|
})
|
|
58165
58227
|
);
|
|
58166
58228
|
try {
|
|
58167
|
-
let microfrontendConfigPath = (0,
|
|
58229
|
+
let microfrontendConfigPath = (0, import_utils6.findConfig)({
|
|
58168
58230
|
dir: (0, import_path41.join)(path11, rootDirectory || "")
|
|
58169
58231
|
});
|
|
58170
58232
|
if (!microfrontendConfigPath && !rootDirectory && projectName) {
|
|
58171
|
-
microfrontendConfigPath = (0,
|
|
58172
|
-
dir: (0,
|
|
58233
|
+
microfrontendConfigPath = (0, import_utils6.findConfig)({
|
|
58234
|
+
dir: (0, import_utils6.inferMicrofrontendsLocation)({
|
|
58173
58235
|
repositoryRoot: path11,
|
|
58174
58236
|
applicationName: projectName
|
|
58175
58237
|
})
|
|
@@ -58707,7 +58769,7 @@ var require_check_deployment_status = __commonJS2({
|
|
|
58707
58769
|
});
|
|
58708
58770
|
module2.exports = __toCommonJS4(check_deployment_status_exports);
|
|
58709
58771
|
var import_sleep_promise = __toESM4(require_cjs6());
|
|
58710
|
-
var
|
|
58772
|
+
var import_utils6 = require_utils14();
|
|
58711
58773
|
var import_get_polling_delay = require_get_polling_delay();
|
|
58712
58774
|
var import_ready_state = require_ready_state();
|
|
58713
58775
|
var import_utils22 = require_utils14();
|
|
@@ -58715,7 +58777,7 @@ var require_check_deployment_status = __commonJS2({
|
|
|
58715
58777
|
const { token, teamId, apiUrl: apiUrl2, userAgent: userAgent2 } = clientOptions;
|
|
58716
58778
|
const debug2 = (0, import_utils22.createDebug)(clientOptions.debug);
|
|
58717
58779
|
let deploymentState = deployment;
|
|
58718
|
-
const apiDeployments = (0,
|
|
58780
|
+
const apiDeployments = (0, import_utils6.getApiDeploymentsUrl)();
|
|
58719
58781
|
if ((0, import_ready_state.isDone)(deploymentState) && (0, import_ready_state.isAliasAssigned)(deploymentState)) {
|
|
58720
58782
|
debug2(
|
|
58721
58783
|
`Deployment is already READY and aliases are assigned. Not running status checks`
|
|
@@ -58726,7 +58788,7 @@ var require_check_deployment_status = __commonJS2({
|
|
|
58726
58788
|
const finishedEvents = /* @__PURE__ */ new Set();
|
|
58727
58789
|
const startTime = Date.now();
|
|
58728
58790
|
while (true) {
|
|
58729
|
-
const deploymentData = await (0,
|
|
58791
|
+
const deploymentData = await (0, import_utils6.fetch)(
|
|
58730
58792
|
`${apiDeployments}/${deployment.id || deployment.deploymentId}${teamId ? `?teamId=${teamId}` : ""}`,
|
|
58731
58793
|
token,
|
|
58732
58794
|
{ apiUrl: apiUrl2, userAgent: userAgent2, agent: clientOptions.agent }
|
|
@@ -58835,11 +58897,11 @@ var require_deploy = __commonJS2({
|
|
|
58835
58897
|
var import_query_string = require_query_string();
|
|
58836
58898
|
var import_ready_state = require_ready_state();
|
|
58837
58899
|
var import_check_deployment_status = require_check_deployment_status();
|
|
58838
|
-
var
|
|
58900
|
+
var import_utils6 = require_utils14();
|
|
58839
58901
|
async function* postDeployment(files, clientOptions, deploymentOptions) {
|
|
58840
|
-
const debug2 = (0,
|
|
58841
|
-
const preparedFiles = (0,
|
|
58842
|
-
const apiDeployments = (0,
|
|
58902
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
58903
|
+
const preparedFiles = (0, import_utils6.prepareFiles)(files, clientOptions);
|
|
58904
|
+
const apiDeployments = (0, import_utils6.getApiDeploymentsUrl)();
|
|
58843
58905
|
if (deploymentOptions?.builds && !deploymentOptions.functions) {
|
|
58844
58906
|
clientOptions.skipAutoDetectionConfirmation = true;
|
|
58845
58907
|
}
|
|
@@ -58852,7 +58914,7 @@ var require_deploy = __commonJS2({
|
|
|
58852
58914
|
}
|
|
58853
58915
|
debug2("Sending deployment creation API request");
|
|
58854
58916
|
try {
|
|
58855
|
-
const response = await (0,
|
|
58917
|
+
const response = await (0, import_utils6.fetch)(
|
|
58856
58918
|
`${apiDeployments}${(0, import_query_string.generateQueryString)(clientOptions)}`,
|
|
58857
58919
|
clientOptions.token,
|
|
58858
58920
|
{
|
|
@@ -58906,7 +58968,7 @@ var require_deploy = __commonJS2({
|
|
|
58906
58968
|
}
|
|
58907
58969
|
}
|
|
58908
58970
|
function getDefaultName(files, clientOptions) {
|
|
58909
|
-
const debug2 = (0,
|
|
58971
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
58910
58972
|
const { isDirectory: isDirectory2, path: path11 } = clientOptions;
|
|
58911
58973
|
if (isDirectory2 && typeof path11 === "string") {
|
|
58912
58974
|
debug2("Provided path is a directory. Using last segment as default name");
|
|
@@ -58920,7 +58982,7 @@ var require_deploy = __commonJS2({
|
|
|
58920
58982
|
}
|
|
58921
58983
|
}
|
|
58922
58984
|
async function* deploy(files, clientOptions, deploymentOptions) {
|
|
58923
|
-
const debug2 = (0,
|
|
58985
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
58924
58986
|
if (!deploymentOptions.name) {
|
|
58925
58987
|
deploymentOptions.version = 2;
|
|
58926
58988
|
deploymentOptions.name = files.size === 1 ? "file" : getDefaultName(files, clientOptions);
|
|
@@ -59023,7 +59085,7 @@ var require_upload = __commonJS2({
|
|
|
59023
59085
|
var import_node_events = require("events");
|
|
59024
59086
|
var import_async_retry6 = __toESM4(require_lib10());
|
|
59025
59087
|
var import_async_sema = require_lib9();
|
|
59026
|
-
var
|
|
59088
|
+
var import_utils6 = require_utils14();
|
|
59027
59089
|
var import_errors4 = require_errors2();
|
|
59028
59090
|
var import_deploy2 = require_deploy();
|
|
59029
59091
|
var isClientNetworkError = (err) => {
|
|
@@ -59034,7 +59096,7 @@ var require_upload = __commonJS2({
|
|
|
59034
59096
|
};
|
|
59035
59097
|
async function* upload(files, clientOptions, deploymentOptions) {
|
|
59036
59098
|
const { token, teamId, apiUrl: apiUrl2, userAgent: userAgent2 } = clientOptions;
|
|
59037
|
-
const debug2 = (0,
|
|
59099
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
59038
59100
|
if (!files && !token && !teamId) {
|
|
59039
59101
|
debug2(`Neither 'files', 'token' nor 'teamId are present. Exiting`);
|
|
59040
59102
|
return;
|
|
@@ -59109,8 +59171,8 @@ var require_upload = __commonJS2({
|
|
|
59109
59171
|
const abortController = new AbortController();
|
|
59110
59172
|
abortControllers.add(abortController);
|
|
59111
59173
|
try {
|
|
59112
|
-
const res = await (0,
|
|
59113
|
-
|
|
59174
|
+
const res = await (0, import_utils6.fetch)(
|
|
59175
|
+
import_utils6.API_FILES,
|
|
59114
59176
|
token,
|
|
59115
59177
|
{
|
|
59116
59178
|
agent: clientOptions.agent || defaultAgent,
|
|
@@ -63392,7 +63454,7 @@ var require_create_deployment = __commonJS2({
|
|
|
63392
63454
|
var import_path41 = require("path");
|
|
63393
63455
|
var import_hashes = require_hashes();
|
|
63394
63456
|
var import_upload = require_upload();
|
|
63395
|
-
var
|
|
63457
|
+
var import_utils6 = require_utils14();
|
|
63396
63458
|
var import_errors4 = require_errors2();
|
|
63397
63459
|
var import_error_utils38 = require_dist2();
|
|
63398
63460
|
var import_build_utils18 = require("@vercel/build-utils");
|
|
@@ -63401,7 +63463,7 @@ var require_create_deployment = __commonJS2({
|
|
|
63401
63463
|
function buildCreateDeployment() {
|
|
63402
63464
|
return async function* createDeployment2(clientOptions, deploymentOptions = {}) {
|
|
63403
63465
|
const { path: path11 } = clientOptions;
|
|
63404
|
-
const debug2 = (0,
|
|
63466
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
63405
63467
|
debug2("Creating deployment...");
|
|
63406
63468
|
if (typeof path11 !== "string" && !Array.isArray(path11)) {
|
|
63407
63469
|
debug2(
|
|
@@ -63444,7 +63506,7 @@ var require_create_deployment = __commonJS2({
|
|
|
63444
63506
|
} else {
|
|
63445
63507
|
debug2(`Provided 'path' is a single file`);
|
|
63446
63508
|
}
|
|
63447
|
-
const { fileList } = await (0,
|
|
63509
|
+
const { fileList } = await (0, import_utils6.buildFileTree)(path11, clientOptions, debug2);
|
|
63448
63510
|
if (fileList.length === 0) {
|
|
63449
63511
|
debug2("Deployment path has no files. Yielding a warning event");
|
|
63450
63512
|
yield {
|
|
@@ -63529,12 +63591,12 @@ var require_types2 = __commonJS2({
|
|
|
63529
63591
|
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
|
63530
63592
|
var types_exports = {};
|
|
63531
63593
|
__export4(types_exports, {
|
|
63532
|
-
DeploymentEventType: () =>
|
|
63594
|
+
DeploymentEventType: () => import_utils6.DeploymentEventType,
|
|
63533
63595
|
VALID_ARCHIVE_FORMATS: () => VALID_ARCHIVE_FORMATS4,
|
|
63534
63596
|
fileNameSymbol: () => fileNameSymbol8
|
|
63535
63597
|
});
|
|
63536
63598
|
module2.exports = __toCommonJS4(types_exports);
|
|
63537
|
-
var
|
|
63599
|
+
var import_utils6 = require_utils14();
|
|
63538
63600
|
var VALID_ARCHIVE_FORMATS4 = ["tgz"];
|
|
63539
63601
|
var fileNameSymbol8 = Symbol("fileName");
|
|
63540
63602
|
}
|
|
@@ -63574,15 +63636,15 @@ var require_dist7 = __commonJS2({
|
|
|
63574
63636
|
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
|
63575
63637
|
var src_exports2 = {};
|
|
63576
63638
|
__export4(src_exports2, {
|
|
63577
|
-
buildFileTree: () =>
|
|
63639
|
+
buildFileTree: () => import_utils6.buildFileTree,
|
|
63578
63640
|
checkDeploymentStatus: () => import_check_deployment_status.checkDeploymentStatus,
|
|
63579
63641
|
createDeployment: () => createDeployment2,
|
|
63580
|
-
getVercelIgnore: () =>
|
|
63642
|
+
getVercelIgnore: () => import_utils6.getVercelIgnore
|
|
63581
63643
|
});
|
|
63582
63644
|
module2.exports = __toCommonJS4(src_exports2);
|
|
63583
63645
|
var import_create_deployment = __toESM4(require_create_deployment());
|
|
63584
63646
|
var import_check_deployment_status = require_check_deployment_status();
|
|
63585
|
-
var
|
|
63647
|
+
var import_utils6 = require_utils14();
|
|
63586
63648
|
__reExport(src_exports2, require_errors2(), module2.exports);
|
|
63587
63649
|
__reExport(src_exports2, require_types2(), module2.exports);
|
|
63588
63650
|
var createDeployment2 = (0, import_create_deployment.default)();
|
|
@@ -94739,7 +94801,7 @@ var require_cross_spawn = __commonJS2({
|
|
|
94739
94801
|
var cp = require("child_process");
|
|
94740
94802
|
var parse11 = require_parse4();
|
|
94741
94803
|
var enoent = require_enoent();
|
|
94742
|
-
function
|
|
94804
|
+
function spawn5(command, args2, options) {
|
|
94743
94805
|
const parsed = parse11(command, args2, options);
|
|
94744
94806
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
94745
94807
|
enoent.hookChildProcess(spawned, parsed);
|
|
@@ -94751,8 +94813,8 @@ var require_cross_spawn = __commonJS2({
|
|
|
94751
94813
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
94752
94814
|
return result;
|
|
94753
94815
|
}
|
|
94754
|
-
module2.exports =
|
|
94755
|
-
module2.exports.spawn =
|
|
94816
|
+
module2.exports = spawn5;
|
|
94817
|
+
module2.exports.spawn = spawn5;
|
|
94756
94818
|
module2.exports.sync = spawnSync;
|
|
94757
94819
|
module2.exports._parse = parse11;
|
|
94758
94820
|
module2.exports._enoent = enoent;
|
|
@@ -101714,7 +101776,7 @@ var init_list3 = __esm({
|
|
|
101714
101776
|
init_get_command_flags();
|
|
101715
101777
|
init_get_args();
|
|
101716
101778
|
init_get_flags_specification();
|
|
101717
|
-
|
|
101779
|
+
init_command38();
|
|
101718
101780
|
init_pkg_name();
|
|
101719
101781
|
init_list2();
|
|
101720
101782
|
init_error2();
|
|
@@ -101951,7 +102013,7 @@ var init_put2 = __esm({
|
|
|
101951
102013
|
blob2 = __toESM3(require("@vercel/blob"));
|
|
101952
102014
|
init_get_args();
|
|
101953
102015
|
init_get_flags_specification();
|
|
101954
|
-
|
|
102016
|
+
init_command38();
|
|
101955
102017
|
import_node_fs = require("fs");
|
|
101956
102018
|
import_promises = require("fs/promises");
|
|
101957
102019
|
import_error_utils10 = __toESM3(require_dist2());
|
|
@@ -102025,7 +102087,7 @@ var init_del2 = __esm({
|
|
|
102025
102087
|
blob3 = __toESM3(require("@vercel/blob"));
|
|
102026
102088
|
init_get_args();
|
|
102027
102089
|
init_get_flags_specification();
|
|
102028
|
-
|
|
102090
|
+
init_command38();
|
|
102029
102091
|
init_del();
|
|
102030
102092
|
init_error2();
|
|
102031
102093
|
init_pkg_name();
|
|
@@ -102144,7 +102206,7 @@ var init_copy2 = __esm({
|
|
|
102144
102206
|
blob4 = __toESM3(require("@vercel/blob"));
|
|
102145
102207
|
init_get_args();
|
|
102146
102208
|
init_get_flags_specification();
|
|
102147
|
-
|
|
102209
|
+
init_command38();
|
|
102148
102210
|
init_copy();
|
|
102149
102211
|
init_pkg_name();
|
|
102150
102212
|
}
|
|
@@ -117196,15 +117258,15 @@ var require_frameworks = __commonJS2({
|
|
|
117196
117258
|
some: [
|
|
117197
117259
|
{
|
|
117198
117260
|
path: "requirements.txt",
|
|
117199
|
-
matchContent: "
|
|
117261
|
+
matchContent: "[Ff]lask"
|
|
117200
117262
|
},
|
|
117201
117263
|
{
|
|
117202
117264
|
path: "pyproject.toml",
|
|
117203
|
-
matchContent: "
|
|
117265
|
+
matchContent: "[Ff]lask"
|
|
117204
117266
|
},
|
|
117205
117267
|
{
|
|
117206
117268
|
path: "Pipfile",
|
|
117207
|
-
matchContent: "
|
|
117269
|
+
matchContent: "[Ff]lask"
|
|
117208
117270
|
}
|
|
117209
117271
|
]
|
|
117210
117272
|
},
|
|
@@ -121477,7 +121539,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121477
121539
|
});
|
|
121478
121540
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
|
121479
121541
|
var import_semver4 = __toESM4(require_semver2());
|
|
121480
|
-
var
|
|
121542
|
+
var import__103 = require_dist20();
|
|
121481
121543
|
async function detectFileSystemAPI2({
|
|
121482
121544
|
files,
|
|
121483
121545
|
projectSettings,
|
|
@@ -121543,7 +121605,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121543
121605
|
};
|
|
121544
121606
|
}
|
|
121545
121607
|
const invalidBuilder = builders.find(({ use }) => {
|
|
121546
|
-
const valid = (0,
|
|
121608
|
+
const valid = (0, import__103.isOfficialRuntime)("go", use) || (0, import__103.isOfficialRuntime)("python", use) || (0, import__103.isOfficialRuntime)("ruby", use) || (0, import__103.isOfficialRuntime)("node", use) || (0, import__103.isOfficialRuntime)("next", use) || (0, import__103.isOfficialRuntime)("static", use) || (0, import__103.isOfficialRuntime)("static-build", use);
|
|
121547
121609
|
return !valid;
|
|
121548
121610
|
});
|
|
121549
121611
|
if (invalidBuilder) {
|
|
@@ -121556,7 +121618,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121556
121618
|
for (const lang of ["go", "python", "ruby"]) {
|
|
121557
121619
|
for (const { use } of builders) {
|
|
121558
121620
|
const plugin = "vercel-plugin-" + lang;
|
|
121559
|
-
if ((0,
|
|
121621
|
+
if ((0, import__103.isOfficialRuntime)(lang, use) && !deps[plugin]) {
|
|
121560
121622
|
return {
|
|
121561
121623
|
metadata,
|
|
121562
121624
|
fsApiBuilder: null,
|
|
@@ -121613,7 +121675,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121613
121675
|
}
|
|
121614
121676
|
}
|
|
121615
121677
|
const frontendBuilder = builders.find(
|
|
121616
|
-
({ use }) => (0,
|
|
121678
|
+
({ use }) => (0, import__103.isOfficialRuntime)("next", use) || (0, import__103.isOfficialRuntime)("static", use) || (0, import__103.isOfficialRuntime)("static-build", use)
|
|
121617
121679
|
);
|
|
121618
121680
|
const config2 = frontendBuilder?.config || {};
|
|
121619
121681
|
const withTag = tag ? `@${tag}` : "";
|
|
@@ -121664,7 +121726,7 @@ var require_detect_framework = __commonJS2({
|
|
|
121664
121726
|
removeSupersededFrameworks: () => removeSupersededFrameworks
|
|
121665
121727
|
});
|
|
121666
121728
|
module2.exports = __toCommonJS4(detect_framework_exports);
|
|
121667
|
-
var
|
|
121729
|
+
var import_child_process7 = require("child_process");
|
|
121668
121730
|
async function matches(fs15, framework) {
|
|
121669
121731
|
const { detectors } = framework;
|
|
121670
121732
|
if (!detectors) {
|
|
@@ -121841,7 +121903,7 @@ var require_detect_framework = __commonJS2({
|
|
|
121841
121903
|
function lookupInstalledVersion(cwd, packageName2) {
|
|
121842
121904
|
try {
|
|
121843
121905
|
const script = `require('${packageName2}/package.json').version`;
|
|
121844
|
-
return (0,
|
|
121906
|
+
return (0, import_child_process7.spawnSync)(cwd, ["-p", script], {
|
|
121845
121907
|
encoding: "utf-8"
|
|
121846
121908
|
}).stdout.trim();
|
|
121847
121909
|
} catch (error3) {
|
|
@@ -129618,7 +129680,7 @@ var init_store_add2 = __esm({
|
|
|
129618
129680
|
init_pkg_name();
|
|
129619
129681
|
init_get_flags_specification();
|
|
129620
129682
|
init_get_args();
|
|
129621
|
-
|
|
129683
|
+
init_command38();
|
|
129622
129684
|
init_store_add();
|
|
129623
129685
|
init_error2();
|
|
129624
129686
|
}
|
|
@@ -129694,7 +129756,7 @@ var init_store_remove = __esm({
|
|
|
129694
129756
|
init_error2();
|
|
129695
129757
|
init_output_manager();
|
|
129696
129758
|
init_get_flags_specification();
|
|
129697
|
-
|
|
129759
|
+
init_command38();
|
|
129698
129760
|
init_get_args();
|
|
129699
129761
|
init_link2();
|
|
129700
129762
|
}
|
|
@@ -132118,7 +132180,7 @@ var init_store_get2 = __esm({
|
|
|
132118
132180
|
init_get_args();
|
|
132119
132181
|
init_get_flags_specification();
|
|
132120
132182
|
init_link2();
|
|
132121
|
-
|
|
132183
|
+
init_command38();
|
|
132122
132184
|
import_date_fns = __toESM3(require_date_fns());
|
|
132123
132185
|
import_chalk43 = __toESM3(require_source());
|
|
132124
132186
|
init_store_get();
|
|
@@ -132197,7 +132259,7 @@ var init_store2 = __esm({
|
|
|
132197
132259
|
init_get_invalid_subcommand();
|
|
132198
132260
|
init_get_subcommand();
|
|
132199
132261
|
init_help();
|
|
132200
|
-
|
|
132262
|
+
init_command38();
|
|
132201
132263
|
init_get_flags_specification();
|
|
132202
132264
|
init_output_manager();
|
|
132203
132265
|
init_commands();
|
|
@@ -132355,7 +132417,7 @@ var init_token = __esm({
|
|
|
132355
132417
|
import_node_path2 = require("path");
|
|
132356
132418
|
init_diff_env_files();
|
|
132357
132419
|
init_get_flags_specification();
|
|
132358
|
-
|
|
132420
|
+
init_command38();
|
|
132359
132421
|
init_get_args();
|
|
132360
132422
|
init_pkg_name();
|
|
132361
132423
|
init_cmd();
|
|
@@ -132473,7 +132535,7 @@ var init_blob2 = __esm({
|
|
|
132473
132535
|
init_get_subcommand();
|
|
132474
132536
|
init_help();
|
|
132475
132537
|
init_list3();
|
|
132476
|
-
|
|
132538
|
+
init_command38();
|
|
132477
132539
|
init_get_flags_specification();
|
|
132478
132540
|
init_output_manager();
|
|
132479
132541
|
init_commands();
|
|
@@ -148274,7 +148336,7 @@ var init_pull4 = __esm({
|
|
|
148274
148336
|
init_ensure_link();
|
|
148275
148337
|
init_humanize_path();
|
|
148276
148338
|
init_help();
|
|
148277
|
-
|
|
148339
|
+
init_command29();
|
|
148278
148340
|
init_parse_target();
|
|
148279
148341
|
init_get_flags_specification();
|
|
148280
148342
|
init_error2();
|
|
@@ -150586,6 +150648,61 @@ var init_certs2 = __esm({
|
|
|
150586
150648
|
}
|
|
150587
150649
|
});
|
|
150588
150650
|
|
|
150651
|
+
// src/commands/curl/utils.ts
|
|
150652
|
+
var requoteArgs;
|
|
150653
|
+
var init_utils3 = __esm({
|
|
150654
|
+
"src/commands/curl/utils.ts"() {
|
|
150655
|
+
"use strict";
|
|
150656
|
+
requoteArgs = (arg2) => {
|
|
150657
|
+
if (arg2.includes(" ")) {
|
|
150658
|
+
if (arg2.includes('"')) {
|
|
150659
|
+
return `'${arg2}'`;
|
|
150660
|
+
} else {
|
|
150661
|
+
return `"${arg2}"`;
|
|
150662
|
+
}
|
|
150663
|
+
}
|
|
150664
|
+
return arg2;
|
|
150665
|
+
};
|
|
150666
|
+
}
|
|
150667
|
+
});
|
|
150668
|
+
|
|
150669
|
+
// src/util/telemetry/commands/curl/index.ts
|
|
150670
|
+
var CurlTelemetryClient;
|
|
150671
|
+
var init_curl = __esm({
|
|
150672
|
+
"src/util/telemetry/commands/curl/index.ts"() {
|
|
150673
|
+
"use strict";
|
|
150674
|
+
init_telemetry();
|
|
150675
|
+
CurlTelemetryClient = class extends TelemetryClient {
|
|
150676
|
+
trackCliArgumentPath(path11) {
|
|
150677
|
+
if (path11) {
|
|
150678
|
+
const value = path11.startsWith("/") ? "slash" : "no-slash";
|
|
150679
|
+
this.trackCliArgument({
|
|
150680
|
+
arg: "path",
|
|
150681
|
+
value
|
|
150682
|
+
});
|
|
150683
|
+
}
|
|
150684
|
+
}
|
|
150685
|
+
trackCliOptionDeployment(deploymentId) {
|
|
150686
|
+
if (deploymentId) {
|
|
150687
|
+
const value = deploymentId.startsWith("dpl_") ? "dpl_" : "no-prefix";
|
|
150688
|
+
this.trackCliOption({
|
|
150689
|
+
option: "deployment",
|
|
150690
|
+
value
|
|
150691
|
+
});
|
|
150692
|
+
}
|
|
150693
|
+
}
|
|
150694
|
+
trackCliOptionProtectionBypass(secret) {
|
|
150695
|
+
if (secret) {
|
|
150696
|
+
this.trackCliOption({
|
|
150697
|
+
option: "protection-bypass",
|
|
150698
|
+
value: this.redactedValue
|
|
150699
|
+
});
|
|
150700
|
+
}
|
|
150701
|
+
}
|
|
150702
|
+
};
|
|
150703
|
+
}
|
|
150704
|
+
});
|
|
150705
|
+
|
|
150589
150706
|
// src/commands/curl/bypass-token.ts
|
|
150590
150707
|
async function createDeploymentProtectionToken(client2, projectId, orgId) {
|
|
150591
150708
|
if (!client2.authConfig.token) {
|
|
@@ -150712,75 +150829,11 @@ var init_deployment_url = __esm({
|
|
|
150712
150829
|
}
|
|
150713
150830
|
});
|
|
150714
150831
|
|
|
150715
|
-
// src/commands/curl/
|
|
150716
|
-
|
|
150717
|
-
var init_utils3 = __esm({
|
|
150718
|
-
"src/commands/curl/utils.ts"() {
|
|
150719
|
-
"use strict";
|
|
150720
|
-
requoteArgs = (arg2) => {
|
|
150721
|
-
if (arg2.includes(" ")) {
|
|
150722
|
-
if (arg2.includes('"')) {
|
|
150723
|
-
return `'${arg2}'`;
|
|
150724
|
-
} else {
|
|
150725
|
-
return `"${arg2}"`;
|
|
150726
|
-
}
|
|
150727
|
-
}
|
|
150728
|
-
return arg2;
|
|
150729
|
-
};
|
|
150730
|
-
}
|
|
150731
|
-
});
|
|
150732
|
-
|
|
150733
|
-
// src/util/telemetry/commands/curl/index.ts
|
|
150734
|
-
var CurlTelemetryClient;
|
|
150735
|
-
var init_curl = __esm({
|
|
150736
|
-
"src/util/telemetry/commands/curl/index.ts"() {
|
|
150737
|
-
"use strict";
|
|
150738
|
-
init_telemetry();
|
|
150739
|
-
CurlTelemetryClient = class extends TelemetryClient {
|
|
150740
|
-
trackCliArgumentPath(path11) {
|
|
150741
|
-
if (path11) {
|
|
150742
|
-
const value = path11.startsWith("/") ? "slash" : "no-slash";
|
|
150743
|
-
this.trackCliArgument({
|
|
150744
|
-
arg: "path",
|
|
150745
|
-
value
|
|
150746
|
-
});
|
|
150747
|
-
}
|
|
150748
|
-
}
|
|
150749
|
-
trackCliOptionDeployment(deploymentId) {
|
|
150750
|
-
if (deploymentId) {
|
|
150751
|
-
const value = deploymentId.startsWith("dpl_") ? "dpl_" : "no-prefix";
|
|
150752
|
-
this.trackCliOption({
|
|
150753
|
-
option: "deployment",
|
|
150754
|
-
value
|
|
150755
|
-
});
|
|
150756
|
-
}
|
|
150757
|
-
}
|
|
150758
|
-
trackCliOptionProtectionBypass(secret) {
|
|
150759
|
-
if (secret) {
|
|
150760
|
-
this.trackCliOption({
|
|
150761
|
-
option: "protection-bypass",
|
|
150762
|
-
value: this.redactedValue
|
|
150763
|
-
});
|
|
150764
|
-
}
|
|
150765
|
-
}
|
|
150766
|
-
};
|
|
150767
|
-
}
|
|
150768
|
-
});
|
|
150769
|
-
|
|
150770
|
-
// src/commands/curl/index.ts
|
|
150771
|
-
var curl_exports = {};
|
|
150772
|
-
__export3(curl_exports, {
|
|
150773
|
-
default: () => curl
|
|
150774
|
-
});
|
|
150775
|
-
async function curl(client2) {
|
|
150832
|
+
// src/commands/curl/shared.ts
|
|
150833
|
+
function setupCurlLikeCommand(client2, command, telemetryClient) {
|
|
150776
150834
|
const { print } = output_manager_default;
|
|
150777
|
-
const telemetryClient = new CurlTelemetryClient({
|
|
150778
|
-
opts: {
|
|
150779
|
-
store: client2.telemetryEventStore
|
|
150780
|
-
}
|
|
150781
|
-
});
|
|
150782
150835
|
let parsedArgs = null;
|
|
150783
|
-
const flagsSpecification = getFlagsSpecification(
|
|
150836
|
+
const flagsSpecification = getFlagsSpecification(command.options);
|
|
150784
150837
|
try {
|
|
150785
150838
|
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
|
150786
150839
|
} catch (err) {
|
|
@@ -150789,10 +150842,10 @@ async function curl(client2) {
|
|
|
150789
150842
|
}
|
|
150790
150843
|
const { flags } = parsedArgs;
|
|
150791
150844
|
if (parsedArgs.flags["--help"]) {
|
|
150792
|
-
print(help(
|
|
150845
|
+
print(help(command, { columns: client2.stderr.columns }));
|
|
150793
150846
|
return 2;
|
|
150794
150847
|
}
|
|
150795
|
-
if (parsedArgs.args[0] ===
|
|
150848
|
+
if (parsedArgs.args[0] === command.name) {
|
|
150796
150849
|
parsedArgs.args.shift();
|
|
150797
150850
|
}
|
|
150798
150851
|
const separatorIndex = process.argv.indexOf("--");
|
|
@@ -150806,17 +150859,26 @@ async function curl(client2) {
|
|
|
150806
150859
|
if (protectionBypassFlag) {
|
|
150807
150860
|
telemetryClient.trackCliOptionProtectionBypass(protectionBypassFlag);
|
|
150808
150861
|
}
|
|
150809
|
-
if (!path11 || path11 === "--" || path11.startsWith("
|
|
150862
|
+
if (!path11 || path11 === "--" || path11.startsWith("-")) {
|
|
150810
150863
|
output_manager_default.error(
|
|
150811
|
-
`${getCommandName(
|
|
150864
|
+
`${getCommandName(`${command.name} <path>`)} requires an API path (e.g., '/' or '/api/hello' or 'api/hello')`
|
|
150812
150865
|
);
|
|
150813
|
-
print(help(
|
|
150866
|
+
print(help(command, { columns: client2.stderr.columns }));
|
|
150814
150867
|
return 1;
|
|
150815
150868
|
}
|
|
150816
|
-
const
|
|
150869
|
+
const toolFlags = separatorIndex !== -1 ? process.argv.slice(separatorIndex + 1) : [];
|
|
150817
150870
|
output_manager_default.debug(
|
|
150818
|
-
|
|
150871
|
+
`${command.name} flags (${toolFlags.length} args): ${JSON.stringify(toolFlags)}`
|
|
150819
150872
|
);
|
|
150873
|
+
return {
|
|
150874
|
+
path: path11,
|
|
150875
|
+
deploymentFlag,
|
|
150876
|
+
protectionBypassFlag,
|
|
150877
|
+
toolFlags
|
|
150878
|
+
};
|
|
150879
|
+
}
|
|
150880
|
+
async function getDeploymentUrlAndToken(client2, commandName, path11, options) {
|
|
150881
|
+
const { deploymentFlag, protectionBypassFlag } = options;
|
|
150820
150882
|
let link4;
|
|
150821
150883
|
try {
|
|
150822
150884
|
await getScope(client2);
|
|
@@ -150828,7 +150890,7 @@ async function curl(client2) {
|
|
|
150828
150890
|
throw err;
|
|
150829
150891
|
}
|
|
150830
150892
|
try {
|
|
150831
|
-
link4 = await ensureLink(
|
|
150893
|
+
link4 = await ensureLink(commandName, client2, client2.cwd);
|
|
150832
150894
|
} catch (err) {
|
|
150833
150895
|
if ((0, import_error_utils18.isErrnoException)(err) && err.code === "NOT_AUTHORIZED") {
|
|
150834
150896
|
output_manager_default.error(err.message);
|
|
@@ -150876,12 +150938,63 @@ async function curl(client2) {
|
|
|
150876
150938
|
);
|
|
150877
150939
|
return 1;
|
|
150878
150940
|
}
|
|
150879
|
-
|
|
150880
|
-
|
|
150881
|
-
|
|
150882
|
-
|
|
150883
|
-
|
|
150941
|
+
}
|
|
150942
|
+
return {
|
|
150943
|
+
fullUrl,
|
|
150944
|
+
deploymentProtectionToken,
|
|
150945
|
+
link: link4
|
|
150946
|
+
};
|
|
150947
|
+
}
|
|
150948
|
+
var import_chalk63, import_error_utils18;
|
|
150949
|
+
var init_shared = __esm({
|
|
150950
|
+
"src/commands/curl/shared.ts"() {
|
|
150951
|
+
"use strict";
|
|
150952
|
+
import_chalk63 = __toESM3(require_source());
|
|
150953
|
+
import_error_utils18 = __toESM3(require_dist2());
|
|
150954
|
+
init_output_manager();
|
|
150955
|
+
init_ensure_link();
|
|
150956
|
+
init_get_scope();
|
|
150957
|
+
init_bypass_token();
|
|
150958
|
+
init_link2();
|
|
150959
|
+
init_deployment_url();
|
|
150960
|
+
init_get_args();
|
|
150961
|
+
init_get_flags_specification();
|
|
150962
|
+
init_error2();
|
|
150963
|
+
init_help();
|
|
150964
|
+
init_pkg_name();
|
|
150965
|
+
}
|
|
150966
|
+
});
|
|
150967
|
+
|
|
150968
|
+
// src/commands/curl/index.ts
|
|
150969
|
+
var curl_exports = {};
|
|
150970
|
+
__export3(curl_exports, {
|
|
150971
|
+
default: () => curl
|
|
150972
|
+
});
|
|
150973
|
+
async function curl(client2) {
|
|
150974
|
+
const telemetryClient = new CurlTelemetryClient({
|
|
150975
|
+
opts: {
|
|
150976
|
+
store: client2.telemetryEventStore
|
|
150884
150977
|
}
|
|
150978
|
+
});
|
|
150979
|
+
const setup = setupCurlLikeCommand(client2, curlCommand, telemetryClient);
|
|
150980
|
+
if (typeof setup === "number") {
|
|
150981
|
+
return setup;
|
|
150982
|
+
}
|
|
150983
|
+
const { path: path11, deploymentFlag, protectionBypassFlag, toolFlags } = setup;
|
|
150984
|
+
const result = await getDeploymentUrlAndToken(client2, "curl", path11, {
|
|
150985
|
+
deploymentFlag,
|
|
150986
|
+
protectionBypassFlag
|
|
150987
|
+
});
|
|
150988
|
+
if (typeof result === "number") {
|
|
150989
|
+
return result;
|
|
150990
|
+
}
|
|
150991
|
+
const { fullUrl, deploymentProtectionToken } = result;
|
|
150992
|
+
const curlFlags = [...toolFlags];
|
|
150993
|
+
if (deploymentProtectionToken) {
|
|
150994
|
+
curlFlags.unshift(
|
|
150995
|
+
"--header",
|
|
150996
|
+
`x-vercel-protection-bypass: ${deploymentProtectionToken}`
|
|
150997
|
+
);
|
|
150885
150998
|
}
|
|
150886
150999
|
curlFlags.unshift("--url", fullUrl);
|
|
150887
151000
|
output_manager_default.debug(`Executing: curl ${curlFlags.map(requoteArgs).join(" ")}`);
|
|
@@ -150904,27 +151017,16 @@ async function curl(client2) {
|
|
|
150904
151017
|
});
|
|
150905
151018
|
});
|
|
150906
151019
|
}
|
|
150907
|
-
var
|
|
151020
|
+
var import_child_process3;
|
|
150908
151021
|
var init_curl2 = __esm({
|
|
150909
151022
|
"src/commands/curl/index.ts"() {
|
|
150910
151023
|
"use strict";
|
|
150911
|
-
import_chalk63 = __toESM3(require_source());
|
|
150912
151024
|
import_child_process3 = require("child_process");
|
|
150913
|
-
import_error_utils18 = __toESM3(require_dist2());
|
|
150914
|
-
init_get_args();
|
|
150915
|
-
init_get_flags_specification();
|
|
150916
|
-
init_error2();
|
|
150917
|
-
init_help();
|
|
150918
151025
|
init_command6();
|
|
150919
151026
|
init_output_manager();
|
|
150920
|
-
init_ensure_link();
|
|
150921
|
-
init_get_scope();
|
|
150922
|
-
init_pkg_name();
|
|
150923
|
-
init_bypass_token();
|
|
150924
|
-
init_link2();
|
|
150925
|
-
init_deployment_url();
|
|
150926
151027
|
init_utils3();
|
|
150927
151028
|
init_curl();
|
|
151029
|
+
init_shared();
|
|
150928
151030
|
}
|
|
150929
151031
|
});
|
|
150930
151032
|
|
|
@@ -151490,7 +151592,7 @@ var init_logs = __esm({
|
|
|
151490
151592
|
import_split2 = __toESM3(require_split2());
|
|
151491
151593
|
import_url11 = require("url");
|
|
151492
151594
|
init_events();
|
|
151493
|
-
|
|
151595
|
+
init_command24();
|
|
151494
151596
|
init_output_manager();
|
|
151495
151597
|
runtimeLogSpinnerMessage = `waiting for new logs...`;
|
|
151496
151598
|
dateTimeFormat = "HH:mm:ss.SS";
|
|
@@ -169855,7 +169957,7 @@ var require_tree_kill = __commonJS2({
|
|
|
169855
169957
|
"../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js"(exports2, module2) {
|
|
169856
169958
|
"use strict";
|
|
169857
169959
|
var childProcess = require("child_process");
|
|
169858
|
-
var
|
|
169960
|
+
var spawn5 = childProcess.spawn;
|
|
169859
169961
|
var exec2 = childProcess.exec;
|
|
169860
169962
|
module2.exports = function(pid, signal, callback) {
|
|
169861
169963
|
if (typeof signal === "function" && callback === void 0) {
|
|
@@ -169880,14 +169982,14 @@ var require_tree_kill = __commonJS2({
|
|
|
169880
169982
|
break;
|
|
169881
169983
|
case "darwin":
|
|
169882
169984
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
169883
|
-
return
|
|
169985
|
+
return spawn5("pgrep", ["-P", parentPid]);
|
|
169884
169986
|
}, function() {
|
|
169885
169987
|
killAll(tree, signal, callback);
|
|
169886
169988
|
});
|
|
169887
169989
|
break;
|
|
169888
169990
|
default:
|
|
169889
169991
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
169890
|
-
return
|
|
169992
|
+
return spawn5("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
|
|
169891
169993
|
}, function() {
|
|
169892
169994
|
killAll(tree, signal, callback);
|
|
169893
169995
|
});
|
|
@@ -177963,6 +178065,119 @@ var init_guidance2 = __esm({
|
|
|
177963
178065
|
}
|
|
177964
178066
|
});
|
|
177965
178067
|
|
|
178068
|
+
// src/util/telemetry/commands/httpstat/index.ts
|
|
178069
|
+
var HttpstatTelemetryClient;
|
|
178070
|
+
var init_httpstat = __esm({
|
|
178071
|
+
"src/util/telemetry/commands/httpstat/index.ts"() {
|
|
178072
|
+
"use strict";
|
|
178073
|
+
init_telemetry();
|
|
178074
|
+
HttpstatTelemetryClient = class extends TelemetryClient {
|
|
178075
|
+
trackCliArgumentPath(path11) {
|
|
178076
|
+
if (path11) {
|
|
178077
|
+
const value = path11.startsWith("/") ? "slash" : "no-slash";
|
|
178078
|
+
this.trackCliArgument({
|
|
178079
|
+
arg: "path",
|
|
178080
|
+
value
|
|
178081
|
+
});
|
|
178082
|
+
}
|
|
178083
|
+
}
|
|
178084
|
+
trackCliOptionDeployment(deploymentId) {
|
|
178085
|
+
if (deploymentId) {
|
|
178086
|
+
const value = deploymentId.startsWith("dpl_") ? "dpl_" : "no-prefix";
|
|
178087
|
+
this.trackCliOption({
|
|
178088
|
+
option: "deployment",
|
|
178089
|
+
value
|
|
178090
|
+
});
|
|
178091
|
+
}
|
|
178092
|
+
}
|
|
178093
|
+
trackCliOptionProtectionBypass(secret) {
|
|
178094
|
+
if (secret) {
|
|
178095
|
+
this.trackCliOption({
|
|
178096
|
+
option: "protection-bypass",
|
|
178097
|
+
value: this.redactedValue
|
|
178098
|
+
});
|
|
178099
|
+
}
|
|
178100
|
+
}
|
|
178101
|
+
};
|
|
178102
|
+
}
|
|
178103
|
+
});
|
|
178104
|
+
|
|
178105
|
+
// src/commands/httpstat/index.ts
|
|
178106
|
+
var httpstat_exports = {};
|
|
178107
|
+
__export3(httpstat_exports, {
|
|
178108
|
+
default: () => httpstat
|
|
178109
|
+
});
|
|
178110
|
+
async function httpstat(client2) {
|
|
178111
|
+
const telemetryClient = new HttpstatTelemetryClient({
|
|
178112
|
+
opts: {
|
|
178113
|
+
store: client2.telemetryEventStore
|
|
178114
|
+
}
|
|
178115
|
+
});
|
|
178116
|
+
const setup = setupCurlLikeCommand(client2, httpstatCommand, telemetryClient);
|
|
178117
|
+
if (typeof setup === "number") {
|
|
178118
|
+
return setup;
|
|
178119
|
+
}
|
|
178120
|
+
const { path: path11, deploymentFlag, protectionBypassFlag, toolFlags } = setup;
|
|
178121
|
+
const result = await getDeploymentUrlAndToken(client2, "httpstat", path11, {
|
|
178122
|
+
deploymentFlag,
|
|
178123
|
+
protectionBypassFlag
|
|
178124
|
+
});
|
|
178125
|
+
if (typeof result === "number") {
|
|
178126
|
+
return result;
|
|
178127
|
+
}
|
|
178128
|
+
const { fullUrl, deploymentProtectionToken } = result;
|
|
178129
|
+
const httpstatFlags = [...toolFlags];
|
|
178130
|
+
if (deploymentProtectionToken) {
|
|
178131
|
+
httpstatFlags.unshift(
|
|
178132
|
+
"-H",
|
|
178133
|
+
`x-vercel-protection-bypass: ${deploymentProtectionToken}`
|
|
178134
|
+
);
|
|
178135
|
+
}
|
|
178136
|
+
httpstatFlags.unshift(fullUrl);
|
|
178137
|
+
output_manager_default.debug(
|
|
178138
|
+
`Executing: httpstat ${httpstatFlags.map(requoteArgs).join(" ")}`
|
|
178139
|
+
);
|
|
178140
|
+
return new Promise((resolve13) => {
|
|
178141
|
+
const httpstatProcess = (0, import_child_process5.spawn)("httpstat", httpstatFlags, {
|
|
178142
|
+
stdio: "inherit",
|
|
178143
|
+
shell: false
|
|
178144
|
+
});
|
|
178145
|
+
httpstatProcess.on("error", (err) => {
|
|
178146
|
+
if ("code" in err && err.code === "ENOENT") {
|
|
178147
|
+
output_manager_default.error("httpstat command not found. Please install httpstat.");
|
|
178148
|
+
output_manager_default.log("");
|
|
178149
|
+
output_manager_default.log("Installation instructions:");
|
|
178150
|
+
output_manager_default.log(" macOS: brew install httpstat");
|
|
178151
|
+
output_manager_default.log(" pip: pip install httpstat");
|
|
178152
|
+
output_manager_default.log(" npm: npm install -g httpstat");
|
|
178153
|
+
output_manager_default.log("");
|
|
178154
|
+
output_manager_default.log(
|
|
178155
|
+
"Or visit: https://github.com/reorx/httpstat for more details"
|
|
178156
|
+
);
|
|
178157
|
+
resolve13(1);
|
|
178158
|
+
} else {
|
|
178159
|
+
output_manager_default.error(`Failed to execute httpstat: ${err.message}`);
|
|
178160
|
+
resolve13(1);
|
|
178161
|
+
}
|
|
178162
|
+
});
|
|
178163
|
+
httpstatProcess.on("close", (code2) => {
|
|
178164
|
+
resolve13(code2 ?? 1);
|
|
178165
|
+
});
|
|
178166
|
+
});
|
|
178167
|
+
}
|
|
178168
|
+
var import_child_process5;
|
|
178169
|
+
var init_httpstat2 = __esm({
|
|
178170
|
+
"src/commands/httpstat/index.ts"() {
|
|
178171
|
+
"use strict";
|
|
178172
|
+
import_child_process5 = require("child_process");
|
|
178173
|
+
init_command14();
|
|
178174
|
+
init_output_manager();
|
|
178175
|
+
init_utils3();
|
|
178176
|
+
init_httpstat();
|
|
178177
|
+
init_shared();
|
|
178178
|
+
}
|
|
178179
|
+
});
|
|
178180
|
+
|
|
177966
178181
|
// ../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js
|
|
177967
178182
|
var require_jaro_winkler = __commonJS2({
|
|
177968
178183
|
"../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js"(exports2, module2) {
|
|
@@ -178315,7 +178530,7 @@ var init_init3 = __esm({
|
|
|
178315
178530
|
init_init();
|
|
178316
178531
|
import_error_utils26 = __toESM3(require_dist2());
|
|
178317
178532
|
init_help();
|
|
178318
|
-
|
|
178533
|
+
init_command15();
|
|
178319
178534
|
init_get_flags_specification();
|
|
178320
178535
|
init_output_manager();
|
|
178321
178536
|
init_init2();
|
|
@@ -178912,7 +179127,7 @@ var init_inspect4 = __esm({
|
|
|
178912
179127
|
init_pkg_name();
|
|
178913
179128
|
init_sleep();
|
|
178914
179129
|
init_help();
|
|
178915
|
-
|
|
179130
|
+
init_command16();
|
|
178916
179131
|
init_output_manager();
|
|
178917
179132
|
init_inspect3();
|
|
178918
179133
|
}
|
|
@@ -179755,7 +179970,7 @@ var init_install2 = __esm({
|
|
|
179755
179970
|
init_get_args();
|
|
179756
179971
|
init_help();
|
|
179757
179972
|
init_add10();
|
|
179758
|
-
|
|
179973
|
+
init_command17();
|
|
179759
179974
|
init_output_manager();
|
|
179760
179975
|
init_install();
|
|
179761
179976
|
}
|
|
@@ -180270,7 +180485,7 @@ var init_list6 = __esm({
|
|
|
180270
180485
|
init_get_scope();
|
|
180271
180486
|
init_link2();
|
|
180272
180487
|
init_get_resources();
|
|
180273
|
-
|
|
180488
|
+
init_command19();
|
|
180274
180489
|
init_get_flags_specification();
|
|
180275
180490
|
init_get_args();
|
|
180276
180491
|
init_error2();
|
|
@@ -180486,7 +180701,7 @@ var init_remove_integration2 = __esm({
|
|
|
180486
180701
|
init_error2();
|
|
180487
180702
|
init_fetch_marketplace_integrations();
|
|
180488
180703
|
init_remove_integration();
|
|
180489
|
-
|
|
180704
|
+
init_command19();
|
|
180490
180705
|
init_remove3();
|
|
180491
180706
|
}
|
|
180492
180707
|
});
|
|
@@ -180596,7 +180811,7 @@ var init_integration2 = __esm({
|
|
|
180596
180811
|
init_help();
|
|
180597
180812
|
init_add10();
|
|
180598
180813
|
init_balance2();
|
|
180599
|
-
|
|
180814
|
+
init_command19();
|
|
180600
180815
|
init_list6();
|
|
180601
180816
|
init_open_integration();
|
|
180602
180817
|
init_remove_integration2();
|
|
@@ -181007,7 +181222,7 @@ var init_create_threshold2 = __esm({
|
|
|
181007
181222
|
init_get_flags_specification();
|
|
181008
181223
|
init_get_resources();
|
|
181009
181224
|
init_create_threshold();
|
|
181010
|
-
|
|
181225
|
+
init_command18();
|
|
181011
181226
|
init_get_scope();
|
|
181012
181227
|
init_fetch_installation_prepayment_info();
|
|
181013
181228
|
init_update_threshold();
|
|
@@ -181268,7 +181483,7 @@ var init_disconnect4 = __esm({
|
|
|
181268
181483
|
init_link2();
|
|
181269
181484
|
init_disconnect3();
|
|
181270
181485
|
init_types();
|
|
181271
|
-
|
|
181486
|
+
init_command18();
|
|
181272
181487
|
}
|
|
181273
181488
|
});
|
|
181274
181489
|
|
|
@@ -181431,7 +181646,7 @@ var init_remove_resource = __esm({
|
|
|
181431
181646
|
init_get_resources();
|
|
181432
181647
|
init_types();
|
|
181433
181648
|
init_remove4();
|
|
181434
|
-
|
|
181649
|
+
init_command18();
|
|
181435
181650
|
init_disconnect4();
|
|
181436
181651
|
}
|
|
181437
181652
|
});
|
|
@@ -181517,7 +181732,7 @@ var init_integration_resource2 = __esm({
|
|
|
181517
181732
|
init_get_subcommand();
|
|
181518
181733
|
init_integration_resource();
|
|
181519
181734
|
init_help();
|
|
181520
|
-
|
|
181735
|
+
init_command18();
|
|
181521
181736
|
init_create_threshold2();
|
|
181522
181737
|
init_disconnect4();
|
|
181523
181738
|
init_remove_resource();
|
|
@@ -181642,7 +181857,7 @@ var init_link4 = __esm({
|
|
|
181642
181857
|
init_ensure_link();
|
|
181643
181858
|
init_repo();
|
|
181644
181859
|
init_help();
|
|
181645
|
-
|
|
181860
|
+
init_command20();
|
|
181646
181861
|
init_get_flags_specification();
|
|
181647
181862
|
init_error2();
|
|
181648
181863
|
init_output_manager();
|
|
@@ -182056,7 +182271,7 @@ var init_list8 = __esm({
|
|
|
182056
182271
|
init_errors_ts();
|
|
182057
182272
|
import_error_utils28 = __toESM3(require_dist2());
|
|
182058
182273
|
init_help();
|
|
182059
|
-
|
|
182274
|
+
init_command21();
|
|
182060
182275
|
init_parse_target();
|
|
182061
182276
|
init_get_flags_specification();
|
|
182062
182277
|
init_get_deployment();
|
|
@@ -182261,7 +182476,7 @@ var init_logs3 = __esm({
|
|
|
182261
182476
|
init_logs2();
|
|
182262
182477
|
init_help();
|
|
182263
182478
|
init_list8();
|
|
182264
|
-
|
|
182479
|
+
init_command24();
|
|
182265
182480
|
init_output_manager();
|
|
182266
182481
|
deprecatedFlags = [
|
|
182267
182482
|
"--follow",
|
|
@@ -182285,7 +182500,7 @@ function getAvailableClients() {
|
|
|
182285
182500
|
}
|
|
182286
182501
|
function safeExecSync(command, options = {}) {
|
|
182287
182502
|
try {
|
|
182288
|
-
return (0,
|
|
182503
|
+
return (0, import_child_process6.execSync)(command, {
|
|
182289
182504
|
stdio: "pipe",
|
|
182290
182505
|
encoding: "utf8",
|
|
182291
182506
|
...options
|
|
@@ -182453,11 +182668,11 @@ async function mcp(client2) {
|
|
|
182453
182668
|
const oneClickUrl = `cursor://anysphere.cursor-deeplink/mcp/install?name=${serverName}&config=${encodedConfig}`;
|
|
182454
182669
|
try {
|
|
182455
182670
|
if (process.platform === "darwin") {
|
|
182456
|
-
(0,
|
|
182671
|
+
(0, import_child_process6.execSync)(`open '${oneClickUrl}'`);
|
|
182457
182672
|
} else if (process.platform === "win32") {
|
|
182458
|
-
(0,
|
|
182673
|
+
(0, import_child_process6.execSync)(`start ${oneClickUrl}`);
|
|
182459
182674
|
} else {
|
|
182460
|
-
(0,
|
|
182675
|
+
(0, import_child_process6.execSync)(`xdg-open '${oneClickUrl}'`);
|
|
182461
182676
|
}
|
|
182462
182677
|
summary.push("\u2705 Cursor: One-click installer opened");
|
|
182463
182678
|
output_manager_default.print("\u2139\uFE0F Follow the prompts in Cursor to complete setup\n");
|
|
@@ -182535,11 +182750,11 @@ async function mcp(client2) {
|
|
|
182535
182750
|
const oneClickUrl = `vscode:mcp/install?${encodedConfig}`;
|
|
182536
182751
|
try {
|
|
182537
182752
|
if (process.platform === "darwin") {
|
|
182538
|
-
(0,
|
|
182753
|
+
(0, import_child_process6.execSync)(`open '${oneClickUrl}'`);
|
|
182539
182754
|
} else if (process.platform === "win32") {
|
|
182540
|
-
(0,
|
|
182755
|
+
(0, import_child_process6.execSync)(`start ${oneClickUrl}`);
|
|
182541
182756
|
} else {
|
|
182542
|
-
(0,
|
|
182757
|
+
(0, import_child_process6.execSync)(`xdg-open '${oneClickUrl}'`);
|
|
182543
182758
|
}
|
|
182544
182759
|
summary.push("\u2705 VS Code: One-click installer opened");
|
|
182545
182760
|
output_manager_default.print("\u2139\uFE0F Follow the prompts in VS Code to complete setup\n");
|
|
@@ -182573,12 +182788,12 @@ async function mcp(client2) {
|
|
|
182573
182788
|
output_manager_default.print("\u2728 Setup complete! Restart your clients if needed.\n");
|
|
182574
182789
|
return 0;
|
|
182575
182790
|
}
|
|
182576
|
-
var
|
|
182791
|
+
var import_child_process6, MCP_ENDPOINT;
|
|
182577
182792
|
var init_mcp = __esm({
|
|
182578
182793
|
"src/commands/mcp/mcp.ts"() {
|
|
182579
182794
|
"use strict";
|
|
182580
182795
|
init_output_manager();
|
|
182581
|
-
|
|
182796
|
+
import_child_process6 = require("child_process");
|
|
182582
182797
|
init_link2();
|
|
182583
182798
|
MCP_ENDPOINT = "https://mcp.vercel.com";
|
|
182584
182799
|
}
|
|
@@ -182618,7 +182833,7 @@ var init_mcp2 = __esm({
|
|
|
182618
182833
|
init_get_args();
|
|
182619
182834
|
init_error2();
|
|
182620
182835
|
init_help();
|
|
182621
|
-
|
|
182836
|
+
init_command25();
|
|
182622
182837
|
init_get_flags_specification();
|
|
182623
182838
|
init_output_manager();
|
|
182624
182839
|
init_mcp();
|
|
@@ -182765,7 +182980,7 @@ var init_logout2 = __esm({
|
|
|
182765
182980
|
init_errors_ts();
|
|
182766
182981
|
import_error_utils31 = __toESM3(require_dist2());
|
|
182767
182982
|
init_help();
|
|
182768
|
-
|
|
182983
|
+
init_command23();
|
|
182769
182984
|
init_get_flags_specification();
|
|
182770
182985
|
init_output_manager();
|
|
182771
182986
|
init_logout();
|
|
@@ -182866,7 +183081,7 @@ var init_pull5 = __esm({
|
|
|
182866
183081
|
init_humanize_path();
|
|
182867
183082
|
init_stamp();
|
|
182868
183083
|
import_fs_extra23 = __toESM3(require_lib());
|
|
182869
|
-
|
|
183084
|
+
init_command26();
|
|
182870
183085
|
init_get_flags_specification();
|
|
182871
183086
|
init_get_args();
|
|
182872
183087
|
init_error2();
|
|
@@ -182961,7 +183176,7 @@ var init_microfrontends2 = __esm({
|
|
|
182961
183176
|
init_error2();
|
|
182962
183177
|
init_help();
|
|
182963
183178
|
init_pull5();
|
|
182964
|
-
|
|
183179
|
+
init_command26();
|
|
182965
183180
|
init_get_flags_specification();
|
|
182966
183181
|
init_output_manager();
|
|
182967
183182
|
init_commands();
|
|
@@ -183060,7 +183275,7 @@ var init_add12 = __esm({
|
|
|
183060
183275
|
init_create_project();
|
|
183061
183276
|
init_output_manager();
|
|
183062
183277
|
init_add11();
|
|
183063
|
-
|
|
183278
|
+
init_command27();
|
|
183064
183279
|
init_get_args();
|
|
183065
183280
|
init_get_flags_specification();
|
|
183066
183281
|
init_error2();
|
|
@@ -183217,7 +183432,7 @@ var init_inspect6 = __esm({
|
|
|
183217
183432
|
init_pkg_name();
|
|
183218
183433
|
init_inspect5();
|
|
183219
183434
|
init_output_manager();
|
|
183220
|
-
|
|
183435
|
+
init_command27();
|
|
183221
183436
|
init_get_args();
|
|
183222
183437
|
init_get_flags_specification();
|
|
183223
183438
|
init_error2();
|
|
@@ -183408,7 +183623,7 @@ var init_list10 = __esm({
|
|
|
183408
183623
|
init_pkg_name();
|
|
183409
183624
|
init_list9();
|
|
183410
183625
|
init_output_manager();
|
|
183411
|
-
|
|
183626
|
+
init_command27();
|
|
183412
183627
|
init_get_args();
|
|
183413
183628
|
init_get_flags_specification();
|
|
183414
183629
|
init_error2();
|
|
@@ -183525,7 +183740,7 @@ var init_rm10 = __esm({
|
|
|
183525
183740
|
init_get_args();
|
|
183526
183741
|
init_get_flags_specification();
|
|
183527
183742
|
init_error2();
|
|
183528
|
-
|
|
183743
|
+
init_command27();
|
|
183529
183744
|
e = encodeURIComponent;
|
|
183530
183745
|
}
|
|
183531
183746
|
});
|
|
@@ -183652,7 +183867,7 @@ var init_project2 = __esm({
|
|
|
183652
183867
|
init_inspect6();
|
|
183653
183868
|
init_list10();
|
|
183654
183869
|
init_rm10();
|
|
183655
|
-
|
|
183870
|
+
init_command27();
|
|
183656
183871
|
init_get_flags_specification();
|
|
183657
183872
|
init_project();
|
|
183658
183873
|
init_output_manager();
|
|
@@ -184115,7 +184330,7 @@ var init_promote2 = __esm({
|
|
|
184115
184330
|
import_error_utils32 = __toESM3(require_dist2());
|
|
184116
184331
|
init_request_promote();
|
|
184117
184332
|
init_status2();
|
|
184118
|
-
|
|
184333
|
+
init_command28();
|
|
184119
184334
|
init_help();
|
|
184120
184335
|
init_get_flags_specification();
|
|
184121
184336
|
init_promote();
|
|
@@ -184509,7 +184724,7 @@ var init_redeploy2 = __esm({
|
|
|
184509
184724
|
init_stamp();
|
|
184510
184725
|
init_ua();
|
|
184511
184726
|
init_help();
|
|
184512
|
-
|
|
184727
|
+
init_command30();
|
|
184513
184728
|
init_get_flags_specification();
|
|
184514
184729
|
init_output_manager();
|
|
184515
184730
|
init_redeploy();
|
|
@@ -184896,7 +185111,7 @@ var init_remove6 = __esm({
|
|
|
184896
185111
|
init_error2();
|
|
184897
185112
|
init_now_error();
|
|
184898
185113
|
init_help();
|
|
184899
|
-
|
|
185114
|
+
init_command31();
|
|
184900
185115
|
init_get_flags_specification();
|
|
184901
185116
|
init_remove5();
|
|
184902
185117
|
init_output_manager();
|
|
@@ -185169,7 +185384,7 @@ var init_rollback2 = __esm({
|
|
|
185169
185384
|
init_request_rollback();
|
|
185170
185385
|
init_status3();
|
|
185171
185386
|
init_help();
|
|
185172
|
-
|
|
185387
|
+
init_command32();
|
|
185173
185388
|
init_get_flags_specification();
|
|
185174
185389
|
init_rollback();
|
|
185175
185390
|
init_output_manager();
|
|
@@ -185745,7 +185960,7 @@ var init_rolling_release2 = __esm({
|
|
|
185745
185960
|
init_get_args();
|
|
185746
185961
|
init_get_flags_specification();
|
|
185747
185962
|
init_help();
|
|
185748
|
-
|
|
185963
|
+
init_command33();
|
|
185749
185964
|
init_request_rolling_release();
|
|
185750
185965
|
init_start_rolling_release();
|
|
185751
185966
|
init_configure_rolling_release();
|
|
@@ -185877,7 +186092,7 @@ var init_list11 = __esm({
|
|
|
185877
186092
|
import_chalk127 = __toESM3(require_source());
|
|
185878
186093
|
init_table();
|
|
185879
186094
|
init_output_manager();
|
|
185880
|
-
|
|
186095
|
+
init_command34();
|
|
185881
186096
|
init_pkg_name();
|
|
185882
186097
|
init_ensure_link();
|
|
185883
186098
|
init_format_project();
|
|
@@ -185970,7 +186185,7 @@ var init_target2 = __esm({
|
|
|
185970
186185
|
init_get_invalid_subcommand();
|
|
185971
186186
|
init_help();
|
|
185972
186187
|
init_list11();
|
|
185973
|
-
|
|
186188
|
+
init_command34();
|
|
185974
186189
|
init_get_flags_specification();
|
|
185975
186190
|
init_error2();
|
|
185976
186191
|
init_output_manager();
|
|
@@ -186117,7 +186332,7 @@ var init_list13 = __esm({
|
|
|
186117
186332
|
init_get_args();
|
|
186118
186333
|
init_error2();
|
|
186119
186334
|
init_get_flags_specification();
|
|
186120
|
-
|
|
186335
|
+
init_command35();
|
|
186121
186336
|
init_output_manager();
|
|
186122
186337
|
init_list12();
|
|
186123
186338
|
}
|
|
@@ -186316,7 +186531,7 @@ var init_invite2 = __esm({
|
|
|
186316
186531
|
init_get_args();
|
|
186317
186532
|
init_get_flags_specification();
|
|
186318
186533
|
init_error2();
|
|
186319
|
-
|
|
186534
|
+
init_command35();
|
|
186320
186535
|
validateEmail = (data) => email.test(data.trim()) || data.length === 0;
|
|
186321
186536
|
domains = Array.from(
|
|
186322
186537
|
/* @__PURE__ */ new Set([
|
|
@@ -186617,7 +186832,7 @@ var init_switch2 = __esm({
|
|
|
186617
186832
|
init_files();
|
|
186618
186833
|
init_output_manager();
|
|
186619
186834
|
init_switch();
|
|
186620
|
-
|
|
186835
|
+
init_command35();
|
|
186621
186836
|
init_get_args();
|
|
186622
186837
|
init_get_flags_specification();
|
|
186623
186838
|
init_error2();
|
|
@@ -186769,7 +186984,7 @@ var init_teams2 = __esm({
|
|
|
186769
186984
|
init_switch2();
|
|
186770
186985
|
init_invite2();
|
|
186771
186986
|
init_get_args();
|
|
186772
|
-
|
|
186987
|
+
init_command35();
|
|
186773
186988
|
init_help();
|
|
186774
186989
|
init_get_flags_specification();
|
|
186775
186990
|
init_error2();
|
|
@@ -187010,7 +187225,7 @@ var init_telemetry3 = __esm({
|
|
|
187010
187225
|
init_enable2();
|
|
187011
187226
|
init_disable2();
|
|
187012
187227
|
init_flush();
|
|
187013
|
-
|
|
187228
|
+
init_command36();
|
|
187014
187229
|
init_get_flags_specification();
|
|
187015
187230
|
init_telemetry2();
|
|
187016
187231
|
import_chalk133 = __toESM3(require_source());
|
|
@@ -187073,7 +187288,7 @@ var init_whoami2 = __esm({
|
|
|
187073
187288
|
"src/commands/whoami/index.ts"() {
|
|
187074
187289
|
"use strict";
|
|
187075
187290
|
init_help();
|
|
187076
|
-
|
|
187291
|
+
init_command37();
|
|
187077
187292
|
init_get_scope();
|
|
187078
187293
|
init_get_args();
|
|
187079
187294
|
init_get_flags_specification();
|
|
@@ -187580,6 +187795,12 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
|
187580
187795
|
value: actual
|
|
187581
187796
|
});
|
|
187582
187797
|
}
|
|
187798
|
+
trackCliCommandHttpstat(actual) {
|
|
187799
|
+
this.trackCliCommand({
|
|
187800
|
+
command: "httpstat",
|
|
187801
|
+
value: actual
|
|
187802
|
+
});
|
|
187803
|
+
}
|
|
187583
187804
|
trackCliCommandInit(actual) {
|
|
187584
187805
|
this.trackCliCommand({
|
|
187585
187806
|
command: "init",
|
|
@@ -188419,6 +188640,10 @@ var main17 = async () => {
|
|
|
188419
188640
|
func = null;
|
|
188420
188641
|
break;
|
|
188421
188642
|
}
|
|
188643
|
+
case "httpstat":
|
|
188644
|
+
telemetry2.trackCliCommandHttpstat(userSuppliedSubCommand);
|
|
188645
|
+
func = (init_httpstat2(), __toCommonJS3(httpstat_exports)).default;
|
|
188646
|
+
break;
|
|
188422
188647
|
case "init":
|
|
188423
188648
|
telemetry2.trackCliCommandInit(userSuppliedSubCommand);
|
|
188424
188649
|
func = (init_init3(), __toCommonJS3(init_exports)).default;
|