vercel 54.13.0 → 54.14.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.
@@ -562,12 +562,173 @@ var apiKeysSubcommand = {
562
562
  options: [],
563
563
  examples: []
564
564
  };
565
+ var rulesAddSubcommand = {
566
+ name: "add",
567
+ aliases: [],
568
+ description: "Add an AI Gateway routing rule",
569
+ arguments: [],
570
+ options: [
571
+ {
572
+ name: "type",
573
+ shorthand: null,
574
+ type: String,
575
+ argument: "TYPE",
576
+ deprecated: false,
577
+ description: "Rule type: rewrite or deny"
578
+ },
579
+ {
580
+ name: "source",
581
+ shorthand: null,
582
+ type: String,
583
+ argument: "MODEL",
584
+ deprecated: false,
585
+ description: "Model the rule matches (e.g. anthropic/claude-sonnet-4.5)"
586
+ },
587
+ {
588
+ name: "destination",
589
+ shorthand: null,
590
+ type: String,
591
+ argument: "MODEL",
592
+ deprecated: false,
593
+ description: "Target model a rewrite rule routes to"
594
+ },
595
+ {
596
+ name: "reason",
597
+ shorthand: null,
598
+ type: String,
599
+ argument: "TEXT",
600
+ deprecated: false,
601
+ description: "Reason surfaced when the rule applies"
602
+ },
603
+ {
604
+ name: "description",
605
+ shorthand: null,
606
+ type: String,
607
+ argument: "TEXT",
608
+ deprecated: false,
609
+ description: "Human-readable description of the rule"
610
+ },
611
+ formatOption
612
+ ],
613
+ examples: [
614
+ {
615
+ name: "Rewrite one model to another",
616
+ value: `${packageName} ai-gateway rules add --type rewrite --source anthropic/claude-fable-5 --destination anthropic/claude-opus-4.8`
617
+ },
618
+ {
619
+ name: "Deny a model",
620
+ value: `${packageName} ai-gateway rules add --type deny --source openai/gpt-4o`
621
+ }
622
+ ]
623
+ };
624
+ var rulesListSubcommand = {
625
+ name: "list",
626
+ aliases: ["ls"],
627
+ description: "List AI Gateway routing rules",
628
+ arguments: [],
629
+ options: [
630
+ {
631
+ name: "include-disabled",
632
+ shorthand: null,
633
+ type: Boolean,
634
+ deprecated: false,
635
+ description: "Include disabled rules"
636
+ },
637
+ formatOption
638
+ ],
639
+ examples: [
640
+ {
641
+ name: "List routing rules",
642
+ value: `${packageName} ai-gateway rules ls`
643
+ }
644
+ ]
645
+ };
646
+ var rulesEditSubcommand = {
647
+ name: "edit",
648
+ aliases: [],
649
+ description: "Edit an AI Gateway routing rule",
650
+ arguments: [{ name: "ruleId", required: true }],
651
+ options: [
652
+ {
653
+ name: "enable",
654
+ shorthand: null,
655
+ type: Boolean,
656
+ deprecated: false,
657
+ description: "Enable the rule"
658
+ },
659
+ {
660
+ name: "disable",
661
+ shorthand: null,
662
+ type: Boolean,
663
+ deprecated: false,
664
+ description: "Disable the rule"
665
+ },
666
+ {
667
+ name: "destination",
668
+ shorthand: null,
669
+ type: String,
670
+ argument: "MODEL",
671
+ deprecated: false,
672
+ description: "Target model a rewrite rule routes to"
673
+ },
674
+ {
675
+ name: "reason",
676
+ shorthand: null,
677
+ type: String,
678
+ argument: "TEXT",
679
+ deprecated: false,
680
+ description: "Reason surfaced when the rule applies"
681
+ },
682
+ {
683
+ name: "description",
684
+ shorthand: null,
685
+ type: String,
686
+ argument: "TEXT",
687
+ deprecated: false,
688
+ description: "Human-readable description of the rule"
689
+ },
690
+ formatOption
691
+ ],
692
+ examples: [
693
+ {
694
+ name: "Disable a rule",
695
+ value: `${packageName} ai-gateway rules edit rule_123 --disable`
696
+ }
697
+ ]
698
+ };
699
+ var rulesRemoveSubcommand = {
700
+ name: "remove",
701
+ aliases: ["rm", "delete"],
702
+ description: "Remove an AI Gateway routing rule",
703
+ arguments: [{ name: "ruleId", required: true }],
704
+ options: [yesOption, formatOption],
705
+ examples: [
706
+ {
707
+ name: "Remove a rule",
708
+ value: `${packageName} ai-gateway rules rm rule_123`
709
+ }
710
+ ]
711
+ };
712
+ var rulesSubcommand = {
713
+ name: "rules",
714
+ aliases: [],
715
+ 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.",
716
+ arguments: [],
717
+ subcommands: [
718
+ rulesAddSubcommand,
719
+ rulesListSubcommand,
720
+ rulesEditSubcommand,
721
+ rulesRemoveSubcommand
722
+ ],
723
+ options: [],
724
+ examples: []
725
+ };
565
726
  var aiGatewayCommand = {
566
727
  name: "ai-gateway",
567
728
  aliases: [],
568
729
  description: "Manage AI Gateway resources",
569
730
  arguments: [],
570
- subcommands: [apiKeysSubcommand],
731
+ subcommands: [apiKeysSubcommand, rulesSubcommand],
571
732
  options: [],
572
733
  examples: []
573
734
  };
