vercel 54.14.5 → 54.15.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/chunks/{add-5Z2AAQMM.js → add-6XHROCMP.js} +5 -5
- package/dist/chunks/{chunk-EBIX223X.js → chunk-3RIVJWW5.js} +1 -1
- package/dist/chunks/{chunk-X23JL3ZL.js → chunk-574PHXNT.js} +9 -4
- package/dist/chunks/{chunk-PXJA4KXE.js → chunk-6A62YUBE.js} +3 -3
- package/dist/chunks/{chunk-25XEQWUS.js → chunk-6SL223IW.js} +1 -1
- package/dist/chunks/{chunk-MOVGWTDQ.js → chunk-6TPH3ZBU.js} +6 -5
- package/dist/chunks/{chunk-6ABEFMPX.js → chunk-AG6TBL6C.js} +1 -1
- package/dist/chunks/{chunk-6R3YPU76.js → chunk-CENOYXK3.js} +382 -7
- package/dist/chunks/{chunk-R5MIXAJF.js → chunk-DCN3SOR6.js} +2 -2
- package/dist/chunks/{chunk-ZR4XADWC.js → chunk-EAEEBPMD.js} +2 -2
- package/dist/chunks/{chunk-ETVOM3IR.js → chunk-HSXUEJ4T.js} +1 -1
- package/dist/chunks/{chunk-PSG6ZBGQ.js → chunk-LABX5FSJ.js} +1 -1
- package/dist/chunks/{chunk-2GOVUIMY.js → chunk-LOPPFUV3.js} +2 -2
- package/dist/chunks/{chunk-KSSRTKN4.js → chunk-OEYKL4IY.js} +4 -4
- package/dist/chunks/{chunk-IXTKPQYW.js → chunk-OQD4G5FW.js} +4 -4
- package/dist/chunks/{chunk-LJ5WXXG6.js → chunk-QH7WYDEP.js} +11 -0
- package/dist/chunks/{chunk-2N7NBUQX.js → chunk-RHXSECUF.js} +206 -31
- package/dist/chunks/{chunk-YIAUEFUY.js → chunk-SFPJ3VR7.js} +210 -12
- package/dist/chunks/{chunk-JLLN34XF.js → chunk-TLVKY7WL.js} +4 -4
- package/dist/chunks/{chunk-6H2YVMJJ.js → chunk-UZD3DM6V.js} +1 -1
- package/dist/chunks/{chunk-45S2Y3TD.js → chunk-WGH26RJV.js} +1 -1
- package/dist/chunks/{compile-vercel-config-UMUHH55E.js → compile-vercel-config-ATU3UBFK.js} +1 -1
- package/dist/chunks/{delete-NO2U3UGV.js → delete-WIN4UHQY.js} +3 -3
- package/dist/chunks/{disable-AGDDHVKZ.js → disable-24KUO3TS.js} +3 -3
- package/dist/chunks/{discard-Q5HML52L.js → discard-B6ATZCPD.js} +3 -3
- package/dist/chunks/{edit-HSHJAKHM.js → edit-DIYIVLFQ.js} +7 -7
- package/dist/chunks/{enable-YMJAXOGA.js → enable-BF7NKTV7.js} +3 -3
- package/dist/chunks/{export-RCACOTPE.js → export-HHONDN7V.js} +3 -3
- package/dist/chunks/{inspect-OJHOQHD2.js → inspect-GSYKUMK5.js} +4 -4
- package/dist/chunks/{list-LLUDMAWA.js → list-OSJGB5AE.js} +4 -4
- package/dist/chunks/{list-R7V2P6TM.js → list-PZ4DRWLO.js} +2 -2
- package/dist/chunks/{ls-KAI6V7SU.js → ls-QBCHGSIC.js} +5 -5
- package/dist/chunks/{publish-KCYVRDAT.js → publish-QYPZQ66O.js} +3 -3
- package/dist/chunks/{query-MBJLAQRX.js → query-BDMX4CF6.js} +2 -2
- package/dist/chunks/{reorder-C5BJWFJM.js → reorder-YDTGTTJB.js} +3 -3
- package/dist/chunks/{restore-F63NO7XP.js → restore-LXO2ZBAF.js} +3 -3
- package/dist/chunks/{rm-HT7YO3JX.js → rm-3L7FVCDA.js} +5 -5
- package/dist/chunks/{rule-inspect-IHEUI5JT.js → rule-inspect-T57QBYJR.js} +5 -5
- package/dist/chunks/{rules-ZUBTVSNC.js → rules-E5DTNMFG.js} +7 -7
- package/dist/chunks/{schema-VAQSZY2H.js → schema-VYVJ4GYP.js} +2 -2
- package/dist/chunks/{update-BS5FBLIP.js → update-LT3LZVEZ.js} +5 -5
- package/dist/commands/build/index.js +115 -83
- package/dist/commands/deploy/index.js +11 -11
- package/dist/commands/dev/index.js +9 -9
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +8 -8
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +4824 -1591
- package/dist/index.js +8 -8
- package/dist/version.mjs +1 -1
- package/package.json +17 -17
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-LOPPFUV3.js";
|
|
13
|
+
import "./chunk-6A62YUBE.js";
|
|
14
14
|
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
} from "./chunk-SGPBULVT.js";
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-QH7WYDEP.js";
|
|
24
|
+
import "./chunk-6SL223IW.js";
|
|
25
|
+
import "./chunk-SFPJ3VR7.js";
|
|
26
26
|
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
AGENT_REASON,
|
|
9
9
|
AGENT_STATUS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QH7WYDEP.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCommandWithYes,
|
|
16
16
|
outputAgentError
|
|
@@ -56,6 +56,9 @@ function getSrcSyntaxLabel(rule) {
|
|
|
56
56
|
const syntax = rule.srcSyntax ?? "regex";
|
|
57
57
|
return SRC_SYNTAX_LABELS[syntax];
|
|
58
58
|
}
|
|
59
|
+
function isTargetTransform(transform) {
|
|
60
|
+
return "target" in transform;
|
|
61
|
+
}
|
|
59
62
|
|
|
60
63
|
// src/commands/routes/shared.ts
|
|
61
64
|
var import_chalk = __toESM(require_source(), 1);
|
|
@@ -213,7 +216,8 @@ function formatCondition(condition) {
|
|
|
213
216
|
var TRANSFORM_TYPE_LABELS = {
|
|
214
217
|
"request.headers": "Request Header",
|
|
215
218
|
"request.query": "Request Query",
|
|
216
|
-
"response.headers": "Response Header"
|
|
219
|
+
"response.headers": "Response Header",
|
|
220
|
+
"request.path": "Request Path"
|
|
217
221
|
};
|
|
218
222
|
var TRANSFORM_OP_LABELS = {
|
|
219
223
|
set: "set",
|
|
@@ -222,7 +226,7 @@ var TRANSFORM_OP_LABELS = {
|
|
|
222
226
|
};
|
|
223
227
|
function formatTransform(transform, includeType = true) {
|
|
224
228
|
const opLabel = TRANSFORM_OP_LABELS[transform.op] ?? transform.op;
|
|
225
|
-
const key = typeof transform.target.key === "string" ? transform.target.key : JSON.stringify(transform.target.key);
|
|
229
|
+
const key = isTargetTransform(transform) ? typeof transform.target.key === "string" ? transform.target.key : JSON.stringify(transform.target.key) : "path";
|
|
226
230
|
const parts = [];
|
|
227
231
|
if (includeType) {
|
|
228
232
|
const typeLabel = TRANSFORM_TYPE_LABELS[transform.type] ?? transform.type;
|
|
@@ -453,6 +457,7 @@ async function getRoutes(client, projectId, options = {}) {
|
|
|
453
457
|
export {
|
|
454
458
|
getRouteTypeLabel,
|
|
455
459
|
getSrcSyntaxLabel,
|
|
460
|
+
isTargetTransform,
|
|
456
461
|
withGlobalFlags,
|
|
457
462
|
shellQuoteRouteIdentifierForSuggestion,
|
|
458
463
|
parseSubcommandArgs,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-D7MGZH35.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_REASON
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QH7WYDEP.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6SL223IW.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
progress,
|
|
11
11
|
require_dist as require_dist2,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EAEEBPMD.js";
|
|
14
14
|
import {
|
|
15
15
|
suggestNextCommands
|
|
16
16
|
} from "./chunk-LKBI43XK.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-TCF6MGBY.js";
|
|
21
21
|
import {
|
|
22
22
|
CommandTimeout
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CENOYXK3.js";
|
|
24
24
|
import {
|
|
25
25
|
showPluginTipIfNeeded
|
|
26
26
|
} from "./chunk-BRQ6PX3U.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-64IF634X.js";
|
|
30
30
|
import {
|
|
31
31
|
getScope
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6SL223IW.js";
|
|
33
33
|
import {
|
|
34
34
|
getProjectByNameOrId,
|
|
35
35
|
param,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
require_dist as require_dist3,
|
|
38
38
|
require_pluralize,
|
|
39
39
|
ua_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
41
41
|
import {
|
|
42
42
|
require_lib
|
|
43
43
|
} from "./chunk-N2T234LO.js";
|
|
@@ -2922,7 +2922,8 @@ async function getDomainByName(client, contextName, domainName, options = {}) {
|
|
|
2922
2922
|
}
|
|
2923
2923
|
try {
|
|
2924
2924
|
const { domain } = await client.fetch(
|
|
2925
|
-
`/v4/domains/${encodeURIComponent(domainName)}
|
|
2925
|
+
`/v4/domains/${encodeURIComponent(domainName)}`,
|
|
2926
|
+
{ bailOn429: options.bailOn429 }
|
|
2926
2927
|
);
|
|
2927
2928
|
return domain;
|
|
2928
2929
|
} catch (err) {
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LABX5FSJ.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
deploymentOption,
|
|
@@ -2707,6 +2707,46 @@ var transferInSubcommand = {
|
|
|
2707
2707
|
],
|
|
2708
2708
|
examples: []
|
|
2709
2709
|
};
|
|
2710
|
+
var verifySubcommand = {
|
|
2711
|
+
name: "verify",
|
|
2712
|
+
aliases: [],
|
|
2713
|
+
description: "Check a domain's DNS configuration and explain what to fix when it is misconfigured or unverified",
|
|
2714
|
+
arguments: [
|
|
2715
|
+
{
|
|
2716
|
+
name: "domain",
|
|
2717
|
+
required: true
|
|
2718
|
+
}
|
|
2719
|
+
],
|
|
2720
|
+
options: [
|
|
2721
|
+
projectOption,
|
|
2722
|
+
{
|
|
2723
|
+
name: "strict",
|
|
2724
|
+
shorthand: null,
|
|
2725
|
+
type: Boolean,
|
|
2726
|
+
deprecated: false,
|
|
2727
|
+
description: "Check DNS for the exact domain only, without falling back to the parent zone configuration"
|
|
2728
|
+
},
|
|
2729
|
+
formatOption
|
|
2730
|
+
],
|
|
2731
|
+
examples: [
|
|
2732
|
+
{
|
|
2733
|
+
name: "Check why a domain is not working",
|
|
2734
|
+
value: `${packageName} domains verify example.com`
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
name: "Check a domain against a specific project",
|
|
2738
|
+
value: `${packageName} domains verify example.com --project my-site`
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
name: "JSON output (the exit code is non-zero when the domain is misconfigured or unverified)",
|
|
2742
|
+
value: `${packageName} domains verify example.com --format json`
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
name: "Agent-friendly output with status, reason, and suggested next commands",
|
|
2746
|
+
value: `${packageName} domains verify example.com --non-interactive`
|
|
2747
|
+
}
|
|
2748
|
+
]
|
|
2749
|
+
};
|
|
2710
2750
|
var domainsCommand = {
|
|
2711
2751
|
name: "domains",
|
|
2712
2752
|
aliases: ["domain"],
|
|
@@ -2722,7 +2762,8 @@ var domainsCommand = {
|
|
|
2722
2762
|
priceSubcommand,
|
|
2723
2763
|
searchSubcommand,
|
|
2724
2764
|
transferInSubcommand,
|
|
2725
|
-
removeSubcommand6
|
|
2765
|
+
removeSubcommand6,
|
|
2766
|
+
verifySubcommand
|
|
2726
2767
|
],
|
|
2727
2768
|
options: [],
|
|
2728
2769
|
examples: []
|
|
@@ -3789,7 +3830,72 @@ var firewallCommand = {
|
|
|
3789
3830
|
]
|
|
3790
3831
|
};
|
|
3791
3832
|
|
|
3833
|
+
// src/util/flags/comparators.ts
|
|
3834
|
+
var FLAG_CONDITION_COMPARATORS = [
|
|
3835
|
+
"eq",
|
|
3836
|
+
"!eq",
|
|
3837
|
+
"oneOf",
|
|
3838
|
+
"!oneOf",
|
|
3839
|
+
"containsAllOf",
|
|
3840
|
+
"containsAnyOf",
|
|
3841
|
+
"containsNoneOf",
|
|
3842
|
+
"startsWith",
|
|
3843
|
+
"endsWith",
|
|
3844
|
+
"contains",
|
|
3845
|
+
"!contains",
|
|
3846
|
+
"ex",
|
|
3847
|
+
"!ex",
|
|
3848
|
+
"gt",
|
|
3849
|
+
"gte",
|
|
3850
|
+
"lt",
|
|
3851
|
+
"lte"
|
|
3852
|
+
];
|
|
3853
|
+
var FLAG_CONDITION_LIST_COMPARATORS = [
|
|
3854
|
+
"oneOf",
|
|
3855
|
+
"!oneOf",
|
|
3856
|
+
"containsAllOf",
|
|
3857
|
+
"containsAnyOf",
|
|
3858
|
+
"containsNoneOf"
|
|
3859
|
+
];
|
|
3860
|
+
var FLAG_CONDITION_RHS_OPTIONAL_COMPARATORS = [
|
|
3861
|
+
"ex",
|
|
3862
|
+
"!ex"
|
|
3863
|
+
];
|
|
3864
|
+
function formatFlagConditionComparatorList() {
|
|
3865
|
+
return FLAG_CONDITION_COMPARATORS.join(", ");
|
|
3866
|
+
}
|
|
3867
|
+
var FLAG_CONDITION_COMPARATOR_LABELS = {
|
|
3868
|
+
eq: "is",
|
|
3869
|
+
"!eq": "is not",
|
|
3870
|
+
oneOf: "is in",
|
|
3871
|
+
"!oneOf": "is not in",
|
|
3872
|
+
containsAllOf: "contains all of",
|
|
3873
|
+
containsAnyOf: "contains any of",
|
|
3874
|
+
containsNoneOf: "contains none of",
|
|
3875
|
+
startsWith: "starts with",
|
|
3876
|
+
endsWith: "ends with",
|
|
3877
|
+
contains: "contains",
|
|
3878
|
+
"!contains": "does not contain",
|
|
3879
|
+
ex: "has any value",
|
|
3880
|
+
"!ex": "has no value",
|
|
3881
|
+
gt: "is greater than",
|
|
3882
|
+
gte: "is greater than or equal to",
|
|
3883
|
+
lt: "is less than",
|
|
3884
|
+
lte: "is less than or equal to"
|
|
3885
|
+
};
|
|
3886
|
+
var LEGACY_FLAG_CONDITION_COMPARATOR_LABELS = {
|
|
3887
|
+
notContains: FLAG_CONDITION_COMPARATOR_LABELS["!contains"]
|
|
3888
|
+
};
|
|
3889
|
+
function formatFlagConditionComparator(comparator, options) {
|
|
3890
|
+
const label = FLAG_CONDITION_COMPARATOR_LABELS[comparator] ?? LEGACY_FLAG_CONDITION_COMPARATOR_LABELS[comparator] ?? comparator;
|
|
3891
|
+
if (options?.ignoreCase) {
|
|
3892
|
+
return `${label} (case-insensitive)`;
|
|
3893
|
+
}
|
|
3894
|
+
return label;
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3792
3897
|
// src/commands/flags/command.ts
|
|
3898
|
+
var segmentRuleOperatorDescription = `Valid operators: ${formatFlagConditionComparatorList()}`;
|
|
3793
3899
|
var listSubcommand10 = {
|
|
3794
3900
|
name: "list",
|
|
3795
3901
|
aliases: ["ls"],
|
|
@@ -4335,6 +4441,259 @@ var enableSubcommand = {
|
|
|
4335
4441
|
}
|
|
4336
4442
|
]
|
|
4337
4443
|
};
|
|
4444
|
+
var segmentsListSubcommand = {
|
|
4445
|
+
name: "list",
|
|
4446
|
+
aliases: ["ls"],
|
|
4447
|
+
description: "List all feature flag segments for the current project",
|
|
4448
|
+
arguments: [],
|
|
4449
|
+
options: [
|
|
4450
|
+
{
|
|
4451
|
+
name: "json",
|
|
4452
|
+
shorthand: null,
|
|
4453
|
+
type: Boolean,
|
|
4454
|
+
deprecated: false,
|
|
4455
|
+
description: "Output in JSON format"
|
|
4456
|
+
}
|
|
4457
|
+
],
|
|
4458
|
+
examples: [
|
|
4459
|
+
{
|
|
4460
|
+
name: "List all segments",
|
|
4461
|
+
value: `${packageName} flags segments ls`
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
name: "List segments as JSON",
|
|
4465
|
+
value: `${packageName} flags segments ls --json`
|
|
4466
|
+
}
|
|
4467
|
+
]
|
|
4468
|
+
};
|
|
4469
|
+
var segmentsInspectSubcommand = {
|
|
4470
|
+
name: "inspect",
|
|
4471
|
+
aliases: [],
|
|
4472
|
+
description: "Display information about a feature flag segment",
|
|
4473
|
+
arguments: [
|
|
4474
|
+
{
|
|
4475
|
+
name: "segment",
|
|
4476
|
+
required: true
|
|
4477
|
+
}
|
|
4478
|
+
],
|
|
4479
|
+
options: [
|
|
4480
|
+
{
|
|
4481
|
+
name: "json",
|
|
4482
|
+
shorthand: null,
|
|
4483
|
+
type: Boolean,
|
|
4484
|
+
deprecated: false,
|
|
4485
|
+
description: "Output in JSON format"
|
|
4486
|
+
}
|
|
4487
|
+
],
|
|
4488
|
+
examples: [
|
|
4489
|
+
{
|
|
4490
|
+
name: "Show details of a segment",
|
|
4491
|
+
value: `${packageName} flags segments inspect beta-users`
|
|
4492
|
+
},
|
|
4493
|
+
{
|
|
4494
|
+
name: "Show segment data as JSON",
|
|
4495
|
+
value: `${packageName} flags segments inspect beta-users --json`
|
|
4496
|
+
}
|
|
4497
|
+
]
|
|
4498
|
+
};
|
|
4499
|
+
var segmentsCreateSubcommand = {
|
|
4500
|
+
name: "create",
|
|
4501
|
+
aliases: ["add"],
|
|
4502
|
+
description: "Create a feature flag segment",
|
|
4503
|
+
arguments: [
|
|
4504
|
+
{
|
|
4505
|
+
name: "slug",
|
|
4506
|
+
required: true
|
|
4507
|
+
}
|
|
4508
|
+
],
|
|
4509
|
+
options: [
|
|
4510
|
+
{
|
|
4511
|
+
name: "label",
|
|
4512
|
+
shorthand: "l",
|
|
4513
|
+
type: String,
|
|
4514
|
+
deprecated: false,
|
|
4515
|
+
description: "Human-readable label for the segment",
|
|
4516
|
+
argument: "LABEL"
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
name: "description",
|
|
4520
|
+
shorthand: "d",
|
|
4521
|
+
type: String,
|
|
4522
|
+
deprecated: false,
|
|
4523
|
+
description: "Description of the segment",
|
|
4524
|
+
argument: "TEXT"
|
|
4525
|
+
},
|
|
4526
|
+
{
|
|
4527
|
+
name: "hint",
|
|
4528
|
+
shorthand: null,
|
|
4529
|
+
type: String,
|
|
4530
|
+
deprecated: false,
|
|
4531
|
+
description: "Hint describing who belongs in the segment",
|
|
4532
|
+
argument: "TEXT"
|
|
4533
|
+
},
|
|
4534
|
+
{
|
|
4535
|
+
name: "data",
|
|
4536
|
+
shorthand: null,
|
|
4537
|
+
type: String,
|
|
4538
|
+
deprecated: false,
|
|
4539
|
+
description: "Full segment data JSON with rules, include, and exclude fields",
|
|
4540
|
+
argument: "JSON"
|
|
4541
|
+
},
|
|
4542
|
+
{
|
|
4543
|
+
name: "add",
|
|
4544
|
+
shorthand: "a",
|
|
4545
|
+
type: [String],
|
|
4546
|
+
deprecated: false,
|
|
4547
|
+
description: `Add include:ENTITY.ATTRIBUTE=VALUE, exclude:ENTITY.ATTRIBUTE=VALUE, or rule:ENTITY.ATTRIBUTE:OPERATOR:VALUE; repeatable. ${segmentRuleOperatorDescription}`,
|
|
4548
|
+
argument: "TARGET"
|
|
4549
|
+
},
|
|
4550
|
+
{
|
|
4551
|
+
name: "json",
|
|
4552
|
+
shorthand: null,
|
|
4553
|
+
type: Boolean,
|
|
4554
|
+
deprecated: false,
|
|
4555
|
+
description: "Output the created segment as JSON"
|
|
4556
|
+
}
|
|
4557
|
+
],
|
|
4558
|
+
examples: [
|
|
4559
|
+
{
|
|
4560
|
+
name: "Create a segment with included users",
|
|
4561
|
+
value: `${packageName} flags segments create beta-users --label "Beta users" --add include:user.id=user_123 --add include:user.id=user_456`
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
name: "Create a segment from rules",
|
|
4565
|
+
value: `${packageName} flags segments create enterprise-users --label "Enterprise users" --add rule:user.plan:eq:enterprise`
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
name: "Create a segment from full JSON data",
|
|
4569
|
+
value: `${packageName} flags segments create staff --label Staff --data '{"rules":[],"include":{"user":{"email":[{"value":"me@company.com"}]}},"exclude":{}}'`
|
|
4570
|
+
}
|
|
4571
|
+
]
|
|
4572
|
+
};
|
|
4573
|
+
var segmentsUpdateSubcommand = {
|
|
4574
|
+
name: "update",
|
|
4575
|
+
aliases: [],
|
|
4576
|
+
description: "Update a feature flag segment",
|
|
4577
|
+
arguments: [
|
|
4578
|
+
{
|
|
4579
|
+
name: "segment",
|
|
4580
|
+
required: true
|
|
4581
|
+
}
|
|
4582
|
+
],
|
|
4583
|
+
options: [
|
|
4584
|
+
{
|
|
4585
|
+
name: "label",
|
|
4586
|
+
shorthand: "l",
|
|
4587
|
+
type: String,
|
|
4588
|
+
deprecated: false,
|
|
4589
|
+
description: "New human-readable label for the segment",
|
|
4590
|
+
argument: "LABEL"
|
|
4591
|
+
},
|
|
4592
|
+
{
|
|
4593
|
+
name: "description",
|
|
4594
|
+
shorthand: "d",
|
|
4595
|
+
type: String,
|
|
4596
|
+
deprecated: false,
|
|
4597
|
+
description: "New description for the segment",
|
|
4598
|
+
argument: "TEXT"
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
name: "hint",
|
|
4602
|
+
shorthand: null,
|
|
4603
|
+
type: String,
|
|
4604
|
+
deprecated: false,
|
|
4605
|
+
description: "New hint for the segment",
|
|
4606
|
+
argument: "TEXT"
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
name: "data",
|
|
4610
|
+
shorthand: null,
|
|
4611
|
+
type: String,
|
|
4612
|
+
deprecated: false,
|
|
4613
|
+
description: "Replace the full segment data JSON with rules, include, and exclude fields",
|
|
4614
|
+
argument: "JSON"
|
|
4615
|
+
},
|
|
4616
|
+
{
|
|
4617
|
+
name: "add",
|
|
4618
|
+
shorthand: "a",
|
|
4619
|
+
type: [String],
|
|
4620
|
+
deprecated: false,
|
|
4621
|
+
description: `Add include:ENTITY.ATTRIBUTE=VALUE, exclude:ENTITY.ATTRIBUTE=VALUE, or rule:ENTITY.ATTRIBUTE:OPERATOR:VALUE; repeatable. ${segmentRuleOperatorDescription}`,
|
|
4622
|
+
argument: "TARGET"
|
|
4623
|
+
},
|
|
4624
|
+
{
|
|
4625
|
+
name: "remove",
|
|
4626
|
+
shorthand: null,
|
|
4627
|
+
type: [String],
|
|
4628
|
+
deprecated: false,
|
|
4629
|
+
description: `Remove include:ENTITY.ATTRIBUTE=VALUE, exclude:ENTITY.ATTRIBUTE=VALUE, rule:ENTITY.ATTRIBUTE:OPERATOR:VALUE, or rule:RULE_ID; repeatable. ${segmentRuleOperatorDescription}`,
|
|
4630
|
+
argument: "TARGET"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
name: "json",
|
|
4634
|
+
shorthand: null,
|
|
4635
|
+
type: Boolean,
|
|
4636
|
+
deprecated: false,
|
|
4637
|
+
description: "Output the updated segment as JSON"
|
|
4638
|
+
}
|
|
4639
|
+
],
|
|
4640
|
+
examples: [
|
|
4641
|
+
{
|
|
4642
|
+
name: "Rename a segment",
|
|
4643
|
+
value: `${packageName} flags segments update beta-users --label "Early access users"`
|
|
4644
|
+
},
|
|
4645
|
+
{
|
|
4646
|
+
name: "Add and remove included users",
|
|
4647
|
+
value: `${packageName} flags segments update beta-users --add include:user.id=user_789 --remove include:user.id=user_123`
|
|
4648
|
+
},
|
|
4649
|
+
{
|
|
4650
|
+
name: "Add and remove rules",
|
|
4651
|
+
value: `${packageName} flags segments update enterprise-users --add rule:user.email:ends-with:@company.com --remove rule:user.plan:eq:pro`
|
|
4652
|
+
}
|
|
4653
|
+
]
|
|
4654
|
+
};
|
|
4655
|
+
var segmentsRemoveSubcommand = {
|
|
4656
|
+
name: "remove",
|
|
4657
|
+
aliases: ["rm"],
|
|
4658
|
+
description: "Delete a feature flag segment",
|
|
4659
|
+
arguments: [
|
|
4660
|
+
{
|
|
4661
|
+
name: "segment",
|
|
4662
|
+
required: true
|
|
4663
|
+
}
|
|
4664
|
+
],
|
|
4665
|
+
options: [
|
|
4666
|
+
{
|
|
4667
|
+
...yesOption,
|
|
4668
|
+
description: "Skip the confirmation prompt when deleting a segment"
|
|
4669
|
+
}
|
|
4670
|
+
],
|
|
4671
|
+
examples: [
|
|
4672
|
+
{
|
|
4673
|
+
name: "Delete a segment",
|
|
4674
|
+
value: `${packageName} flags segments rm beta-users`
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
name: "Delete without confirmation",
|
|
4678
|
+
value: `${packageName} flags segments rm beta-users --yes`
|
|
4679
|
+
}
|
|
4680
|
+
]
|
|
4681
|
+
};
|
|
4682
|
+
var segmentsSubcommand = {
|
|
4683
|
+
name: "segments",
|
|
4684
|
+
aliases: [],
|
|
4685
|
+
description: "Manage feature flag segments",
|
|
4686
|
+
arguments: [],
|
|
4687
|
+
subcommands: [
|
|
4688
|
+
segmentsListSubcommand,
|
|
4689
|
+
segmentsInspectSubcommand,
|
|
4690
|
+
segmentsCreateSubcommand,
|
|
4691
|
+
segmentsUpdateSubcommand,
|
|
4692
|
+
segmentsRemoveSubcommand
|
|
4693
|
+
],
|
|
4694
|
+
options: [],
|
|
4695
|
+
examples: []
|
|
4696
|
+
};
|
|
4338
4697
|
var sdkKeysListSubcommand = {
|
|
4339
4698
|
name: "list",
|
|
4340
4699
|
aliases: ["ls"],
|
|
@@ -4512,6 +4871,7 @@ var flagsCommand = {
|
|
|
4512
4871
|
archiveSubcommand,
|
|
4513
4872
|
disableSubcommand,
|
|
4514
4873
|
enableSubcommand,
|
|
4874
|
+
segmentsSubcommand,
|
|
4515
4875
|
sdkKeysSubcommand,
|
|
4516
4876
|
prepareSubcommand,
|
|
4517
4877
|
overrideSubcommand
|
|
@@ -5878,7 +6238,7 @@ var logsCommand = {
|
|
|
5878
6238
|
shorthand: "b",
|
|
5879
6239
|
type: String,
|
|
5880
6240
|
deprecated: false,
|
|
5881
|
-
description: "Filter by git branch (defaults to current branch
|
|
6241
|
+
description: "Filter by git branch (defaults to current branch for a linked project)"
|
|
5882
6242
|
},
|
|
5883
6243
|
{
|
|
5884
6244
|
name: "no-branch",
|
|
@@ -5897,6 +6257,10 @@ var logsCommand = {
|
|
|
5897
6257
|
name: "Stream live logs for a deployment ID",
|
|
5898
6258
|
value: `${packageName} logs dpl_xxxxx --follow`
|
|
5899
6259
|
},
|
|
6260
|
+
{
|
|
6261
|
+
name: "Stream logs for the latest production deployment of a project",
|
|
6262
|
+
value: `${packageName} logs --project my-app --follow`
|
|
6263
|
+
},
|
|
5900
6264
|
{
|
|
5901
6265
|
name: "Display recent logs for the linked project",
|
|
5902
6266
|
value: `${packageName} logs`
|
|
@@ -8034,7 +8398,7 @@ var getSubcommand2 = {
|
|
|
8034
8398
|
name: "view",
|
|
8035
8399
|
shorthand: null,
|
|
8036
8400
|
type: String,
|
|
8037
|
-
argument: "timeline|tree|
|
|
8401
|
+
argument: "timeline|tree|waterfall",
|
|
8038
8402
|
deprecated: false,
|
|
8039
8403
|
description: "Dashboard view to open. Only valid with --open. Defaults to timeline."
|
|
8040
8404
|
}
|
|
@@ -8061,8 +8425,8 @@ var getSubcommand2 = {
|
|
|
8061
8425
|
value: `${packageName} traces get req_1234567890 --open`
|
|
8062
8426
|
},
|
|
8063
8427
|
{
|
|
8064
|
-
name: "Open the trace in the Vercel Dashboard with the
|
|
8065
|
-
value: `${packageName} traces get req_1234567890 --open --view
|
|
8428
|
+
name: "Open the trace in the Vercel Dashboard with the waterfall view",
|
|
8429
|
+
value: `${packageName} traces get req_1234567890 --open --view waterfall`
|
|
8066
8430
|
}
|
|
8067
8431
|
]
|
|
8068
8432
|
};
|
|
@@ -9103,6 +9467,7 @@ export {
|
|
|
9103
9467
|
checkSubcommand,
|
|
9104
9468
|
moveSubcommand,
|
|
9105
9469
|
transferInSubcommand,
|
|
9470
|
+
verifySubcommand,
|
|
9106
9471
|
domainsCommand,
|
|
9107
9472
|
listSubcommand9,
|
|
9108
9473
|
addSubcommand6 as addSubcommand5,
|
|
@@ -9140,6 +9505,10 @@ export {
|
|
|
9140
9505
|
systemMitigationsResumeSubcommand,
|
|
9141
9506
|
systemMitigationsSubcommand,
|
|
9142
9507
|
firewallCommand,
|
|
9508
|
+
FLAG_CONDITION_LIST_COMPARATORS,
|
|
9509
|
+
FLAG_CONDITION_RHS_OPTIONAL_COMPARATORS,
|
|
9510
|
+
formatFlagConditionComparatorList,
|
|
9511
|
+
formatFlagConditionComparator,
|
|
9143
9512
|
listSubcommand10,
|
|
9144
9513
|
inspectSubcommand2,
|
|
9145
9514
|
createSubcommand4,
|
|
@@ -9152,6 +9521,12 @@ export {
|
|
|
9152
9521
|
archiveSubcommand,
|
|
9153
9522
|
disableSubcommand,
|
|
9154
9523
|
enableSubcommand,
|
|
9524
|
+
segmentsListSubcommand,
|
|
9525
|
+
segmentsInspectSubcommand,
|
|
9526
|
+
segmentsCreateSubcommand,
|
|
9527
|
+
segmentsUpdateSubcommand,
|
|
9528
|
+
segmentsRemoveSubcommand,
|
|
9529
|
+
segmentsSubcommand,
|
|
9155
9530
|
sdkKeysListSubcommand,
|
|
9156
9531
|
sdkKeysAddSubcommand,
|
|
9157
9532
|
sdkKeysRemoveSubcommand,
|
|
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
printProjectNotFoundError,
|
|
9
9
|
setupAndLink
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OQD4G5FW.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
resolveProjectCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithYes,
|
|
18
18
|
outputActionRequired
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalPathConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UZD3DM6V.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
15
15
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useKeypress,
|
|
37
37
|
usePrefix,
|
|
38
38
|
useState
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
40
40
|
import {
|
|
41
41
|
require_load_json_file
|
|
42
42
|
} from "./chunk-HIYWSGI7.js";
|