vercel 48.8.2 → 48.9.1
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 +489 -240
- package/package.json +18 -17
package/dist/index.js
CHANGED
|
@@ -31962,8 +31962,8 @@ var init_command6 = __esm({
|
|
|
31962
31962
|
shorthand: null,
|
|
31963
31963
|
type: String,
|
|
31964
31964
|
deprecated: false,
|
|
31965
|
-
description: "The deployment ID to target",
|
|
31966
|
-
argument: "ID"
|
|
31965
|
+
description: "The deployment ID or URL to target",
|
|
31966
|
+
argument: "ID|URL"
|
|
31967
31967
|
},
|
|
31968
31968
|
{
|
|
31969
31969
|
name: "protection-bypass",
|
|
@@ -31987,6 +31987,10 @@ var init_command6 = __esm({
|
|
|
31987
31987
|
name: "Target a specific deployment by ID",
|
|
31988
31988
|
value: `${packageName} curl /api/status --deployment ERiL45NJvP8ghWxgbvCM447bmxwV`
|
|
31989
31989
|
},
|
|
31990
|
+
{
|
|
31991
|
+
name: "Target a specific deployment by URL",
|
|
31992
|
+
value: `${packageName} curl /api/status --deployment https://your-project-abc123.vercel.app`
|
|
31993
|
+
},
|
|
31990
31994
|
{
|
|
31991
31995
|
name: "Use curl flags after the separator",
|
|
31992
31996
|
value: `${packageName} curl /api/test -- --header "Content-Type: application/json" --request PUT`
|
|
@@ -32913,9 +32917,69 @@ var init_command13 = __esm({
|
|
|
32913
32917
|
}
|
|
32914
32918
|
});
|
|
32915
32919
|
|
|
32920
|
+
// src/commands/httpstat/command.ts
|
|
32921
|
+
var httpstatCommand;
|
|
32922
|
+
var init_command14 = __esm({
|
|
32923
|
+
"src/commands/httpstat/command.ts"() {
|
|
32924
|
+
"use strict";
|
|
32925
|
+
init_pkg_name();
|
|
32926
|
+
httpstatCommand = {
|
|
32927
|
+
name: "httpstat",
|
|
32928
|
+
aliases: [],
|
|
32929
|
+
description: "Execute httpstat with automatic deployment URL and protection bypass to visualize HTTP timing statistics.",
|
|
32930
|
+
arguments: [
|
|
32931
|
+
{
|
|
32932
|
+
name: "path",
|
|
32933
|
+
required: true
|
|
32934
|
+
}
|
|
32935
|
+
],
|
|
32936
|
+
options: [
|
|
32937
|
+
{
|
|
32938
|
+
name: "deployment",
|
|
32939
|
+
shorthand: null,
|
|
32940
|
+
type: String,
|
|
32941
|
+
deprecated: false,
|
|
32942
|
+
description: "The deployment ID or URL to target",
|
|
32943
|
+
argument: "ID|URL"
|
|
32944
|
+
},
|
|
32945
|
+
{
|
|
32946
|
+
name: "protection-bypass",
|
|
32947
|
+
shorthand: null,
|
|
32948
|
+
type: String,
|
|
32949
|
+
deprecated: false,
|
|
32950
|
+
description: "Protection bypass secret for accessing protected deployments",
|
|
32951
|
+
argument: "SECRET"
|
|
32952
|
+
}
|
|
32953
|
+
],
|
|
32954
|
+
examples: [
|
|
32955
|
+
{
|
|
32956
|
+
name: "Visualize timing for a GET request to an API endpoint",
|
|
32957
|
+
value: `${packageName} httpstat /api/hello`
|
|
32958
|
+
},
|
|
32959
|
+
{
|
|
32960
|
+
name: "Make a POST request with data and see timing details",
|
|
32961
|
+
value: `${packageName} httpstat /api/users -- -X POST -d '{"name": "John"}'`
|
|
32962
|
+
},
|
|
32963
|
+
{
|
|
32964
|
+
name: "Target a specific deployment by ID",
|
|
32965
|
+
value: `${packageName} httpstat /api/status --deployment ERiL45NJvP8ghWxgbvCM447bmxwV`
|
|
32966
|
+
},
|
|
32967
|
+
{
|
|
32968
|
+
name: "Use curl flags after the separator",
|
|
32969
|
+
value: `${packageName} httpstat /api/test -- -H "Content-Type: application/json" -X PUT`
|
|
32970
|
+
},
|
|
32971
|
+
{
|
|
32972
|
+
name: "Use with protection bypass secret",
|
|
32973
|
+
value: `${packageName} httpstat /api/protected --protection-bypass <secret>`
|
|
32974
|
+
}
|
|
32975
|
+
]
|
|
32976
|
+
};
|
|
32977
|
+
}
|
|
32978
|
+
});
|
|
32979
|
+
|
|
32916
32980
|
// src/commands/init/command.ts
|
|
32917
32981
|
var initCommand;
|
|
32918
|
-
var
|
|
32982
|
+
var init_command15 = __esm({
|
|
32919
32983
|
"src/commands/init/command.ts"() {
|
|
32920
32984
|
"use strict";
|
|
32921
32985
|
init_pkg_name();
|
|
@@ -32965,7 +33029,7 @@ var init_command14 = __esm({
|
|
|
32965
33029
|
|
|
32966
33030
|
// src/commands/inspect/command.ts
|
|
32967
33031
|
var inspectCommand;
|
|
32968
|
-
var
|
|
33032
|
+
var init_command16 = __esm({
|
|
32969
33033
|
"src/commands/inspect/command.ts"() {
|
|
32970
33034
|
"use strict";
|
|
32971
33035
|
init_pkg_name();
|
|
@@ -33031,7 +33095,7 @@ var init_command15 = __esm({
|
|
|
33031
33095
|
|
|
33032
33096
|
// src/commands/install/command.ts
|
|
33033
33097
|
var installCommand;
|
|
33034
|
-
var
|
|
33098
|
+
var init_command17 = __esm({
|
|
33035
33099
|
"src/commands/install/command.ts"() {
|
|
33036
33100
|
"use strict";
|
|
33037
33101
|
init_pkg_name();
|
|
@@ -33058,7 +33122,7 @@ var init_command16 = __esm({
|
|
|
33058
33122
|
|
|
33059
33123
|
// src/commands/integration-resource/command.ts
|
|
33060
33124
|
var removeSubcommand6, disconnectSubcommand2, createThresholdSubcommand, integrationResourceCommand;
|
|
33061
|
-
var
|
|
33125
|
+
var init_command18 = __esm({
|
|
33062
33126
|
"src/commands/integration-resource/command.ts"() {
|
|
33063
33127
|
"use strict";
|
|
33064
33128
|
init_arg_common();
|
|
@@ -33209,7 +33273,7 @@ var init_command17 = __esm({
|
|
|
33209
33273
|
|
|
33210
33274
|
// src/commands/integration/command.ts
|
|
33211
33275
|
var addSubcommand5, openSubcommand, listSubcommand6, balanceSubcommand, removeSubcommand7, integrationCommand;
|
|
33212
|
-
var
|
|
33276
|
+
var init_command19 = __esm({
|
|
33213
33277
|
"src/commands/integration/command.ts"() {
|
|
33214
33278
|
"use strict";
|
|
33215
33279
|
init_arg_common();
|
|
@@ -33371,7 +33435,7 @@ var init_command18 = __esm({
|
|
|
33371
33435
|
|
|
33372
33436
|
// src/commands/link/command.ts
|
|
33373
33437
|
var linkCommand;
|
|
33374
|
-
var
|
|
33438
|
+
var init_command20 = __esm({
|
|
33375
33439
|
"src/commands/link/command.ts"() {
|
|
33376
33440
|
"use strict";
|
|
33377
33441
|
init_pkg_name();
|
|
@@ -33427,7 +33491,7 @@ var init_command19 = __esm({
|
|
|
33427
33491
|
|
|
33428
33492
|
// src/commands/list/command.ts
|
|
33429
33493
|
var listCommand;
|
|
33430
|
-
var
|
|
33494
|
+
var init_command21 = __esm({
|
|
33431
33495
|
"src/commands/list/command.ts"() {
|
|
33432
33496
|
"use strict";
|
|
33433
33497
|
init_pkg_name();
|
|
@@ -33513,7 +33577,7 @@ var init_command20 = __esm({
|
|
|
33513
33577
|
|
|
33514
33578
|
// src/commands/login/command.ts
|
|
33515
33579
|
var loginCommand;
|
|
33516
|
-
var
|
|
33580
|
+
var init_command22 = __esm({
|
|
33517
33581
|
"src/commands/login/command.ts"() {
|
|
33518
33582
|
"use strict";
|
|
33519
33583
|
init_pkg_name();
|
|
@@ -33564,7 +33628,7 @@ var init_command21 = __esm({
|
|
|
33564
33628
|
|
|
33565
33629
|
// src/commands/logout/command.ts
|
|
33566
33630
|
var logoutCommand;
|
|
33567
|
-
var
|
|
33631
|
+
var init_command23 = __esm({
|
|
33568
33632
|
"src/commands/logout/command.ts"() {
|
|
33569
33633
|
"use strict";
|
|
33570
33634
|
init_pkg_name();
|
|
@@ -33586,7 +33650,7 @@ var init_command22 = __esm({
|
|
|
33586
33650
|
|
|
33587
33651
|
// src/commands/logs/command.ts
|
|
33588
33652
|
var CommandTimeout, logsCommand;
|
|
33589
|
-
var
|
|
33653
|
+
var init_command24 = __esm({
|
|
33590
33654
|
"src/commands/logs/command.ts"() {
|
|
33591
33655
|
"use strict";
|
|
33592
33656
|
init_pkg_name();
|
|
@@ -33660,7 +33724,7 @@ var init_command23 = __esm({
|
|
|
33660
33724
|
|
|
33661
33725
|
// src/commands/mcp/command.ts
|
|
33662
33726
|
var mcpCommand;
|
|
33663
|
-
var
|
|
33727
|
+
var init_command25 = __esm({
|
|
33664
33728
|
"src/commands/mcp/command.ts"() {
|
|
33665
33729
|
"use strict";
|
|
33666
33730
|
init_pkg_name();
|
|
@@ -33694,7 +33758,7 @@ var init_command24 = __esm({
|
|
|
33694
33758
|
|
|
33695
33759
|
// src/commands/microfrontends/command.ts
|
|
33696
33760
|
var pullSubcommand2, microfrontendsCommand;
|
|
33697
|
-
var
|
|
33761
|
+
var init_command26 = __esm({
|
|
33698
33762
|
"src/commands/microfrontends/command.ts"() {
|
|
33699
33763
|
"use strict";
|
|
33700
33764
|
init_pkg_name();
|
|
@@ -33737,7 +33801,7 @@ var init_command25 = __esm({
|
|
|
33737
33801
|
|
|
33738
33802
|
// src/commands/project/command.ts
|
|
33739
33803
|
var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
|
|
33740
|
-
var
|
|
33804
|
+
var init_command27 = __esm({
|
|
33741
33805
|
"src/commands/project/command.ts"() {
|
|
33742
33806
|
"use strict";
|
|
33743
33807
|
init_pkg_name();
|
|
@@ -33848,7 +33912,7 @@ var init_command26 = __esm({
|
|
|
33848
33912
|
|
|
33849
33913
|
// src/commands/promote/command.ts
|
|
33850
33914
|
var statusSubcommand2, promoteCommand;
|
|
33851
|
-
var
|
|
33915
|
+
var init_command28 = __esm({
|
|
33852
33916
|
"src/commands/promote/command.ts"() {
|
|
33853
33917
|
"use strict";
|
|
33854
33918
|
init_pkg_name();
|
|
@@ -33917,7 +33981,7 @@ var init_command27 = __esm({
|
|
|
33917
33981
|
|
|
33918
33982
|
// src/commands/pull/command.ts
|
|
33919
33983
|
var pullCommand;
|
|
33920
|
-
var
|
|
33984
|
+
var init_command29 = __esm({
|
|
33921
33985
|
"src/commands/pull/command.ts"() {
|
|
33922
33986
|
"use strict";
|
|
33923
33987
|
init_pkg_name();
|
|
@@ -33989,7 +34053,7 @@ var init_command28 = __esm({
|
|
|
33989
34053
|
|
|
33990
34054
|
// src/commands/redeploy/command.ts
|
|
33991
34055
|
var redeployCommand;
|
|
33992
|
-
var
|
|
34056
|
+
var init_command30 = __esm({
|
|
33993
34057
|
"src/commands/redeploy/command.ts"() {
|
|
33994
34058
|
"use strict";
|
|
33995
34059
|
init_pkg_name();
|
|
@@ -34040,7 +34104,7 @@ var init_command29 = __esm({
|
|
|
34040
34104
|
|
|
34041
34105
|
// src/commands/remove/command.ts
|
|
34042
34106
|
var removeCommand;
|
|
34043
|
-
var
|
|
34107
|
+
var init_command31 = __esm({
|
|
34044
34108
|
"src/commands/remove/command.ts"() {
|
|
34045
34109
|
"use strict";
|
|
34046
34110
|
init_pkg_name();
|
|
@@ -34090,7 +34154,7 @@ var init_command30 = __esm({
|
|
|
34090
34154
|
|
|
34091
34155
|
// src/commands/rollback/command.ts
|
|
34092
34156
|
var statusSubcommand3, rollbackCommand;
|
|
34093
|
-
var
|
|
34157
|
+
var init_command32 = __esm({
|
|
34094
34158
|
"src/commands/rollback/command.ts"() {
|
|
34095
34159
|
"use strict";
|
|
34096
34160
|
init_pkg_name();
|
|
@@ -34151,7 +34215,7 @@ var init_command31 = __esm({
|
|
|
34151
34215
|
|
|
34152
34216
|
// src/commands/rolling-release/command.ts
|
|
34153
34217
|
var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
|
|
34154
|
-
var
|
|
34218
|
+
var init_command33 = __esm({
|
|
34155
34219
|
"src/commands/rolling-release/command.ts"() {
|
|
34156
34220
|
"use strict";
|
|
34157
34221
|
init_arg_common();
|
|
@@ -34345,7 +34409,7 @@ var init_command32 = __esm({
|
|
|
34345
34409
|
|
|
34346
34410
|
// src/commands/target/command.ts
|
|
34347
34411
|
var listSubcommand8, targetCommand;
|
|
34348
|
-
var
|
|
34412
|
+
var init_command34 = __esm({
|
|
34349
34413
|
"src/commands/target/command.ts"() {
|
|
34350
34414
|
"use strict";
|
|
34351
34415
|
init_pkg_name();
|
|
@@ -34376,7 +34440,7 @@ var init_command33 = __esm({
|
|
|
34376
34440
|
|
|
34377
34441
|
// src/commands/teams/command.ts
|
|
34378
34442
|
var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
|
|
34379
|
-
var
|
|
34443
|
+
var init_command35 = __esm({
|
|
34380
34444
|
"src/commands/teams/command.ts"() {
|
|
34381
34445
|
"use strict";
|
|
34382
34446
|
init_pkg_name();
|
|
@@ -34467,7 +34531,7 @@ var init_command34 = __esm({
|
|
|
34467
34531
|
|
|
34468
34532
|
// src/commands/telemetry/command.ts
|
|
34469
34533
|
var statusSubcommand4, enableSubcommand2, flushSubcommand, disableSubcommand2, telemetryCommand;
|
|
34470
|
-
var
|
|
34534
|
+
var init_command36 = __esm({
|
|
34471
34535
|
"src/commands/telemetry/command.ts"() {
|
|
34472
34536
|
"use strict";
|
|
34473
34537
|
statusSubcommand4 = {
|
|
@@ -34522,7 +34586,7 @@ var init_command35 = __esm({
|
|
|
34522
34586
|
|
|
34523
34587
|
// src/commands/whoami/command.ts
|
|
34524
34588
|
var whoamiCommand;
|
|
34525
|
-
var
|
|
34589
|
+
var init_command37 = __esm({
|
|
34526
34590
|
"src/commands/whoami/command.ts"() {
|
|
34527
34591
|
"use strict";
|
|
34528
34592
|
init_pkg_name();
|
|
@@ -34544,7 +34608,7 @@ var init_command36 = __esm({
|
|
|
34544
34608
|
|
|
34545
34609
|
// src/commands/blob/command.ts
|
|
34546
34610
|
var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
|
|
34547
|
-
var
|
|
34611
|
+
var init_command38 = __esm({
|
|
34548
34612
|
"src/commands/blob/command.ts"() {
|
|
34549
34613
|
"use strict";
|
|
34550
34614
|
listSubcommand10 = {
|
|
@@ -34844,6 +34908,7 @@ var init_commands = __esm({
|
|
|
34844
34908
|
init_command35();
|
|
34845
34909
|
init_command36();
|
|
34846
34910
|
init_command37();
|
|
34911
|
+
init_command38();
|
|
34847
34912
|
init_output_manager();
|
|
34848
34913
|
commandsStructs = [
|
|
34849
34914
|
aliasCommand,
|
|
@@ -34859,6 +34924,7 @@ var init_commands = __esm({
|
|
|
34859
34924
|
domainsCommand,
|
|
34860
34925
|
envCommand,
|
|
34861
34926
|
gitCommand,
|
|
34927
|
+
httpstatCommand,
|
|
34862
34928
|
initCommand,
|
|
34863
34929
|
inspectCommand,
|
|
34864
34930
|
installCommand,
|
|
@@ -44976,7 +45042,7 @@ var init_login2 = __esm({
|
|
|
44976
45042
|
import_chalk18 = __toESM3(require_source());
|
|
44977
45043
|
init_get_args();
|
|
44978
45044
|
init_help();
|
|
44979
|
-
|
|
45045
|
+
init_command22();
|
|
44980
45046
|
init_get_flags_specification();
|
|
44981
45047
|
init_error2();
|
|
44982
45048
|
init_output_manager();
|
|
@@ -49640,7 +49706,7 @@ var require_package = __commonJS2({
|
|
|
49640
49706
|
"../client/package.json"(exports2, module2) {
|
|
49641
49707
|
module2.exports = {
|
|
49642
49708
|
name: "@vercel/client",
|
|
49643
|
-
version: "17.2.
|
|
49709
|
+
version: "17.2.2",
|
|
49644
49710
|
main: "dist/index.js",
|
|
49645
49711
|
typings: "dist/index.d.ts",
|
|
49646
49712
|
homepage: "https://vercel.com",
|
|
@@ -49679,7 +49745,7 @@ var require_package = __commonJS2({
|
|
|
49679
49745
|
vitest: "2.0.1"
|
|
49680
49746
|
},
|
|
49681
49747
|
dependencies: {
|
|
49682
|
-
"@vercel/build-utils": "
|
|
49748
|
+
"@vercel/build-utils": "13.0.0",
|
|
49683
49749
|
"@vercel/error-utils": "2.0.3",
|
|
49684
49750
|
"@vercel/microfrontends": "1.2.2",
|
|
49685
49751
|
"@vercel/routing-utils": "5.2.1",
|
|
@@ -58074,7 +58140,7 @@ var require_utils14 = __commonJS2({
|
|
|
58074
58140
|
var import_async_sema = require_lib9();
|
|
58075
58141
|
var import_fs_extra25 = require_lib8();
|
|
58076
58142
|
var import_readdir_recursive = __toESM4(require_readdir_recursive());
|
|
58077
|
-
var
|
|
58143
|
+
var import_utils6 = require_utils13();
|
|
58078
58144
|
var semaphore = new import_async_sema.Sema(10);
|
|
58079
58145
|
var API_FILES = "/v2/files";
|
|
58080
58146
|
var EVENTS_ARRAY = [
|
|
@@ -58164,12 +58230,12 @@ var require_utils14 = __commonJS2({
|
|
|
58164
58230
|
})
|
|
58165
58231
|
);
|
|
58166
58232
|
try {
|
|
58167
|
-
let microfrontendConfigPath = (0,
|
|
58233
|
+
let microfrontendConfigPath = (0, import_utils6.findConfig)({
|
|
58168
58234
|
dir: (0, import_path41.join)(path11, rootDirectory || "")
|
|
58169
58235
|
});
|
|
58170
58236
|
if (!microfrontendConfigPath && !rootDirectory && projectName) {
|
|
58171
|
-
microfrontendConfigPath = (0,
|
|
58172
|
-
dir: (0,
|
|
58237
|
+
microfrontendConfigPath = (0, import_utils6.findConfig)({
|
|
58238
|
+
dir: (0, import_utils6.inferMicrofrontendsLocation)({
|
|
58173
58239
|
repositoryRoot: path11,
|
|
58174
58240
|
applicationName: projectName
|
|
58175
58241
|
})
|
|
@@ -58707,7 +58773,7 @@ var require_check_deployment_status = __commonJS2({
|
|
|
58707
58773
|
});
|
|
58708
58774
|
module2.exports = __toCommonJS4(check_deployment_status_exports);
|
|
58709
58775
|
var import_sleep_promise = __toESM4(require_cjs6());
|
|
58710
|
-
var
|
|
58776
|
+
var import_utils6 = require_utils14();
|
|
58711
58777
|
var import_get_polling_delay = require_get_polling_delay();
|
|
58712
58778
|
var import_ready_state = require_ready_state();
|
|
58713
58779
|
var import_utils22 = require_utils14();
|
|
@@ -58715,7 +58781,7 @@ var require_check_deployment_status = __commonJS2({
|
|
|
58715
58781
|
const { token, teamId, apiUrl: apiUrl2, userAgent: userAgent2 } = clientOptions;
|
|
58716
58782
|
const debug2 = (0, import_utils22.createDebug)(clientOptions.debug);
|
|
58717
58783
|
let deploymentState = deployment;
|
|
58718
|
-
const apiDeployments = (0,
|
|
58784
|
+
const apiDeployments = (0, import_utils6.getApiDeploymentsUrl)();
|
|
58719
58785
|
if ((0, import_ready_state.isDone)(deploymentState) && (0, import_ready_state.isAliasAssigned)(deploymentState)) {
|
|
58720
58786
|
debug2(
|
|
58721
58787
|
`Deployment is already READY and aliases are assigned. Not running status checks`
|
|
@@ -58726,7 +58792,7 @@ var require_check_deployment_status = __commonJS2({
|
|
|
58726
58792
|
const finishedEvents = /* @__PURE__ */ new Set();
|
|
58727
58793
|
const startTime = Date.now();
|
|
58728
58794
|
while (true) {
|
|
58729
|
-
const deploymentData = await (0,
|
|
58795
|
+
const deploymentData = await (0, import_utils6.fetch)(
|
|
58730
58796
|
`${apiDeployments}/${deployment.id || deployment.deploymentId}${teamId ? `?teamId=${teamId}` : ""}`,
|
|
58731
58797
|
token,
|
|
58732
58798
|
{ apiUrl: apiUrl2, userAgent: userAgent2, agent: clientOptions.agent }
|
|
@@ -58835,11 +58901,11 @@ var require_deploy = __commonJS2({
|
|
|
58835
58901
|
var import_query_string = require_query_string();
|
|
58836
58902
|
var import_ready_state = require_ready_state();
|
|
58837
58903
|
var import_check_deployment_status = require_check_deployment_status();
|
|
58838
|
-
var
|
|
58904
|
+
var import_utils6 = require_utils14();
|
|
58839
58905
|
async function* postDeployment(files, clientOptions, deploymentOptions) {
|
|
58840
|
-
const debug2 = (0,
|
|
58841
|
-
const preparedFiles = (0,
|
|
58842
|
-
const apiDeployments = (0,
|
|
58906
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
58907
|
+
const preparedFiles = (0, import_utils6.prepareFiles)(files, clientOptions);
|
|
58908
|
+
const apiDeployments = (0, import_utils6.getApiDeploymentsUrl)();
|
|
58843
58909
|
if (deploymentOptions?.builds && !deploymentOptions.functions) {
|
|
58844
58910
|
clientOptions.skipAutoDetectionConfirmation = true;
|
|
58845
58911
|
}
|
|
@@ -58852,7 +58918,7 @@ var require_deploy = __commonJS2({
|
|
|
58852
58918
|
}
|
|
58853
58919
|
debug2("Sending deployment creation API request");
|
|
58854
58920
|
try {
|
|
58855
|
-
const response = await (0,
|
|
58921
|
+
const response = await (0, import_utils6.fetch)(
|
|
58856
58922
|
`${apiDeployments}${(0, import_query_string.generateQueryString)(clientOptions)}`,
|
|
58857
58923
|
clientOptions.token,
|
|
58858
58924
|
{
|
|
@@ -58906,7 +58972,7 @@ var require_deploy = __commonJS2({
|
|
|
58906
58972
|
}
|
|
58907
58973
|
}
|
|
58908
58974
|
function getDefaultName(files, clientOptions) {
|
|
58909
|
-
const debug2 = (0,
|
|
58975
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
58910
58976
|
const { isDirectory: isDirectory2, path: path11 } = clientOptions;
|
|
58911
58977
|
if (isDirectory2 && typeof path11 === "string") {
|
|
58912
58978
|
debug2("Provided path is a directory. Using last segment as default name");
|
|
@@ -58920,7 +58986,7 @@ var require_deploy = __commonJS2({
|
|
|
58920
58986
|
}
|
|
58921
58987
|
}
|
|
58922
58988
|
async function* deploy(files, clientOptions, deploymentOptions) {
|
|
58923
|
-
const debug2 = (0,
|
|
58989
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
58924
58990
|
if (!deploymentOptions.name) {
|
|
58925
58991
|
deploymentOptions.version = 2;
|
|
58926
58992
|
deploymentOptions.name = files.size === 1 ? "file" : getDefaultName(files, clientOptions);
|
|
@@ -59023,7 +59089,7 @@ var require_upload = __commonJS2({
|
|
|
59023
59089
|
var import_node_events = require("events");
|
|
59024
59090
|
var import_async_retry6 = __toESM4(require_lib10());
|
|
59025
59091
|
var import_async_sema = require_lib9();
|
|
59026
|
-
var
|
|
59092
|
+
var import_utils6 = require_utils14();
|
|
59027
59093
|
var import_errors4 = require_errors2();
|
|
59028
59094
|
var import_deploy2 = require_deploy();
|
|
59029
59095
|
var isClientNetworkError = (err) => {
|
|
@@ -59034,7 +59100,7 @@ var require_upload = __commonJS2({
|
|
|
59034
59100
|
};
|
|
59035
59101
|
async function* upload(files, clientOptions, deploymentOptions) {
|
|
59036
59102
|
const { token, teamId, apiUrl: apiUrl2, userAgent: userAgent2 } = clientOptions;
|
|
59037
|
-
const debug2 = (0,
|
|
59103
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
59038
59104
|
if (!files && !token && !teamId) {
|
|
59039
59105
|
debug2(`Neither 'files', 'token' nor 'teamId are present. Exiting`);
|
|
59040
59106
|
return;
|
|
@@ -59109,8 +59175,8 @@ var require_upload = __commonJS2({
|
|
|
59109
59175
|
const abortController = new AbortController();
|
|
59110
59176
|
abortControllers.add(abortController);
|
|
59111
59177
|
try {
|
|
59112
|
-
const res = await (0,
|
|
59113
|
-
|
|
59178
|
+
const res = await (0, import_utils6.fetch)(
|
|
59179
|
+
import_utils6.API_FILES,
|
|
59114
59180
|
token,
|
|
59115
59181
|
{
|
|
59116
59182
|
agent: clientOptions.agent || defaultAgent,
|
|
@@ -63392,7 +63458,7 @@ var require_create_deployment = __commonJS2({
|
|
|
63392
63458
|
var import_path41 = require("path");
|
|
63393
63459
|
var import_hashes = require_hashes();
|
|
63394
63460
|
var import_upload = require_upload();
|
|
63395
|
-
var
|
|
63461
|
+
var import_utils6 = require_utils14();
|
|
63396
63462
|
var import_errors4 = require_errors2();
|
|
63397
63463
|
var import_error_utils38 = require_dist2();
|
|
63398
63464
|
var import_build_utils18 = require("@vercel/build-utils");
|
|
@@ -63401,7 +63467,7 @@ var require_create_deployment = __commonJS2({
|
|
|
63401
63467
|
function buildCreateDeployment() {
|
|
63402
63468
|
return async function* createDeployment2(clientOptions, deploymentOptions = {}) {
|
|
63403
63469
|
const { path: path11 } = clientOptions;
|
|
63404
|
-
const debug2 = (0,
|
|
63470
|
+
const debug2 = (0, import_utils6.createDebug)(clientOptions.debug);
|
|
63405
63471
|
debug2("Creating deployment...");
|
|
63406
63472
|
if (typeof path11 !== "string" && !Array.isArray(path11)) {
|
|
63407
63473
|
debug2(
|
|
@@ -63444,7 +63510,7 @@ var require_create_deployment = __commonJS2({
|
|
|
63444
63510
|
} else {
|
|
63445
63511
|
debug2(`Provided 'path' is a single file`);
|
|
63446
63512
|
}
|
|
63447
|
-
const { fileList } = await (0,
|
|
63513
|
+
const { fileList } = await (0, import_utils6.buildFileTree)(path11, clientOptions, debug2);
|
|
63448
63514
|
if (fileList.length === 0) {
|
|
63449
63515
|
debug2("Deployment path has no files. Yielding a warning event");
|
|
63450
63516
|
yield {
|
|
@@ -63529,12 +63595,12 @@ var require_types2 = __commonJS2({
|
|
|
63529
63595
|
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
|
63530
63596
|
var types_exports = {};
|
|
63531
63597
|
__export4(types_exports, {
|
|
63532
|
-
DeploymentEventType: () =>
|
|
63598
|
+
DeploymentEventType: () => import_utils6.DeploymentEventType,
|
|
63533
63599
|
VALID_ARCHIVE_FORMATS: () => VALID_ARCHIVE_FORMATS4,
|
|
63534
63600
|
fileNameSymbol: () => fileNameSymbol8
|
|
63535
63601
|
});
|
|
63536
63602
|
module2.exports = __toCommonJS4(types_exports);
|
|
63537
|
-
var
|
|
63603
|
+
var import_utils6 = require_utils14();
|
|
63538
63604
|
var VALID_ARCHIVE_FORMATS4 = ["tgz"];
|
|
63539
63605
|
var fileNameSymbol8 = Symbol("fileName");
|
|
63540
63606
|
}
|
|
@@ -63574,15 +63640,15 @@ var require_dist7 = __commonJS2({
|
|
|
63574
63640
|
var __toCommonJS4 = (mod) => __copyProps4(__defProp4({}, "__esModule", { value: true }), mod);
|
|
63575
63641
|
var src_exports2 = {};
|
|
63576
63642
|
__export4(src_exports2, {
|
|
63577
|
-
buildFileTree: () =>
|
|
63643
|
+
buildFileTree: () => import_utils6.buildFileTree,
|
|
63578
63644
|
checkDeploymentStatus: () => import_check_deployment_status.checkDeploymentStatus,
|
|
63579
63645
|
createDeployment: () => createDeployment2,
|
|
63580
|
-
getVercelIgnore: () =>
|
|
63646
|
+
getVercelIgnore: () => import_utils6.getVercelIgnore
|
|
63581
63647
|
});
|
|
63582
63648
|
module2.exports = __toCommonJS4(src_exports2);
|
|
63583
63649
|
var import_create_deployment = __toESM4(require_create_deployment());
|
|
63584
63650
|
var import_check_deployment_status = require_check_deployment_status();
|
|
63585
|
-
var
|
|
63651
|
+
var import_utils6 = require_utils14();
|
|
63586
63652
|
__reExport(src_exports2, require_errors2(), module2.exports);
|
|
63587
63653
|
__reExport(src_exports2, require_types2(), module2.exports);
|
|
63588
63654
|
var createDeployment2 = (0, import_create_deployment.default)();
|
|
@@ -94739,7 +94805,7 @@ var require_cross_spawn = __commonJS2({
|
|
|
94739
94805
|
var cp = require("child_process");
|
|
94740
94806
|
var parse11 = require_parse4();
|
|
94741
94807
|
var enoent = require_enoent();
|
|
94742
|
-
function
|
|
94808
|
+
function spawn5(command, args2, options) {
|
|
94743
94809
|
const parsed = parse11(command, args2, options);
|
|
94744
94810
|
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
94745
94811
|
enoent.hookChildProcess(spawned, parsed);
|
|
@@ -94751,8 +94817,8 @@ var require_cross_spawn = __commonJS2({
|
|
|
94751
94817
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
94752
94818
|
return result;
|
|
94753
94819
|
}
|
|
94754
|
-
module2.exports =
|
|
94755
|
-
module2.exports.spawn =
|
|
94820
|
+
module2.exports = spawn5;
|
|
94821
|
+
module2.exports.spawn = spawn5;
|
|
94756
94822
|
module2.exports.sync = spawnSync;
|
|
94757
94823
|
module2.exports._parse = parse11;
|
|
94758
94824
|
module2.exports._enoent = enoent;
|
|
@@ -101714,7 +101780,7 @@ var init_list3 = __esm({
|
|
|
101714
101780
|
init_get_command_flags();
|
|
101715
101781
|
init_get_args();
|
|
101716
101782
|
init_get_flags_specification();
|
|
101717
|
-
|
|
101783
|
+
init_command38();
|
|
101718
101784
|
init_pkg_name();
|
|
101719
101785
|
init_list2();
|
|
101720
101786
|
init_error2();
|
|
@@ -101951,7 +102017,7 @@ var init_put2 = __esm({
|
|
|
101951
102017
|
blob2 = __toESM3(require("@vercel/blob"));
|
|
101952
102018
|
init_get_args();
|
|
101953
102019
|
init_get_flags_specification();
|
|
101954
|
-
|
|
102020
|
+
init_command38();
|
|
101955
102021
|
import_node_fs = require("fs");
|
|
101956
102022
|
import_promises = require("fs/promises");
|
|
101957
102023
|
import_error_utils10 = __toESM3(require_dist2());
|
|
@@ -102025,7 +102091,7 @@ var init_del2 = __esm({
|
|
|
102025
102091
|
blob3 = __toESM3(require("@vercel/blob"));
|
|
102026
102092
|
init_get_args();
|
|
102027
102093
|
init_get_flags_specification();
|
|
102028
|
-
|
|
102094
|
+
init_command38();
|
|
102029
102095
|
init_del();
|
|
102030
102096
|
init_error2();
|
|
102031
102097
|
init_pkg_name();
|
|
@@ -102144,7 +102210,7 @@ var init_copy2 = __esm({
|
|
|
102144
102210
|
blob4 = __toESM3(require("@vercel/blob"));
|
|
102145
102211
|
init_get_args();
|
|
102146
102212
|
init_get_flags_specification();
|
|
102147
|
-
|
|
102213
|
+
init_command38();
|
|
102148
102214
|
init_copy();
|
|
102149
102215
|
init_pkg_name();
|
|
102150
102216
|
}
|
|
@@ -117196,15 +117262,15 @@ var require_frameworks = __commonJS2({
|
|
|
117196
117262
|
some: [
|
|
117197
117263
|
{
|
|
117198
117264
|
path: "requirements.txt",
|
|
117199
|
-
matchContent: "
|
|
117265
|
+
matchContent: "[Ff]lask"
|
|
117200
117266
|
},
|
|
117201
117267
|
{
|
|
117202
117268
|
path: "pyproject.toml",
|
|
117203
|
-
matchContent: "
|
|
117269
|
+
matchContent: "[Ff]lask"
|
|
117204
117270
|
},
|
|
117205
117271
|
{
|
|
117206
117272
|
path: "Pipfile",
|
|
117207
|
-
matchContent: "
|
|
117273
|
+
matchContent: "[Ff]lask"
|
|
117208
117274
|
}
|
|
117209
117275
|
]
|
|
117210
117276
|
},
|
|
@@ -121477,7 +121543,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121477
121543
|
});
|
|
121478
121544
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
|
121479
121545
|
var import_semver4 = __toESM4(require_semver2());
|
|
121480
|
-
var
|
|
121546
|
+
var import__103 = require_dist20();
|
|
121481
121547
|
async function detectFileSystemAPI2({
|
|
121482
121548
|
files,
|
|
121483
121549
|
projectSettings,
|
|
@@ -121543,7 +121609,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121543
121609
|
};
|
|
121544
121610
|
}
|
|
121545
121611
|
const invalidBuilder = builders.find(({ use }) => {
|
|
121546
|
-
const valid = (0,
|
|
121612
|
+
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
121613
|
return !valid;
|
|
121548
121614
|
});
|
|
121549
121615
|
if (invalidBuilder) {
|
|
@@ -121556,7 +121622,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121556
121622
|
for (const lang of ["go", "python", "ruby"]) {
|
|
121557
121623
|
for (const { use } of builders) {
|
|
121558
121624
|
const plugin = "vercel-plugin-" + lang;
|
|
121559
|
-
if ((0,
|
|
121625
|
+
if ((0, import__103.isOfficialRuntime)(lang, use) && !deps[plugin]) {
|
|
121560
121626
|
return {
|
|
121561
121627
|
metadata,
|
|
121562
121628
|
fsApiBuilder: null,
|
|
@@ -121613,7 +121679,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
|
121613
121679
|
}
|
|
121614
121680
|
}
|
|
121615
121681
|
const frontendBuilder = builders.find(
|
|
121616
|
-
({ use }) => (0,
|
|
121682
|
+
({ use }) => (0, import__103.isOfficialRuntime)("next", use) || (0, import__103.isOfficialRuntime)("static", use) || (0, import__103.isOfficialRuntime)("static-build", use)
|
|
121617
121683
|
);
|
|
121618
121684
|
const config2 = frontendBuilder?.config || {};
|
|
121619
121685
|
const withTag = tag ? `@${tag}` : "";
|
|
@@ -121664,7 +121730,7 @@ var require_detect_framework = __commonJS2({
|
|
|
121664
121730
|
removeSupersededFrameworks: () => removeSupersededFrameworks
|
|
121665
121731
|
});
|
|
121666
121732
|
module2.exports = __toCommonJS4(detect_framework_exports);
|
|
121667
|
-
var
|
|
121733
|
+
var import_child_process7 = require("child_process");
|
|
121668
121734
|
async function matches(fs15, framework) {
|
|
121669
121735
|
const { detectors } = framework;
|
|
121670
121736
|
if (!detectors) {
|
|
@@ -121841,7 +121907,7 @@ var require_detect_framework = __commonJS2({
|
|
|
121841
121907
|
function lookupInstalledVersion(cwd, packageName2) {
|
|
121842
121908
|
try {
|
|
121843
121909
|
const script = `require('${packageName2}/package.json').version`;
|
|
121844
|
-
return (0,
|
|
121910
|
+
return (0, import_child_process7.spawnSync)(cwd, ["-p", script], {
|
|
121845
121911
|
encoding: "utf-8"
|
|
121846
121912
|
}).stdout.trim();
|
|
121847
121913
|
} catch (error3) {
|
|
@@ -129618,7 +129684,7 @@ var init_store_add2 = __esm({
|
|
|
129618
129684
|
init_pkg_name();
|
|
129619
129685
|
init_get_flags_specification();
|
|
129620
129686
|
init_get_args();
|
|
129621
|
-
|
|
129687
|
+
init_command38();
|
|
129622
129688
|
init_store_add();
|
|
129623
129689
|
init_error2();
|
|
129624
129690
|
}
|
|
@@ -129694,7 +129760,7 @@ var init_store_remove = __esm({
|
|
|
129694
129760
|
init_error2();
|
|
129695
129761
|
init_output_manager();
|
|
129696
129762
|
init_get_flags_specification();
|
|
129697
|
-
|
|
129763
|
+
init_command38();
|
|
129698
129764
|
init_get_args();
|
|
129699
129765
|
init_link2();
|
|
129700
129766
|
}
|
|
@@ -132118,7 +132184,7 @@ var init_store_get2 = __esm({
|
|
|
132118
132184
|
init_get_args();
|
|
132119
132185
|
init_get_flags_specification();
|
|
132120
132186
|
init_link2();
|
|
132121
|
-
|
|
132187
|
+
init_command38();
|
|
132122
132188
|
import_date_fns = __toESM3(require_date_fns());
|
|
132123
132189
|
import_chalk43 = __toESM3(require_source());
|
|
132124
132190
|
init_store_get();
|
|
@@ -132197,7 +132263,7 @@ var init_store2 = __esm({
|
|
|
132197
132263
|
init_get_invalid_subcommand();
|
|
132198
132264
|
init_get_subcommand();
|
|
132199
132265
|
init_help();
|
|
132200
|
-
|
|
132266
|
+
init_command38();
|
|
132201
132267
|
init_get_flags_specification();
|
|
132202
132268
|
init_output_manager();
|
|
132203
132269
|
init_commands();
|
|
@@ -132355,7 +132421,7 @@ var init_token = __esm({
|
|
|
132355
132421
|
import_node_path2 = require("path");
|
|
132356
132422
|
init_diff_env_files();
|
|
132357
132423
|
init_get_flags_specification();
|
|
132358
|
-
|
|
132424
|
+
init_command38();
|
|
132359
132425
|
init_get_args();
|
|
132360
132426
|
init_pkg_name();
|
|
132361
132427
|
init_cmd();
|
|
@@ -132473,7 +132539,7 @@ var init_blob2 = __esm({
|
|
|
132473
132539
|
init_get_subcommand();
|
|
132474
132540
|
init_help();
|
|
132475
132541
|
init_list3();
|
|
132476
|
-
|
|
132542
|
+
init_command38();
|
|
132477
132543
|
init_get_flags_specification();
|
|
132478
132544
|
init_output_manager();
|
|
132479
132545
|
init_commands();
|
|
@@ -148274,7 +148340,7 @@ var init_pull4 = __esm({
|
|
|
148274
148340
|
init_ensure_link();
|
|
148275
148341
|
init_humanize_path();
|
|
148276
148342
|
init_help();
|
|
148277
|
-
|
|
148343
|
+
init_command29();
|
|
148278
148344
|
init_parse_target();
|
|
148279
148345
|
init_get_flags_specification();
|
|
148280
148346
|
init_error2();
|
|
@@ -150586,6 +150652,61 @@ var init_certs2 = __esm({
|
|
|
150586
150652
|
}
|
|
150587
150653
|
});
|
|
150588
150654
|
|
|
150655
|
+
// src/commands/curl/utils.ts
|
|
150656
|
+
var requoteArgs;
|
|
150657
|
+
var init_utils3 = __esm({
|
|
150658
|
+
"src/commands/curl/utils.ts"() {
|
|
150659
|
+
"use strict";
|
|
150660
|
+
requoteArgs = (arg2) => {
|
|
150661
|
+
if (arg2.includes(" ")) {
|
|
150662
|
+
if (arg2.includes('"')) {
|
|
150663
|
+
return `'${arg2}'`;
|
|
150664
|
+
} else {
|
|
150665
|
+
return `"${arg2}"`;
|
|
150666
|
+
}
|
|
150667
|
+
}
|
|
150668
|
+
return arg2;
|
|
150669
|
+
};
|
|
150670
|
+
}
|
|
150671
|
+
});
|
|
150672
|
+
|
|
150673
|
+
// src/util/telemetry/commands/curl/index.ts
|
|
150674
|
+
var CurlTelemetryClient;
|
|
150675
|
+
var init_curl = __esm({
|
|
150676
|
+
"src/util/telemetry/commands/curl/index.ts"() {
|
|
150677
|
+
"use strict";
|
|
150678
|
+
init_telemetry();
|
|
150679
|
+
CurlTelemetryClient = class extends TelemetryClient {
|
|
150680
|
+
trackCliArgumentPath(path11) {
|
|
150681
|
+
if (path11) {
|
|
150682
|
+
const value = path11.startsWith("/") ? "slash" : "no-slash";
|
|
150683
|
+
this.trackCliArgument({
|
|
150684
|
+
arg: "path",
|
|
150685
|
+
value
|
|
150686
|
+
});
|
|
150687
|
+
}
|
|
150688
|
+
}
|
|
150689
|
+
trackCliOptionDeployment(deploymentId) {
|
|
150690
|
+
if (deploymentId) {
|
|
150691
|
+
const value = deploymentId.startsWith("http://") || deploymentId.startsWith("https://") ? "url" : deploymentId.startsWith("dpl_") ? "dpl_" : "no-prefix";
|
|
150692
|
+
this.trackCliOption({
|
|
150693
|
+
option: "deployment",
|
|
150694
|
+
value
|
|
150695
|
+
});
|
|
150696
|
+
}
|
|
150697
|
+
}
|
|
150698
|
+
trackCliOptionProtectionBypass(secret) {
|
|
150699
|
+
if (secret) {
|
|
150700
|
+
this.trackCliOption({
|
|
150701
|
+
option: "protection-bypass",
|
|
150702
|
+
value: this.redactedValue
|
|
150703
|
+
});
|
|
150704
|
+
}
|
|
150705
|
+
}
|
|
150706
|
+
};
|
|
150707
|
+
}
|
|
150708
|
+
});
|
|
150709
|
+
|
|
150589
150710
|
// src/commands/curl/bypass-token.ts
|
|
150590
150711
|
async function createDeploymentProtectionToken(client2, projectId, orgId) {
|
|
150591
150712
|
if (!client2.authConfig.token) {
|
|
@@ -150596,21 +150717,15 @@ async function createDeploymentProtectionToken(client2, projectId, orgId) {
|
|
|
150596
150717
|
"Authentication required to create protection bypass token"
|
|
150597
150718
|
);
|
|
150598
150719
|
}
|
|
150599
|
-
const query = new URLSearchParams();
|
|
150600
|
-
if (orgId) {
|
|
150601
|
-
query.set("teamId", orgId);
|
|
150602
|
-
}
|
|
150603
150720
|
try {
|
|
150604
|
-
const response = await client2.fetch(
|
|
150605
|
-
|
|
150606
|
-
{
|
|
150607
|
-
|
|
150608
|
-
|
|
150609
|
-
|
|
150610
|
-
|
|
150611
|
-
|
|
150612
|
-
}
|
|
150613
|
-
);
|
|
150721
|
+
const response = await client2.fetch(`/v1/projects/${projectId}/protection-bypass`, {
|
|
150722
|
+
method: "PATCH",
|
|
150723
|
+
body: "{}",
|
|
150724
|
+
headers: {
|
|
150725
|
+
"Content-Type": "application/json"
|
|
150726
|
+
},
|
|
150727
|
+
accountId: orgId
|
|
150728
|
+
});
|
|
150614
150729
|
const { protectionBypass } = response;
|
|
150615
150730
|
output_manager_default.log(
|
|
150616
150731
|
`You require a deployment protection bypass token to access this deployment... Generating one now...`
|
|
@@ -150687,14 +150802,24 @@ var init_bypass_token = __esm({
|
|
|
150687
150802
|
});
|
|
150688
150803
|
|
|
150689
150804
|
// src/commands/curl/deployment-url.ts
|
|
150690
|
-
async function getDeploymentUrlById(client2,
|
|
150805
|
+
async function getDeploymentUrlById(client2, deploymentIdOrUrl, accountId) {
|
|
150691
150806
|
try {
|
|
150692
|
-
|
|
150807
|
+
if (deploymentIdOrUrl.startsWith("http://") || deploymentIdOrUrl.startsWith("https://")) {
|
|
150808
|
+
try {
|
|
150809
|
+
const url3 = new URL(deploymentIdOrUrl);
|
|
150810
|
+
return url3.origin;
|
|
150811
|
+
} catch (err) {
|
|
150812
|
+
output_manager_default.debug(`Invalid deployment URL provided: ${deploymentIdOrUrl}`);
|
|
150813
|
+
return null;
|
|
150814
|
+
}
|
|
150815
|
+
}
|
|
150816
|
+
let fullDeploymentId = deploymentIdOrUrl;
|
|
150693
150817
|
if (!fullDeploymentId.startsWith("dpl_")) {
|
|
150694
|
-
fullDeploymentId = `dpl_${
|
|
150818
|
+
fullDeploymentId = `dpl_${deploymentIdOrUrl}`;
|
|
150695
150819
|
}
|
|
150696
150820
|
const deployment = await client2.fetch(
|
|
150697
|
-
`/v13/deployments/${fullDeploymentId}
|
|
150821
|
+
`/v13/deployments/${fullDeploymentId}`,
|
|
150822
|
+
{ accountId }
|
|
150698
150823
|
);
|
|
150699
150824
|
if (!deployment || !deployment.url) {
|
|
150700
150825
|
return null;
|
|
@@ -150712,75 +150837,11 @@ var init_deployment_url = __esm({
|
|
|
150712
150837
|
}
|
|
150713
150838
|
});
|
|
150714
150839
|
|
|
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) {
|
|
150840
|
+
// src/commands/curl/shared.ts
|
|
150841
|
+
function setupCurlLikeCommand(client2, command, telemetryClient) {
|
|
150776
150842
|
const { print } = output_manager_default;
|
|
150777
|
-
const telemetryClient = new CurlTelemetryClient({
|
|
150778
|
-
opts: {
|
|
150779
|
-
store: client2.telemetryEventStore
|
|
150780
|
-
}
|
|
150781
|
-
});
|
|
150782
150843
|
let parsedArgs = null;
|
|
150783
|
-
const flagsSpecification = getFlagsSpecification(
|
|
150844
|
+
const flagsSpecification = getFlagsSpecification(command.options);
|
|
150784
150845
|
try {
|
|
150785
150846
|
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
|
150786
150847
|
} catch (err) {
|
|
@@ -150789,10 +150850,10 @@ async function curl(client2) {
|
|
|
150789
150850
|
}
|
|
150790
150851
|
const { flags } = parsedArgs;
|
|
150791
150852
|
if (parsedArgs.flags["--help"]) {
|
|
150792
|
-
print(help(
|
|
150853
|
+
print(help(command, { columns: client2.stderr.columns }));
|
|
150793
150854
|
return 2;
|
|
150794
150855
|
}
|
|
150795
|
-
if (parsedArgs.args[0] ===
|
|
150856
|
+
if (parsedArgs.args[0] === command.name) {
|
|
150796
150857
|
parsedArgs.args.shift();
|
|
150797
150858
|
}
|
|
150798
150859
|
const separatorIndex = process.argv.indexOf("--");
|
|
@@ -150806,20 +150867,40 @@ async function curl(client2) {
|
|
|
150806
150867
|
if (protectionBypassFlag) {
|
|
150807
150868
|
telemetryClient.trackCliOptionProtectionBypass(protectionBypassFlag);
|
|
150808
150869
|
}
|
|
150809
|
-
if (!path11 || path11 === "--" || path11.startsWith("
|
|
150870
|
+
if (!path11 || path11 === "--" || path11.startsWith("-")) {
|
|
150871
|
+
output_manager_default.error(
|
|
150872
|
+
`${getCommandName(`${command.name} <path>`)} requires an API path (e.g., '/' or '/api/hello' or 'api/hello')`
|
|
150873
|
+
);
|
|
150874
|
+
print(help(command, { columns: client2.stderr.columns }));
|
|
150875
|
+
return 1;
|
|
150876
|
+
}
|
|
150877
|
+
if (path11.startsWith("http://") || path11.startsWith("https://")) {
|
|
150810
150878
|
output_manager_default.error(
|
|
150811
|
-
|
|
150879
|
+
`The <path> argument must be a relative API path (e.g., '/' or '/api/hello'), not a full URL.`
|
|
150880
|
+
);
|
|
150881
|
+
output_manager_default.print(
|
|
150882
|
+
`To target a specific deployment within the currently linked project, use the --deployment <id|url> flag.`
|
|
150812
150883
|
);
|
|
150813
|
-
print(help(
|
|
150884
|
+
print(help(command, { columns: client2.stderr.columns }));
|
|
150814
150885
|
return 1;
|
|
150815
150886
|
}
|
|
150816
|
-
const
|
|
150887
|
+
const toolFlags = separatorIndex !== -1 ? process.argv.slice(separatorIndex + 1) : [];
|
|
150817
150888
|
output_manager_default.debug(
|
|
150818
|
-
|
|
150889
|
+
`${command.name} flags (${toolFlags.length} args): ${JSON.stringify(toolFlags)}`
|
|
150819
150890
|
);
|
|
150891
|
+
return {
|
|
150892
|
+
path: path11,
|
|
150893
|
+
deploymentFlag,
|
|
150894
|
+
protectionBypassFlag,
|
|
150895
|
+
toolFlags
|
|
150896
|
+
};
|
|
150897
|
+
}
|
|
150898
|
+
async function getDeploymentUrlAndToken(client2, commandName, path11, options) {
|
|
150899
|
+
const { deploymentFlag, protectionBypassFlag } = options;
|
|
150820
150900
|
let link4;
|
|
150901
|
+
let scope;
|
|
150821
150902
|
try {
|
|
150822
|
-
await getScope(client2);
|
|
150903
|
+
scope = await getScope(client2);
|
|
150823
150904
|
} catch (err) {
|
|
150824
150905
|
if ((0, import_error_utils18.isErrnoException)(err) && (err.code === "NOT_AUTHORIZED" || err.code === "TEAM_DELETED")) {
|
|
150825
150906
|
output_manager_default.error(err.message);
|
|
@@ -150828,7 +150909,7 @@ async function curl(client2) {
|
|
|
150828
150909
|
throw err;
|
|
150829
150910
|
}
|
|
150830
150911
|
try {
|
|
150831
|
-
link4 = await ensureLink(
|
|
150912
|
+
link4 = await ensureLink(commandName, client2, client2.cwd);
|
|
150832
150913
|
} catch (err) {
|
|
150833
150914
|
if ((0, import_error_utils18.isErrnoException)(err) && err.code === "NOT_AUTHORIZED") {
|
|
150834
150915
|
output_manager_default.error(err.message);
|
|
@@ -150850,10 +150931,15 @@ async function curl(client2) {
|
|
|
150850
150931
|
output_manager_default.error("Failed to get project information");
|
|
150851
150932
|
return 1;
|
|
150852
150933
|
}
|
|
150853
|
-
const target = linkedProject.project.latestDeployments?.[0]
|
|
150934
|
+
const target = linkedProject.project.latestDeployments?.[0]?.url;
|
|
150854
150935
|
let baseUrl;
|
|
150855
150936
|
if (deploymentFlag) {
|
|
150856
|
-
const
|
|
150937
|
+
const accountId = scope.team?.id || scope.user.id;
|
|
150938
|
+
const deploymentUrl = await getDeploymentUrlById(
|
|
150939
|
+
client2,
|
|
150940
|
+
deploymentFlag,
|
|
150941
|
+
accountId
|
|
150942
|
+
);
|
|
150857
150943
|
if (!deploymentUrl) {
|
|
150858
150944
|
output_manager_default.error(`No deployment found for ID "${deploymentFlag}"`);
|
|
150859
150945
|
return 1;
|
|
@@ -150876,12 +150962,63 @@ async function curl(client2) {
|
|
|
150876
150962
|
);
|
|
150877
150963
|
return 1;
|
|
150878
150964
|
}
|
|
150879
|
-
|
|
150880
|
-
|
|
150881
|
-
|
|
150882
|
-
|
|
150883
|
-
|
|
150965
|
+
}
|
|
150966
|
+
return {
|
|
150967
|
+
fullUrl,
|
|
150968
|
+
deploymentProtectionToken,
|
|
150969
|
+
link: link4
|
|
150970
|
+
};
|
|
150971
|
+
}
|
|
150972
|
+
var import_chalk63, import_error_utils18;
|
|
150973
|
+
var init_shared = __esm({
|
|
150974
|
+
"src/commands/curl/shared.ts"() {
|
|
150975
|
+
"use strict";
|
|
150976
|
+
import_chalk63 = __toESM3(require_source());
|
|
150977
|
+
import_error_utils18 = __toESM3(require_dist2());
|
|
150978
|
+
init_output_manager();
|
|
150979
|
+
init_ensure_link();
|
|
150980
|
+
init_get_scope();
|
|
150981
|
+
init_bypass_token();
|
|
150982
|
+
init_link2();
|
|
150983
|
+
init_deployment_url();
|
|
150984
|
+
init_get_args();
|
|
150985
|
+
init_get_flags_specification();
|
|
150986
|
+
init_error2();
|
|
150987
|
+
init_help();
|
|
150988
|
+
init_pkg_name();
|
|
150989
|
+
}
|
|
150990
|
+
});
|
|
150991
|
+
|
|
150992
|
+
// src/commands/curl/index.ts
|
|
150993
|
+
var curl_exports = {};
|
|
150994
|
+
__export3(curl_exports, {
|
|
150995
|
+
default: () => curl
|
|
150996
|
+
});
|
|
150997
|
+
async function curl(client2) {
|
|
150998
|
+
const telemetryClient = new CurlTelemetryClient({
|
|
150999
|
+
opts: {
|
|
151000
|
+
store: client2.telemetryEventStore
|
|
150884
151001
|
}
|
|
151002
|
+
});
|
|
151003
|
+
const setup = setupCurlLikeCommand(client2, curlCommand, telemetryClient);
|
|
151004
|
+
if (typeof setup === "number") {
|
|
151005
|
+
return setup;
|
|
151006
|
+
}
|
|
151007
|
+
const { path: path11, deploymentFlag, protectionBypassFlag, toolFlags } = setup;
|
|
151008
|
+
const result = await getDeploymentUrlAndToken(client2, "curl", path11, {
|
|
151009
|
+
deploymentFlag,
|
|
151010
|
+
protectionBypassFlag
|
|
151011
|
+
});
|
|
151012
|
+
if (typeof result === "number") {
|
|
151013
|
+
return result;
|
|
151014
|
+
}
|
|
151015
|
+
const { fullUrl, deploymentProtectionToken } = result;
|
|
151016
|
+
const curlFlags = [...toolFlags];
|
|
151017
|
+
if (deploymentProtectionToken) {
|
|
151018
|
+
curlFlags.unshift(
|
|
151019
|
+
"--header",
|
|
151020
|
+
`x-vercel-protection-bypass: ${deploymentProtectionToken}`
|
|
151021
|
+
);
|
|
150885
151022
|
}
|
|
150886
151023
|
curlFlags.unshift("--url", fullUrl);
|
|
150887
151024
|
output_manager_default.debug(`Executing: curl ${curlFlags.map(requoteArgs).join(" ")}`);
|
|
@@ -150904,27 +151041,16 @@ async function curl(client2) {
|
|
|
150904
151041
|
});
|
|
150905
151042
|
});
|
|
150906
151043
|
}
|
|
150907
|
-
var
|
|
151044
|
+
var import_child_process3;
|
|
150908
151045
|
var init_curl2 = __esm({
|
|
150909
151046
|
"src/commands/curl/index.ts"() {
|
|
150910
151047
|
"use strict";
|
|
150911
|
-
import_chalk63 = __toESM3(require_source());
|
|
150912
151048
|
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
151049
|
init_command6();
|
|
150919
151050
|
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
151051
|
init_utils3();
|
|
150927
151052
|
init_curl();
|
|
151053
|
+
init_shared();
|
|
150928
151054
|
}
|
|
150929
151055
|
});
|
|
150930
151056
|
|
|
@@ -151490,7 +151616,7 @@ var init_logs = __esm({
|
|
|
151490
151616
|
import_split2 = __toESM3(require_split2());
|
|
151491
151617
|
import_url11 = require("url");
|
|
151492
151618
|
init_events();
|
|
151493
|
-
|
|
151619
|
+
init_command24();
|
|
151494
151620
|
init_output_manager();
|
|
151495
151621
|
runtimeLogSpinnerMessage = `waiting for new logs...`;
|
|
151496
151622
|
dateTimeFormat = "HH:mm:ss.SS";
|
|
@@ -169855,7 +169981,7 @@ var require_tree_kill = __commonJS2({
|
|
|
169855
169981
|
"../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js"(exports2, module2) {
|
|
169856
169982
|
"use strict";
|
|
169857
169983
|
var childProcess = require("child_process");
|
|
169858
|
-
var
|
|
169984
|
+
var spawn5 = childProcess.spawn;
|
|
169859
169985
|
var exec2 = childProcess.exec;
|
|
169860
169986
|
module2.exports = function(pid, signal, callback) {
|
|
169861
169987
|
if (typeof signal === "function" && callback === void 0) {
|
|
@@ -169880,14 +170006,14 @@ var require_tree_kill = __commonJS2({
|
|
|
169880
170006
|
break;
|
|
169881
170007
|
case "darwin":
|
|
169882
170008
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
169883
|
-
return
|
|
170009
|
+
return spawn5("pgrep", ["-P", parentPid]);
|
|
169884
170010
|
}, function() {
|
|
169885
170011
|
killAll(tree, signal, callback);
|
|
169886
170012
|
});
|
|
169887
170013
|
break;
|
|
169888
170014
|
default:
|
|
169889
170015
|
buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
169890
|
-
return
|
|
170016
|
+
return spawn5("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
|
|
169891
170017
|
}, function() {
|
|
169892
170018
|
killAll(tree, signal, callback);
|
|
169893
170019
|
});
|
|
@@ -177963,6 +178089,119 @@ var init_guidance2 = __esm({
|
|
|
177963
178089
|
}
|
|
177964
178090
|
});
|
|
177965
178091
|
|
|
178092
|
+
// src/util/telemetry/commands/httpstat/index.ts
|
|
178093
|
+
var HttpstatTelemetryClient;
|
|
178094
|
+
var init_httpstat = __esm({
|
|
178095
|
+
"src/util/telemetry/commands/httpstat/index.ts"() {
|
|
178096
|
+
"use strict";
|
|
178097
|
+
init_telemetry();
|
|
178098
|
+
HttpstatTelemetryClient = class extends TelemetryClient {
|
|
178099
|
+
trackCliArgumentPath(path11) {
|
|
178100
|
+
if (path11) {
|
|
178101
|
+
const value = path11.startsWith("/") ? "slash" : "no-slash";
|
|
178102
|
+
this.trackCliArgument({
|
|
178103
|
+
arg: "path",
|
|
178104
|
+
value
|
|
178105
|
+
});
|
|
178106
|
+
}
|
|
178107
|
+
}
|
|
178108
|
+
trackCliOptionDeployment(deploymentId) {
|
|
178109
|
+
if (deploymentId) {
|
|
178110
|
+
const value = deploymentId.startsWith("http://") || deploymentId.startsWith("https://") ? "url" : deploymentId.startsWith("dpl_") ? "dpl_" : "no-prefix";
|
|
178111
|
+
this.trackCliOption({
|
|
178112
|
+
option: "deployment",
|
|
178113
|
+
value
|
|
178114
|
+
});
|
|
178115
|
+
}
|
|
178116
|
+
}
|
|
178117
|
+
trackCliOptionProtectionBypass(secret) {
|
|
178118
|
+
if (secret) {
|
|
178119
|
+
this.trackCliOption({
|
|
178120
|
+
option: "protection-bypass",
|
|
178121
|
+
value: this.redactedValue
|
|
178122
|
+
});
|
|
178123
|
+
}
|
|
178124
|
+
}
|
|
178125
|
+
};
|
|
178126
|
+
}
|
|
178127
|
+
});
|
|
178128
|
+
|
|
178129
|
+
// src/commands/httpstat/index.ts
|
|
178130
|
+
var httpstat_exports = {};
|
|
178131
|
+
__export3(httpstat_exports, {
|
|
178132
|
+
default: () => httpstat
|
|
178133
|
+
});
|
|
178134
|
+
async function httpstat(client2) {
|
|
178135
|
+
const telemetryClient = new HttpstatTelemetryClient({
|
|
178136
|
+
opts: {
|
|
178137
|
+
store: client2.telemetryEventStore
|
|
178138
|
+
}
|
|
178139
|
+
});
|
|
178140
|
+
const setup = setupCurlLikeCommand(client2, httpstatCommand, telemetryClient);
|
|
178141
|
+
if (typeof setup === "number") {
|
|
178142
|
+
return setup;
|
|
178143
|
+
}
|
|
178144
|
+
const { path: path11, deploymentFlag, protectionBypassFlag, toolFlags } = setup;
|
|
178145
|
+
const result = await getDeploymentUrlAndToken(client2, "httpstat", path11, {
|
|
178146
|
+
deploymentFlag,
|
|
178147
|
+
protectionBypassFlag
|
|
178148
|
+
});
|
|
178149
|
+
if (typeof result === "number") {
|
|
178150
|
+
return result;
|
|
178151
|
+
}
|
|
178152
|
+
const { fullUrl, deploymentProtectionToken } = result;
|
|
178153
|
+
const httpstatFlags = [...toolFlags];
|
|
178154
|
+
if (deploymentProtectionToken) {
|
|
178155
|
+
httpstatFlags.unshift(
|
|
178156
|
+
"-H",
|
|
178157
|
+
`x-vercel-protection-bypass: ${deploymentProtectionToken}`
|
|
178158
|
+
);
|
|
178159
|
+
}
|
|
178160
|
+
httpstatFlags.unshift(fullUrl);
|
|
178161
|
+
output_manager_default.debug(
|
|
178162
|
+
`Executing: httpstat ${httpstatFlags.map(requoteArgs).join(" ")}`
|
|
178163
|
+
);
|
|
178164
|
+
return new Promise((resolve13) => {
|
|
178165
|
+
const httpstatProcess = (0, import_child_process5.spawn)("httpstat", httpstatFlags, {
|
|
178166
|
+
stdio: "inherit",
|
|
178167
|
+
shell: false
|
|
178168
|
+
});
|
|
178169
|
+
httpstatProcess.on("error", (err) => {
|
|
178170
|
+
if ("code" in err && err.code === "ENOENT") {
|
|
178171
|
+
output_manager_default.error("httpstat command not found. Please install httpstat.");
|
|
178172
|
+
output_manager_default.log("");
|
|
178173
|
+
output_manager_default.log("Installation instructions:");
|
|
178174
|
+
output_manager_default.log(" macOS: brew install httpstat");
|
|
178175
|
+
output_manager_default.log(" pip: pip install httpstat");
|
|
178176
|
+
output_manager_default.log(" npm: npm install -g httpstat");
|
|
178177
|
+
output_manager_default.log("");
|
|
178178
|
+
output_manager_default.log(
|
|
178179
|
+
"Or visit: https://github.com/reorx/httpstat for more details"
|
|
178180
|
+
);
|
|
178181
|
+
resolve13(1);
|
|
178182
|
+
} else {
|
|
178183
|
+
output_manager_default.error(`Failed to execute httpstat: ${err.message}`);
|
|
178184
|
+
resolve13(1);
|
|
178185
|
+
}
|
|
178186
|
+
});
|
|
178187
|
+
httpstatProcess.on("close", (code2) => {
|
|
178188
|
+
resolve13(code2 ?? 1);
|
|
178189
|
+
});
|
|
178190
|
+
});
|
|
178191
|
+
}
|
|
178192
|
+
var import_child_process5;
|
|
178193
|
+
var init_httpstat2 = __esm({
|
|
178194
|
+
"src/commands/httpstat/index.ts"() {
|
|
178195
|
+
"use strict";
|
|
178196
|
+
import_child_process5 = require("child_process");
|
|
178197
|
+
init_command14();
|
|
178198
|
+
init_output_manager();
|
|
178199
|
+
init_utils3();
|
|
178200
|
+
init_httpstat();
|
|
178201
|
+
init_shared();
|
|
178202
|
+
}
|
|
178203
|
+
});
|
|
178204
|
+
|
|
177966
178205
|
// ../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js
|
|
177967
178206
|
var require_jaro_winkler = __commonJS2({
|
|
177968
178207
|
"../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js"(exports2, module2) {
|
|
@@ -178315,7 +178554,7 @@ var init_init3 = __esm({
|
|
|
178315
178554
|
init_init();
|
|
178316
178555
|
import_error_utils26 = __toESM3(require_dist2());
|
|
178317
178556
|
init_help();
|
|
178318
|
-
|
|
178557
|
+
init_command15();
|
|
178319
178558
|
init_get_flags_specification();
|
|
178320
178559
|
init_output_manager();
|
|
178321
178560
|
init_init2();
|
|
@@ -178912,7 +179151,7 @@ var init_inspect4 = __esm({
|
|
|
178912
179151
|
init_pkg_name();
|
|
178913
179152
|
init_sleep();
|
|
178914
179153
|
init_help();
|
|
178915
|
-
|
|
179154
|
+
init_command16();
|
|
178916
179155
|
init_output_manager();
|
|
178917
179156
|
init_inspect3();
|
|
178918
179157
|
}
|
|
@@ -179755,7 +179994,7 @@ var init_install2 = __esm({
|
|
|
179755
179994
|
init_get_args();
|
|
179756
179995
|
init_help();
|
|
179757
179996
|
init_add10();
|
|
179758
|
-
|
|
179997
|
+
init_command17();
|
|
179759
179998
|
init_output_manager();
|
|
179760
179999
|
init_install();
|
|
179761
180000
|
}
|
|
@@ -180270,7 +180509,7 @@ var init_list6 = __esm({
|
|
|
180270
180509
|
init_get_scope();
|
|
180271
180510
|
init_link2();
|
|
180272
180511
|
init_get_resources();
|
|
180273
|
-
|
|
180512
|
+
init_command19();
|
|
180274
180513
|
init_get_flags_specification();
|
|
180275
180514
|
init_get_args();
|
|
180276
180515
|
init_error2();
|
|
@@ -180486,7 +180725,7 @@ var init_remove_integration2 = __esm({
|
|
|
180486
180725
|
init_error2();
|
|
180487
180726
|
init_fetch_marketplace_integrations();
|
|
180488
180727
|
init_remove_integration();
|
|
180489
|
-
|
|
180728
|
+
init_command19();
|
|
180490
180729
|
init_remove3();
|
|
180491
180730
|
}
|
|
180492
180731
|
});
|
|
@@ -180596,7 +180835,7 @@ var init_integration2 = __esm({
|
|
|
180596
180835
|
init_help();
|
|
180597
180836
|
init_add10();
|
|
180598
180837
|
init_balance2();
|
|
180599
|
-
|
|
180838
|
+
init_command19();
|
|
180600
180839
|
init_list6();
|
|
180601
180840
|
init_open_integration();
|
|
180602
180841
|
init_remove_integration2();
|
|
@@ -181007,7 +181246,7 @@ var init_create_threshold2 = __esm({
|
|
|
181007
181246
|
init_get_flags_specification();
|
|
181008
181247
|
init_get_resources();
|
|
181009
181248
|
init_create_threshold();
|
|
181010
|
-
|
|
181249
|
+
init_command18();
|
|
181011
181250
|
init_get_scope();
|
|
181012
181251
|
init_fetch_installation_prepayment_info();
|
|
181013
181252
|
init_update_threshold();
|
|
@@ -181268,7 +181507,7 @@ var init_disconnect4 = __esm({
|
|
|
181268
181507
|
init_link2();
|
|
181269
181508
|
init_disconnect3();
|
|
181270
181509
|
init_types();
|
|
181271
|
-
|
|
181510
|
+
init_command18();
|
|
181272
181511
|
}
|
|
181273
181512
|
});
|
|
181274
181513
|
|
|
@@ -181431,7 +181670,7 @@ var init_remove_resource = __esm({
|
|
|
181431
181670
|
init_get_resources();
|
|
181432
181671
|
init_types();
|
|
181433
181672
|
init_remove4();
|
|
181434
|
-
|
|
181673
|
+
init_command18();
|
|
181435
181674
|
init_disconnect4();
|
|
181436
181675
|
}
|
|
181437
181676
|
});
|
|
@@ -181517,7 +181756,7 @@ var init_integration_resource2 = __esm({
|
|
|
181517
181756
|
init_get_subcommand();
|
|
181518
181757
|
init_integration_resource();
|
|
181519
181758
|
init_help();
|
|
181520
|
-
|
|
181759
|
+
init_command18();
|
|
181521
181760
|
init_create_threshold2();
|
|
181522
181761
|
init_disconnect4();
|
|
181523
181762
|
init_remove_resource();
|
|
@@ -181642,7 +181881,7 @@ var init_link4 = __esm({
|
|
|
181642
181881
|
init_ensure_link();
|
|
181643
181882
|
init_repo();
|
|
181644
181883
|
init_help();
|
|
181645
|
-
|
|
181884
|
+
init_command20();
|
|
181646
181885
|
init_get_flags_specification();
|
|
181647
181886
|
init_error2();
|
|
181648
181887
|
init_output_manager();
|
|
@@ -182056,7 +182295,7 @@ var init_list8 = __esm({
|
|
|
182056
182295
|
init_errors_ts();
|
|
182057
182296
|
import_error_utils28 = __toESM3(require_dist2());
|
|
182058
182297
|
init_help();
|
|
182059
|
-
|
|
182298
|
+
init_command21();
|
|
182060
182299
|
init_parse_target();
|
|
182061
182300
|
init_get_flags_specification();
|
|
182062
182301
|
init_get_deployment();
|
|
@@ -182261,7 +182500,7 @@ var init_logs3 = __esm({
|
|
|
182261
182500
|
init_logs2();
|
|
182262
182501
|
init_help();
|
|
182263
182502
|
init_list8();
|
|
182264
|
-
|
|
182503
|
+
init_command24();
|
|
182265
182504
|
init_output_manager();
|
|
182266
182505
|
deprecatedFlags = [
|
|
182267
182506
|
"--follow",
|
|
@@ -182285,7 +182524,7 @@ function getAvailableClients() {
|
|
|
182285
182524
|
}
|
|
182286
182525
|
function safeExecSync(command, options = {}) {
|
|
182287
182526
|
try {
|
|
182288
|
-
return (0,
|
|
182527
|
+
return (0, import_child_process6.execSync)(command, {
|
|
182289
182528
|
stdio: "pipe",
|
|
182290
182529
|
encoding: "utf8",
|
|
182291
182530
|
...options
|
|
@@ -182453,11 +182692,11 @@ async function mcp(client2) {
|
|
|
182453
182692
|
const oneClickUrl = `cursor://anysphere.cursor-deeplink/mcp/install?name=${serverName}&config=${encodedConfig}`;
|
|
182454
182693
|
try {
|
|
182455
182694
|
if (process.platform === "darwin") {
|
|
182456
|
-
(0,
|
|
182695
|
+
(0, import_child_process6.execSync)(`open '${oneClickUrl}'`);
|
|
182457
182696
|
} else if (process.platform === "win32") {
|
|
182458
|
-
(0,
|
|
182697
|
+
(0, import_child_process6.execSync)(`start ${oneClickUrl}`);
|
|
182459
182698
|
} else {
|
|
182460
|
-
(0,
|
|
182699
|
+
(0, import_child_process6.execSync)(`xdg-open '${oneClickUrl}'`);
|
|
182461
182700
|
}
|
|
182462
182701
|
summary.push("\u2705 Cursor: One-click installer opened");
|
|
182463
182702
|
output_manager_default.print("\u2139\uFE0F Follow the prompts in Cursor to complete setup\n");
|
|
@@ -182535,11 +182774,11 @@ async function mcp(client2) {
|
|
|
182535
182774
|
const oneClickUrl = `vscode:mcp/install?${encodedConfig}`;
|
|
182536
182775
|
try {
|
|
182537
182776
|
if (process.platform === "darwin") {
|
|
182538
|
-
(0,
|
|
182777
|
+
(0, import_child_process6.execSync)(`open '${oneClickUrl}'`);
|
|
182539
182778
|
} else if (process.platform === "win32") {
|
|
182540
|
-
(0,
|
|
182779
|
+
(0, import_child_process6.execSync)(`start ${oneClickUrl}`);
|
|
182541
182780
|
} else {
|
|
182542
|
-
(0,
|
|
182781
|
+
(0, import_child_process6.execSync)(`xdg-open '${oneClickUrl}'`);
|
|
182543
182782
|
}
|
|
182544
182783
|
summary.push("\u2705 VS Code: One-click installer opened");
|
|
182545
182784
|
output_manager_default.print("\u2139\uFE0F Follow the prompts in VS Code to complete setup\n");
|
|
@@ -182573,12 +182812,12 @@ async function mcp(client2) {
|
|
|
182573
182812
|
output_manager_default.print("\u2728 Setup complete! Restart your clients if needed.\n");
|
|
182574
182813
|
return 0;
|
|
182575
182814
|
}
|
|
182576
|
-
var
|
|
182815
|
+
var import_child_process6, MCP_ENDPOINT;
|
|
182577
182816
|
var init_mcp = __esm({
|
|
182578
182817
|
"src/commands/mcp/mcp.ts"() {
|
|
182579
182818
|
"use strict";
|
|
182580
182819
|
init_output_manager();
|
|
182581
|
-
|
|
182820
|
+
import_child_process6 = require("child_process");
|
|
182582
182821
|
init_link2();
|
|
182583
182822
|
MCP_ENDPOINT = "https://mcp.vercel.com";
|
|
182584
182823
|
}
|
|
@@ -182618,7 +182857,7 @@ var init_mcp2 = __esm({
|
|
|
182618
182857
|
init_get_args();
|
|
182619
182858
|
init_error2();
|
|
182620
182859
|
init_help();
|
|
182621
|
-
|
|
182860
|
+
init_command25();
|
|
182622
182861
|
init_get_flags_specification();
|
|
182623
182862
|
init_output_manager();
|
|
182624
182863
|
init_mcp();
|
|
@@ -182765,7 +183004,7 @@ var init_logout2 = __esm({
|
|
|
182765
183004
|
init_errors_ts();
|
|
182766
183005
|
import_error_utils31 = __toESM3(require_dist2());
|
|
182767
183006
|
init_help();
|
|
182768
|
-
|
|
183007
|
+
init_command23();
|
|
182769
183008
|
init_get_flags_specification();
|
|
182770
183009
|
init_output_manager();
|
|
182771
183010
|
init_logout();
|
|
@@ -182866,7 +183105,7 @@ var init_pull5 = __esm({
|
|
|
182866
183105
|
init_humanize_path();
|
|
182867
183106
|
init_stamp();
|
|
182868
183107
|
import_fs_extra23 = __toESM3(require_lib());
|
|
182869
|
-
|
|
183108
|
+
init_command26();
|
|
182870
183109
|
init_get_flags_specification();
|
|
182871
183110
|
init_get_args();
|
|
182872
183111
|
init_error2();
|
|
@@ -182961,7 +183200,7 @@ var init_microfrontends2 = __esm({
|
|
|
182961
183200
|
init_error2();
|
|
182962
183201
|
init_help();
|
|
182963
183202
|
init_pull5();
|
|
182964
|
-
|
|
183203
|
+
init_command26();
|
|
182965
183204
|
init_get_flags_specification();
|
|
182966
183205
|
init_output_manager();
|
|
182967
183206
|
init_commands();
|
|
@@ -183060,7 +183299,7 @@ var init_add12 = __esm({
|
|
|
183060
183299
|
init_create_project();
|
|
183061
183300
|
init_output_manager();
|
|
183062
183301
|
init_add11();
|
|
183063
|
-
|
|
183302
|
+
init_command27();
|
|
183064
183303
|
init_get_args();
|
|
183065
183304
|
init_get_flags_specification();
|
|
183066
183305
|
init_error2();
|
|
@@ -183217,7 +183456,7 @@ var init_inspect6 = __esm({
|
|
|
183217
183456
|
init_pkg_name();
|
|
183218
183457
|
init_inspect5();
|
|
183219
183458
|
init_output_manager();
|
|
183220
|
-
|
|
183459
|
+
init_command27();
|
|
183221
183460
|
init_get_args();
|
|
183222
183461
|
init_get_flags_specification();
|
|
183223
183462
|
init_error2();
|
|
@@ -183408,7 +183647,7 @@ var init_list10 = __esm({
|
|
|
183408
183647
|
init_pkg_name();
|
|
183409
183648
|
init_list9();
|
|
183410
183649
|
init_output_manager();
|
|
183411
|
-
|
|
183650
|
+
init_command27();
|
|
183412
183651
|
init_get_args();
|
|
183413
183652
|
init_get_flags_specification();
|
|
183414
183653
|
init_error2();
|
|
@@ -183525,7 +183764,7 @@ var init_rm10 = __esm({
|
|
|
183525
183764
|
init_get_args();
|
|
183526
183765
|
init_get_flags_specification();
|
|
183527
183766
|
init_error2();
|
|
183528
|
-
|
|
183767
|
+
init_command27();
|
|
183529
183768
|
e = encodeURIComponent;
|
|
183530
183769
|
}
|
|
183531
183770
|
});
|
|
@@ -183652,7 +183891,7 @@ var init_project2 = __esm({
|
|
|
183652
183891
|
init_inspect6();
|
|
183653
183892
|
init_list10();
|
|
183654
183893
|
init_rm10();
|
|
183655
|
-
|
|
183894
|
+
init_command27();
|
|
183656
183895
|
init_get_flags_specification();
|
|
183657
183896
|
init_project();
|
|
183658
183897
|
init_output_manager();
|
|
@@ -184115,7 +184354,7 @@ var init_promote2 = __esm({
|
|
|
184115
184354
|
import_error_utils32 = __toESM3(require_dist2());
|
|
184116
184355
|
init_request_promote();
|
|
184117
184356
|
init_status2();
|
|
184118
|
-
|
|
184357
|
+
init_command28();
|
|
184119
184358
|
init_help();
|
|
184120
184359
|
init_get_flags_specification();
|
|
184121
184360
|
init_promote();
|
|
@@ -184509,7 +184748,7 @@ var init_redeploy2 = __esm({
|
|
|
184509
184748
|
init_stamp();
|
|
184510
184749
|
init_ua();
|
|
184511
184750
|
init_help();
|
|
184512
|
-
|
|
184751
|
+
init_command30();
|
|
184513
184752
|
init_get_flags_specification();
|
|
184514
184753
|
init_output_manager();
|
|
184515
184754
|
init_redeploy();
|
|
@@ -184896,7 +185135,7 @@ var init_remove6 = __esm({
|
|
|
184896
185135
|
init_error2();
|
|
184897
185136
|
init_now_error();
|
|
184898
185137
|
init_help();
|
|
184899
|
-
|
|
185138
|
+
init_command31();
|
|
184900
185139
|
init_get_flags_specification();
|
|
184901
185140
|
init_remove5();
|
|
184902
185141
|
init_output_manager();
|
|
@@ -185169,7 +185408,7 @@ var init_rollback2 = __esm({
|
|
|
185169
185408
|
init_request_rollback();
|
|
185170
185409
|
init_status3();
|
|
185171
185410
|
init_help();
|
|
185172
|
-
|
|
185411
|
+
init_command32();
|
|
185173
185412
|
init_get_flags_specification();
|
|
185174
185413
|
init_rollback();
|
|
185175
185414
|
init_output_manager();
|
|
@@ -185745,7 +185984,7 @@ var init_rolling_release2 = __esm({
|
|
|
185745
185984
|
init_get_args();
|
|
185746
185985
|
init_get_flags_specification();
|
|
185747
185986
|
init_help();
|
|
185748
|
-
|
|
185987
|
+
init_command33();
|
|
185749
185988
|
init_request_rolling_release();
|
|
185750
185989
|
init_start_rolling_release();
|
|
185751
185990
|
init_configure_rolling_release();
|
|
@@ -185877,7 +186116,7 @@ var init_list11 = __esm({
|
|
|
185877
186116
|
import_chalk127 = __toESM3(require_source());
|
|
185878
186117
|
init_table();
|
|
185879
186118
|
init_output_manager();
|
|
185880
|
-
|
|
186119
|
+
init_command34();
|
|
185881
186120
|
init_pkg_name();
|
|
185882
186121
|
init_ensure_link();
|
|
185883
186122
|
init_format_project();
|
|
@@ -185970,7 +186209,7 @@ var init_target2 = __esm({
|
|
|
185970
186209
|
init_get_invalid_subcommand();
|
|
185971
186210
|
init_help();
|
|
185972
186211
|
init_list11();
|
|
185973
|
-
|
|
186212
|
+
init_command34();
|
|
185974
186213
|
init_get_flags_specification();
|
|
185975
186214
|
init_error2();
|
|
185976
186215
|
init_output_manager();
|
|
@@ -186117,7 +186356,7 @@ var init_list13 = __esm({
|
|
|
186117
186356
|
init_get_args();
|
|
186118
186357
|
init_error2();
|
|
186119
186358
|
init_get_flags_specification();
|
|
186120
|
-
|
|
186359
|
+
init_command35();
|
|
186121
186360
|
init_output_manager();
|
|
186122
186361
|
init_list12();
|
|
186123
186362
|
}
|
|
@@ -186316,7 +186555,7 @@ var init_invite2 = __esm({
|
|
|
186316
186555
|
init_get_args();
|
|
186317
186556
|
init_get_flags_specification();
|
|
186318
186557
|
init_error2();
|
|
186319
|
-
|
|
186558
|
+
init_command35();
|
|
186320
186559
|
validateEmail = (data) => email.test(data.trim()) || data.length === 0;
|
|
186321
186560
|
domains = Array.from(
|
|
186322
186561
|
/* @__PURE__ */ new Set([
|
|
@@ -186617,7 +186856,7 @@ var init_switch2 = __esm({
|
|
|
186617
186856
|
init_files();
|
|
186618
186857
|
init_output_manager();
|
|
186619
186858
|
init_switch();
|
|
186620
|
-
|
|
186859
|
+
init_command35();
|
|
186621
186860
|
init_get_args();
|
|
186622
186861
|
init_get_flags_specification();
|
|
186623
186862
|
init_error2();
|
|
@@ -186769,7 +187008,7 @@ var init_teams2 = __esm({
|
|
|
186769
187008
|
init_switch2();
|
|
186770
187009
|
init_invite2();
|
|
186771
187010
|
init_get_args();
|
|
186772
|
-
|
|
187011
|
+
init_command35();
|
|
186773
187012
|
init_help();
|
|
186774
187013
|
init_get_flags_specification();
|
|
186775
187014
|
init_error2();
|
|
@@ -187010,7 +187249,7 @@ var init_telemetry3 = __esm({
|
|
|
187010
187249
|
init_enable2();
|
|
187011
187250
|
init_disable2();
|
|
187012
187251
|
init_flush();
|
|
187013
|
-
|
|
187252
|
+
init_command36();
|
|
187014
187253
|
init_get_flags_specification();
|
|
187015
187254
|
init_telemetry2();
|
|
187016
187255
|
import_chalk133 = __toESM3(require_source());
|
|
@@ -187073,7 +187312,7 @@ var init_whoami2 = __esm({
|
|
|
187073
187312
|
"src/commands/whoami/index.ts"() {
|
|
187074
187313
|
"use strict";
|
|
187075
187314
|
init_help();
|
|
187076
|
-
|
|
187315
|
+
init_command37();
|
|
187077
187316
|
init_get_scope();
|
|
187078
187317
|
init_get_args();
|
|
187079
187318
|
init_get_flags_specification();
|
|
@@ -187580,6 +187819,12 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
|
187580
187819
|
value: actual
|
|
187581
187820
|
});
|
|
187582
187821
|
}
|
|
187822
|
+
trackCliCommandHttpstat(actual) {
|
|
187823
|
+
this.trackCliCommand({
|
|
187824
|
+
command: "httpstat",
|
|
187825
|
+
value: actual
|
|
187826
|
+
});
|
|
187827
|
+
}
|
|
187583
187828
|
trackCliCommandInit(actual) {
|
|
187584
187829
|
this.trackCliCommand({
|
|
187585
187830
|
command: "init",
|
|
@@ -188419,6 +188664,10 @@ var main17 = async () => {
|
|
|
188419
188664
|
func = null;
|
|
188420
188665
|
break;
|
|
188421
188666
|
}
|
|
188667
|
+
case "httpstat":
|
|
188668
|
+
telemetry2.trackCliCommandHttpstat(userSuppliedSubCommand);
|
|
188669
|
+
func = (init_httpstat2(), __toCommonJS3(httpstat_exports)).default;
|
|
188670
|
+
break;
|
|
188422
188671
|
case "init":
|
|
188423
188672
|
telemetry2.trackCliCommandInit(userSuppliedSubCommand);
|
|
188424
188673
|
func = (init_init3(), __toCommonJS3(init_exports)).default;
|