@@ -3083,7 +3244,7 @@ var ipBlocksSubcommand = {
3083
3244
  }
3084
3245
  ]
3085
3246
  };
3086
- var rulesListSubcommand = {
3247
+ var rulesListSubcommand2 = {
3087
3248
  name: "list",
3088
3249
  aliases: ["ls"],
3089
3250
  description: "List all custom firewall rules, including any unpublished draft changes",
@@ -3140,7 +3301,7 @@ var rulesInspectSubcommand = {
3140
3301
  }
3141
3302
  ]
3142
3303
  };
3143
- var rulesAddSubcommand = {
3304
+ var rulesAddSubcommand2 = {
3144
3305
  name: "add",
3145
3306
  aliases: [],
3146
3307
  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 +3437,7 @@ var rulesAddSubcommand = {
3276
3437
  }
3277
3438
  ]
3278
3439
  };
3279
- var rulesEditSubcommand = {
3440
+ var rulesEditSubcommand2 = {
3280
3441
  name: "edit",
3281
3442
  aliases: [],
3282
3443
  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 +3613,7 @@ var rulesDisableSubcommand = {
3452
3613
  }
3453
3614
  ]
3454
3615
  };
3455
- var rulesRemoveSubcommand = {
3616
+ var rulesRemoveSubcommand2 = {
3456
3617
  name: "remove",
3457
3618
  aliases: ["rm", "delete"],
3458
3619
  description: "Remove a custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
@@ -3505,19 +3666,19 @@ var rulesReorderSubcommand = {
3505
3666
  }
3506
3667
  ]
3507
3668
  };
