vercel 54.13.0 → 54.14.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/chunks/{add-PVEKZBHH.js → add-INSQH24S.js} +7 -7
- package/dist/chunks/{chunk-FPRA7U2P.js → chunk-467YGYFK.js} +1 -1
- package/dist/chunks/{chunk-6K3WJDFA.js → chunk-4WQGP4Z4.js} +9 -9
- package/dist/chunks/{chunk-V4GROAUJ.js → chunk-5QKYBWW2.js} +4 -7
- package/dist/chunks/chunk-64IF634X.js +18 -0
- package/dist/chunks/{chunk-V2WFM23D.js → chunk-74VEZPM6.js} +1 -1
- package/dist/chunks/{chunk-5SYDEK2N.js → chunk-D7MGZH35.js} +1 -1
- package/dist/chunks/{chunk-Y76J3TGD.js → chunk-DAKMPPIS.js} +1 -1
- package/dist/chunks/{chunk-NR67NDOY.js → chunk-F4WXNECT.js} +209 -76
- package/dist/chunks/{chunk-ADLWAO5W.js → chunk-F6SCQ6XU.js} +58 -16
- package/dist/chunks/{chunk-7CJZCFLW.js → chunk-FKNOCLZU.js} +2 -2
- package/dist/chunks/{chunk-CO5D46AG.js → chunk-GGP5R3FU.js} +18 -38
- package/dist/chunks/{chunk-J5273CSE.js → chunk-HIYWSGI7.js} +19 -10
- package/dist/chunks/{chunk-UAI4ESAJ.js → chunk-J4LCBXF2.js} +14 -41
- package/dist/chunks/{chunk-ABOX5TXU.js → chunk-L7U3Z7E4.js} +3 -3
- package/dist/chunks/{chunk-7OZWGXPA.js → chunk-MKB32SJZ.js} +2 -2
- package/dist/chunks/{chunk-4KAFHBYE.js → chunk-NMGGBH7K.js} +1 -1
- package/dist/chunks/{chunk-C3VH3X5Y.js → chunk-P2AMQX7F.js} +3 -3
- package/dist/chunks/{chunk-6D6CSOSK.js → chunk-P6VIXOWO.js} +84 -60
- package/dist/chunks/{chunk-PV533MBH.js → chunk-PMUUPCDL.js} +1 -1
- package/dist/chunks/{chunk-S4VHXL2Y.js → chunk-TVBXGFEL.js} +1 -1
- package/dist/chunks/{chunk-G7QWUIGS.js → chunk-UEFCAT3N.js} +2 -2
- package/dist/chunks/{chunk-OEM7RB3X.js → chunk-UJ3ZCBUA.js} +1 -1
- package/dist/chunks/{chunk-VNUNCNPE.js → chunk-UPI3OHBK.js} +1 -1
- package/dist/chunks/chunk-VXYGCOKL.js +28 -0
- package/dist/chunks/{chunk-5UCWXYNH.js → chunk-XLLAD5DR.js} +87 -45
- package/dist/chunks/{chunk-Z7KOKD2G.js → chunk-YQPAAXUU.js} +1 -1
- package/dist/chunks/{chunk-B6C7NMT3.js → chunk-Z2MBXYZZ.js} +1 -1
- package/dist/chunks/{chunk-DAASB6YQ.js → chunk-ZRJQY3VK.js} +22 -2
- package/dist/chunks/{compile-vercel-config-MD37D2F7.js → compile-vercel-config-VPPGDFKL.js} +3 -3
- package/dist/chunks/{delete-6EMDCXSA.js → delete-O3EHQHYD.js} +8 -6
- package/dist/chunks/{disable-FLJ27NHG.js → disable-GJDQC34I.js} +8 -6
- package/dist/chunks/{discard-KEIII6RM.js → discard-UZT23XN2.js} +8 -6
- package/dist/chunks/{edit-DOL2ZJPG.js → edit-PEQIROSE.js} +10 -8
- package/dist/chunks/{enable-PZWZIETT.js → enable-ACNEAJ5S.js} +8 -6
- package/dist/chunks/{export-2PFHAELC.js → export-ZICIQKHJ.js} +4 -4
- package/dist/chunks/{inspect-WPWOZJ2K.js → inspect-PUFF7LND.js} +6 -6
- package/dist/chunks/{list-4R5DCLTB.js → list-FWUV4NO4.js} +5 -5
- package/dist/chunks/{list-ZT7QK2H7.js → list-L2UFHHQ7.js} +7 -7
- package/dist/chunks/{ls-4JTXQXMQ.js → ls-6HVFGIQS.js} +7 -7
- package/dist/chunks/{publish-JV4J3SOA.js → publish-HKTAQMYG.js} +8 -6
- package/dist/chunks/{query-N22EYSZZ.js → query-VQ5HDMFO.js} +97 -41
- package/dist/chunks/{reorder-TG53BKW4.js → reorder-CVMW6VL7.js} +8 -6
- package/dist/chunks/{restore-U7O4VESA.js → restore-32NXH4EH.js} +8 -6
- package/dist/chunks/{rm-XA4LYZXI.js → rm-7TPDWMJZ.js} +7 -7
- package/dist/chunks/{routes-EAMQVFU2.js → routes-YEU33SON.js} +2 -2
- package/dist/chunks/{rule-inspect-HC745CYT.js → rule-inspect-PQORU3SU.js} +7 -7
- package/dist/chunks/{rules-RMN72YHN.js → rules-VIITOYFN.js} +6 -6
- package/dist/chunks/{schema-CZVKUXM6.js → schema-AECGMSF5.js} +6 -6
- package/dist/chunks/{stamp-ENIXDCRO.js → stamp-AA7R3MZS.js} +3 -1
- package/dist/chunks/{update-PU3WLIA7.js → update-J4QCT3GS.js} +7 -7
- package/dist/commands/build/index.js +16 -14
- package/dist/commands/deploy/index.js +22 -163
- package/dist/commands/dev/index.js +13 -14
- package/dist/commands/env/index.js +153 -92
- package/dist/commands/link/index.js +11 -11
- package/dist/commands/list/index.js +10 -8
- package/dist/commands-bulk.js +2472 -1696
- package/dist/index.js +18 -18
- package/dist/version.mjs +1 -1
- package/package.json +14 -14
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-MKB32SJZ.js";
|
|
13
|
+
import "./chunk-L7U3Z7E4.js";
|
|
14
|
+
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-XPKWKPWA.js";
|
|
@@ -21,15 +21,15 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-LJ5WXXG6.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-YQPAAXUU.js";
|
|
25
|
+
import "./chunk-XLLAD5DR.js";
|
|
26
|
+
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
29
29
|
outputAgentError
|
|
30
30
|
} from "./chunk-NHGCQRK5.js";
|
|
31
|
-
import "./chunk-CO5D46AG.js";
|
|
32
31
|
import "./chunk-N2T234LO.js";
|
|
32
|
+
import "./chunk-GGP5R3FU.js";
|
|
33
33
|
import {
|
|
34
34
|
getFlagsSpecification,
|
|
35
35
|
parseArguments,
|
|
@@ -6,16 +6,19 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-467YGYFK.js";
|
|
10
|
+
import {
|
|
11
|
+
stamp_default
|
|
12
|
+
} from "./chunk-64IF634X.js";
|
|
10
13
|
import {
|
|
11
14
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FKNOCLZU.js";
|
|
13
16
|
import {
|
|
14
17
|
pullCommand
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UJ3ZCBUA.js";
|
|
16
19
|
import {
|
|
17
20
|
help
|
|
18
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UPI3OHBK.js";
|
|
19
22
|
import {
|
|
20
23
|
VERCEL_DIR,
|
|
21
24
|
VERCEL_DIR_PROJECT,
|
|
@@ -23,13 +26,10 @@ import {
|
|
|
23
26
|
envPullCommandLogic,
|
|
24
27
|
humanizePath,
|
|
25
28
|
parseTarget
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XLLAD5DR.js";
|
|
27
30
|
import {
|
|
28
31
|
TelemetryClient
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
stamp_default
|
|
32
|
-
} from "./chunk-CO5D46AG.js";
|
|
32
|
+
} from "./chunk-HIYWSGI7.js";
|
|
33
33
|
import {
|
|
34
34
|
getFlagsSpecification,
|
|
35
35
|
parseArguments,
|
|
@@ -6,7 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XLLAD5DR.js";
|
|
10
|
+
import {
|
|
11
|
+
isNativeBinaryInstall
|
|
12
|
+
} from "./chunk-HIYWSGI7.js";
|
|
10
13
|
import {
|
|
11
14
|
packageName
|
|
12
15
|
} from "./chunk-LN6B7ZI3.js";
|
|
@@ -14,11 +17,6 @@ import {
|
|
|
14
17
|
__toESM
|
|
15
18
|
} from "./chunk-TZ2YI2VH.js";
|
|
16
19
|
|
|
17
|
-
// src/util/native-install.ts
|
|
18
|
-
function isNativeBinaryInstall() {
|
|
19
|
-
return process.env.VERCEL_VC_NATIVE === "1";
|
|
20
|
-
}
|
|
21
|
-
|
|
22
20
|
// src/util/get-update-command.ts
|
|
23
21
|
var import_fs_extra = __toESM(require_lib(), 1);
|
|
24
22
|
import { sep, dirname, join, resolve } from "path";
|
|
@@ -174,7 +172,6 @@ async function getUpdateCommand() {
|
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
export {
|
|
177
|
-
isNativeBinaryInstall,
|
|
178
175
|
isGlobal,
|
|
179
176
|
getUpdateCommandInfo,
|
|
180
177
|
getUpdateCommand
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
elapsed
|
|
9
|
+
} from "./chunk-VXYGCOKL.js";
|
|
10
|
+
|
|
11
|
+
// src/util/output/stamp.ts
|
|
12
|
+
var stamp_default = (start = Date.now()) => {
|
|
13
|
+
return () => elapsed(Date.now() - start);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
stamp_default
|
|
18
|
+
};
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
metricsCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZRJQY3VK.js";
|
|
10
10
|
import {
|
|
11
11
|
routesCommand
|
|
12
12
|
} from "./chunk-WFRHKZFI.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UJ3ZCBUA.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XLLAD5DR.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -66,13 +66,6 @@ var initSubcommand = {
|
|
|
66
66
|
deprecated: false,
|
|
67
67
|
description: 'Retain build cache when using "--force"'
|
|
68
68
|
},
|
|
69
|
-
{
|
|
70
|
-
name: "public",
|
|
71
|
-
shorthand: "p",
|
|
72
|
-
type: Boolean,
|
|
73
|
-
deprecated: false,
|
|
74
|
-
description: "Deployment is public (`/_src`) is exposed)"
|
|
75
|
-
},
|
|
76
69
|
{
|
|
77
70
|
name: "env",
|
|
78
71
|
shorthand: "e",
|
|
@@ -142,21 +135,7 @@ var initSubcommand = {
|
|
|
142
135
|
formatOption,
|
|
143
136
|
jsonOption,
|
|
144
137
|
confirmOption,
|
|
145
|
-
projectOption
|
|
146
|
-
{
|
|
147
|
-
name: "functions-beta",
|
|
148
|
-
shorthand: null,
|
|
149
|
-
type: Boolean,
|
|
150
|
-
deprecated: false
|
|
151
|
-
// No description — keeps it hidden from --help output
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
name: "no-functions-beta",
|
|
155
|
-
shorthand: null,
|
|
156
|
-
type: Boolean,
|
|
157
|
-
deprecated: false
|
|
158
|
-
// No description — keeps it hidden from --help output
|
|
159
|
-
}
|
|
138
|
+
projectOption
|
|
160
139
|
],
|
|
161
140
|
examples: [
|
|
162
141
|
{
|
|
@@ -231,13 +210,6 @@ var deployCommand = {
|
|
|
231
210
|
deprecated: false,
|
|
232
211
|
description: 'Retain build cache when using "--force"'
|
|
233
212
|
},
|
|
234
|
-
{
|
|
235
|
-
name: "public",
|
|
236
|
-
shorthand: "p",
|
|
237
|
-
type: Boolean,
|
|
238
|
-
deprecated: false,
|
|
239
|
-
description: "Deployment is public (`/_src`) is exposed)"
|
|
240
|
-
},
|
|
241
213
|
{
|
|
242
214
|
name: "env",
|
|
243
215
|
shorthand: "e",
|
|
@@ -354,21 +326,7 @@ var deployCommand = {
|
|
|
354
326
|
formatOption,
|
|
355
327
|
jsonOption,
|
|
356
328
|
confirmOption,
|
|
357
|
-
projectOption
|
|
358
|
-
{
|
|
359
|
-
name: "functions-beta",
|
|
360
|
-
shorthand: null,
|
|
361
|
-
type: Boolean,
|
|
362
|
-
deprecated: false
|
|
363
|
-
// No description — keeps it hidden from --help output
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
name: "no-functions-beta",
|
|
367
|
-
shorthand: null,
|
|
368
|
-
type: Boolean,
|
|
369
|
-
deprecated: false
|
|
370
|
-
// No description — keeps it hidden from --help output
|
|
371
|
-
}
|
|
329
|
+
projectOption
|
|
372
330
|
],
|
|
373
331
|
examples: [
|
|
374
332
|
{
|
|
@@ -398,12 +356,12 @@ var deployCommand = {
|
|
|
398
356
|
var addSubcommand = {
|
|
399
357
|
name: "add",
|
|
400
358
|
aliases: [],
|
|
401
|
-
description: "Add
|
|
359
|
+
description: "Add projects to an existing repository link created by link --repo",
|
|
402
360
|
arguments: [],
|
|
403
361
|
options: [
|
|
404
362
|
{
|
|
405
363
|
...yesOption,
|
|
406
|
-
description: "Skip questions when adding projects
|
|
364
|
+
description: "Skip questions when adding projects with default team and settings"
|
|
407
365
|
}
|
|
408
366
|
],
|
|
409
367
|
examples: [
|
|
@@ -416,13 +374,13 @@ var addSubcommand = {
|
|
|
416
374
|
var linkCommand = {
|
|
417
375
|
name: "link",
|
|
418
376
|
aliases: [],
|
|
419
|
-
description: "Link a local directory to a Vercel
|
|
377
|
+
description: "Link a local directory to a Vercel project",
|
|
420
378
|
arguments: [],
|
|
421
379
|
subcommands: [addSubcommand],
|
|
422
380
|
options: [
|
|
423
381
|
{
|
|
424
382
|
name: "repo",
|
|
425
|
-
description: "Link multiple projects
|
|
383
|
+
description: "Link multiple projects from the Git repository (alpha)",
|
|
426
384
|
shorthand: "r",
|
|
427
385
|
type: Boolean,
|
|
428
386
|
deprecated: false
|
|
@@ -430,11 +388,11 @@ var linkCommand = {
|
|
|
430
388
|
{
|
|
431
389
|
...projectOption,
|
|
432
390
|
shorthand: "p",
|
|
433
|
-
description: "
|
|
391
|
+
description: "Set the project name or ID to link; required for non-interactive existing-project links"
|
|
434
392
|
},
|
|
435
393
|
{
|
|
436
394
|
name: "team",
|
|
437
|
-
description: "
|
|
395
|
+
description: "Set the team ID or slug; use with --project for non-interactive links",
|
|
438
396
|
shorthand: null,
|
|
439
397
|
argument: "TEAM_ID_OR_SLUG",
|
|
440
398
|
type: String,
|
|
@@ -442,13 +400,13 @@ var linkCommand = {
|
|
|
442
400
|
},
|
|
443
401
|
{
|
|
444
402
|
...yesOption,
|
|
445
|
-
description: "Skip questions when setting up
|
|
403
|
+
description: "Skip questions when setting up with default team and settings"
|
|
446
404
|
},
|
|
447
405
|
confirmOption
|
|
448
406
|
],
|
|
449
407
|
examples: [
|
|
450
408
|
{
|
|
451
|
-
name: "Link current directory to a Vercel
|
|
409
|
+
name: "Link current directory to a Vercel project",
|
|
452
410
|
value: `${packageName} link`
|
|
453
411
|
},
|
|
454
412
|
{
|
|
@@ -456,15 +414,15 @@ var linkCommand = {
|
|
|
456
414
|
value: `${packageName} link --yes`
|
|
457
415
|
},
|
|
458
416
|
{
|
|
459
|
-
name: "
|
|
417
|
+
name: "Link to an existing project in CI or agent mode",
|
|
460
418
|
value: `${packageName} link --yes --team <team-id> --project <project-name-or-id>`
|
|
461
419
|
},
|
|
462
420
|
{
|
|
463
|
-
name: "Link a specific directory to a Vercel
|
|
421
|
+
name: "Link a specific directory to a Vercel project",
|
|
464
422
|
value: `${packageName} link --cwd /path/to/project`
|
|
465
423
|
},
|
|
466
424
|
{
|
|
467
|
-
name: "Link
|
|
425
|
+
name: "Link multiple projects from the current Git repository",
|
|
468
426
|
value: `${packageName} link --repo`
|
|
469
427
|
},
|
|
470
428
|
{
|
|
@@ -562,12 +520,173 @@ var apiKeysSubcommand = {
|
|
|
562
520
|
options: [],
|
|
563
521
|
examples: []
|
|
564
522
|
};
|
|
523
|
+
var rulesAddSubcommand = {
|
|
524
|
+
name: "add",
|
|
525
|
+
aliases: [],
|
|
526
|
+
description: "Add an AI Gateway routing rule",
|
|
527
|
+
arguments: [],
|
|
528
|
+
options: [
|
|
529
|
+
{
|
|
530
|
+
name: "type",
|
|
531
|
+
shorthand: null,
|
|
532
|
+
type: String,
|
|
533
|
+
argument: "TYPE",
|
|
534
|
+
deprecated: false,
|
|
535
|
+
description: "Rule type: rewrite or deny"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "source",
|
|
539
|
+
shorthand: null,
|
|
540
|
+
type: String,
|
|
541
|
+
argument: "MODEL",
|
|
542
|
+
deprecated: false,
|
|
543
|
+
description: "Model the rule matches (e.g. anthropic/claude-sonnet-4.5)"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: "destination",
|
|
547
|
+
shorthand: null,
|
|
548
|
+
type: String,
|
|
549
|
+
argument: "MODEL",
|
|
550
|
+
deprecated: false,
|
|
551
|
+
description: "Target model a rewrite rule routes to"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: "reason",
|
|
555
|
+
shorthand: null,
|
|
556
|
+
type: String,
|
|
557
|
+
argument: "TEXT",
|
|
558
|
+
deprecated: false,
|
|
559
|
+
description: "Reason surfaced when the rule applies"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
name: "description",
|
|
563
|
+
shorthand: null,
|
|
564
|
+
type: String,
|
|
565
|
+
argument: "TEXT",
|
|
566
|
+
deprecated: false,
|
|
567
|
+
description: "Human-readable description of the rule"
|
|
568
|
+
},
|
|
569
|
+
formatOption
|
|
570
|
+
],
|
|
571
|
+
examples: [
|
|
572
|
+
{
|
|
573
|
+
name: "Rewrite one model to another",
|
|
574
|
+
value: `${packageName} ai-gateway rules add --type rewrite --source anthropic/claude-fable-5 --destination anthropic/claude-opus-4.8`
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "Deny a model",
|
|
578
|
+
value: `${packageName} ai-gateway rules add --type deny --source openai/gpt-4o`
|
|
579
|
+
}
|
|
580
|
+
]
|
|
581
|
+
};
|
|
582
|
+
var rulesListSubcommand = {
|
|
583
|
+
name: "list",
|
|
584
|
+
aliases: ["ls"],
|
|
585
|
+
description: "List AI Gateway routing rules",
|
|
586
|
+
arguments: [],
|
|
587
|
+
options: [
|
|
588
|
+
{
|
|
589
|
+
name: "include-disabled",
|
|
590
|
+
shorthand: null,
|
|
591
|
+
type: Boolean,
|
|
592
|
+
deprecated: false,
|
|
593
|
+
description: "Include disabled rules"
|
|
594
|
+
},
|
|
595
|
+
formatOption
|
|
596
|
+
],
|
|
597
|
+
examples: [
|
|
598
|
+
{
|
|
599
|
+
name: "List routing rules",
|
|
600
|
+
value: `${packageName} ai-gateway rules ls`
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
};
|
|
604
|
+
var rulesEditSubcommand = {
|
|
605
|
+
name: "edit",
|
|
606
|
+
aliases: [],
|
|
607
|
+
description: "Edit an AI Gateway routing rule",
|
|
608
|
+
arguments: [{ name: "ruleId", required: true }],
|
|
609
|
+
options: [
|
|
610
|
+
{
|
|
611
|
+
name: "enable",
|
|
612
|
+
shorthand: null,
|
|
613
|
+
type: Boolean,
|
|
614
|
+
deprecated: false,
|
|
615
|
+
description: "Enable the rule"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: "disable",
|
|
619
|
+
shorthand: null,
|
|
620
|
+
type: Boolean,
|
|
621
|
+
deprecated: false,
|
|
622
|
+
description: "Disable the rule"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
name: "destination",
|
|
626
|
+
shorthand: null,
|
|
627
|
+
type: String,
|
|
628
|
+
argument: "MODEL",
|
|
629
|
+
deprecated: false,
|
|
630
|
+
description: "Target model a rewrite rule routes to"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "reason",
|
|
634
|
+
shorthand: null,
|
|
635
|
+
type: String,
|
|
636
|
+
argument: "TEXT",
|
|
637
|
+
deprecated: false,
|
|
638
|
+
description: "Reason surfaced when the rule applies"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
name: "description",
|
|
642
|
+
shorthand: null,
|
|
643
|
+
type: String,
|
|
644
|
+
argument: "TEXT",
|
|
645
|
+
deprecated: false,
|
|
646
|
+
description: "Human-readable description of the rule"
|
|
647
|
+
},
|
|
648
|
+
formatOption
|
|
649
|
+
],
|
|
650
|
+
examples: [
|
|
651
|
+
{
|
|
652
|
+
name: "Disable a rule",
|
|
653
|
+
value: `${packageName} ai-gateway rules edit rule_123 --disable`
|
|
654
|
+
}
|
|
655
|
+
]
|
|
656
|
+
};
|
|
657
|
+
var rulesRemoveSubcommand = {
|
|
658
|
+
name: "remove",
|
|
659
|
+
aliases: ["rm", "delete"],
|
|
660
|
+
description: "Remove an AI Gateway routing rule",
|
|
661
|
+
arguments: [{ name: "ruleId", required: true }],
|
|
662
|
+
options: [yesOption, formatOption],
|
|
663
|
+
examples: [
|
|
664
|
+
{
|
|
665
|
+
name: "Remove a rule",
|
|
666
|
+
value: `${packageName} ai-gateway rules rm rule_123`
|
|
667
|
+
}
|
|
668
|
+
]
|
|
669
|
+
};
|
|
670
|
+
var rulesSubcommand = {
|
|
671
|
+
name: "rules",
|
|
672
|
+
aliases: [],
|
|
673
|
+
description: "Manage AI Gateway routing rules (Beta).\n\nAI Gateway routing rules are in beta and may change before general availability. Avoid relying on them in production.",
|
|
674
|
+
arguments: [],
|
|
675
|
+
subcommands: [
|
|
676
|
+
rulesAddSubcommand,
|
|
677
|
+
rulesListSubcommand,
|
|
678
|
+
rulesEditSubcommand,
|
|
679
|
+
rulesRemoveSubcommand
|
|
680
|
+
],
|
|
681
|
+
options: [],
|
|
682
|
+
examples: []
|
|
683
|
+
};
|
|
565
684
|
var aiGatewayCommand = {
|
|
566
685
|
name: "ai-gateway",
|
|
567
686
|
aliases: [],
|
|
568
687
|
description: "Manage AI Gateway resources",
|
|
569
688
|
arguments: [],
|
|
570
|
-
subcommands: [apiKeysSubcommand],
|
|
689
|
+
subcommands: [apiKeysSubcommand, rulesSubcommand],
|
|
571
690
|
options: [],
|
|
572
691
|
examples: []
|
|
573
692
|
};
|
|
@@ -939,9 +1058,10 @@ var creditsSubcommand = {
|
|
|
939
1058
|
}
|
|
940
1059
|
]
|
|
941
1060
|
};
|
|
942
|
-
var SUPPORTED_ADDON_ALIASES = ["siem"];
|
|
1061
|
+
var SUPPORTED_ADDON_ALIASES = ["siem", "customEnvironment"];
|
|
943
1062
|
var ADDON_LABELS = {
|
|
944
|
-
siem: "SIEM"
|
|
1063
|
+
siem: "SIEM",
|
|
1064
|
+
customEnvironment: "Custom Environments"
|
|
945
1065
|
};
|
|
946
1066
|
var addonSubcommand = {
|
|
947
1067
|
name: "addon",
|
|
@@ -969,6 +1089,10 @@ var addonSubcommand = {
|
|
|
969
1089
|
{
|
|
970
1090
|
name: "Purchase 1 unit of the SIEM addon",
|
|
971
1091
|
value: `${packageName} buy addon siem 1`
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
name: "Purchase 1 unit of the Custom Environments addon",
|
|
1095
|
+
value: `${packageName} buy addon customEnvironment 1`
|
|
972
1096
|
}
|
|
973
1097
|
]
|
|
974
1098
|
};
|
|
@@ -1049,6 +1173,10 @@ var buyCommand = {
|
|
|
1049
1173
|
name: "Purchase the SIEM addon",
|
|
1050
1174
|
value: `${packageName} buy addon siem 1`
|
|
1051
1175
|
},
|
|
1176
|
+
{
|
|
1177
|
+
name: "Purchase the Custom Environments addon",
|
|
1178
|
+
value: `${packageName} buy addon customEnvironment 1`
|
|
1179
|
+
},
|
|
1052
1180
|
{
|
|
1053
1181
|
name: "Upgrade to Pro",
|
|
1054
1182
|
value: `${packageName} buy pro`
|
|
@@ -3083,7 +3211,7 @@ var ipBlocksSubcommand = {
|
|
|
3083
3211
|
}
|
|
3084
3212
|
]
|
|
3085
3213
|
};
|
|
3086
|
-
var
|
|
3214
|
+
var rulesListSubcommand2 = {
|
|
3087
3215
|
name: "list",
|
|
3088
3216
|
aliases: ["ls"],
|
|
3089
3217
|
description: "List all custom firewall rules, including any unpublished draft changes",
|
|
@@ -3140,7 +3268,7 @@ var rulesInspectSubcommand = {
|
|
|
3140
3268
|
}
|
|
3141
3269
|
]
|
|
3142
3270
|
};
|
|
3143
|
-
var
|
|
3271
|
+
var rulesAddSubcommand2 = {
|
|
3144
3272
|
name: "add",
|
|
3145
3273
|
aliases: [],
|
|
3146
3274
|
description: "Create a new custom firewall rule using AI, an interactive builder, JSON, or command-line flags. Stages a draft change \u2014 run `publish` to make it live",
|
|
@@ -3276,7 +3404,7 @@ var rulesAddSubcommand = {
|
|
|
3276
3404
|
}
|
|
3277
3405
|
]
|
|
3278
3406
|
};
|
|
3279
|
-
var
|
|
3407
|
+
var rulesEditSubcommand2 = {
|
|
3280
3408
|
name: "edit",
|
|
3281
3409
|
aliases: [],
|
|
3282
3410
|
description: "Edit an existing custom firewall rule using AI, an interactive editor, JSON, or command-line flags. Stages a draft change \u2014 run `publish` to make it live",
|
|
@@ -3452,7 +3580,7 @@ var rulesDisableSubcommand = {
|
|
|
3452
3580
|
}
|
|
3453
3581
|
]
|
|
3454
3582
|
};
|
|
3455
|
-
var
|
|
3583
|
+
var rulesRemoveSubcommand2 = {
|
|
3456
3584
|
name: "remove",
|
|
3457
3585
|
aliases: ["rm", "delete"],
|
|
3458
3586
|
description: "Remove a custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
|
|
@@ -3505,19 +3633,19 @@ var rulesReorderSubcommand = {
|
|
|
3505
3633
|
}
|
|
3506
3634
|
]
|
|
3507
3635
|
};
|
|
3508
|
-
var
|
|
3636
|
+
var rulesSubcommand2 = {
|
|
3509
3637
|
name: "rules",
|
|
3510
3638
|
aliases: [],
|
|
3511
3639
|
description: "Manage custom firewall rules that control how traffic is handled based on conditions",
|
|
3512
3640
|
arguments: [],
|
|
3513
3641
|
subcommands: [
|
|
3514
|
-
|
|
3642
|
+
rulesListSubcommand2,
|
|
3515
3643
|
rulesInspectSubcommand,
|
|
3516
|
-
|
|
3517
|
-
|
|
3644
|
+
rulesAddSubcommand2,
|
|
3645
|
+
rulesEditSubcommand2,
|
|
3518
3646
|
rulesEnableSubcommand,
|
|
3519
3647
|
rulesDisableSubcommand,
|
|
3520
|
-
|
|
3648
|
+
rulesRemoveSubcommand2,
|
|
3521
3649
|
rulesReorderSubcommand
|
|
3522
3650
|
],
|
|
3523
3651
|
options: [],
|
|
@@ -3651,7 +3779,7 @@ var firewallCommand = {
|
|
|
3651
3779
|
publishSubcommand,
|
|
3652
3780
|
discardSubcommand,
|
|
3653
3781
|
ipBlocksSubcommand,
|
|
3654
|
-
|
|
3782
|
+
rulesSubcommand2,
|
|
3655
3783
|
systemBypassSubcommand,
|
|
3656
3784
|
attackModeSubcommand,
|
|
3657
3785
|
systemMitigationsSubcommand
|
|
@@ -8682,6 +8810,11 @@ export {
|
|
|
8682
8810
|
agentCommand,
|
|
8683
8811
|
createSubcommand,
|
|
8684
8812
|
apiKeysSubcommand,
|
|
8813
|
+
rulesAddSubcommand,
|
|
8814
|
+
rulesListSubcommand,
|
|
8815
|
+
rulesEditSubcommand,
|
|
8816
|
+
rulesRemoveSubcommand,
|
|
8817
|
+
rulesSubcommand,
|
|
8685
8818
|
aiGatewayCommand,
|
|
8686
8819
|
setSubcommand,
|
|
8687
8820
|
listSubcommand,
|
|
@@ -8769,15 +8902,15 @@ export {
|
|
|
8769
8902
|
ipBlocksBlockSubcommand,
|
|
8770
8903
|
ipBlocksUnblockSubcommand,
|
|
8771
8904
|
ipBlocksSubcommand,
|
|
8772
|
-
|
|
8905
|
+
rulesListSubcommand2,
|
|
8773
8906
|
rulesInspectSubcommand,
|
|
8774
|
-
|
|
8775
|
-
|
|
8907
|
+
rulesAddSubcommand2,
|
|
8908
|
+
rulesEditSubcommand2,
|
|
8776
8909
|
rulesEnableSubcommand,
|
|
8777
8910
|
rulesDisableSubcommand,
|
|
8778
|
-
|
|
8911
|
+
rulesRemoveSubcommand2,
|
|
8779
8912
|
rulesReorderSubcommand,
|
|
8780
|
-
|
|
8913
|
+
rulesSubcommand2,
|
|
8781
8914
|
attackModeEnableSubcommand,
|
|
8782
8915
|
attackModeDisableSubcommand,
|
|
8783
8916
|
attackModeSubcommand,
|