3508
- var rulesSubcommand = {
3669
+ var rulesSubcommand2 = {
3509
3670
  name: "rules",
3510
3671
  aliases: [],
3511
3672
  description: "Manage custom firewall rules that control how traffic is handled based on conditions",
3512
3673
  arguments: [],
3513
3674
  subcommands: [
3514
- rulesListSubcommand,
3675
+ rulesListSubcommand2,
3515
3676
  rulesInspectSubcommand,
3516
- rulesAddSubcommand,
3517
- rulesEditSubcommand,
3677
+ rulesAddSubcommand2,
3678
+ rulesEditSubcommand2,
3518
3679
  rulesEnableSubcommand,
3519
3680
  rulesDisableSubcommand,
3520
- rulesRemoveSubcommand,
3681
+ rulesRemoveSubcommand2,
3521
3682
  rulesReorderSubcommand
3522
3683
  ],
3523
3684
  options: [],
@@ -3651,7 +3812,7 @@ var firewallCommand = {
3651
3812
  publishSubcommand,
3652
3813
  discardSubcommand,
3653
3814
  ipBlocksSubcommand,
3654
- rulesSubcommand,
3815
+ rulesSubcommand2,
3655
3816
  systemBypassSubcommand,
3656
3817
  attackModeSubcommand,
3657
3818
  systemMitigationsSubcommand
@@ -8682,6 +8843,11 @@ export {
8682
8843
  agentCommand,
8683
8844
  createSubcommand,
8684
8845
  apiKeysSubcommand,
8846
+ rulesAddSubcommand,
8847
+ rulesListSubcommand,
8848
+ rulesEditSubcommand,
8849
+ rulesRemoveSubcommand,
8850
+ rulesSubcommand,
8685
8851
  aiGatewayCommand,
8686
8852
  setSubcommand,
8687
8853
  listSubcommand,
@@ -8769,15 +8935,15 @@ export {
8769
8935
  ipBlocksBlockSubcommand,
8770
8936
  ipBlocksUnblockSubcommand,
8771
8937
  ipBlocksSubcommand,
8772
- rulesListSubcommand,
8938
+ rulesListSubcommand2,
8773
8939
  rulesInspectSubcommand,
8774
- rulesAddSubcommand,
8775
- rulesEditSubcommand,
8940
+ rulesAddSubcommand2,
8941
+ rulesEditSubcommand2,
8776
8942
  rulesEnableSubcommand,
8777
8943
  rulesDisableSubcommand,
8778
- rulesRemoveSubcommand,
8944
+ rulesRemoveSubcommand2,
8779
8945
  rulesReorderSubcommand,
8780
- rulesSubcommand,
8946
+ rulesSubcommand2,
8781
8947
  attackModeEnableSubcommand,
8782
8948
  attackModeDisableSubcommand,
8783
8949
  attackModeSubcommand,
@@ -17,7 +17,7 @@ import {
17
17
  apiCommand,
18
18
  listSubcommand2 as listSubcommand,
19
19
  loginCommand
20
- } from "./chunk-NR67NDOY.js";
20
+ } from "./chunk-KJ5O7JQQ.js";
21
21
  import {
22
22
  help
23
23
  } from "./chunk-VNUNCNPE.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-TCF6MGBY.js";
20
20
  import {
21
21
  CommandTimeout
22
- } from "./chunk-NR67NDOY.js";
22
+ } from "./chunk-KJ5O7JQQ.js";
23
23
  import {
24
24
  getScope
25
25
  } from "./chunk-Z7KOKD2G.js";
@@ -14,7 +14,7 @@ import {
14
14
  purchaseDomainIfAvailable,
15
15
  require_cjs,
16
16
  setupDomain
17
- } from "../../chunks/chunk-UAI4ESAJ.js";
17
+ } from "../../chunks/chunk-TH555JND.js";
18
18
  import {
19
19
  readLocalConfig
20
20
  } from "../../chunks/chunk-C3VH3X5Y.js";
@@ -41,7 +41,7 @@ import {
41
41
  deprecatedArchiveSplitTgz,
42
42
  getCommandAliases,
43
43
  initSubcommand
44
- } from "../../chunks/chunk-NR67NDOY.js";
44
+ } from "../../chunks/chunk-KJ5O7JQQ.js";
45
45
  import "../../chunks/chunk-DAASB6YQ.js";
46
46
  import "../../chunks/chunk-WFRHKZFI.js";
47
47
  import "../../chunks/chunk-IQQJHYW4.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "../../chunks/chunk-YPQSDAEW.js";
30
30
  import {
31
31
  getCommandAliases
32
- } from "../../chunks/chunk-NR67NDOY.js";
32
+ } from "../../chunks/chunk-KJ5O7JQQ.js";
33
33
  import "../../chunks/chunk-DAASB6YQ.js";
34
34
  import "../../chunks/chunk-WFRHKZFI.js";
35
35
  import "../../chunks/chunk-IQQJHYW4.js";
@@ -11,7 +11,7 @@ import {
11
11
  addSubcommand7 as addSubcommand,
12
12
  getCommandAliases,
13
13
  linkCommand
14
- } from "../../chunks/chunk-NR67NDOY.js";
14
+ } from "../../chunks/chunk-KJ5O7JQQ.js";
15
15
  import "../../chunks/chunk-DAASB6YQ.js";
16
16
  import "../../chunks/chunk-WFRHKZFI.js";
17
17
  import "../../chunks/chunk-IQQJHYW4.js";