@roo-code/types 1.82.0 → 1.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/cloud.ts
2
- import { z as z15 } from "zod";
2
+ import { z as z16 } from "zod";
3
3
 
4
4
  // src/events.ts
5
5
  import { z as z3 } from "zod";
@@ -21,6 +21,10 @@ var clineAsks = [
21
21
  "auto_approval_max_req_reached"
22
22
  ];
23
23
  var clineAskSchema = z.enum(clineAsks);
24
+ var nonBlockingAsks = ["command_output"];
25
+ function isNonBlockingAsk(ask) {
26
+ return nonBlockingAsks.includes(ask);
27
+ }
24
28
  var idleAsks = [
25
29
  "completion_result",
26
30
  "api_req_failed",
@@ -102,9 +106,7 @@ var clineMessageSchema = z.object({
102
106
  isAnswered: z.boolean().optional(),
103
107
  metadata: z.object({
104
108
  gpt5: z.object({
105
- previous_response_id: z.string().optional(),
106
- instructions: z.string().optional(),
107
- reasoning_summary: z.string().optional()
109
+ previous_response_id: z.string().optional()
108
110
  }).optional()
109
111
  }).optional()
110
112
  });
@@ -133,7 +135,6 @@ var toolNames = [
133
135
  "write_to_file",
134
136
  "apply_diff",
135
137
  "insert_content",
136
- "search_and_replace",
137
138
  "search_files",
138
139
  "list_files",
139
140
  "list_code_definition_names",
@@ -347,10 +348,10 @@ var taskMetadataSchema = z4.object({
347
348
  });
348
349
 
349
350
  // src/global-settings.ts
350
- import { z as z13 } from "zod";
351
+ import { z as z14 } from "zod";
351
352
 
352
353
  // src/provider-settings.ts
353
- import { z as z7 } from "zod";
354
+ import { z as z8 } from "zod";
354
355
 
355
356
  // src/model.ts
356
357
  import { z as z5 } from "zod";
@@ -369,15 +370,19 @@ var modelInfoSchema = z5.object({
369
370
  maxThinkingTokens: z5.number().nullish(),
370
371
  contextWindow: z5.number(),
371
372
  supportsImages: z5.boolean().optional(),
372
- supportsComputerUse: z5.boolean().optional(),
373
373
  supportsPromptCache: z5.boolean(),
374
374
  // Capability flag to indicate whether the model supports an output verbosity parameter
375
375
  supportsVerbosity: z5.boolean().optional(),
376
376
  supportsReasoningBudget: z5.boolean().optional(),
377
+ // Capability flag to indicate whether the model supports simple on/off binary reasoning
378
+ supportsReasoningBinary: z5.boolean().optional(),
377
379
  // Capability flag to indicate whether the model supports temperature parameter
378
380
  supportsTemperature: z5.boolean().optional(),
381
+ defaultTemperature: z5.number().optional(),
379
382
  requiredReasoningBudget: z5.boolean().optional(),
380
383
  supportsReasoningEffort: z5.boolean().optional(),
384
+ requiredReasoningEffort: z5.boolean().optional(),
385
+ preserveReasoning: z5.boolean().optional(),
381
386
  supportedParameters: z5.array(modelParametersSchema).optional(),
382
387
  inputPrice: z5.number().optional(),
383
388
  outputPrice: z5.number().optional(),
@@ -390,6 +395,8 @@ var modelInfoSchema = z5.object({
390
395
  cachableFields: z5.array(z5.string()).optional(),
391
396
  // Flag to indicate if the model is deprecated and should not be used
392
397
  deprecated: z5.boolean().optional(),
398
+ // Flag to indicate if the model is free (no cost)
399
+ isFree: z5.boolean().optional(),
393
400
  /**
394
401
  * Service tiers with pricing information.
395
402
  * Each tier can have a name (for OpenAI service tiers) and pricing overrides.
@@ -423,7 +430,7 @@ var CODEBASE_INDEX_DEFAULTS = {
423
430
  var codebaseIndexConfigSchema = z6.object({
424
431
  codebaseIndexEnabled: z6.boolean().optional(),
425
432
  codebaseIndexQdrantUrl: z6.string().optional(),
426
- codebaseIndexEmbedderProvider: z6.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway"]).optional(),
433
+ codebaseIndexEmbedderProvider: z6.enum(["openai", "ollama", "openai-compatible", "gemini", "mistral", "vercel-ai-gateway", "openrouter"]).optional(),
427
434
  codebaseIndexEmbedderBaseUrl: z6.string().optional(),
428
435
  codebaseIndexEmbedderModelId: z6.string().optional(),
429
436
  codebaseIndexEmbedderModelDimension: z6.number().optional(),
@@ -439,7 +446,8 @@ var codebaseIndexModelsSchema = z6.object({
439
446
  "openai-compatible": z6.record(z6.string(), z6.object({ dimension: z6.number() })).optional(),
440
447
  gemini: z6.record(z6.string(), z6.object({ dimension: z6.number() })).optional(),
441
448
  mistral: z6.record(z6.string(), z6.object({ dimension: z6.number() })).optional(),
442
- "vercel-ai-gateway": z6.record(z6.string(), z6.object({ dimension: z6.number() })).optional()
449
+ "vercel-ai-gateway": z6.record(z6.string(), z6.object({ dimension: z6.number() })).optional(),
450
+ openrouter: z6.record(z6.string(), z6.object({ dimension: z6.number() })).optional()
443
451
  });
444
452
  var codebaseIndexProviderSchema = z6.object({
445
453
  codeIndexOpenAiKey: z6.string().optional(),
@@ -449,11 +457,12 @@ var codebaseIndexProviderSchema = z6.object({
449
457
  codebaseIndexOpenAiCompatibleModelDimension: z6.number().optional(),
450
458
  codebaseIndexGeminiApiKey: z6.string().optional(),
451
459
  codebaseIndexMistralApiKey: z6.string().optional(),
452
- codebaseIndexVercelAiGatewayApiKey: z6.string().optional()
460
+ codebaseIndexVercelAiGatewayApiKey: z6.string().optional(),
461
+ codebaseIndexOpenRouterApiKey: z6.string().optional()
453
462
  });
454
463
 
455
464
  // src/providers/anthropic.ts
456
- var anthropicDefaultModelId = "claude-sonnet-4-20250514";
465
+ var anthropicDefaultModelId = "claude-sonnet-4-5";
457
466
  var anthropicModels = {
458
467
  "claude-sonnet-4-5": {
459
468
  maxTokens: 64e3,
@@ -461,7 +470,6 @@ var anthropicModels = {
461
470
  contextWindow: 2e5,
462
471
  // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
463
472
  supportsImages: true,
464
- supportsComputerUse: true,
465
473
  supportsPromptCache: true,
466
474
  inputPrice: 3,
467
475
  // $3 per million input tokens (≤200K context)
@@ -494,7 +502,6 @@ var anthropicModels = {
494
502
  contextWindow: 2e5,
495
503
  // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
496
504
  supportsImages: true,
497
- supportsComputerUse: true,
498
505
  supportsPromptCache: true,
499
506
  inputPrice: 3,
500
507
  // $3 per million input tokens (≤200K context)
@@ -522,10 +529,10 @@ var anthropicModels = {
522
529
  ]
523
530
  },
524
531
  "claude-opus-4-1-20250805": {
525
- maxTokens: 8192,
532
+ maxTokens: 32e3,
533
+ // Overridden to 8k if `enableReasoningEffort` is false.
526
534
  contextWindow: 2e5,
527
535
  supportsImages: true,
528
- supportsComputerUse: true,
529
536
  supportsPromptCache: true,
530
537
  inputPrice: 15,
531
538
  // $15 per million input tokens
@@ -542,7 +549,6 @@ var anthropicModels = {
542
549
  // Overridden to 8k if `enableReasoningEffort` is false.
543
550
  contextWindow: 2e5,
544
551
  supportsImages: true,
545
- supportsComputerUse: true,
546
552
  supportsPromptCache: true,
547
553
  inputPrice: 15,
548
554
  // $15 per million input tokens
@@ -559,7 +565,6 @@ var anthropicModels = {
559
565
  // Unlocked by passing `beta` flag to the model. Otherwise, it's 64k.
560
566
  contextWindow: 2e5,
561
567
  supportsImages: true,
562
- supportsComputerUse: true,
563
568
  supportsPromptCache: true,
564
569
  inputPrice: 3,
565
570
  // $3 per million input tokens
@@ -577,7 +582,6 @@ var anthropicModels = {
577
582
  // Since we already have a `:thinking` virtual model we aren't setting `supportsReasoningBudget: true` here.
578
583
  contextWindow: 2e5,
579
584
  supportsImages: true,
580
- supportsComputerUse: true,
581
585
  supportsPromptCache: true,
582
586
  inputPrice: 3,
583
587
  // $3 per million input tokens
@@ -592,7 +596,6 @@ var anthropicModels = {
592
596
  maxTokens: 8192,
593
597
  contextWindow: 2e5,
594
598
  supportsImages: true,
595
- supportsComputerUse: true,
596
599
  supportsPromptCache: true,
597
600
  inputPrice: 3,
598
601
  // $3 per million input tokens
@@ -632,19 +635,30 @@ var anthropicModels = {
632
635
  outputPrice: 1.25,
633
636
  cacheWritesPrice: 0.3,
634
637
  cacheReadsPrice: 0.03
638
+ },
639
+ "claude-haiku-4-5-20251001": {
640
+ maxTokens: 64e3,
641
+ contextWindow: 2e5,
642
+ supportsImages: true,
643
+ supportsPromptCache: true,
644
+ inputPrice: 1,
645
+ outputPrice: 5,
646
+ cacheWritesPrice: 1.25,
647
+ cacheReadsPrice: 0.1,
648
+ supportsReasoningBudget: true,
649
+ description: "Claude Haiku 4.5 delivers near-frontier intelligence at lightning speeds with extended thinking, vision, and multilingual support."
635
650
  }
636
651
  };
637
652
  var ANTHROPIC_DEFAULT_MAX_TOKENS = 8192;
638
653
 
639
654
  // src/providers/bedrock.ts
640
- var bedrockDefaultModelId = "anthropic.claude-sonnet-4-20250514-v1:0";
655
+ var bedrockDefaultModelId = "anthropic.claude-sonnet-4-5-20250929-v1:0";
641
656
  var bedrockDefaultPromptRouterModelId = "anthropic.claude-3-sonnet-20240229-v1:0";
642
657
  var bedrockModels = {
643
658
  "anthropic.claude-sonnet-4-5-20250929-v1:0": {
644
659
  maxTokens: 8192,
645
660
  contextWindow: 2e5,
646
661
  supportsImages: true,
647
- supportsComputerUse: true,
648
662
  supportsPromptCache: true,
649
663
  supportsReasoningBudget: true,
650
664
  inputPrice: 3,
@@ -659,7 +673,6 @@ var bedrockModels = {
659
673
  maxTokens: 5e3,
660
674
  contextWindow: 3e5,
661
675
  supportsImages: true,
662
- supportsComputerUse: false,
663
676
  supportsPromptCache: true,
664
677
  inputPrice: 0.8,
665
678
  outputPrice: 3.2,
@@ -675,7 +688,6 @@ var bedrockModels = {
675
688
  maxTokens: 5e3,
676
689
  contextWindow: 3e5,
677
690
  supportsImages: true,
678
- supportsComputerUse: false,
679
691
  supportsPromptCache: false,
680
692
  inputPrice: 1,
681
693
  outputPrice: 4,
@@ -689,7 +701,6 @@ var bedrockModels = {
689
701
  maxTokens: 5e3,
690
702
  contextWindow: 3e5,
691
703
  supportsImages: true,
692
- supportsComputerUse: false,
693
704
  supportsPromptCache: true,
694
705
  inputPrice: 0.06,
695
706
  outputPrice: 0.24,
@@ -705,7 +716,6 @@ var bedrockModels = {
705
716
  maxTokens: 5e3,
706
717
  contextWindow: 128e3,
707
718
  supportsImages: false,
708
- supportsComputerUse: false,
709
719
  supportsPromptCache: true,
710
720
  inputPrice: 0.035,
711
721
  outputPrice: 0.14,
@@ -721,7 +731,6 @@ var bedrockModels = {
721
731
  maxTokens: 8192,
722
732
  contextWindow: 2e5,
723
733
  supportsImages: true,
724
- supportsComputerUse: true,
725
734
  supportsPromptCache: true,
726
735
  supportsReasoningBudget: true,
727
736
  inputPrice: 3,
@@ -736,7 +745,6 @@ var bedrockModels = {
736
745
  maxTokens: 8192,
737
746
  contextWindow: 2e5,
738
747
  supportsImages: true,
739
- supportsComputerUse: true,
740
748
  supportsPromptCache: true,
741
749
  supportsReasoningBudget: true,
742
750
  inputPrice: 15,
@@ -751,7 +759,6 @@ var bedrockModels = {
751
759
  maxTokens: 8192,
752
760
  contextWindow: 2e5,
753
761
  supportsImages: true,
754
- supportsComputerUse: true,
755
762
  supportsPromptCache: true,
756
763
  supportsReasoningBudget: true,
757
764
  inputPrice: 15,
@@ -766,7 +773,6 @@ var bedrockModels = {
766
773
  maxTokens: 8192,
767
774
  contextWindow: 2e5,
768
775
  supportsImages: true,
769
- supportsComputerUse: true,
770
776
  supportsPromptCache: true,
771
777
  supportsReasoningBudget: true,
772
778
  inputPrice: 3,
@@ -781,7 +787,6 @@ var bedrockModels = {
781
787
  maxTokens: 8192,
782
788
  contextWindow: 2e5,
783
789
  supportsImages: true,
784
- supportsComputerUse: true,
785
790
  supportsPromptCache: true,
786
791
  inputPrice: 3,
787
792
  outputPrice: 15,
@@ -804,6 +809,22 @@ var bedrockModels = {
804
809
  maxCachePoints: 4,
805
810
  cachableFields: ["system", "messages", "tools"]
806
811
  },
812
+ "anthropic.claude-haiku-4-5-20251001-v1:0": {
813
+ maxTokens: 8192,
814
+ contextWindow: 2e5,
815
+ supportsImages: true,
816
+ supportsPromptCache: true,
817
+ supportsReasoningBudget: true,
818
+ inputPrice: 1,
819
+ outputPrice: 5,
820
+ cacheWritesPrice: 1.25,
821
+ // 5m cache writes
822
+ cacheReadsPrice: 0.1,
823
+ // cache hits / refreshes
824
+ minTokensPerCachePoint: 2048,
825
+ maxCachePoints: 4,
826
+ cachableFields: ["system", "messages", "tools"]
827
+ },
807
828
  "anthropic.claude-3-5-sonnet-20240620-v1:0": {
808
829
  maxTokens: 8192,
809
830
  contextWindow: 2e5,
@@ -875,7 +896,6 @@ var bedrockModels = {
875
896
  maxTokens: 8192,
876
897
  contextWindow: 128e3,
877
898
  supportsImages: false,
878
- supportsComputerUse: false,
879
899
  supportsPromptCache: false,
880
900
  inputPrice: 0.5,
881
901
  outputPrice: 1.5,
@@ -885,7 +905,6 @@ var bedrockModels = {
885
905
  maxTokens: 8192,
886
906
  contextWindow: 128e3,
887
907
  supportsImages: false,
888
- supportsComputerUse: false,
889
908
  supportsPromptCache: false,
890
909
  inputPrice: 2,
891
910
  outputPrice: 6,
@@ -895,7 +914,6 @@ var bedrockModels = {
895
914
  maxTokens: 8192,
896
915
  contextWindow: 128e3,
897
916
  supportsImages: false,
898
- supportsComputerUse: false,
899
917
  supportsPromptCache: false,
900
918
  inputPrice: 0.72,
901
919
  outputPrice: 0.72,
@@ -905,7 +923,6 @@ var bedrockModels = {
905
923
  maxTokens: 8192,
906
924
  contextWindow: 128e3,
907
925
  supportsImages: true,
908
- supportsComputerUse: false,
909
926
  supportsPromptCache: false,
910
927
  inputPrice: 0.72,
911
928
  outputPrice: 0.72,
@@ -915,7 +932,6 @@ var bedrockModels = {
915
932
  maxTokens: 8192,
916
933
  contextWindow: 128e3,
917
934
  supportsImages: true,
918
- supportsComputerUse: false,
919
935
  supportsPromptCache: false,
920
936
  inputPrice: 0.16,
921
937
  outputPrice: 0.16,
@@ -925,7 +941,6 @@ var bedrockModels = {
925
941
  maxTokens: 8192,
926
942
  contextWindow: 128e3,
927
943
  supportsImages: false,
928
- supportsComputerUse: false,
929
944
  supportsPromptCache: false,
930
945
  inputPrice: 0.15,
931
946
  outputPrice: 0.15,
@@ -935,7 +950,6 @@ var bedrockModels = {
935
950
  maxTokens: 8192,
936
951
  contextWindow: 128e3,
937
952
  supportsImages: false,
938
- supportsComputerUse: false,
939
953
  supportsPromptCache: false,
940
954
  inputPrice: 0.1,
941
955
  outputPrice: 0.1,
@@ -945,7 +959,6 @@ var bedrockModels = {
945
959
  maxTokens: 8192,
946
960
  contextWindow: 128e3,
947
961
  supportsImages: false,
948
- supportsComputerUse: false,
949
962
  supportsPromptCache: false,
950
963
  inputPrice: 2.4,
951
964
  outputPrice: 2.4,
@@ -955,7 +968,6 @@ var bedrockModels = {
955
968
  maxTokens: 8192,
956
969
  contextWindow: 128e3,
957
970
  supportsImages: false,
958
- supportsComputerUse: false,
959
971
  supportsPromptCache: false,
960
972
  inputPrice: 0.72,
961
973
  outputPrice: 0.72,
@@ -965,7 +977,6 @@ var bedrockModels = {
965
977
  maxTokens: 8192,
966
978
  contextWindow: 128e3,
967
979
  supportsImages: false,
968
- supportsComputerUse: false,
969
980
  supportsPromptCache: false,
970
981
  inputPrice: 0.9,
971
982
  outputPrice: 0.9,
@@ -975,7 +986,6 @@ var bedrockModels = {
975
986
  maxTokens: 8192,
976
987
  contextWindow: 8e3,
977
988
  supportsImages: false,
978
- supportsComputerUse: false,
979
989
  supportsPromptCache: false,
980
990
  inputPrice: 0.22,
981
991
  outputPrice: 0.22,
@@ -985,7 +995,6 @@ var bedrockModels = {
985
995
  maxTokens: 2048,
986
996
  contextWindow: 8e3,
987
997
  supportsImages: false,
988
- supportsComputerUse: false,
989
998
  supportsPromptCache: false,
990
999
  inputPrice: 2.65,
991
1000
  outputPrice: 3.5
@@ -994,7 +1003,6 @@ var bedrockModels = {
994
1003
  maxTokens: 2048,
995
1004
  contextWindow: 4e3,
996
1005
  supportsImages: false,
997
- supportsComputerUse: false,
998
1006
  supportsPromptCache: false,
999
1007
  inputPrice: 0.3,
1000
1008
  outputPrice: 0.6
@@ -1003,7 +1011,6 @@ var bedrockModels = {
1003
1011
  maxTokens: 4096,
1004
1012
  contextWindow: 8e3,
1005
1013
  supportsImages: false,
1006
- supportsComputerUse: false,
1007
1014
  supportsPromptCache: false,
1008
1015
  inputPrice: 0.15,
1009
1016
  outputPrice: 0.2,
@@ -1013,7 +1020,6 @@ var bedrockModels = {
1013
1020
  maxTokens: 4096,
1014
1021
  contextWindow: 8e3,
1015
1022
  supportsImages: false,
1016
- supportsComputerUse: false,
1017
1023
  supportsPromptCache: false,
1018
1024
  inputPrice: 0.2,
1019
1025
  outputPrice: 0.6,
@@ -1023,7 +1029,6 @@ var bedrockModels = {
1023
1029
  maxTokens: 8192,
1024
1030
  contextWindow: 8e3,
1025
1031
  supportsImages: false,
1026
- supportsComputerUse: false,
1027
1032
  supportsPromptCache: false,
1028
1033
  inputPrice: 0.1,
1029
1034
  description: "Amazon Titan Text Embeddings"
@@ -1032,7 +1037,6 @@ var bedrockModels = {
1032
1037
  maxTokens: 8192,
1033
1038
  contextWindow: 8e3,
1034
1039
  supportsImages: false,
1035
- supportsComputerUse: false,
1036
1040
  supportsPromptCache: false,
1037
1041
  inputPrice: 0.02,
1038
1042
  description: "Amazon Titan Text Embeddings V2"
@@ -1042,17 +1046,22 @@ var BEDROCK_DEFAULT_TEMPERATURE = 0.3;
1042
1046
  var BEDROCK_MAX_TOKENS = 4096;
1043
1047
  var BEDROCK_DEFAULT_CONTEXT = 128e3;
1044
1048
  var AWS_INFERENCE_PROFILE_MAPPING = [
1045
- // US Government Cloudug. inference profile (most specific prefix first)
1049
+ // Australia regions (Sydney and Melbourne) au. inference profile (most specific - 14 chars)
1050
+ ["ap-southeast-2", "au."],
1051
+ ["ap-southeast-4", "au."],
1052
+ // Japan regions (Tokyo and Osaka) → jp. inference profile (13 chars)
1053
+ ["ap-northeast-", "jp."],
1054
+ // US Government Cloud → ug. inference profile (7 chars)
1046
1055
  ["us-gov-", "ug."],
1047
- // Americas regions → us. inference profile
1056
+ // Americas regions → us. inference profile (3 chars)
1048
1057
  ["us-", "us."],
1049
- // Europe regions → eu. inference profile
1058
+ // Europe regions → eu. inference profile (3 chars)
1050
1059
  ["eu-", "eu."],
1051
- // Asia Pacific regions → apac. inference profile
1060
+ // Asia Pacific regions → apac. inference profile (3 chars)
1052
1061
  ["ap-", "apac."],
1053
- // Canada regions → ca. inference profile
1062
+ // Canada regions → ca. inference profile (3 chars)
1054
1063
  ["ca-", "ca."],
1055
- // South America regions → sa. inference profile
1064
+ // South America regions → sa. inference profile (3 chars)
1056
1065
  ["sa-", "sa."]
1057
1066
  ];
1058
1067
  var BEDROCK_REGIONS = [
@@ -1085,10 +1094,25 @@ var BEDROCK_1M_CONTEXT_MODEL_IDS = [
1085
1094
  "anthropic.claude-sonnet-4-20250514-v1:0",
1086
1095
  "anthropic.claude-sonnet-4-5-20250929-v1:0"
1087
1096
  ];
1097
+ var BEDROCK_GLOBAL_INFERENCE_MODEL_IDS = [
1098
+ "anthropic.claude-sonnet-4-20250514-v1:0",
1099
+ "anthropic.claude-sonnet-4-5-20250929-v1:0",
1100
+ "anthropic.claude-haiku-4-5-20251001-v1:0"
1101
+ ];
1088
1102
 
1089
1103
  // src/providers/cerebras.ts
1090
- var cerebrasDefaultModelId = "qwen-3-coder-480b-free";
1104
+ var cerebrasDefaultModelId = "gpt-oss-120b";
1091
1105
  var cerebrasModels = {
1106
+ "zai-glm-4.6": {
1107
+ maxTokens: 16384,
1108
+ // consistent with their other models
1109
+ contextWindow: 131072,
1110
+ supportsImages: false,
1111
+ supportsPromptCache: false,
1112
+ inputPrice: 0,
1113
+ outputPrice: 0,
1114
+ description: "Highly intelligent general purpose model with up to 1,000 tokens/s"
1115
+ },
1092
1116
  "qwen-3-coder-480b-free": {
1093
1117
  maxTokens: 4e4,
1094
1118
  contextWindow: 64e3,
@@ -1096,7 +1120,7 @@ var cerebrasModels = {
1096
1120
  supportsPromptCache: false,
1097
1121
  inputPrice: 0,
1098
1122
  outputPrice: 0,
1099
- description: "SOTA coding model with ~2000 tokens/s ($0 free tier)\n\n\u2022 Use this if you don't have a Cerebras subscription\n\u2022 64K context window\n\u2022 Rate limits: 150K TPM, 1M TPH/TPD, 10 RPM, 100 RPH/RPD\n\nUpgrade for higher limits: [https://cloud.cerebras.ai/?utm=roocode](https://cloud.cerebras.ai/?utm=roocode)"
1123
+ description: "[SOON TO BE DEPRECATED] SOTA coding model with ~2000 tokens/s ($0 free tier)\n\n\u2022 Use this if you don't have a Cerebras subscription\n\u2022 64K context window\n\u2022 Rate limits: 150K TPM, 1M TPH/TPD, 10 RPM, 100 RPH/RPD\n\nUpgrade for higher limits: [https://cloud.cerebras.ai/?utm=roocode](https://cloud.cerebras.ai/?utm=roocode)"
1100
1124
  },
1101
1125
  "qwen-3-coder-480b": {
1102
1126
  maxTokens: 4e4,
@@ -1105,7 +1129,7 @@ var cerebrasModels = {
1105
1129
  supportsPromptCache: false,
1106
1130
  inputPrice: 0,
1107
1131
  outputPrice: 0,
1108
- description: "SOTA coding model with ~2000 tokens/s ($50/$250 paid tiers)\n\n\u2022 Use this if you have a Cerebras subscription\n\u2022 131K context window with higher rate limits"
1132
+ description: "[SOON TO BE DEPRECATED] SOTA coding model with ~2000 tokens/s ($50/$250 paid tiers)\n\n\u2022 Use this if you have a Cerebras subscription\n\u2022 131K context window with higher rate limits"
1109
1133
  },
1110
1134
  "qwen-3-235b-a22b-instruct-2507": {
1111
1135
  maxTokens: 64e3,
@@ -1439,6 +1463,25 @@ var chutesModels = {
1439
1463
  outputPrice: 0,
1440
1464
  description: "GLM-4.6 introduces major upgrades over GLM-4.5, including a longer 200K-token context window for complex tasks, stronger coding performance in benchmarks and real-world tools (such as Claude Code, Cline, Roo Code, and Kilo Code), improved reasoning with tool use during inference, more capable and efficient agent integration, and refined writing that better matches human style, readability, and natural role-play scenarios."
1441
1465
  },
1466
+ "zai-org/GLM-4.6-turbo": {
1467
+ maxTokens: 202752,
1468
+ // From Chutes /v1/models: max_output_length
1469
+ contextWindow: 202752,
1470
+ supportsImages: false,
1471
+ supportsPromptCache: false,
1472
+ inputPrice: 1.15,
1473
+ outputPrice: 3.25,
1474
+ description: "GLM-4.6-turbo model with 200K-token context window, optimized for fast inference."
1475
+ },
1476
+ "meituan-longcat/LongCat-Flash-Thinking-FP8": {
1477
+ maxTokens: 32768,
1478
+ contextWindow: 128e3,
1479
+ supportsImages: false,
1480
+ supportsPromptCache: false,
1481
+ inputPrice: 0,
1482
+ outputPrice: 0,
1483
+ description: "LongCat Flash Thinking FP8 model with 128K context window, optimized for complex reasoning and coding tasks."
1484
+ },
1442
1485
  "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": {
1443
1486
  maxTokens: 32768,
1444
1487
  contextWindow: 262144,
@@ -1503,13 +1546,14 @@ var chutesModels = {
1503
1546
  description: "Qwen3\u2011VL\u2011235B\u2011A22B\u2011Thinking is an open\u2011weight MoE vision\u2011language model (235B total, ~22B activated) optimized for deliberate multi\u2011step reasoning with strong text\u2011image\u2011video understanding and long\u2011context capabilities."
1504
1547
  }
1505
1548
  };
1549
+ var chutesDefaultModelInfo = chutesModels[chutesDefaultModelId];
1506
1550
 
1507
1551
  // src/providers/claude-code.ts
1508
1552
  var VERTEX_DATE_PATTERN = /-(\d{8})$/;
1509
1553
  function convertModelNameForVertex(modelName) {
1510
1554
  return modelName.replace(VERTEX_DATE_PATTERN, "@$1");
1511
1555
  }
1512
- var claudeCodeDefaultModelId = "claude-sonnet-4-20250514";
1556
+ var claudeCodeDefaultModelId = "claude-sonnet-4-5";
1513
1557
  var CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS = 16e3;
1514
1558
  function getClaudeCodeModelId(baseModelId, useVertex = false) {
1515
1559
  return useVertex ? convertModelNameForVertex(baseModelId) : baseModelId;
@@ -1524,6 +1568,17 @@ var claudeCodeModels = {
1524
1568
  supportsReasoningBudget: false,
1525
1569
  requiredReasoningBudget: false
1526
1570
  },
1571
+ "claude-sonnet-4-5-20250929[1m]": {
1572
+ ...anthropicModels["claude-sonnet-4-5"],
1573
+ contextWindow: 1e6,
1574
+ // 1M token context window (requires [1m] suffix)
1575
+ supportsImages: false,
1576
+ supportsPromptCache: true,
1577
+ // Claude Code does report cache tokens
1578
+ supportsReasoningEffort: false,
1579
+ supportsReasoningBudget: false,
1580
+ requiredReasoningBudget: false
1581
+ },
1527
1582
  "claude-sonnet-4-20250514": {
1528
1583
  ...anthropicModels["claude-sonnet-4-20250514"],
1529
1584
  supportsImages: false,
@@ -1577,6 +1632,15 @@ var claudeCodeModels = {
1577
1632
  supportsReasoningEffort: false,
1578
1633
  supportsReasoningBudget: false,
1579
1634
  requiredReasoningBudget: false
1635
+ },
1636
+ "claude-haiku-4-5-20251001": {
1637
+ ...anthropicModels["claude-haiku-4-5-20251001"],
1638
+ supportsImages: false,
1639
+ supportsPromptCache: true,
1640
+ // Claude Code does report cache tokens
1641
+ supportsReasoningEffort: false,
1642
+ supportsReasoningBudget: false,
1643
+ requiredReasoningBudget: false
1580
1644
  }
1581
1645
  };
1582
1646
 
@@ -1743,6 +1807,15 @@ var fireworksModels = {
1743
1807
  outputPrice: 2.5,
1744
1808
  description: "Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities."
1745
1809
  },
1810
+ "accounts/fireworks/models/minimax-m2": {
1811
+ maxTokens: 4096,
1812
+ contextWindow: 204800,
1813
+ supportsImages: false,
1814
+ supportsPromptCache: false,
1815
+ inputPrice: 0.3,
1816
+ outputPrice: 1.2,
1817
+ description: "MiniMax M2 is a high-performance language model with 204.8K context window, optimized for long-context understanding and generation tasks."
1818
+ },
1746
1819
  "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507": {
1747
1820
  maxTokens: 32768,
1748
1821
  contextWindow: 256e3,
@@ -1806,6 +1879,15 @@ var fireworksModels = {
1806
1879
  outputPrice: 2.19,
1807
1880
  description: "Z.ai GLM-4.5-Air with 106B total parameters and 12B active parameters. Features unified reasoning, coding, and intelligent agent capabilities."
1808
1881
  },
1882
+ "accounts/fireworks/models/glm-4p6": {
1883
+ maxTokens: 25344,
1884
+ contextWindow: 198e3,
1885
+ supportsImages: false,
1886
+ supportsPromptCache: false,
1887
+ inputPrice: 0.55,
1888
+ outputPrice: 2.19,
1889
+ description: "Z.ai GLM-4.6 is an advanced coding model with exceptional performance on complex programming tasks. Features improved reasoning capabilities and enhanced code generation quality, making it ideal for software development workflows."
1890
+ },
1809
1891
  "accounts/fireworks/models/gpt-oss-20b": {
1810
1892
  maxTokens: 16384,
1811
1893
  contextWindow: 128e3,
@@ -1829,25 +1911,70 @@ var fireworksModels = {
1829
1911
  // src/providers/gemini.ts
1830
1912
  var geminiDefaultModelId = "gemini-2.0-flash-001";
1831
1913
  var geminiModels = {
1832
- "gemini-2.5-flash-preview-04-17:thinking": {
1833
- maxTokens: 65535,
1914
+ // Latest models (pointing to the most recent stable versions)
1915
+ "gemini-flash-latest": {
1916
+ maxTokens: 65536,
1834
1917
  contextWindow: 1048576,
1835
1918
  supportsImages: true,
1836
- supportsPromptCache: false,
1837
- inputPrice: 0.15,
1838
- outputPrice: 3.5,
1919
+ supportsPromptCache: true,
1920
+ inputPrice: 0.3,
1921
+ outputPrice: 2.5,
1922
+ cacheReadsPrice: 0.075,
1923
+ cacheWritesPrice: 1,
1839
1924
  maxThinkingTokens: 24576,
1925
+ supportsReasoningBudget: true
1926
+ },
1927
+ "gemini-flash-lite-latest": {
1928
+ maxTokens: 65536,
1929
+ contextWindow: 1048576,
1930
+ supportsImages: true,
1931
+ supportsPromptCache: true,
1932
+ inputPrice: 0.1,
1933
+ outputPrice: 0.4,
1934
+ cacheReadsPrice: 0.025,
1935
+ cacheWritesPrice: 1,
1840
1936
  supportsReasoningBudget: true,
1841
- requiredReasoningBudget: true
1937
+ maxThinkingTokens: 24576
1842
1938
  },
1843
- "gemini-2.5-flash-preview-04-17": {
1844
- maxTokens: 65535,
1939
+ // 2.5 Flash models (09-2025 versions - most recent)
1940
+ "gemini-2.5-flash-preview-09-2025": {
1941
+ maxTokens: 65536,
1845
1942
  contextWindow: 1048576,
1846
1943
  supportsImages: true,
1847
- supportsPromptCache: false,
1848
- inputPrice: 0.15,
1849
- outputPrice: 0.6
1944
+ supportsPromptCache: true,
1945
+ inputPrice: 0.3,
1946
+ outputPrice: 2.5,
1947
+ cacheReadsPrice: 0.075,
1948
+ cacheWritesPrice: 1,
1949
+ maxThinkingTokens: 24576,
1950
+ supportsReasoningBudget: true
1951
+ },
1952
+ "gemini-2.5-flash-lite-preview-09-2025": {
1953
+ maxTokens: 65536,
1954
+ contextWindow: 1048576,
1955
+ supportsImages: true,
1956
+ supportsPromptCache: true,
1957
+ inputPrice: 0.1,
1958
+ outputPrice: 0.4,
1959
+ cacheReadsPrice: 0.025,
1960
+ cacheWritesPrice: 1,
1961
+ supportsReasoningBudget: true,
1962
+ maxThinkingTokens: 24576
1850
1963
  },
1964
+ // 2.5 Flash models (06-17 version)
1965
+ "gemini-2.5-flash-lite-preview-06-17": {
1966
+ maxTokens: 64e3,
1967
+ contextWindow: 1048576,
1968
+ supportsImages: true,
1969
+ supportsPromptCache: true,
1970
+ inputPrice: 0.1,
1971
+ outputPrice: 0.4,
1972
+ cacheReadsPrice: 0.025,
1973
+ cacheWritesPrice: 1,
1974
+ supportsReasoningBudget: true,
1975
+ maxThinkingTokens: 24576
1976
+ },
1977
+ // 2.5 Flash models (05-20 versions)
1851
1978
  "gemini-2.5-flash-preview-05-20:thinking": {
1852
1979
  maxTokens: 65535,
1853
1980
  contextWindow: 1048576,
@@ -1871,6 +1998,27 @@ var geminiModels = {
1871
1998
  cacheReadsPrice: 0.0375,
1872
1999
  cacheWritesPrice: 1
1873
2000
  },
2001
+ // 2.5 Flash models (04-17 versions)
2002
+ "gemini-2.5-flash-preview-04-17:thinking": {
2003
+ maxTokens: 65535,
2004
+ contextWindow: 1048576,
2005
+ supportsImages: true,
2006
+ supportsPromptCache: false,
2007
+ inputPrice: 0.15,
2008
+ outputPrice: 3.5,
2009
+ maxThinkingTokens: 24576,
2010
+ supportsReasoningBudget: true,
2011
+ requiredReasoningBudget: true
2012
+ },
2013
+ "gemini-2.5-flash-preview-04-17": {
2014
+ maxTokens: 65535,
2015
+ contextWindow: 1048576,
2016
+ supportsImages: true,
2017
+ supportsPromptCache: false,
2018
+ inputPrice: 0.15,
2019
+ outputPrice: 0.6
2020
+ },
2021
+ // 2.5 Flash stable
1874
2022
  "gemini-2.5-flash": {
1875
2023
  maxTokens: 64e3,
1876
2024
  contextWindow: 1048576,
@@ -1883,15 +2031,8 @@ var geminiModels = {
1883
2031
  maxThinkingTokens: 24576,
1884
2032
  supportsReasoningBudget: true
1885
2033
  },
1886
- "gemini-2.5-pro-exp-03-25": {
1887
- maxTokens: 65535,
1888
- contextWindow: 1048576,
1889
- supportsImages: true,
1890
- supportsPromptCache: false,
1891
- inputPrice: 0,
1892
- outputPrice: 0
1893
- },
1894
- "gemini-2.5-pro-preview-03-25": {
2034
+ // 2.5 Pro models
2035
+ "gemini-2.5-pro-preview-06-05": {
1895
2036
  maxTokens: 65535,
1896
2037
  contextWindow: 1048576,
1897
2038
  supportsImages: true,
@@ -1901,6 +2042,8 @@ var geminiModels = {
1901
2042
  outputPrice: 15,
1902
2043
  cacheReadsPrice: 0.625,
1903
2044
  cacheWritesPrice: 4.5,
2045
+ maxThinkingTokens: 32768,
2046
+ supportsReasoningBudget: true,
1904
2047
  tiers: [
1905
2048
  {
1906
2049
  contextWindow: 2e5,
@@ -1941,7 +2084,7 @@ var geminiModels = {
1941
2084
  }
1942
2085
  ]
1943
2086
  },
1944
- "gemini-2.5-pro-preview-06-05": {
2087
+ "gemini-2.5-pro-preview-03-25": {
1945
2088
  maxTokens: 65535,
1946
2089
  contextWindow: 1048576,
1947
2090
  supportsImages: true,
@@ -1968,6 +2111,14 @@ var geminiModels = {
1968
2111
  }
1969
2112
  ]
1970
2113
  },
2114
+ "gemini-2.5-pro-exp-03-25": {
2115
+ maxTokens: 65535,
2116
+ contextWindow: 1048576,
2117
+ supportsImages: true,
2118
+ supportsPromptCache: false,
2119
+ inputPrice: 0,
2120
+ outputPrice: 0
2121
+ },
1971
2122
  "gemini-2.5-pro": {
1972
2123
  maxTokens: 64e3,
1973
2124
  contextWindow: 1048576,
@@ -1996,16 +2147,7 @@ var geminiModels = {
1996
2147
  }
1997
2148
  ]
1998
2149
  },
1999
- "gemini-2.0-flash-001": {
2000
- maxTokens: 8192,
2001
- contextWindow: 1048576,
2002
- supportsImages: true,
2003
- supportsPromptCache: true,
2004
- inputPrice: 0.1,
2005
- outputPrice: 0.4,
2006
- cacheReadsPrice: 0.025,
2007
- cacheWritesPrice: 1
2008
- },
2150
+ // 2.0 Flash models
2009
2151
  "gemini-2.0-flash-lite-preview-02-05": {
2010
2152
  maxTokens: 8192,
2011
2153
  contextWindow: 1048576,
@@ -2014,14 +2156,6 @@ var geminiModels = {
2014
2156
  inputPrice: 0,
2015
2157
  outputPrice: 0
2016
2158
  },
2017
- "gemini-2.0-pro-exp-02-05": {
2018
- maxTokens: 8192,
2019
- contextWindow: 2097152,
2020
- supportsImages: true,
2021
- supportsPromptCache: false,
2022
- inputPrice: 0,
2023
- outputPrice: 0
2024
- },
2025
2159
  "gemini-2.0-flash-thinking-exp-01-21": {
2026
2160
  maxTokens: 65536,
2027
2161
  contextWindow: 1048576,
@@ -2046,6 +2180,26 @@ var geminiModels = {
2046
2180
  inputPrice: 0,
2047
2181
  outputPrice: 0
2048
2182
  },
2183
+ "gemini-2.0-flash-001": {
2184
+ maxTokens: 8192,
2185
+ contextWindow: 1048576,
2186
+ supportsImages: true,
2187
+ supportsPromptCache: true,
2188
+ inputPrice: 0.1,
2189
+ outputPrice: 0.4,
2190
+ cacheReadsPrice: 0.025,
2191
+ cacheWritesPrice: 1
2192
+ },
2193
+ // 2.0 Pro models
2194
+ "gemini-2.0-pro-exp-02-05": {
2195
+ maxTokens: 8192,
2196
+ contextWindow: 2097152,
2197
+ supportsImages: true,
2198
+ supportsPromptCache: false,
2199
+ inputPrice: 0,
2200
+ outputPrice: 0
2201
+ },
2202
+ // 1.5 Flash models
2049
2203
  "gemini-1.5-flash-002": {
2050
2204
  maxTokens: 8192,
2051
2205
  contextWindow: 1048576,
@@ -2087,6 +2241,7 @@ var geminiModels = {
2087
2241
  inputPrice: 0,
2088
2242
  outputPrice: 0
2089
2243
  },
2244
+ // 1.5 Pro models
2090
2245
  "gemini-1.5-pro-002": {
2091
2246
  maxTokens: 8192,
2092
2247
  contextWindow: 2097152,
@@ -2103,6 +2258,7 @@ var geminiModels = {
2103
2258
  inputPrice: 0,
2104
2259
  outputPrice: 0
2105
2260
  },
2261
+ // Experimental models
2106
2262
  "gemini-exp-1206": {
2107
2263
  maxTokens: 8192,
2108
2264
  contextWindow: 2097152,
@@ -2110,18 +2266,6 @@ var geminiModels = {
2110
2266
  supportsPromptCache: false,
2111
2267
  inputPrice: 0,
2112
2268
  outputPrice: 0
2113
- },
2114
- "gemini-2.5-flash-lite-preview-06-17": {
2115
- maxTokens: 64e3,
2116
- contextWindow: 1048576,
2117
- supportsImages: true,
2118
- supportsPromptCache: true,
2119
- inputPrice: 0.1,
2120
- outputPrice: 0.4,
2121
- cacheReadsPrice: 0.025,
2122
- cacheWritesPrice: 1,
2123
- supportsReasoningBudget: true,
2124
- maxThinkingTokens: 24576
2125
2269
  }
2126
2270
  };
2127
2271
 
@@ -2131,7 +2275,6 @@ var glamaDefaultModelInfo = {
2131
2275
  maxTokens: 8192,
2132
2276
  contextWindow: 2e5,
2133
2277
  supportsImages: true,
2134
- supportsComputerUse: true,
2135
2278
  supportsPromptCache: true,
2136
2279
  inputPrice: 3,
2137
2280
  outputPrice: 15,
@@ -2309,50 +2452,12 @@ var litellmDefaultModelInfo = {
2309
2452
  maxTokens: 8192,
2310
2453
  contextWindow: 2e5,
2311
2454
  supportsImages: true,
2312
- supportsComputerUse: true,
2313
2455
  supportsPromptCache: true,
2314
2456
  inputPrice: 3,
2315
2457
  outputPrice: 15,
2316
2458
  cacheWritesPrice: 3.75,
2317
2459
  cacheReadsPrice: 0.3
2318
2460
  };
2319
- var LITELLM_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
2320
- "claude-3-5-sonnet-latest",
2321
- "claude-opus-4-1-20250805",
2322
- "claude-opus-4-20250514",
2323
- "claude-sonnet-4-20250514",
2324
- "claude-3-7-sonnet-latest",
2325
- "claude-3-7-sonnet-20250219",
2326
- "claude-3-5-sonnet-20241022",
2327
- "vertex_ai/claude-3-5-sonnet",
2328
- "vertex_ai/claude-3-5-sonnet-v2",
2329
- "vertex_ai/claude-3-5-sonnet-v2@20241022",
2330
- "vertex_ai/claude-3-7-sonnet@20250219",
2331
- "vertex_ai/claude-opus-4-1@20250805",
2332
- "vertex_ai/claude-opus-4@20250514",
2333
- "vertex_ai/claude-sonnet-4@20250514",
2334
- "vertex_ai/claude-sonnet-4-5@20250929",
2335
- "openrouter/anthropic/claude-3.5-sonnet",
2336
- "openrouter/anthropic/claude-3.5-sonnet:beta",
2337
- "openrouter/anthropic/claude-3.7-sonnet",
2338
- "openrouter/anthropic/claude-3.7-sonnet:beta",
2339
- "anthropic.claude-opus-4-1-20250805-v1:0",
2340
- "anthropic.claude-opus-4-20250514-v1:0",
2341
- "anthropic.claude-sonnet-4-20250514-v1:0",
2342
- "anthropic.claude-3-7-sonnet-20250219-v1:0",
2343
- "anthropic.claude-3-5-sonnet-20241022-v2:0",
2344
- "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
2345
- "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
2346
- "us.anthropic.claude-opus-4-1-20250805-v1:0",
2347
- "us.anthropic.claude-opus-4-20250514-v1:0",
2348
- "us.anthropic.claude-sonnet-4-20250514-v1:0",
2349
- "eu.anthropic.claude-3-5-sonnet-20241022-v2:0",
2350
- "eu.anthropic.claude-3-7-sonnet-20250219-v1:0",
2351
- "eu.anthropic.claude-opus-4-1-20250805-v1:0",
2352
- "eu.anthropic.claude-opus-4-20250514-v1:0",
2353
- "eu.anthropic.claude-sonnet-4-20250514-v1:0",
2354
- "snowflake/claude-3-5-sonnet"
2355
- ]);
2356
2461
 
2357
2462
  // src/providers/lm-studio.ts
2358
2463
  var LMSTUDIO_DEFAULT_TEMPERATURE = 0;
@@ -2361,7 +2466,6 @@ var lMStudioDefaultModelInfo = {
2361
2466
  maxTokens: 8192,
2362
2467
  contextWindow: 2e5,
2363
2468
  supportsImages: true,
2364
- supportsComputerUse: true,
2365
2469
  supportsPromptCache: true,
2366
2470
  inputPrice: 0,
2367
2471
  outputPrice: 0,
@@ -2374,9 +2478,9 @@ var lMStudioDefaultModelInfo = {
2374
2478
  var mistralDefaultModelId = "codestral-latest";
2375
2479
  var mistralModels = {
2376
2480
  "magistral-medium-latest": {
2377
- maxTokens: 41e3,
2378
- contextWindow: 41e3,
2379
- supportsImages: false,
2481
+ maxTokens: 8192,
2482
+ contextWindow: 128e3,
2483
+ supportsImages: true,
2380
2484
  supportsPromptCache: false,
2381
2485
  inputPrice: 2,
2382
2486
  outputPrice: 5
@@ -2490,6 +2594,28 @@ var moonshotModels = {
2490
2594
  cacheReadsPrice: 0.6,
2491
2595
  // $0.60 per million tokens (cache hit)
2492
2596
  description: `Kimi K2 Turbo is a high-speed version of the state-of-the-art Kimi K2 mixture-of-experts (MoE) language model, with the same 32 billion activated parameters and 1 trillion total parameters, optimized for output speeds of up to 60 tokens per second, peaking at 100 tokens per second.`
2597
+ },
2598
+ "kimi-k2-thinking": {
2599
+ maxTokens: 16e3,
2600
+ // Recommended ≥ 16,000
2601
+ contextWindow: 262144,
2602
+ // 262,144 tokens
2603
+ supportsImages: false,
2604
+ // Text-only (no image/vision support)
2605
+ supportsPromptCache: true,
2606
+ inputPrice: 0.6,
2607
+ // $0.60 per million tokens (cache miss)
2608
+ outputPrice: 2.5,
2609
+ // $2.50 per million tokens
2610
+ cacheWritesPrice: 0,
2611
+ // $0 per million tokens (cache miss)
2612
+ cacheReadsPrice: 0.15,
2613
+ // $0.15 per million tokens (cache hit)
2614
+ supportsTemperature: true,
2615
+ // Default temperature: 1.0
2616
+ preserveReasoning: true,
2617
+ defaultTemperature: 1,
2618
+ description: `The kimi-k2-thinking model is a general-purpose agentic reasoning model developed by Moonshot AI. Thanks to its strength in deep reasoning and multi-turn tool use, it can solve even the hardest problems.`
2493
2619
  }
2494
2620
  };
2495
2621
  var MOONSHOT_DEFAULT_TEMPERATURE = 0.6;
@@ -2500,7 +2626,6 @@ var ollamaDefaultModelInfo = {
2500
2626
  maxTokens: 4096,
2501
2627
  contextWindow: 2e5,
2502
2628
  supportsImages: true,
2503
- supportsComputerUse: true,
2504
2629
  supportsPromptCache: true,
2505
2630
  inputPrice: 0,
2506
2631
  outputPrice: 0,
@@ -2821,12 +2946,11 @@ var GPT5_DEFAULT_TEMPERATURE = 1;
2821
2946
  var OPENAI_AZURE_AI_INFERENCE_PATH = "/models/chat/completions";
2822
2947
 
2823
2948
  // src/providers/openrouter.ts
2824
- var openRouterDefaultModelId = "anthropic/claude-sonnet-4";
2949
+ var openRouterDefaultModelId = "anthropic/claude-sonnet-4.5";
2825
2950
  var openRouterDefaultModelInfo = {
2826
2951
  maxTokens: 8192,
2827
2952
  contextWindow: 2e5,
2828
2953
  supportsImages: true,
2829
- supportsComputerUse: true,
2830
2954
  supportsPromptCache: true,
2831
2955
  inputPrice: 3,
2832
2956
  outputPrice: 15,
@@ -2857,6 +2981,7 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
2857
2981
  "anthropic/claude-sonnet-4.5",
2858
2982
  "anthropic/claude-opus-4",
2859
2983
  "anthropic/claude-opus-4.1",
2984
+ "anthropic/claude-haiku-4.5",
2860
2985
  "google/gemini-2.5-flash-preview",
2861
2986
  "google/gemini-2.5-flash-preview:thinking",
2862
2987
  "google/gemini-2.5-flash-preview-05-20",
@@ -2867,17 +2992,6 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
2867
2992
  "google/gemini-flash-1.5",
2868
2993
  "google/gemini-flash-1.5-8b"
2869
2994
  ]);
2870
- var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
2871
- "anthropic/claude-3.5-sonnet",
2872
- "anthropic/claude-3.5-sonnet:beta",
2873
- "anthropic/claude-3.7-sonnet",
2874
- "anthropic/claude-3.7-sonnet:beta",
2875
- "anthropic/claude-3.7-sonnet:thinking",
2876
- "anthropic/claude-sonnet-4",
2877
- "anthropic/claude-sonnet-4.5",
2878
- "anthropic/claude-opus-4",
2879
- "anthropic/claude-opus-4.1"
2880
- ]);
2881
2995
  var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
2882
2996
  "anthropic/claude-3.7-sonnet:thinking",
2883
2997
  "google/gemini-2.5-pro",
@@ -2889,6 +3003,7 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
2889
3003
  "anthropic/claude-opus-4.1",
2890
3004
  "anthropic/claude-sonnet-4",
2891
3005
  "anthropic/claude-sonnet-4.5",
3006
+ "anthropic/claude-haiku-4.5",
2892
3007
  "google/gemini-2.5-pro-preview",
2893
3008
  "google/gemini-2.5-pro",
2894
3009
  "google/gemini-2.5-flash-preview-05-20",
@@ -2933,7 +3048,6 @@ var requestyDefaultModelInfo = {
2933
3048
  maxTokens: 8192,
2934
3049
  contextWindow: 2e5,
2935
3050
  supportsImages: true,
2936
- supportsComputerUse: true,
2937
3051
  supportsPromptCache: true,
2938
3052
  inputPrice: 3,
2939
3053
  outputPrice: 15,
@@ -2943,46 +3057,33 @@ var requestyDefaultModelInfo = {
2943
3057
  };
2944
3058
 
2945
3059
  // src/providers/roo.ts
3060
+ import { z as z7 } from "zod";
2946
3061
  var rooDefaultModelId = "xai/grok-code-fast-1";
2947
- var rooModels = {
2948
- "xai/grok-code-fast-1": {
2949
- maxTokens: 16384,
2950
- contextWindow: 262144,
2951
- supportsImages: false,
2952
- supportsPromptCache: true,
2953
- inputPrice: 0,
2954
- outputPrice: 0,
2955
- description: "A reasoning model that is blazing fast and excels at agentic coding, accessible for free through Roo Code Cloud for a limited time. (Note: the free prompts and completions are logged by xAI and used to improve the model.)"
2956
- },
2957
- "roo/code-supernova-1-million": {
2958
- maxTokens: 3e4,
2959
- contextWindow: 1e6,
2960
- supportsImages: true,
2961
- supportsPromptCache: true,
2962
- inputPrice: 0,
2963
- outputPrice: 0,
2964
- description: "A versatile agentic coding stealth model with a 1M token context window that supports image inputs, accessible for free through Roo Code Cloud for a limited time. (Note: the free prompts and completions are logged by the model provider and used to improve the model.)"
2965
- },
2966
- "xai/grok-4-fast": {
2967
- maxTokens: 3e4,
2968
- contextWindow: 2e6,
2969
- supportsImages: false,
2970
- supportsPromptCache: false,
2971
- inputPrice: 0,
2972
- outputPrice: 0,
2973
- description: "Grok 4 Fast is xAI's latest multimodal model with SOTA cost-efficiency and a 2M token context window. (Note: prompts and completions are logged by xAI and used to improve the model.)",
2974
- deprecated: true
2975
- },
2976
- "deepseek/deepseek-chat-v3.1": {
2977
- maxTokens: 16384,
2978
- contextWindow: 163840,
2979
- supportsImages: false,
2980
- supportsPromptCache: false,
2981
- inputPrice: 0,
2982
- outputPrice: 0,
2983
- description: "DeepSeek-V3.1 is a large hybrid reasoning model (671B parameters, 37B active). It extends the DeepSeek-V3 base with a two-phase long-context training process, reaching up to 128K tokens, and uses FP8 microscaling for efficient inference."
2984
- }
2985
- };
3062
+ var rooModels = {};
3063
+ var RooPricingSchema = z7.object({
3064
+ input: z7.string(),
3065
+ output: z7.string(),
3066
+ input_cache_read: z7.string().optional(),
3067
+ input_cache_write: z7.string().optional()
3068
+ });
3069
+ var RooModelSchema = z7.object({
3070
+ id: z7.string(),
3071
+ object: z7.literal("model"),
3072
+ created: z7.number(),
3073
+ owned_by: z7.string(),
3074
+ name: z7.string(),
3075
+ description: z7.string(),
3076
+ context_window: z7.number(),
3077
+ max_tokens: z7.number(),
3078
+ type: z7.literal("language"),
3079
+ tags: z7.array(z7.string()).optional(),
3080
+ pricing: RooPricingSchema,
3081
+ deprecated: z7.boolean().optional()
3082
+ });
3083
+ var RooModelsResponseSchema = z7.object({
3084
+ object: z7.literal("list"),
3085
+ data: z7.array(RooModelSchema)
3086
+ });
2986
3087
 
2987
3088
  // src/providers/sambanova.ts
2988
3089
  var sambaNovaDefaultModelId = "Meta-Llama-3.3-70B-Instruct";
@@ -3081,7 +3182,7 @@ var sambaNovaModels = {
3081
3182
  };
3082
3183
 
3083
3184
  // src/providers/unbound.ts
3084
- var unboundDefaultModelId = "anthropic/claude-3-7-sonnet-20250219";
3185
+ var unboundDefaultModelId = "anthropic/claude-sonnet-4-5";
3085
3186
  var unboundDefaultModelInfo = {
3086
3187
  maxTokens: 8192,
3087
3188
  contextWindow: 2e5,
@@ -3257,7 +3358,6 @@ var vertexModels = {
3257
3358
  maxTokens: 8192,
3258
3359
  contextWindow: 2e5,
3259
3360
  supportsImages: true,
3260
- supportsComputerUse: true,
3261
3361
  supportsPromptCache: true,
3262
3362
  inputPrice: 3,
3263
3363
  outputPrice: 15,
@@ -3269,7 +3369,6 @@ var vertexModels = {
3269
3369
  maxTokens: 8192,
3270
3370
  contextWindow: 2e5,
3271
3371
  supportsImages: true,
3272
- supportsComputerUse: true,
3273
3372
  supportsPromptCache: true,
3274
3373
  inputPrice: 3,
3275
3374
  outputPrice: 15,
@@ -3277,11 +3376,21 @@ var vertexModels = {
3277
3376
  cacheReadsPrice: 0.3,
3278
3377
  supportsReasoningBudget: true
3279
3378
  },
3379
+ "claude-haiku-4-5@20251001": {
3380
+ maxTokens: 8192,
3381
+ contextWindow: 2e5,
3382
+ supportsImages: true,
3383
+ supportsPromptCache: true,
3384
+ inputPrice: 1,
3385
+ outputPrice: 5,
3386
+ cacheWritesPrice: 1.25,
3387
+ cacheReadsPrice: 0.1,
3388
+ supportsReasoningBudget: true
3389
+ },
3280
3390
  "claude-opus-4-1@20250805": {
3281
3391
  maxTokens: 8192,
3282
3392
  contextWindow: 2e5,
3283
3393
  supportsImages: true,
3284
- supportsComputerUse: true,
3285
3394
  supportsPromptCache: true,
3286
3395
  inputPrice: 15,
3287
3396
  outputPrice: 75,
@@ -3293,7 +3402,6 @@ var vertexModels = {
3293
3402
  maxTokens: 8192,
3294
3403
  contextWindow: 2e5,
3295
3404
  supportsImages: true,
3296
- supportsComputerUse: true,
3297
3405
  supportsPromptCache: true,
3298
3406
  inputPrice: 15,
3299
3407
  outputPrice: 75,
@@ -3304,7 +3412,6 @@ var vertexModels = {
3304
3412
  maxTokens: 64e3,
3305
3413
  contextWindow: 2e5,
3306
3414
  supportsImages: true,
3307
- supportsComputerUse: true,
3308
3415
  supportsPromptCache: true,
3309
3416
  inputPrice: 3,
3310
3417
  outputPrice: 15,
@@ -3317,7 +3424,6 @@ var vertexModels = {
3317
3424
  maxTokens: 8192,
3318
3425
  contextWindow: 2e5,
3319
3426
  supportsImages: true,
3320
- supportsComputerUse: true,
3321
3427
  supportsPromptCache: true,
3322
3428
  inputPrice: 3,
3323
3429
  outputPrice: 15,
@@ -3328,7 +3434,6 @@ var vertexModels = {
3328
3434
  maxTokens: 8192,
3329
3435
  contextWindow: 2e5,
3330
3436
  supportsImages: true,
3331
- supportsComputerUse: true,
3332
3437
  supportsPromptCache: true,
3333
3438
  inputPrice: 3,
3334
3439
  outputPrice: 15,
@@ -3848,7 +3953,6 @@ var vercelAiGatewayDefaultModelInfo = {
3848
3953
  maxTokens: 64e3,
3849
3954
  contextWindow: 2e5,
3850
3955
  supportsImages: true,
3851
- supportsComputerUse: true,
3852
3956
  supportsPromptCache: true,
3853
3957
  inputPrice: 3,
3854
3958
  outputPrice: 15,
@@ -3859,13 +3963,14 @@ var vercelAiGatewayDefaultModelInfo = {
3859
3963
  var VERCEL_AI_GATEWAY_DEFAULT_TEMPERATURE = 0.7;
3860
3964
 
3861
3965
  // src/providers/zai.ts
3862
- var internationalZAiDefaultModelId = "glm-4.5";
3966
+ var internationalZAiDefaultModelId = "glm-4.6";
3863
3967
  var internationalZAiModels = {
3864
3968
  "glm-4.5": {
3865
3969
  maxTokens: 98304,
3866
3970
  contextWindow: 131072,
3867
3971
  supportsImages: false,
3868
3972
  supportsPromptCache: true,
3973
+ supportsReasoningBinary: true,
3869
3974
  inputPrice: 0.6,
3870
3975
  outputPrice: 2.2,
3871
3976
  cacheWritesPrice: 0,
@@ -3883,50 +3988,87 @@ var internationalZAiModels = {
3883
3988
  cacheReadsPrice: 0.03,
3884
3989
  description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models."
3885
3990
  },
3991
+ "glm-4.5-x": {
3992
+ maxTokens: 98304,
3993
+ contextWindow: 131072,
3994
+ supportsImages: false,
3995
+ supportsPromptCache: true,
3996
+ inputPrice: 2.2,
3997
+ outputPrice: 8.9,
3998
+ cacheWritesPrice: 0,
3999
+ cacheReadsPrice: 0.45,
4000
+ description: "GLM-4.5-X is a high-performance variant optimized for strong reasoning with ultra-fast responses."
4001
+ },
4002
+ "glm-4.5-airx": {
4003
+ maxTokens: 98304,
4004
+ contextWindow: 131072,
4005
+ supportsImages: false,
4006
+ supportsPromptCache: true,
4007
+ inputPrice: 1.1,
4008
+ outputPrice: 4.5,
4009
+ cacheWritesPrice: 0,
4010
+ cacheReadsPrice: 0.22,
4011
+ description: "GLM-4.5-AirX is a lightweight, ultra-fast variant delivering strong performance with lower cost."
4012
+ },
4013
+ "glm-4.5-flash": {
4014
+ maxTokens: 98304,
4015
+ contextWindow: 131072,
4016
+ supportsImages: false,
4017
+ supportsPromptCache: true,
4018
+ inputPrice: 0,
4019
+ outputPrice: 0,
4020
+ cacheWritesPrice: 0,
4021
+ cacheReadsPrice: 0,
4022
+ description: "GLM-4.5-Flash is a free, high-speed model excellent for reasoning, coding, and agentic tasks."
4023
+ },
4024
+ "glm-4.5v": {
4025
+ maxTokens: 16384,
4026
+ contextWindow: 131072,
4027
+ supportsImages: true,
4028
+ supportsPromptCache: true,
4029
+ inputPrice: 0.6,
4030
+ outputPrice: 1.8,
4031
+ cacheWritesPrice: 0,
4032
+ cacheReadsPrice: 0.11,
4033
+ description: "GLM-4.5V is Z.AI's multimodal visual reasoning model (image/video/text/file input), optimized for GUI tasks, grounding, and document/video understanding."
4034
+ },
3886
4035
  "glm-4.6": {
3887
4036
  maxTokens: 98304,
3888
- contextWindow: 204800,
4037
+ contextWindow: 2e5,
3889
4038
  supportsImages: false,
3890
4039
  supportsPromptCache: true,
4040
+ supportsReasoningBinary: true,
3891
4041
  inputPrice: 0.6,
3892
4042
  outputPrice: 2.2,
3893
4043
  cacheWritesPrice: 0,
3894
4044
  cacheReadsPrice: 0.11,
3895
4045
  description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations."
4046
+ },
4047
+ "glm-4-32b-0414-128k": {
4048
+ maxTokens: 98304,
4049
+ contextWindow: 131072,
4050
+ supportsImages: false,
4051
+ supportsPromptCache: false,
4052
+ inputPrice: 0.1,
4053
+ outputPrice: 0.1,
4054
+ cacheWritesPrice: 0,
4055
+ cacheReadsPrice: 0,
4056
+ description: "GLM-4-32B is a 32 billion parameter model with 128k context length, optimized for efficiency."
3896
4057
  }
3897
4058
  };
3898
- var mainlandZAiDefaultModelId = "glm-4.5";
4059
+ var mainlandZAiDefaultModelId = "glm-4.6";
3899
4060
  var mainlandZAiModels = {
3900
4061
  "glm-4.5": {
3901
4062
  maxTokens: 98304,
3902
4063
  contextWindow: 131072,
3903
4064
  supportsImages: false,
3904
4065
  supportsPromptCache: true,
4066
+ supportsReasoningBinary: true,
3905
4067
  inputPrice: 0.29,
3906
4068
  outputPrice: 1.14,
3907
4069
  cacheWritesPrice: 0,
3908
4070
  cacheReadsPrice: 0.057,
3909
- description: "GLM-4.5 is Zhipu's latest featured model. Its comprehensive capabilities in reasoning, coding, and agent reach the state-of-the-art (SOTA) level among open-source models, with a context length of up to 128k.",
3910
- tiers: [
3911
- {
3912
- contextWindow: 32e3,
3913
- inputPrice: 0.21,
3914
- outputPrice: 1,
3915
- cacheReadsPrice: 0.043
3916
- },
3917
- {
3918
- contextWindow: 128e3,
3919
- inputPrice: 0.29,
3920
- outputPrice: 1.14,
3921
- cacheReadsPrice: 0.057
3922
- },
3923
- {
3924
- contextWindow: Infinity,
3925
- inputPrice: 0.29,
3926
- outputPrice: 1.14,
3927
- cacheReadsPrice: 0.057
3928
- }
3929
- ]
4071
+ description: "GLM-4.5 is Zhipu's latest featured model. Its comprehensive capabilities in reasoning, coding, and agent reach the state-of-the-art (SOTA) level among open-source models, with a context length of up to 128k."
3930
4072
  },
3931
4073
  "glm-4.5-air": {
3932
4074
  maxTokens: 98304,
@@ -3937,76 +4079,77 @@ var mainlandZAiModels = {
3937
4079
  outputPrice: 0.6,
3938
4080
  cacheWritesPrice: 0,
3939
4081
  cacheReadsPrice: 0.02,
3940
- description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models.",
3941
- tiers: [
3942
- {
3943
- contextWindow: 32e3,
3944
- inputPrice: 0.07,
3945
- outputPrice: 0.4,
3946
- cacheReadsPrice: 0.014
3947
- },
3948
- {
3949
- contextWindow: 128e3,
3950
- inputPrice: 0.1,
3951
- outputPrice: 0.6,
3952
- cacheReadsPrice: 0.02
3953
- },
3954
- {
3955
- contextWindow: Infinity,
3956
- inputPrice: 0.1,
3957
- outputPrice: 0.6,
3958
- cacheReadsPrice: 0.02
3959
- }
3960
- ]
4082
+ description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models."
4083
+ },
4084
+ "glm-4.5-x": {
4085
+ maxTokens: 98304,
4086
+ contextWindow: 131072,
4087
+ supportsImages: false,
4088
+ supportsPromptCache: true,
4089
+ inputPrice: 0.29,
4090
+ outputPrice: 1.14,
4091
+ cacheWritesPrice: 0,
4092
+ cacheReadsPrice: 0.057,
4093
+ description: "GLM-4.5-X is a high-performance variant optimized for strong reasoning with ultra-fast responses."
4094
+ },
4095
+ "glm-4.5-airx": {
4096
+ maxTokens: 98304,
4097
+ contextWindow: 131072,
4098
+ supportsImages: false,
4099
+ supportsPromptCache: true,
4100
+ inputPrice: 0.1,
4101
+ outputPrice: 0.6,
4102
+ cacheWritesPrice: 0,
4103
+ cacheReadsPrice: 0.02,
4104
+ description: "GLM-4.5-AirX is a lightweight, ultra-fast variant delivering strong performance with lower cost."
4105
+ },
4106
+ "glm-4.5-flash": {
4107
+ maxTokens: 98304,
4108
+ contextWindow: 131072,
4109
+ supportsImages: false,
4110
+ supportsPromptCache: true,
4111
+ inputPrice: 0,
4112
+ outputPrice: 0,
4113
+ cacheWritesPrice: 0,
4114
+ cacheReadsPrice: 0,
4115
+ description: "GLM-4.5-Flash is a free, high-speed model excellent for reasoning, coding, and agentic tasks."
4116
+ },
4117
+ "glm-4.5v": {
4118
+ maxTokens: 16384,
4119
+ contextWindow: 131072,
4120
+ supportsImages: true,
4121
+ supportsPromptCache: true,
4122
+ inputPrice: 0.29,
4123
+ outputPrice: 0.93,
4124
+ cacheWritesPrice: 0,
4125
+ cacheReadsPrice: 0.057,
4126
+ description: "GLM-4.5V is Z.AI's multimodal visual reasoning model (image/video/text/file input), optimized for GUI tasks, grounding, and document/video understanding."
3961
4127
  },
3962
4128
  "glm-4.6": {
3963
4129
  maxTokens: 98304,
3964
4130
  contextWindow: 204800,
3965
4131
  supportsImages: false,
3966
4132
  supportsPromptCache: true,
4133
+ supportsReasoningBinary: true,
3967
4134
  inputPrice: 0.29,
3968
4135
  outputPrice: 1.14,
3969
4136
  cacheWritesPrice: 0,
3970
4137
  cacheReadsPrice: 0.057,
3971
- description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations.",
3972
- tiers: [
3973
- {
3974
- contextWindow: 32e3,
3975
- inputPrice: 0.21,
3976
- outputPrice: 1,
3977
- cacheReadsPrice: 0.043
3978
- },
3979
- {
3980
- contextWindow: 128e3,
3981
- inputPrice: 0.29,
3982
- outputPrice: 1.14,
3983
- cacheReadsPrice: 0.057
3984
- },
3985
- {
3986
- contextWindow: 2e5,
3987
- inputPrice: 0.29,
3988
- outputPrice: 1.14,
3989
- cacheReadsPrice: 0.057
3990
- },
3991
- {
3992
- contextWindow: Infinity,
3993
- inputPrice: 0.29,
3994
- outputPrice: 1.14,
3995
- cacheReadsPrice: 0.057
3996
- }
3997
- ]
4138
+ description: "GLM-4.6 is Zhipu's newest model with an extended context window of up to 200k tokens, providing enhanced capabilities for processing longer documents and conversations."
3998
4139
  }
3999
4140
  };
4000
- var ZAI_DEFAULT_TEMPERATURE = 0;
4141
+ var ZAI_DEFAULT_TEMPERATURE = 0.6;
4001
4142
  var zaiApiLineConfigs = {
4002
4143
  international_coding: {
4003
- name: "International Coding Plan",
4144
+ name: "International",
4004
4145
  baseUrl: "https://api.z.ai/api/coding/paas/v4",
4005
4146
  isChina: false
4006
4147
  },
4007
- international: { name: "International Standard", baseUrl: "https://api.z.ai/api/paas/v4", isChina: false },
4008
- china_coding: { name: "China Coding Plan", baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4", isChina: true },
4009
- china: { name: "China Standard", baseUrl: "https://open.bigmodel.cn/api/paas/v4", isChina: true }
4148
+ china_coding: {
4149
+ name: "China",
4150
+ baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
4151
+ isChina: true
4152
+ }
4010
4153
  };
4011
4154
 
4012
4155
  // src/providers/deepinfra.ts
@@ -4021,6 +4164,118 @@ var deepInfraDefaultModelInfo = {
4021
4164
  description: "Qwen 3 Coder 480B A35B Instruct Turbo model, 256K context."
4022
4165
  };
4023
4166
 
4167
+ // src/providers/minimax.ts
4168
+ var minimaxDefaultModelId = "MiniMax-M2";
4169
+ var minimaxModels = {
4170
+ "MiniMax-M2": {
4171
+ maxTokens: 16384,
4172
+ contextWindow: 192e3,
4173
+ supportsImages: false,
4174
+ supportsPromptCache: true,
4175
+ inputPrice: 0.3,
4176
+ outputPrice: 1.2,
4177
+ cacheWritesPrice: 0.375,
4178
+ cacheReadsPrice: 0.03,
4179
+ preserveReasoning: true,
4180
+ description: "MiniMax M2, a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed."
4181
+ },
4182
+ "MiniMax-M2-Stable": {
4183
+ maxTokens: 16384,
4184
+ contextWindow: 192e3,
4185
+ supportsImages: false,
4186
+ supportsPromptCache: true,
4187
+ inputPrice: 0.3,
4188
+ outputPrice: 1.2,
4189
+ cacheWritesPrice: 0.375,
4190
+ cacheReadsPrice: 0.03,
4191
+ preserveReasoning: true,
4192
+ description: "MiniMax M2 Stable (High Concurrency, Commercial Use), a model born for Agents and code, featuring Top-tier Coding Capabilities, Powerful Agentic Performance, and Ultimate Cost-Effectiveness & Speed."
4193
+ }
4194
+ };
4195
+ var MINIMAX_DEFAULT_TEMPERATURE = 1;
4196
+
4197
+ // src/providers/index.ts
4198
+ function getProviderDefaultModelId(provider, options = { isChina: false }) {
4199
+ switch (provider) {
4200
+ case "openrouter":
4201
+ return openRouterDefaultModelId;
4202
+ case "requesty":
4203
+ return requestyDefaultModelId;
4204
+ case "glama":
4205
+ return glamaDefaultModelId;
4206
+ case "unbound":
4207
+ return unboundDefaultModelId;
4208
+ case "litellm":
4209
+ return litellmDefaultModelId;
4210
+ case "xai":
4211
+ return xaiDefaultModelId;
4212
+ case "groq":
4213
+ return groqDefaultModelId;
4214
+ case "huggingface":
4215
+ return "meta-llama/Llama-3.3-70B-Instruct";
4216
+ case "chutes":
4217
+ return chutesDefaultModelId;
4218
+ case "bedrock":
4219
+ return bedrockDefaultModelId;
4220
+ case "vertex":
4221
+ return vertexDefaultModelId;
4222
+ case "gemini":
4223
+ return geminiDefaultModelId;
4224
+ case "deepseek":
4225
+ return deepSeekDefaultModelId;
4226
+ case "doubao":
4227
+ return doubaoDefaultModelId;
4228
+ case "moonshot":
4229
+ return moonshotDefaultModelId;
4230
+ case "minimax":
4231
+ return minimaxDefaultModelId;
4232
+ case "zai":
4233
+ return options?.isChina ? mainlandZAiDefaultModelId : internationalZAiDefaultModelId;
4234
+ case "openai-native":
4235
+ return "gpt-4o";
4236
+ // Based on openai-native patterns
4237
+ case "mistral":
4238
+ return mistralDefaultModelId;
4239
+ case "openai":
4240
+ return "";
4241
+ // OpenAI provider uses custom model configuration
4242
+ case "ollama":
4243
+ return "";
4244
+ // Ollama uses dynamic model selection
4245
+ case "lmstudio":
4246
+ return "";
4247
+ // LMStudio uses dynamic model selection
4248
+ case "deepinfra":
4249
+ return deepInfraDefaultModelId;
4250
+ case "vscode-lm":
4251
+ return vscodeLlmDefaultModelId;
4252
+ case "claude-code":
4253
+ return claudeCodeDefaultModelId;
4254
+ case "cerebras":
4255
+ return cerebrasDefaultModelId;
4256
+ case "sambanova":
4257
+ return sambaNovaDefaultModelId;
4258
+ case "fireworks":
4259
+ return fireworksDefaultModelId;
4260
+ case "featherless":
4261
+ return featherlessDefaultModelId;
4262
+ case "io-intelligence":
4263
+ return ioIntelligenceDefaultModelId;
4264
+ case "roo":
4265
+ return rooDefaultModelId;
4266
+ case "qwen-code":
4267
+ return qwenCodeDefaultModelId;
4268
+ case "vercel-ai-gateway":
4269
+ return vercelAiGatewayDefaultModelId;
4270
+ case "anthropic":
4271
+ case "gemini-cli":
4272
+ case "human-relay":
4273
+ case "fake-ai":
4274
+ default:
4275
+ return anthropicDefaultModelId;
4276
+ }
4277
+ }
4278
+
4024
4279
  // src/provider-settings.ts
4025
4280
  var DEFAULT_CONSECUTIVE_MISTAKE_LIMIT = 3;
4026
4281
  var dynamicProviders = [
@@ -4032,7 +4287,9 @@ var dynamicProviders = [
4032
4287
  "io-intelligence",
4033
4288
  "requesty",
4034
4289
  "unbound",
4035
- "glama"
4290
+ "glama",
4291
+ "roo",
4292
+ "chutes"
4036
4293
  ];
4037
4294
  var isDynamicProvider = (key) => dynamicProviders.includes(key);
4038
4295
  var localProviders = ["ollama", "lmstudio"];
@@ -4052,7 +4309,6 @@ var providerNames = [
4052
4309
  "anthropic",
4053
4310
  "bedrock",
4054
4311
  "cerebras",
4055
- "chutes",
4056
4312
  "claude-code",
4057
4313
  "doubao",
4058
4314
  "deepseek",
@@ -4063,6 +4319,7 @@ var providerNames = [
4063
4319
  "groq",
4064
4320
  "mistral",
4065
4321
  "moonshot",
4322
+ "minimax",
4066
4323
  "openai-native",
4067
4324
  "qwen-code",
4068
4325
  "roo",
@@ -4071,260 +4328,267 @@ var providerNames = [
4071
4328
  "xai",
4072
4329
  "zai"
4073
4330
  ];
4074
- var providerNamesSchema = z7.enum(providerNames);
4331
+ var providerNamesSchema = z8.enum(providerNames);
4075
4332
  var isProviderName = (key) => typeof key === "string" && providerNames.includes(key);
4076
- var providerSettingsEntrySchema = z7.object({
4077
- id: z7.string(),
4078
- name: z7.string(),
4333
+ var providerSettingsEntrySchema = z8.object({
4334
+ id: z8.string(),
4335
+ name: z8.string(),
4079
4336
  apiProvider: providerNamesSchema.optional(),
4080
- modelId: z7.string().optional()
4337
+ modelId: z8.string().optional()
4081
4338
  });
4082
- var baseProviderSettingsSchema = z7.object({
4083
- includeMaxTokens: z7.boolean().optional(),
4084
- diffEnabled: z7.boolean().optional(),
4085
- todoListEnabled: z7.boolean().optional(),
4086
- fuzzyMatchThreshold: z7.number().optional(),
4087
- modelTemperature: z7.number().nullish(),
4088
- rateLimitSeconds: z7.number().optional(),
4089
- consecutiveMistakeLimit: z7.number().min(0).optional(),
4339
+ var baseProviderSettingsSchema = z8.object({
4340
+ includeMaxTokens: z8.boolean().optional(),
4341
+ diffEnabled: z8.boolean().optional(),
4342
+ todoListEnabled: z8.boolean().optional(),
4343
+ fuzzyMatchThreshold: z8.number().optional(),
4344
+ modelTemperature: z8.number().nullish(),
4345
+ rateLimitSeconds: z8.number().optional(),
4346
+ consecutiveMistakeLimit: z8.number().min(0).optional(),
4090
4347
  // Model reasoning.
4091
- enableReasoningEffort: z7.boolean().optional(),
4348
+ enableReasoningEffort: z8.boolean().optional(),
4092
4349
  reasoningEffort: reasoningEffortWithMinimalSchema.optional(),
4093
- modelMaxTokens: z7.number().optional(),
4094
- modelMaxThinkingTokens: z7.number().optional(),
4350
+ modelMaxTokens: z8.number().optional(),
4351
+ modelMaxThinkingTokens: z8.number().optional(),
4095
4352
  // Model verbosity.
4096
4353
  verbosity: verbosityLevelsSchema.optional()
4097
4354
  });
4098
4355
  var apiModelIdProviderModelSchema = baseProviderSettingsSchema.extend({
4099
- apiModelId: z7.string().optional()
4356
+ apiModelId: z8.string().optional()
4100
4357
  });
4101
4358
  var anthropicSchema = apiModelIdProviderModelSchema.extend({
4102
- apiKey: z7.string().optional(),
4103
- anthropicBaseUrl: z7.string().optional(),
4104
- anthropicUseAuthToken: z7.boolean().optional(),
4105
- anthropicBeta1MContext: z7.boolean().optional()
4359
+ apiKey: z8.string().optional(),
4360
+ anthropicBaseUrl: z8.string().optional(),
4361
+ anthropicUseAuthToken: z8.boolean().optional(),
4362
+ anthropicBeta1MContext: z8.boolean().optional()
4106
4363
  // Enable 'context-1m-2025-08-07' beta for 1M context window.
4107
4364
  });
4108
4365
  var claudeCodeSchema = apiModelIdProviderModelSchema.extend({
4109
- claudeCodePath: z7.string().optional(),
4110
- claudeCodeMaxOutputTokens: z7.number().int().min(1).max(2e5).optional()
4366
+ claudeCodePath: z8.string().optional(),
4367
+ claudeCodeMaxOutputTokens: z8.number().int().min(1).max(2e5).optional()
4111
4368
  });
4112
4369
  var glamaSchema = baseProviderSettingsSchema.extend({
4113
- glamaModelId: z7.string().optional(),
4114
- glamaApiKey: z7.string().optional()
4370
+ glamaModelId: z8.string().optional(),
4371
+ glamaApiKey: z8.string().optional()
4115
4372
  });
4116
4373
  var openRouterSchema = baseProviderSettingsSchema.extend({
4117
- openRouterApiKey: z7.string().optional(),
4118
- openRouterModelId: z7.string().optional(),
4119
- openRouterBaseUrl: z7.string().optional(),
4120
- openRouterSpecificProvider: z7.string().optional(),
4121
- openRouterUseMiddleOutTransform: z7.boolean().optional()
4374
+ openRouterApiKey: z8.string().optional(),
4375
+ openRouterModelId: z8.string().optional(),
4376
+ openRouterBaseUrl: z8.string().optional(),
4377
+ openRouterSpecificProvider: z8.string().optional(),
4378
+ openRouterUseMiddleOutTransform: z8.boolean().optional()
4122
4379
  });
4123
4380
  var bedrockSchema = apiModelIdProviderModelSchema.extend({
4124
- awsAccessKey: z7.string().optional(),
4125
- awsSecretKey: z7.string().optional(),
4126
- awsSessionToken: z7.string().optional(),
4127
- awsRegion: z7.string().optional(),
4128
- awsUseCrossRegionInference: z7.boolean().optional(),
4129
- awsUsePromptCache: z7.boolean().optional(),
4130
- awsProfile: z7.string().optional(),
4131
- awsUseProfile: z7.boolean().optional(),
4132
- awsApiKey: z7.string().optional(),
4133
- awsUseApiKey: z7.boolean().optional(),
4134
- awsCustomArn: z7.string().optional(),
4135
- awsModelContextWindow: z7.number().optional(),
4136
- awsBedrockEndpointEnabled: z7.boolean().optional(),
4137
- awsBedrockEndpoint: z7.string().optional(),
4138
- awsBedrock1MContext: z7.boolean().optional()
4381
+ awsAccessKey: z8.string().optional(),
4382
+ awsSecretKey: z8.string().optional(),
4383
+ awsSessionToken: z8.string().optional(),
4384
+ awsRegion: z8.string().optional(),
4385
+ awsUseCrossRegionInference: z8.boolean().optional(),
4386
+ awsUseGlobalInference: z8.boolean().optional(),
4387
+ // Enable Global Inference profile routing when supported
4388
+ awsUsePromptCache: z8.boolean().optional(),
4389
+ awsProfile: z8.string().optional(),
4390
+ awsUseProfile: z8.boolean().optional(),
4391
+ awsApiKey: z8.string().optional(),
4392
+ awsUseApiKey: z8.boolean().optional(),
4393
+ awsCustomArn: z8.string().optional(),
4394
+ awsModelContextWindow: z8.number().optional(),
4395
+ awsBedrockEndpointEnabled: z8.boolean().optional(),
4396
+ awsBedrockEndpoint: z8.string().optional(),
4397
+ awsBedrock1MContext: z8.boolean().optional()
4139
4398
  // Enable 'context-1m-2025-08-07' beta for 1M context window.
4140
4399
  });
4141
4400
  var vertexSchema = apiModelIdProviderModelSchema.extend({
4142
- vertexKeyFile: z7.string().optional(),
4143
- vertexJsonCredentials: z7.string().optional(),
4144
- vertexProjectId: z7.string().optional(),
4145
- vertexRegion: z7.string().optional(),
4146
- enableUrlContext: z7.boolean().optional(),
4147
- enableGrounding: z7.boolean().optional()
4401
+ vertexKeyFile: z8.string().optional(),
4402
+ vertexJsonCredentials: z8.string().optional(),
4403
+ vertexProjectId: z8.string().optional(),
4404
+ vertexRegion: z8.string().optional(),
4405
+ enableUrlContext: z8.boolean().optional(),
4406
+ enableGrounding: z8.boolean().optional()
4148
4407
  });
4149
4408
  var openAiSchema = baseProviderSettingsSchema.extend({
4150
- openAiBaseUrl: z7.string().optional(),
4151
- openAiApiKey: z7.string().optional(),
4152
- openAiLegacyFormat: z7.boolean().optional(),
4153
- openAiR1FormatEnabled: z7.boolean().optional(),
4154
- openAiModelId: z7.string().optional(),
4409
+ openAiBaseUrl: z8.string().optional(),
4410
+ openAiApiKey: z8.string().optional(),
4411
+ openAiLegacyFormat: z8.boolean().optional(),
4412
+ openAiR1FormatEnabled: z8.boolean().optional(),
4413
+ openAiModelId: z8.string().optional(),
4155
4414
  openAiCustomModelInfo: modelInfoSchema.nullish(),
4156
- openAiUseAzure: z7.boolean().optional(),
4157
- azureApiVersion: z7.string().optional(),
4158
- openAiStreamingEnabled: z7.boolean().optional(),
4159
- openAiHostHeader: z7.string().optional(),
4415
+ openAiUseAzure: z8.boolean().optional(),
4416
+ azureApiVersion: z8.string().optional(),
4417
+ openAiStreamingEnabled: z8.boolean().optional(),
4418
+ openAiHostHeader: z8.string().optional(),
4160
4419
  // Keep temporarily for backward compatibility during migration.
4161
- openAiHeaders: z7.record(z7.string(), z7.string()).optional()
4420
+ openAiHeaders: z8.record(z8.string(), z8.string()).optional()
4162
4421
  });
4163
4422
  var ollamaSchema = baseProviderSettingsSchema.extend({
4164
- ollamaModelId: z7.string().optional(),
4165
- ollamaBaseUrl: z7.string().optional(),
4166
- ollamaApiKey: z7.string().optional(),
4167
- ollamaNumCtx: z7.number().int().min(128).optional()
4423
+ ollamaModelId: z8.string().optional(),
4424
+ ollamaBaseUrl: z8.string().optional(),
4425
+ ollamaApiKey: z8.string().optional(),
4426
+ ollamaNumCtx: z8.number().int().min(128).optional()
4168
4427
  });
4169
4428
  var vsCodeLmSchema = baseProviderSettingsSchema.extend({
4170
- vsCodeLmModelSelector: z7.object({
4171
- vendor: z7.string().optional(),
4172
- family: z7.string().optional(),
4173
- version: z7.string().optional(),
4174
- id: z7.string().optional()
4429
+ vsCodeLmModelSelector: z8.object({
4430
+ vendor: z8.string().optional(),
4431
+ family: z8.string().optional(),
4432
+ version: z8.string().optional(),
4433
+ id: z8.string().optional()
4175
4434
  }).optional()
4176
4435
  });
4177
4436
  var lmStudioSchema = baseProviderSettingsSchema.extend({
4178
- lmStudioModelId: z7.string().optional(),
4179
- lmStudioBaseUrl: z7.string().optional(),
4180
- lmStudioDraftModelId: z7.string().optional(),
4181
- lmStudioSpeculativeDecodingEnabled: z7.boolean().optional()
4437
+ lmStudioModelId: z8.string().optional(),
4438
+ lmStudioBaseUrl: z8.string().optional(),
4439
+ lmStudioDraftModelId: z8.string().optional(),
4440
+ lmStudioSpeculativeDecodingEnabled: z8.boolean().optional()
4182
4441
  });
4183
4442
  var geminiSchema = apiModelIdProviderModelSchema.extend({
4184
- geminiApiKey: z7.string().optional(),
4185
- googleGeminiBaseUrl: z7.string().optional(),
4186
- enableUrlContext: z7.boolean().optional(),
4187
- enableGrounding: z7.boolean().optional()
4443
+ geminiApiKey: z8.string().optional(),
4444
+ googleGeminiBaseUrl: z8.string().optional(),
4445
+ enableUrlContext: z8.boolean().optional(),
4446
+ enableGrounding: z8.boolean().optional()
4188
4447
  });
4189
4448
  var geminiCliSchema = apiModelIdProviderModelSchema.extend({
4190
- geminiCliOAuthPath: z7.string().optional(),
4191
- geminiCliProjectId: z7.string().optional()
4449
+ geminiCliOAuthPath: z8.string().optional(),
4450
+ geminiCliProjectId: z8.string().optional()
4192
4451
  });
4193
4452
  var openAiNativeSchema = apiModelIdProviderModelSchema.extend({
4194
- openAiNativeApiKey: z7.string().optional(),
4195
- openAiNativeBaseUrl: z7.string().optional(),
4453
+ openAiNativeApiKey: z8.string().optional(),
4454
+ openAiNativeBaseUrl: z8.string().optional(),
4196
4455
  // OpenAI Responses API service tier for openai-native provider only.
4197
4456
  // UI should only expose this when the selected model supports flex/priority.
4198
4457
  openAiNativeServiceTier: serviceTierSchema.optional()
4199
4458
  });
4200
4459
  var mistralSchema = apiModelIdProviderModelSchema.extend({
4201
- mistralApiKey: z7.string().optional(),
4202
- mistralCodestralUrl: z7.string().optional()
4460
+ mistralApiKey: z8.string().optional(),
4461
+ mistralCodestralUrl: z8.string().optional()
4203
4462
  });
4204
4463
  var deepSeekSchema = apiModelIdProviderModelSchema.extend({
4205
- deepSeekBaseUrl: z7.string().optional(),
4206
- deepSeekApiKey: z7.string().optional()
4464
+ deepSeekBaseUrl: z8.string().optional(),
4465
+ deepSeekApiKey: z8.string().optional()
4207
4466
  });
4208
4467
  var deepInfraSchema = apiModelIdProviderModelSchema.extend({
4209
- deepInfraBaseUrl: z7.string().optional(),
4210
- deepInfraApiKey: z7.string().optional(),
4211
- deepInfraModelId: z7.string().optional()
4468
+ deepInfraBaseUrl: z8.string().optional(),
4469
+ deepInfraApiKey: z8.string().optional(),
4470
+ deepInfraModelId: z8.string().optional()
4212
4471
  });
4213
4472
  var doubaoSchema = apiModelIdProviderModelSchema.extend({
4214
- doubaoBaseUrl: z7.string().optional(),
4215
- doubaoApiKey: z7.string().optional()
4473
+ doubaoBaseUrl: z8.string().optional(),
4474
+ doubaoApiKey: z8.string().optional()
4216
4475
  });
4217
4476
  var moonshotSchema = apiModelIdProviderModelSchema.extend({
4218
- moonshotBaseUrl: z7.union([z7.literal("https://api.moonshot.ai/v1"), z7.literal("https://api.moonshot.cn/v1")]).optional(),
4219
- moonshotApiKey: z7.string().optional()
4477
+ moonshotBaseUrl: z8.union([z8.literal("https://api.moonshot.ai/v1"), z8.literal("https://api.moonshot.cn/v1")]).optional(),
4478
+ moonshotApiKey: z8.string().optional()
4479
+ });
4480
+ var minimaxSchema = apiModelIdProviderModelSchema.extend({
4481
+ minimaxBaseUrl: z8.union([z8.literal("https://api.minimax.io/v1"), z8.literal("https://api.minimaxi.com/v1")]).optional(),
4482
+ minimaxApiKey: z8.string().optional()
4220
4483
  });
4221
4484
  var unboundSchema = baseProviderSettingsSchema.extend({
4222
- unboundApiKey: z7.string().optional(),
4223
- unboundModelId: z7.string().optional()
4485
+ unboundApiKey: z8.string().optional(),
4486
+ unboundModelId: z8.string().optional()
4224
4487
  });
4225
4488
  var requestySchema = baseProviderSettingsSchema.extend({
4226
- requestyBaseUrl: z7.string().optional(),
4227
- requestyApiKey: z7.string().optional(),
4228
- requestyModelId: z7.string().optional()
4489
+ requestyBaseUrl: z8.string().optional(),
4490
+ requestyApiKey: z8.string().optional(),
4491
+ requestyModelId: z8.string().optional()
4229
4492
  });
4230
4493
  var humanRelaySchema = baseProviderSettingsSchema;
4231
4494
  var fakeAiSchema = baseProviderSettingsSchema.extend({
4232
- fakeAi: z7.unknown().optional()
4495
+ fakeAi: z8.unknown().optional()
4233
4496
  });
4234
4497
  var xaiSchema = apiModelIdProviderModelSchema.extend({
4235
- xaiApiKey: z7.string().optional()
4498
+ xaiApiKey: z8.string().optional()
4236
4499
  });
4237
4500
  var groqSchema = apiModelIdProviderModelSchema.extend({
4238
- groqApiKey: z7.string().optional()
4501
+ groqApiKey: z8.string().optional()
4239
4502
  });
4240
4503
  var huggingFaceSchema = baseProviderSettingsSchema.extend({
4241
- huggingFaceApiKey: z7.string().optional(),
4242
- huggingFaceModelId: z7.string().optional(),
4243
- huggingFaceInferenceProvider: z7.string().optional()
4504
+ huggingFaceApiKey: z8.string().optional(),
4505
+ huggingFaceModelId: z8.string().optional(),
4506
+ huggingFaceInferenceProvider: z8.string().optional()
4244
4507
  });
4245
4508
  var chutesSchema = apiModelIdProviderModelSchema.extend({
4246
- chutesApiKey: z7.string().optional()
4509
+ chutesApiKey: z8.string().optional()
4247
4510
  });
4248
4511
  var litellmSchema = baseProviderSettingsSchema.extend({
4249
- litellmBaseUrl: z7.string().optional(),
4250
- litellmApiKey: z7.string().optional(),
4251
- litellmModelId: z7.string().optional(),
4252
- litellmUsePromptCache: z7.boolean().optional()
4512
+ litellmBaseUrl: z8.string().optional(),
4513
+ litellmApiKey: z8.string().optional(),
4514
+ litellmModelId: z8.string().optional(),
4515
+ litellmUsePromptCache: z8.boolean().optional()
4253
4516
  });
4254
4517
  var cerebrasSchema = apiModelIdProviderModelSchema.extend({
4255
- cerebrasApiKey: z7.string().optional()
4518
+ cerebrasApiKey: z8.string().optional()
4256
4519
  });
4257
4520
  var sambaNovaSchema = apiModelIdProviderModelSchema.extend({
4258
- sambaNovaApiKey: z7.string().optional()
4521
+ sambaNovaApiKey: z8.string().optional()
4259
4522
  });
4260
- var zaiApiLineSchema = z7.enum(["international_coding", "international", "china_coding", "china"]);
4523
+ var zaiApiLineSchema = z8.enum(["international_coding", "china_coding"]);
4261
4524
  var zaiSchema = apiModelIdProviderModelSchema.extend({
4262
- zaiApiKey: z7.string().optional(),
4525
+ zaiApiKey: z8.string().optional(),
4263
4526
  zaiApiLine: zaiApiLineSchema.optional()
4264
4527
  });
4265
4528
  var fireworksSchema = apiModelIdProviderModelSchema.extend({
4266
- fireworksApiKey: z7.string().optional()
4529
+ fireworksApiKey: z8.string().optional()
4267
4530
  });
4268
4531
  var featherlessSchema = apiModelIdProviderModelSchema.extend({
4269
- featherlessApiKey: z7.string().optional()
4532
+ featherlessApiKey: z8.string().optional()
4270
4533
  });
4271
4534
  var ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
4272
- ioIntelligenceModelId: z7.string().optional(),
4273
- ioIntelligenceApiKey: z7.string().optional()
4535
+ ioIntelligenceModelId: z8.string().optional(),
4536
+ ioIntelligenceApiKey: z8.string().optional()
4274
4537
  });
4275
4538
  var qwenCodeSchema = apiModelIdProviderModelSchema.extend({
4276
- qwenCodeOauthPath: z7.string().optional()
4539
+ qwenCodeOauthPath: z8.string().optional()
4277
4540
  });
4278
4541
  var rooSchema = apiModelIdProviderModelSchema.extend({
4279
4542
  // No additional fields needed - uses cloud authentication.
4280
4543
  });
4281
4544
  var vercelAiGatewaySchema = baseProviderSettingsSchema.extend({
4282
- vercelAiGatewayApiKey: z7.string().optional(),
4283
- vercelAiGatewayModelId: z7.string().optional()
4545
+ vercelAiGatewayApiKey: z8.string().optional(),
4546
+ vercelAiGatewayModelId: z8.string().optional()
4284
4547
  });
4285
- var defaultSchema = z7.object({
4286
- apiProvider: z7.undefined()
4548
+ var defaultSchema = z8.object({
4549
+ apiProvider: z8.undefined()
4287
4550
  });
4288
- var providerSettingsSchemaDiscriminated = z7.discriminatedUnion("apiProvider", [
4289
- anthropicSchema.merge(z7.object({ apiProvider: z7.literal("anthropic") })),
4290
- claudeCodeSchema.merge(z7.object({ apiProvider: z7.literal("claude-code") })),
4291
- glamaSchema.merge(z7.object({ apiProvider: z7.literal("glama") })),
4292
- openRouterSchema.merge(z7.object({ apiProvider: z7.literal("openrouter") })),
4293
- bedrockSchema.merge(z7.object({ apiProvider: z7.literal("bedrock") })),
4294
- vertexSchema.merge(z7.object({ apiProvider: z7.literal("vertex") })),
4295
- openAiSchema.merge(z7.object({ apiProvider: z7.literal("openai") })),
4296
- ollamaSchema.merge(z7.object({ apiProvider: z7.literal("ollama") })),
4297
- vsCodeLmSchema.merge(z7.object({ apiProvider: z7.literal("vscode-lm") })),
4298
- lmStudioSchema.merge(z7.object({ apiProvider: z7.literal("lmstudio") })),
4299
- geminiSchema.merge(z7.object({ apiProvider: z7.literal("gemini") })),
4300
- geminiCliSchema.merge(z7.object({ apiProvider: z7.literal("gemini-cli") })),
4301
- openAiNativeSchema.merge(z7.object({ apiProvider: z7.literal("openai-native") })),
4302
- mistralSchema.merge(z7.object({ apiProvider: z7.literal("mistral") })),
4303
- deepSeekSchema.merge(z7.object({ apiProvider: z7.literal("deepseek") })),
4304
- deepInfraSchema.merge(z7.object({ apiProvider: z7.literal("deepinfra") })),
4305
- doubaoSchema.merge(z7.object({ apiProvider: z7.literal("doubao") })),
4306
- moonshotSchema.merge(z7.object({ apiProvider: z7.literal("moonshot") })),
4307
- unboundSchema.merge(z7.object({ apiProvider: z7.literal("unbound") })),
4308
- requestySchema.merge(z7.object({ apiProvider: z7.literal("requesty") })),
4309
- humanRelaySchema.merge(z7.object({ apiProvider: z7.literal("human-relay") })),
4310
- fakeAiSchema.merge(z7.object({ apiProvider: z7.literal("fake-ai") })),
4311
- xaiSchema.merge(z7.object({ apiProvider: z7.literal("xai") })),
4312
- groqSchema.merge(z7.object({ apiProvider: z7.literal("groq") })),
4313
- huggingFaceSchema.merge(z7.object({ apiProvider: z7.literal("huggingface") })),
4314
- chutesSchema.merge(z7.object({ apiProvider: z7.literal("chutes") })),
4315
- litellmSchema.merge(z7.object({ apiProvider: z7.literal("litellm") })),
4316
- cerebrasSchema.merge(z7.object({ apiProvider: z7.literal("cerebras") })),
4317
- sambaNovaSchema.merge(z7.object({ apiProvider: z7.literal("sambanova") })),
4318
- zaiSchema.merge(z7.object({ apiProvider: z7.literal("zai") })),
4319
- fireworksSchema.merge(z7.object({ apiProvider: z7.literal("fireworks") })),
4320
- featherlessSchema.merge(z7.object({ apiProvider: z7.literal("featherless") })),
4321
- ioIntelligenceSchema.merge(z7.object({ apiProvider: z7.literal("io-intelligence") })),
4322
- qwenCodeSchema.merge(z7.object({ apiProvider: z7.literal("qwen-code") })),
4323
- rooSchema.merge(z7.object({ apiProvider: z7.literal("roo") })),
4324
- vercelAiGatewaySchema.merge(z7.object({ apiProvider: z7.literal("vercel-ai-gateway") })),
4551
+ var providerSettingsSchemaDiscriminated = z8.discriminatedUnion("apiProvider", [
4552
+ anthropicSchema.merge(z8.object({ apiProvider: z8.literal("anthropic") })),
4553
+ claudeCodeSchema.merge(z8.object({ apiProvider: z8.literal("claude-code") })),
4554
+ glamaSchema.merge(z8.object({ apiProvider: z8.literal("glama") })),
4555
+ openRouterSchema.merge(z8.object({ apiProvider: z8.literal("openrouter") })),
4556
+ bedrockSchema.merge(z8.object({ apiProvider: z8.literal("bedrock") })),
4557
+ vertexSchema.merge(z8.object({ apiProvider: z8.literal("vertex") })),
4558
+ openAiSchema.merge(z8.object({ apiProvider: z8.literal("openai") })),
4559
+ ollamaSchema.merge(z8.object({ apiProvider: z8.literal("ollama") })),
4560
+ vsCodeLmSchema.merge(z8.object({ apiProvider: z8.literal("vscode-lm") })),
4561
+ lmStudioSchema.merge(z8.object({ apiProvider: z8.literal("lmstudio") })),
4562
+ geminiSchema.merge(z8.object({ apiProvider: z8.literal("gemini") })),
4563
+ geminiCliSchema.merge(z8.object({ apiProvider: z8.literal("gemini-cli") })),
4564
+ openAiNativeSchema.merge(z8.object({ apiProvider: z8.literal("openai-native") })),
4565
+ mistralSchema.merge(z8.object({ apiProvider: z8.literal("mistral") })),
4566
+ deepSeekSchema.merge(z8.object({ apiProvider: z8.literal("deepseek") })),
4567
+ deepInfraSchema.merge(z8.object({ apiProvider: z8.literal("deepinfra") })),
4568
+ doubaoSchema.merge(z8.object({ apiProvider: z8.literal("doubao") })),
4569
+ moonshotSchema.merge(z8.object({ apiProvider: z8.literal("moonshot") })),
4570
+ minimaxSchema.merge(z8.object({ apiProvider: z8.literal("minimax") })),
4571
+ unboundSchema.merge(z8.object({ apiProvider: z8.literal("unbound") })),
4572
+ requestySchema.merge(z8.object({ apiProvider: z8.literal("requesty") })),
4573
+ humanRelaySchema.merge(z8.object({ apiProvider: z8.literal("human-relay") })),
4574
+ fakeAiSchema.merge(z8.object({ apiProvider: z8.literal("fake-ai") })),
4575
+ xaiSchema.merge(z8.object({ apiProvider: z8.literal("xai") })),
4576
+ groqSchema.merge(z8.object({ apiProvider: z8.literal("groq") })),
4577
+ huggingFaceSchema.merge(z8.object({ apiProvider: z8.literal("huggingface") })),
4578
+ chutesSchema.merge(z8.object({ apiProvider: z8.literal("chutes") })),
4579
+ litellmSchema.merge(z8.object({ apiProvider: z8.literal("litellm") })),
4580
+ cerebrasSchema.merge(z8.object({ apiProvider: z8.literal("cerebras") })),
4581
+ sambaNovaSchema.merge(z8.object({ apiProvider: z8.literal("sambanova") })),
4582
+ zaiSchema.merge(z8.object({ apiProvider: z8.literal("zai") })),
4583
+ fireworksSchema.merge(z8.object({ apiProvider: z8.literal("fireworks") })),
4584
+ featherlessSchema.merge(z8.object({ apiProvider: z8.literal("featherless") })),
4585
+ ioIntelligenceSchema.merge(z8.object({ apiProvider: z8.literal("io-intelligence") })),
4586
+ qwenCodeSchema.merge(z8.object({ apiProvider: z8.literal("qwen-code") })),
4587
+ rooSchema.merge(z8.object({ apiProvider: z8.literal("roo") })),
4588
+ vercelAiGatewaySchema.merge(z8.object({ apiProvider: z8.literal("vercel-ai-gateway") })),
4325
4589
  defaultSchema
4326
4590
  ]);
4327
- var providerSettingsSchema = z7.object({
4591
+ var providerSettingsSchema = z8.object({
4328
4592
  apiProvider: providerNamesSchema.optional(),
4329
4593
  ...anthropicSchema.shape,
4330
4594
  ...claudeCodeSchema.shape,
@@ -4344,6 +4608,7 @@ var providerSettingsSchema = z7.object({
4344
4608
  ...deepInfraSchema.shape,
4345
4609
  ...doubaoSchema.shape,
4346
4610
  ...moonshotSchema.shape,
4611
+ ...minimaxSchema.shape,
4347
4612
  ...unboundSchema.shape,
4348
4613
  ...requestySchema.shape,
4349
4614
  ...humanRelaySchema.shape,
@@ -4364,9 +4629,9 @@ var providerSettingsSchema = z7.object({
4364
4629
  ...vercelAiGatewaySchema.shape,
4365
4630
  ...codebaseIndexProviderSchema.shape
4366
4631
  });
4367
- var providerSettingsWithIdSchema = providerSettingsSchema.extend({ id: z7.string().optional() });
4632
+ var providerSettingsWithIdSchema = providerSettingsSchema.extend({ id: z8.string().optional() });
4368
4633
  var discriminatedProviderSettingsWithIdSchema = providerSettingsSchemaDiscriminated.and(
4369
- z7.object({ id: z7.string().optional() })
4634
+ z8.object({ id: z8.string().optional() })
4370
4635
  );
4371
4636
  var PROVIDER_SETTINGS_KEYS = providerSettingsSchema.keyof().options;
4372
4637
  var modelIdKeys = [
@@ -4404,6 +4669,7 @@ var modelIdKeysByProvider = {
4404
4669
  "gemini-cli": "apiModelId",
4405
4670
  mistral: "apiModelId",
4406
4671
  moonshot: "apiModelId",
4672
+ minimax: "apiModelId",
4407
4673
  deepseek: "apiModelId",
4408
4674
  deepinfra: "deepInfraModelId",
4409
4675
  doubao: "apiModelId",
@@ -4432,7 +4698,7 @@ var getApiProtocol = (provider, modelId) => {
4432
4698
  if (provider && provider === "vertex" && modelId && modelId.toLowerCase().includes("claude")) {
4433
4699
  return "anthropic";
4434
4700
  }
4435
- if (provider && provider === "vercel-ai-gateway" && modelId && modelId.toLowerCase().startsWith("anthropic/")) {
4701
+ if (provider && ["vercel-ai-gateway", "roo"].includes(provider) && modelId && modelId.toLowerCase().startsWith("anthropic/")) {
4436
4702
  return "anthropic";
4437
4703
  }
4438
4704
  return "openai";
@@ -4453,11 +4719,6 @@ var MODELS_BY_PROVIDER = {
4453
4719
  label: "Cerebras",
4454
4720
  models: Object.keys(cerebrasModels)
4455
4721
  },
4456
- chutes: {
4457
- id: "chutes",
4458
- label: "Chutes AI",
4459
- models: Object.keys(chutesModels)
4460
- },
4461
4722
  "claude-code": { id: "claude-code", label: "Claude Code", models: Object.keys(claudeCodeModels) },
4462
4723
  deepseek: {
4463
4724
  id: "deepseek",
@@ -4496,13 +4757,18 @@ var MODELS_BY_PROVIDER = {
4496
4757
  label: "Moonshot",
4497
4758
  models: Object.keys(moonshotModels)
4498
4759
  },
4760
+ minimax: {
4761
+ id: "minimax",
4762
+ label: "MiniMax",
4763
+ models: Object.keys(minimaxModels)
4764
+ },
4499
4765
  "openai-native": {
4500
4766
  id: "openai-native",
4501
4767
  label: "OpenAI",
4502
4768
  models: Object.keys(openAiNativeModels)
4503
4769
  },
4504
4770
  "qwen-code": { id: "qwen-code", label: "Qwen Code", models: Object.keys(qwenCodeModels) },
4505
- roo: { id: "roo", label: "Roo", models: Object.keys(rooModels) },
4771
+ roo: { id: "roo", label: "Roo Code Cloud", models: [] },
4506
4772
  sambanova: {
4507
4773
  id: "sambanova",
4508
4774
  label: "SambaNova",
@@ -4529,32 +4795,33 @@ var MODELS_BY_PROVIDER = {
4529
4795
  unbound: { id: "unbound", label: "Unbound", models: [] },
4530
4796
  deepinfra: { id: "deepinfra", label: "DeepInfra", models: [] },
4531
4797
  "vercel-ai-gateway": { id: "vercel-ai-gateway", label: "Vercel AI Gateway", models: [] },
4798
+ chutes: { id: "chutes", label: "Chutes AI", models: [] },
4532
4799
  // Local providers; models discovered from localhost endpoints.
4533
4800
  lmstudio: { id: "lmstudio", label: "LM Studio", models: [] },
4534
4801
  ollama: { id: "ollama", label: "Ollama", models: [] }
4535
4802
  };
4536
4803
 
4537
4804
  // src/history.ts
4538
- import { z as z8 } from "zod";
4539
- var historyItemSchema = z8.object({
4540
- id: z8.string(),
4541
- rootTaskId: z8.string().optional(),
4542
- parentTaskId: z8.string().optional(),
4543
- number: z8.number(),
4544
- ts: z8.number(),
4545
- task: z8.string(),
4546
- tokensIn: z8.number(),
4547
- tokensOut: z8.number(),
4548
- cacheWrites: z8.number().optional(),
4549
- cacheReads: z8.number().optional(),
4550
- totalCost: z8.number(),
4551
- size: z8.number().optional(),
4552
- workspace: z8.string().optional(),
4553
- mode: z8.string().optional()
4805
+ import { z as z9 } from "zod";
4806
+ var historyItemSchema = z9.object({
4807
+ id: z9.string(),
4808
+ rootTaskId: z9.string().optional(),
4809
+ parentTaskId: z9.string().optional(),
4810
+ number: z9.number(),
4811
+ ts: z9.number(),
4812
+ task: z9.string(),
4813
+ tokensIn: z9.number(),
4814
+ tokensOut: z9.number(),
4815
+ cacheWrites: z9.number().optional(),
4816
+ cacheReads: z9.number().optional(),
4817
+ totalCost: z9.number(),
4818
+ size: z9.number().optional(),
4819
+ workspace: z9.string().optional(),
4820
+ mode: z9.string().optional()
4554
4821
  });
4555
4822
 
4556
4823
  // src/experiment.ts
4557
- import { z as z9 } from "zod";
4824
+ import { z as z10 } from "zod";
4558
4825
  var experimentIds = [
4559
4826
  "powerSteering",
4560
4827
  "multiFileApplyDiff",
@@ -4562,19 +4829,19 @@ var experimentIds = [
4562
4829
  "imageGeneration",
4563
4830
  "runSlashCommand"
4564
4831
  ];
4565
- var experimentIdsSchema = z9.enum(experimentIds);
4566
- var experimentsSchema = z9.object({
4567
- powerSteering: z9.boolean().optional(),
4568
- multiFileApplyDiff: z9.boolean().optional(),
4569
- preventFocusDisruption: z9.boolean().optional(),
4570
- imageGeneration: z9.boolean().optional(),
4571
- runSlashCommand: z9.boolean().optional()
4832
+ var experimentIdsSchema = z10.enum(experimentIds);
4833
+ var experimentsSchema = z10.object({
4834
+ powerSteering: z10.boolean().optional(),
4835
+ multiFileApplyDiff: z10.boolean().optional(),
4836
+ preventFocusDisruption: z10.boolean().optional(),
4837
+ imageGeneration: z10.boolean().optional(),
4838
+ runSlashCommand: z10.boolean().optional()
4572
4839
  });
4573
4840
 
4574
4841
  // src/telemetry.ts
4575
- import { z as z10 } from "zod";
4842
+ import { z as z11 } from "zod";
4576
4843
  var telemetrySettings = ["unset", "enabled", "disabled"];
4577
- var telemetrySettingsSchema = z10.enum(telemetrySettings);
4844
+ var telemetrySettingsSchema = z11.enum(telemetrySettings);
4578
4845
  var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
4579
4846
  TelemetryEventName2["TASK_CREATED"] = "Task Created";
4580
4847
  TelemetryEventName2["TASK_RESTARTED"] = "Task Reopened";
@@ -4620,53 +4887,53 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
4620
4887
  TelemetryEventName2["TELEMETRY_SETTINGS_CHANGED"] = "Telemetry Settings Changed";
4621
4888
  return TelemetryEventName2;
4622
4889
  })(TelemetryEventName || {});
4623
- var staticAppPropertiesSchema = z10.object({
4624
- appName: z10.string(),
4625
- appVersion: z10.string(),
4626
- vscodeVersion: z10.string(),
4627
- platform: z10.string(),
4628
- editorName: z10.string(),
4629
- hostname: z10.string().optional()
4890
+ var staticAppPropertiesSchema = z11.object({
4891
+ appName: z11.string(),
4892
+ appVersion: z11.string(),
4893
+ vscodeVersion: z11.string(),
4894
+ platform: z11.string(),
4895
+ editorName: z11.string(),
4896
+ hostname: z11.string().optional()
4630
4897
  });
4631
- var dynamicAppPropertiesSchema = z10.object({
4632
- language: z10.string(),
4633
- mode: z10.string()
4898
+ var dynamicAppPropertiesSchema = z11.object({
4899
+ language: z11.string(),
4900
+ mode: z11.string()
4634
4901
  });
4635
- var cloudAppPropertiesSchema = z10.object({
4636
- cloudIsAuthenticated: z10.boolean().optional()
4902
+ var cloudAppPropertiesSchema = z11.object({
4903
+ cloudIsAuthenticated: z11.boolean().optional()
4637
4904
  });
4638
- var appPropertiesSchema = z10.object({
4905
+ var appPropertiesSchema = z11.object({
4639
4906
  ...staticAppPropertiesSchema.shape,
4640
4907
  ...dynamicAppPropertiesSchema.shape,
4641
4908
  ...cloudAppPropertiesSchema.shape
4642
4909
  });
4643
- var taskPropertiesSchema = z10.object({
4644
- taskId: z10.string().optional(),
4645
- parentTaskId: z10.string().optional(),
4646
- apiProvider: z10.enum(providerNames).optional(),
4647
- modelId: z10.string().optional(),
4648
- diffStrategy: z10.string().optional(),
4649
- isSubtask: z10.boolean().optional(),
4650
- todos: z10.object({
4651
- total: z10.number(),
4652
- completed: z10.number(),
4653
- inProgress: z10.number(),
4654
- pending: z10.number()
4910
+ var taskPropertiesSchema = z11.object({
4911
+ taskId: z11.string().optional(),
4912
+ parentTaskId: z11.string().optional(),
4913
+ apiProvider: z11.enum(providerNames).optional(),
4914
+ modelId: z11.string().optional(),
4915
+ diffStrategy: z11.string().optional(),
4916
+ isSubtask: z11.boolean().optional(),
4917
+ todos: z11.object({
4918
+ total: z11.number(),
4919
+ completed: z11.number(),
4920
+ inProgress: z11.number(),
4921
+ pending: z11.number()
4655
4922
  }).optional()
4656
4923
  });
4657
- var gitPropertiesSchema = z10.object({
4658
- repositoryUrl: z10.string().optional(),
4659
- repositoryName: z10.string().optional(),
4660
- defaultBranch: z10.string().optional()
4924
+ var gitPropertiesSchema = z11.object({
4925
+ repositoryUrl: z11.string().optional(),
4926
+ repositoryName: z11.string().optional(),
4927
+ defaultBranch: z11.string().optional()
4661
4928
  });
4662
- var telemetryPropertiesSchema = z10.object({
4929
+ var telemetryPropertiesSchema = z11.object({
4663
4930
  ...appPropertiesSchema.shape,
4664
4931
  ...taskPropertiesSchema.shape,
4665
4932
  ...gitPropertiesSchema.shape
4666
4933
  });
4667
- var rooCodeTelemetryEventSchema = z10.discriminatedUnion("type", [
4668
- z10.object({
4669
- type: z10.enum([
4934
+ var rooCodeTelemetryEventSchema = z11.discriminatedUnion("type", [
4935
+ z11.object({
4936
+ type: z11.enum([
4670
4937
  "Task Created" /* TASK_CREATED */,
4671
4938
  "Task Reopened" /* TASK_RESTARTED */,
4672
4939
  "Task Completed" /* TASK_COMPLETED */,
@@ -4709,39 +4976,39 @@ var rooCodeTelemetryEventSchema = z10.discriminatedUnion("type", [
4709
4976
  ]),
4710
4977
  properties: telemetryPropertiesSchema
4711
4978
  }),
4712
- z10.object({
4713
- type: z10.literal("Telemetry Settings Changed" /* TELEMETRY_SETTINGS_CHANGED */),
4714
- properties: z10.object({
4979
+ z11.object({
4980
+ type: z11.literal("Telemetry Settings Changed" /* TELEMETRY_SETTINGS_CHANGED */),
4981
+ properties: z11.object({
4715
4982
  ...telemetryPropertiesSchema.shape,
4716
4983
  previousSetting: telemetrySettingsSchema,
4717
4984
  newSetting: telemetrySettingsSchema
4718
4985
  })
4719
4986
  }),
4720
- z10.object({
4721
- type: z10.literal("Task Message" /* TASK_MESSAGE */),
4722
- properties: z10.object({
4987
+ z11.object({
4988
+ type: z11.literal("Task Message" /* TASK_MESSAGE */),
4989
+ properties: z11.object({
4723
4990
  ...telemetryPropertiesSchema.shape,
4724
- taskId: z10.string(),
4991
+ taskId: z11.string(),
4725
4992
  message: clineMessageSchema
4726
4993
  })
4727
4994
  }),
4728
- z10.object({
4729
- type: z10.literal("LLM Completion" /* LLM_COMPLETION */),
4730
- properties: z10.object({
4995
+ z11.object({
4996
+ type: z11.literal("LLM Completion" /* LLM_COMPLETION */),
4997
+ properties: z11.object({
4731
4998
  ...telemetryPropertiesSchema.shape,
4732
- inputTokens: z10.number(),
4733
- outputTokens: z10.number(),
4734
- cacheReadTokens: z10.number().optional(),
4735
- cacheWriteTokens: z10.number().optional(),
4736
- cost: z10.number().optional()
4999
+ inputTokens: z11.number(),
5000
+ outputTokens: z11.number(),
5001
+ cacheReadTokens: z11.number().optional(),
5002
+ cacheWriteTokens: z11.number().optional(),
5003
+ cost: z11.number().optional()
4737
5004
  })
4738
5005
  })
4739
5006
  ]);
4740
5007
 
4741
5008
  // src/mode.ts
4742
- import { z as z11 } from "zod";
4743
- var groupOptionsSchema = z11.object({
4744
- fileRegex: z11.string().optional().refine(
5009
+ import { z as z12 } from "zod";
5010
+ var groupOptionsSchema = z12.object({
5011
+ fileRegex: z12.string().optional().refine(
4745
5012
  (pattern) => {
4746
5013
  if (!pattern) {
4747
5014
  return true;
@@ -4755,10 +5022,10 @@ var groupOptionsSchema = z11.object({
4755
5022
  },
4756
5023
  { message: "Invalid regular expression pattern" }
4757
5024
  ),
4758
- description: z11.string().optional()
5025
+ description: z12.string().optional()
4759
5026
  });
4760
- var groupEntrySchema = z11.union([toolGroupsSchema, z11.tuple([toolGroupsSchema, groupOptionsSchema])]);
4761
- var groupEntryArraySchema = z11.array(groupEntrySchema).refine(
5027
+ var groupEntrySchema = z12.union([toolGroupsSchema, z12.tuple([toolGroupsSchema, groupOptionsSchema])]);
5028
+ var groupEntryArraySchema = z12.array(groupEntrySchema).refine(
4762
5029
  (groups) => {
4763
5030
  const seen = /* @__PURE__ */ new Set();
4764
5031
  return groups.every((group) => {
@@ -4772,18 +5039,18 @@ var groupEntryArraySchema = z11.array(groupEntrySchema).refine(
4772
5039
  },
4773
5040
  { message: "Duplicate groups are not allowed" }
4774
5041
  );
4775
- var modeConfigSchema = z11.object({
4776
- slug: z11.string().regex(/^[a-zA-Z0-9-]+$/, "Slug must contain only letters numbers and dashes"),
4777
- name: z11.string().min(1, "Name is required"),
4778
- roleDefinition: z11.string().min(1, "Role definition is required"),
4779
- whenToUse: z11.string().optional(),
4780
- description: z11.string().optional(),
4781
- customInstructions: z11.string().optional(),
5042
+ var modeConfigSchema = z12.object({
5043
+ slug: z12.string().regex(/^[a-zA-Z0-9-]+$/, "Slug must contain only letters numbers and dashes"),
5044
+ name: z12.string().min(1, "Name is required"),
5045
+ roleDefinition: z12.string().min(1, "Role definition is required"),
5046
+ whenToUse: z12.string().optional(),
5047
+ description: z12.string().optional(),
5048
+ customInstructions: z12.string().optional(),
4782
5049
  groups: groupEntryArraySchema,
4783
- source: z11.enum(["global", "project"]).optional()
5050
+ source: z12.enum(["global", "project"]).optional()
4784
5051
  });
4785
- var customModesSettingsSchema = z11.object({
4786
- customModes: z11.array(modeConfigSchema).refine(
5052
+ var customModesSettingsSchema = z12.object({
5053
+ customModes: z12.array(modeConfigSchema).refine(
4787
5054
  (modes) => {
4788
5055
  const slugs = /* @__PURE__ */ new Set();
4789
5056
  return modes.every((mode) => {
@@ -4799,14 +5066,14 @@ var customModesSettingsSchema = z11.object({
4799
5066
  }
4800
5067
  )
4801
5068
  });
4802
- var promptComponentSchema = z11.object({
4803
- roleDefinition: z11.string().optional(),
4804
- whenToUse: z11.string().optional(),
4805
- description: z11.string().optional(),
4806
- customInstructions: z11.string().optional()
5069
+ var promptComponentSchema = z12.object({
5070
+ roleDefinition: z12.string().optional(),
5071
+ whenToUse: z12.string().optional(),
5072
+ description: z12.string().optional(),
5073
+ customInstructions: z12.string().optional()
4807
5074
  });
4808
- var customModePromptsSchema = z11.record(z11.string(), promptComponentSchema.optional());
4809
- var customSupportPromptsSchema = z11.record(z11.string(), z11.string().optional());
5075
+ var customModePromptsSchema = z12.record(z12.string(), promptComponentSchema.optional());
5076
+ var customSupportPromptsSchema = z12.record(z12.string(), z12.string().optional());
4810
5077
  var DEFAULT_MODES = [
4811
5078
  {
4812
5079
  slug: "architect",
@@ -4855,7 +5122,7 @@ var DEFAULT_MODES = [
4855
5122
  ];
4856
5123
 
4857
5124
  // src/vscode.ts
4858
- import { z as z12 } from "zod";
5125
+ import { z as z13 } from "zod";
4859
5126
  var codeActionIds = ["explainCode", "fixCode", "improveCode", "addToContext", "newTask"];
4860
5127
  var terminalActionIds = ["terminalAddToContext", "terminalFixCommand", "terminalExplainCommand"];
4861
5128
  var commandIds = [
@@ -4901,114 +5168,128 @@ var languages = [
4901
5168
  "zh-CN",
4902
5169
  "zh-TW"
4903
5170
  ];
4904
- var languagesSchema = z12.enum(languages);
5171
+ var languagesSchema = z13.enum(languages);
4905
5172
  var isLanguage = (value) => languages.includes(value);
4906
5173
 
4907
5174
  // src/global-settings.ts
4908
5175
  var DEFAULT_WRITE_DELAY_MS = 1e3;
4909
5176
  var DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT = 5e4;
4910
- var globalSettingsSchema = z13.object({
4911
- currentApiConfigName: z13.string().optional(),
4912
- listApiConfigMeta: z13.array(providerSettingsEntrySchema).optional(),
4913
- pinnedApiConfigs: z13.record(z13.string(), z13.boolean()).optional(),
4914
- lastShownAnnouncementId: z13.string().optional(),
4915
- customInstructions: z13.string().optional(),
4916
- taskHistory: z13.array(historyItemSchema).optional(),
4917
- dismissedUpsells: z13.array(z13.string()).optional(),
5177
+ var MIN_CHECKPOINT_TIMEOUT_SECONDS = 10;
5178
+ var MAX_CHECKPOINT_TIMEOUT_SECONDS = 60;
5179
+ var DEFAULT_CHECKPOINT_TIMEOUT_SECONDS = 15;
5180
+ var globalSettingsSchema = z14.object({
5181
+ currentApiConfigName: z14.string().optional(),
5182
+ listApiConfigMeta: z14.array(providerSettingsEntrySchema).optional(),
5183
+ pinnedApiConfigs: z14.record(z14.string(), z14.boolean()).optional(),
5184
+ lastShownAnnouncementId: z14.string().optional(),
5185
+ customInstructions: z14.string().optional(),
5186
+ taskHistory: z14.array(historyItemSchema).optional(),
5187
+ dismissedUpsells: z14.array(z14.string()).optional(),
4918
5188
  // Image generation settings (experimental) - flattened for simplicity
4919
- openRouterImageApiKey: z13.string().optional(),
4920
- openRouterImageGenerationSelectedModel: z13.string().optional(),
4921
- condensingApiConfigId: z13.string().optional(),
4922
- customCondensingPrompt: z13.string().optional(),
4923
- autoApprovalEnabled: z13.boolean().optional(),
4924
- alwaysAllowReadOnly: z13.boolean().optional(),
4925
- alwaysAllowReadOnlyOutsideWorkspace: z13.boolean().optional(),
4926
- alwaysAllowWrite: z13.boolean().optional(),
4927
- alwaysAllowWriteOutsideWorkspace: z13.boolean().optional(),
4928
- alwaysAllowWriteProtected: z13.boolean().optional(),
4929
- writeDelayMs: z13.number().min(0).optional(),
4930
- alwaysAllowBrowser: z13.boolean().optional(),
4931
- alwaysApproveResubmit: z13.boolean().optional(),
4932
- requestDelaySeconds: z13.number().optional(),
4933
- alwaysAllowMcp: z13.boolean().optional(),
4934
- alwaysAllowModeSwitch: z13.boolean().optional(),
4935
- alwaysAllowSubtasks: z13.boolean().optional(),
4936
- alwaysAllowExecute: z13.boolean().optional(),
4937
- alwaysAllowFollowupQuestions: z13.boolean().optional(),
4938
- followupAutoApproveTimeoutMs: z13.number().optional(),
4939
- alwaysAllowUpdateTodoList: z13.boolean().optional(),
4940
- allowedCommands: z13.array(z13.string()).optional(),
4941
- deniedCommands: z13.array(z13.string()).optional(),
4942
- commandExecutionTimeout: z13.number().optional(),
4943
- commandTimeoutAllowlist: z13.array(z13.string()).optional(),
4944
- preventCompletionWithOpenTodos: z13.boolean().optional(),
4945
- allowedMaxRequests: z13.number().nullish(),
4946
- allowedMaxCost: z13.number().nullish(),
4947
- autoCondenseContext: z13.boolean().optional(),
4948
- autoCondenseContextPercent: z13.number().optional(),
4949
- maxConcurrentFileReads: z13.number().optional(),
5189
+ openRouterImageApiKey: z14.string().optional(),
5190
+ openRouterImageGenerationSelectedModel: z14.string().optional(),
5191
+ condensingApiConfigId: z14.string().optional(),
5192
+ customCondensingPrompt: z14.string().optional(),
5193
+ autoApprovalEnabled: z14.boolean().optional(),
5194
+ alwaysAllowReadOnly: z14.boolean().optional(),
5195
+ alwaysAllowReadOnlyOutsideWorkspace: z14.boolean().optional(),
5196
+ alwaysAllowWrite: z14.boolean().optional(),
5197
+ alwaysAllowWriteOutsideWorkspace: z14.boolean().optional(),
5198
+ alwaysAllowWriteProtected: z14.boolean().optional(),
5199
+ writeDelayMs: z14.number().min(0).optional(),
5200
+ alwaysAllowBrowser: z14.boolean().optional(),
5201
+ alwaysApproveResubmit: z14.boolean().optional(),
5202
+ requestDelaySeconds: z14.number().optional(),
5203
+ alwaysAllowMcp: z14.boolean().optional(),
5204
+ alwaysAllowModeSwitch: z14.boolean().optional(),
5205
+ alwaysAllowSubtasks: z14.boolean().optional(),
5206
+ alwaysAllowExecute: z14.boolean().optional(),
5207
+ alwaysAllowFollowupQuestions: z14.boolean().optional(),
5208
+ followupAutoApproveTimeoutMs: z14.number().optional(),
5209
+ alwaysAllowUpdateTodoList: z14.boolean().optional(),
5210
+ allowedCommands: z14.array(z14.string()).optional(),
5211
+ deniedCommands: z14.array(z14.string()).optional(),
5212
+ commandExecutionTimeout: z14.number().optional(),
5213
+ commandTimeoutAllowlist: z14.array(z14.string()).optional(),
5214
+ preventCompletionWithOpenTodos: z14.boolean().optional(),
5215
+ allowedMaxRequests: z14.number().nullish(),
5216
+ allowedMaxCost: z14.number().nullish(),
5217
+ autoCondenseContext: z14.boolean().optional(),
5218
+ autoCondenseContextPercent: z14.number().optional(),
5219
+ maxConcurrentFileReads: z14.number().optional(),
5220
+ /**
5221
+ * Whether to include current time in the environment details
5222
+ * @default true
5223
+ */
5224
+ includeCurrentTime: z14.boolean().optional(),
5225
+ /**
5226
+ * Whether to include current cost in the environment details
5227
+ * @default true
5228
+ */
5229
+ includeCurrentCost: z14.boolean().optional(),
4950
5230
  /**
4951
5231
  * Whether to include diagnostic messages (errors, warnings) in tool outputs
4952
5232
  * @default true
4953
5233
  */
4954
- includeDiagnosticMessages: z13.boolean().optional(),
5234
+ includeDiagnosticMessages: z14.boolean().optional(),
4955
5235
  /**
4956
5236
  * Maximum number of diagnostic messages to include in tool outputs
4957
5237
  * @default 50
4958
5238
  */
4959
- maxDiagnosticMessages: z13.number().optional(),
4960
- browserToolEnabled: z13.boolean().optional(),
4961
- browserViewportSize: z13.string().optional(),
4962
- screenshotQuality: z13.number().optional(),
4963
- remoteBrowserEnabled: z13.boolean().optional(),
4964
- remoteBrowserHost: z13.string().optional(),
4965
- cachedChromeHostUrl: z13.string().optional(),
4966
- enableCheckpoints: z13.boolean().optional(),
4967
- ttsEnabled: z13.boolean().optional(),
4968
- ttsSpeed: z13.number().optional(),
4969
- soundEnabled: z13.boolean().optional(),
4970
- soundVolume: z13.number().optional(),
4971
- maxOpenTabsContext: z13.number().optional(),
4972
- maxWorkspaceFiles: z13.number().optional(),
4973
- showRooIgnoredFiles: z13.boolean().optional(),
4974
- maxReadFileLine: z13.number().optional(),
4975
- maxImageFileSize: z13.number().optional(),
4976
- maxTotalImageSize: z13.number().optional(),
4977
- terminalOutputLineLimit: z13.number().optional(),
4978
- terminalOutputCharacterLimit: z13.number().optional(),
4979
- terminalShellIntegrationTimeout: z13.number().optional(),
4980
- terminalShellIntegrationDisabled: z13.boolean().optional(),
4981
- terminalCommandDelay: z13.number().optional(),
4982
- terminalPowershellCounter: z13.boolean().optional(),
4983
- terminalZshClearEolMark: z13.boolean().optional(),
4984
- terminalZshOhMy: z13.boolean().optional(),
4985
- terminalZshP10k: z13.boolean().optional(),
4986
- terminalZdotdir: z13.boolean().optional(),
4987
- terminalCompressProgressBar: z13.boolean().optional(),
4988
- diagnosticsEnabled: z13.boolean().optional(),
4989
- rateLimitSeconds: z13.number().optional(),
4990
- diffEnabled: z13.boolean().optional(),
4991
- fuzzyMatchThreshold: z13.number().optional(),
5239
+ maxDiagnosticMessages: z14.number().optional(),
5240
+ browserToolEnabled: z14.boolean().optional(),
5241
+ browserViewportSize: z14.string().optional(),
5242
+ screenshotQuality: z14.number().optional(),
5243
+ remoteBrowserEnabled: z14.boolean().optional(),
5244
+ remoteBrowserHost: z14.string().optional(),
5245
+ cachedChromeHostUrl: z14.string().optional(),
5246
+ enableCheckpoints: z14.boolean().optional(),
5247
+ checkpointTimeout: z14.number().int().min(MIN_CHECKPOINT_TIMEOUT_SECONDS).max(MAX_CHECKPOINT_TIMEOUT_SECONDS).optional(),
5248
+ ttsEnabled: z14.boolean().optional(),
5249
+ ttsSpeed: z14.number().optional(),
5250
+ soundEnabled: z14.boolean().optional(),
5251
+ soundVolume: z14.number().optional(),
5252
+ maxOpenTabsContext: z14.number().optional(),
5253
+ maxWorkspaceFiles: z14.number().optional(),
5254
+ showRooIgnoredFiles: z14.boolean().optional(),
5255
+ maxReadFileLine: z14.number().optional(),
5256
+ maxImageFileSize: z14.number().optional(),
5257
+ maxTotalImageSize: z14.number().optional(),
5258
+ terminalOutputLineLimit: z14.number().optional(),
5259
+ terminalOutputCharacterLimit: z14.number().optional(),
5260
+ terminalShellIntegrationTimeout: z14.number().optional(),
5261
+ terminalShellIntegrationDisabled: z14.boolean().optional(),
5262
+ terminalCommandDelay: z14.number().optional(),
5263
+ terminalPowershellCounter: z14.boolean().optional(),
5264
+ terminalZshClearEolMark: z14.boolean().optional(),
5265
+ terminalZshOhMy: z14.boolean().optional(),
5266
+ terminalZshP10k: z14.boolean().optional(),
5267
+ terminalZdotdir: z14.boolean().optional(),
5268
+ terminalCompressProgressBar: z14.boolean().optional(),
5269
+ diagnosticsEnabled: z14.boolean().optional(),
5270
+ rateLimitSeconds: z14.number().optional(),
5271
+ diffEnabled: z14.boolean().optional(),
5272
+ fuzzyMatchThreshold: z14.number().optional(),
4992
5273
  experiments: experimentsSchema.optional(),
4993
5274
  codebaseIndexModels: codebaseIndexModelsSchema.optional(),
4994
5275
  codebaseIndexConfig: codebaseIndexConfigSchema.optional(),
4995
5276
  language: languagesSchema.optional(),
4996
5277
  telemetrySetting: telemetrySettingsSchema.optional(),
4997
- mcpEnabled: z13.boolean().optional(),
4998
- enableMcpServerCreation: z13.boolean().optional(),
4999
- mode: z13.string().optional(),
5000
- modeApiConfigs: z13.record(z13.string(), z13.string()).optional(),
5001
- customModes: z13.array(modeConfigSchema).optional(),
5278
+ mcpEnabled: z14.boolean().optional(),
5279
+ enableMcpServerCreation: z14.boolean().optional(),
5280
+ mode: z14.string().optional(),
5281
+ modeApiConfigs: z14.record(z14.string(), z14.string()).optional(),
5282
+ customModes: z14.array(modeConfigSchema).optional(),
5002
5283
  customModePrompts: customModePromptsSchema.optional(),
5003
5284
  customSupportPrompts: customSupportPromptsSchema.optional(),
5004
- enhancementApiConfigId: z13.string().optional(),
5005
- includeTaskHistoryInEnhance: z13.boolean().optional(),
5006
- historyPreviewCollapsed: z13.boolean().optional(),
5007
- reasoningBlockCollapsed: z13.boolean().optional(),
5008
- profileThresholds: z13.record(z13.string(), z13.number()).optional(),
5009
- hasOpenedModeSelector: z13.boolean().optional(),
5010
- lastModeExportPath: z13.string().optional(),
5011
- lastModeImportPath: z13.string().optional()
5285
+ enhancementApiConfigId: z14.string().optional(),
5286
+ includeTaskHistoryInEnhance: z14.boolean().optional(),
5287
+ historyPreviewCollapsed: z14.boolean().optional(),
5288
+ reasoningBlockCollapsed: z14.boolean().optional(),
5289
+ profileThresholds: z14.record(z14.string(), z14.number()).optional(),
5290
+ hasOpenedModeSelector: z14.boolean().optional(),
5291
+ lastModeExportPath: z14.string().optional(),
5292
+ lastModeImportPath: z14.string().optional()
5012
5293
  });
5013
5294
  var GLOBAL_SETTINGS_KEYS = globalSettingsSchema.keyof().options;
5014
5295
  var rooCodeSettingsSchema = providerSettingsSchema.merge(globalSettingsSchema);
@@ -5029,6 +5310,7 @@ var SECRET_STATE_KEYS = [
5029
5310
  "doubaoApiKey",
5030
5311
  "moonshotApiKey",
5031
5312
  "mistralApiKey",
5313
+ "minimaxApiKey",
5032
5314
  "unboundApiKey",
5033
5315
  "requestyApiKey",
5034
5316
  "xaiApiKey",
@@ -5042,6 +5324,7 @@ var SECRET_STATE_KEYS = [
5042
5324
  "codebaseIndexGeminiApiKey",
5043
5325
  "codebaseIndexMistralApiKey",
5044
5326
  "codebaseIndexVercelAiGatewayApiKey",
5327
+ "codebaseIndexOpenRouterApiKey",
5045
5328
  "huggingFaceApiKey",
5046
5329
  "sambaNovaApiKey",
5047
5330
  "zaiApiKey",
@@ -5126,62 +5409,62 @@ var EVALS_SETTINGS = {
5126
5409
  var EVALS_TIMEOUT = 5 * 60 * 1e3;
5127
5410
 
5128
5411
  // src/marketplace.ts
5129
- import { z as z14 } from "zod";
5130
- var mcpParameterSchema = z14.object({
5131
- name: z14.string().min(1),
5132
- key: z14.string().min(1),
5133
- placeholder: z14.string().optional(),
5134
- optional: z14.boolean().optional().default(false)
5412
+ import { z as z15 } from "zod";
5413
+ var mcpParameterSchema = z15.object({
5414
+ name: z15.string().min(1),
5415
+ key: z15.string().min(1),
5416
+ placeholder: z15.string().optional(),
5417
+ optional: z15.boolean().optional().default(false)
5135
5418
  });
5136
- var mcpInstallationMethodSchema = z14.object({
5137
- name: z14.string().min(1),
5138
- content: z14.string().min(1),
5139
- parameters: z14.array(mcpParameterSchema).optional(),
5140
- prerequisites: z14.array(z14.string()).optional()
5419
+ var mcpInstallationMethodSchema = z15.object({
5420
+ name: z15.string().min(1),
5421
+ content: z15.string().min(1),
5422
+ parameters: z15.array(mcpParameterSchema).optional(),
5423
+ prerequisites: z15.array(z15.string()).optional()
5141
5424
  });
5142
- var marketplaceItemTypeSchema = z14.enum(["mode", "mcp"]);
5143
- var baseMarketplaceItemSchema = z14.object({
5144
- id: z14.string().min(1),
5145
- name: z14.string().min(1, "Name is required"),
5146
- description: z14.string(),
5147
- author: z14.string().optional(),
5148
- authorUrl: z14.string().url("Author URL must be a valid URL").optional(),
5149
- tags: z14.array(z14.string()).optional(),
5150
- prerequisites: z14.array(z14.string()).optional()
5425
+ var marketplaceItemTypeSchema = z15.enum(["mode", "mcp"]);
5426
+ var baseMarketplaceItemSchema = z15.object({
5427
+ id: z15.string().min(1),
5428
+ name: z15.string().min(1, "Name is required"),
5429
+ description: z15.string(),
5430
+ author: z15.string().optional(),
5431
+ authorUrl: z15.string().url("Author URL must be a valid URL").optional(),
5432
+ tags: z15.array(z15.string()).optional(),
5433
+ prerequisites: z15.array(z15.string()).optional()
5151
5434
  });
5152
5435
  var modeMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
5153
- content: z14.string().min(1)
5436
+ content: z15.string().min(1)
5154
5437
  // YAML content for modes
5155
5438
  });
5156
5439
  var mcpMarketplaceItemSchema = baseMarketplaceItemSchema.extend({
5157
- url: z14.string().url(),
5440
+ url: z15.string().url(),
5158
5441
  // Required url field
5159
- content: z14.union([z14.string().min(1), z14.array(mcpInstallationMethodSchema)]),
5442
+ content: z15.union([z15.string().min(1), z15.array(mcpInstallationMethodSchema)]),
5160
5443
  // Single config or array of methods
5161
- parameters: z14.array(mcpParameterSchema).optional()
5444
+ parameters: z15.array(mcpParameterSchema).optional()
5162
5445
  });
5163
- var marketplaceItemSchema = z14.discriminatedUnion("type", [
5446
+ var marketplaceItemSchema = z15.discriminatedUnion("type", [
5164
5447
  // Mode marketplace item
5165
5448
  modeMarketplaceItemSchema.extend({
5166
- type: z14.literal("mode")
5449
+ type: z15.literal("mode")
5167
5450
  }),
5168
5451
  // MCP marketplace item
5169
5452
  mcpMarketplaceItemSchema.extend({
5170
- type: z14.literal("mcp")
5453
+ type: z15.literal("mcp")
5171
5454
  })
5172
5455
  ]);
5173
- var installMarketplaceItemOptionsSchema = z14.object({
5174
- target: z14.enum(["global", "project"]).optional().default("project"),
5175
- parameters: z14.record(z14.string(), z14.any()).optional()
5456
+ var installMarketplaceItemOptionsSchema = z15.object({
5457
+ target: z15.enum(["global", "project"]).optional().default("project"),
5458
+ parameters: z15.record(z15.string(), z15.any()).optional()
5176
5459
  });
5177
5460
 
5178
5461
  // src/cloud.ts
5179
- var organizationAllowListSchema = z15.object({
5180
- allowAll: z15.boolean(),
5181
- providers: z15.record(
5182
- z15.object({
5183
- allowAll: z15.boolean(),
5184
- models: z15.array(z15.string()).optional()
5462
+ var organizationAllowListSchema = z16.object({
5463
+ allowAll: z16.boolean(),
5464
+ providers: z16.record(
5465
+ z16.object({
5466
+ allowAll: z16.boolean(),
5467
+ models: z16.array(z16.string()).optional()
5185
5468
  })
5186
5469
  )
5187
5470
  });
@@ -5199,46 +5482,46 @@ var organizationDefaultSettingsSchema = globalSettingsSchema.pick({
5199
5482
  terminalShellIntegrationTimeout: true,
5200
5483
  terminalZshClearEolMark: true
5201
5484
  }).merge(
5202
- z15.object({
5203
- maxOpenTabsContext: z15.number().int().nonnegative().optional(),
5204
- maxReadFileLine: z15.number().int().gte(-1).optional(),
5205
- maxWorkspaceFiles: z15.number().int().nonnegative().optional(),
5206
- terminalCommandDelay: z15.number().int().nonnegative().optional(),
5207
- terminalOutputLineLimit: z15.number().int().nonnegative().optional(),
5208
- terminalShellIntegrationTimeout: z15.number().int().nonnegative().optional()
5485
+ z16.object({
5486
+ maxOpenTabsContext: z16.number().int().nonnegative().optional(),
5487
+ maxReadFileLine: z16.number().int().gte(-1).optional(),
5488
+ maxWorkspaceFiles: z16.number().int().nonnegative().optional(),
5489
+ terminalCommandDelay: z16.number().int().nonnegative().optional(),
5490
+ terminalOutputLineLimit: z16.number().int().nonnegative().optional(),
5491
+ terminalShellIntegrationTimeout: z16.number().int().nonnegative().optional()
5209
5492
  })
5210
5493
  );
5211
- var organizationCloudSettingsSchema = z15.object({
5212
- recordTaskMessages: z15.boolean().optional(),
5213
- enableTaskSharing: z15.boolean().optional(),
5214
- taskShareExpirationDays: z15.number().int().positive().optional(),
5215
- allowMembersViewAllTasks: z15.boolean().optional()
5494
+ var organizationCloudSettingsSchema = z16.object({
5495
+ recordTaskMessages: z16.boolean().optional(),
5496
+ enableTaskSharing: z16.boolean().optional(),
5497
+ taskShareExpirationDays: z16.number().int().positive().optional(),
5498
+ allowMembersViewAllTasks: z16.boolean().optional()
5216
5499
  });
5217
- var organizationFeaturesSchema = z15.object({
5218
- roomoteControlEnabled: z15.boolean().optional()
5500
+ var organizationFeaturesSchema = z16.object({
5501
+ roomoteControlEnabled: z16.boolean().optional()
5219
5502
  });
5220
- var organizationSettingsSchema = z15.object({
5221
- version: z15.number(),
5503
+ var organizationSettingsSchema = z16.object({
5504
+ version: z16.number(),
5222
5505
  cloudSettings: organizationCloudSettingsSchema.optional(),
5223
5506
  defaultSettings: organizationDefaultSettingsSchema,
5224
5507
  allowList: organizationAllowListSchema,
5225
5508
  features: organizationFeaturesSchema.optional(),
5226
- hiddenMcps: z15.array(z15.string()).optional(),
5227
- hideMarketplaceMcps: z15.boolean().optional(),
5228
- mcps: z15.array(mcpMarketplaceItemSchema).optional(),
5229
- providerProfiles: z15.record(z15.string(), providerSettingsWithIdSchema).optional()
5509
+ hiddenMcps: z16.array(z16.string()).optional(),
5510
+ hideMarketplaceMcps: z16.boolean().optional(),
5511
+ mcps: z16.array(mcpMarketplaceItemSchema).optional(),
5512
+ providerProfiles: z16.record(z16.string(), providerSettingsWithIdSchema).optional()
5230
5513
  });
5231
- var userFeaturesSchema = z15.object({
5232
- roomoteControlEnabled: z15.boolean().optional()
5514
+ var userFeaturesSchema = z16.object({
5515
+ roomoteControlEnabled: z16.boolean().optional()
5233
5516
  });
5234
- var userSettingsConfigSchema = z15.object({
5235
- extensionBridgeEnabled: z15.boolean().optional(),
5236
- taskSyncEnabled: z15.boolean().optional()
5517
+ var userSettingsConfigSchema = z16.object({
5518
+ extensionBridgeEnabled: z16.boolean().optional(),
5519
+ taskSyncEnabled: z16.boolean().optional()
5237
5520
  });
5238
- var userSettingsDataSchema = z15.object({
5521
+ var userSettingsDataSchema = z16.object({
5239
5522
  features: userFeaturesSchema,
5240
5523
  settings: userSettingsConfigSchema,
5241
- version: z15.number()
5524
+ version: z16.number()
5242
5525
  });
5243
5526
  var ORGANIZATION_ALLOW_ALL = {
5244
5527
  allowAll: true,
@@ -5255,12 +5538,12 @@ var ORGANIZATION_DEFAULT = {
5255
5538
  defaultSettings: {},
5256
5539
  allowList: ORGANIZATION_ALLOW_ALL
5257
5540
  };
5258
- var shareResponseSchema = z15.object({
5259
- success: z15.boolean(),
5260
- shareUrl: z15.string().optional(),
5261
- error: z15.string().optional(),
5262
- isNewShare: z15.boolean().optional(),
5263
- manageUrl: z15.string().optional()
5541
+ var shareResponseSchema = z16.object({
5542
+ success: z16.boolean(),
5543
+ shareUrl: z16.string().optional(),
5544
+ error: z16.string().optional(),
5545
+ isNewShare: z16.boolean().optional(),
5546
+ manageUrl: z16.string().optional()
5264
5547
  });
5265
5548
  var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
5266
5549
  ConnectionState2["DISCONNECTED"] = "disconnected";
@@ -5272,30 +5555,31 @@ var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
5272
5555
  })(ConnectionState || {});
5273
5556
  var HEARTBEAT_INTERVAL_MS = 2e4;
5274
5557
  var INSTANCE_TTL_SECONDS = 60;
5275
- var extensionTaskSchema = z15.object({
5276
- taskId: z15.string(),
5277
- taskStatus: z15.nativeEnum(TaskStatus),
5558
+ var extensionTaskSchema = z16.object({
5559
+ taskId: z16.string(),
5560
+ taskStatus: z16.nativeEnum(TaskStatus),
5278
5561
  taskAsk: clineMessageSchema.optional(),
5279
- queuedMessages: z15.array(queuedMessageSchema).optional(),
5280
- parentTaskId: z15.string().optional(),
5281
- childTaskId: z15.string().optional(),
5562
+ queuedMessages: z16.array(queuedMessageSchema).optional(),
5563
+ parentTaskId: z16.string().optional(),
5564
+ childTaskId: z16.string().optional(),
5282
5565
  tokenUsage: tokenUsageSchema.optional(),
5283
5566
  ...taskMetadataSchema.shape
5284
5567
  });
5285
- var extensionInstanceSchema = z15.object({
5286
- instanceId: z15.string(),
5287
- userId: z15.string(),
5288
- workspacePath: z15.string(),
5568
+ var extensionInstanceSchema = z16.object({
5569
+ instanceId: z16.string(),
5570
+ userId: z16.string(),
5571
+ workspacePath: z16.string(),
5289
5572
  appProperties: staticAppPropertiesSchema,
5290
5573
  gitProperties: gitPropertiesSchema.optional(),
5291
- lastHeartbeat: z15.coerce.number(),
5574
+ lastHeartbeat: z16.coerce.number(),
5292
5575
  task: extensionTaskSchema,
5293
5576
  taskAsk: clineMessageSchema.optional(),
5294
- taskHistory: z15.array(z15.string()),
5295
- mode: z15.string().optional(),
5296
- modes: z15.array(z15.object({ slug: z15.string(), name: z15.string() })).optional(),
5297
- providerProfile: z15.string().optional(),
5298
- providerProfiles: z15.array(z15.object({ name: z15.string(), provider: z15.string().optional() })).optional()
5577
+ taskHistory: z16.array(z16.string()),
5578
+ mode: z16.string().optional(),
5579
+ modes: z16.array(z16.object({ slug: z16.string(), name: z16.string() })).optional(),
5580
+ providerProfile: z16.string().optional(),
5581
+ providerProfiles: z16.array(z16.object({ name: z16.string(), provider: z16.string().optional() })).optional(),
5582
+ isCloudAgent: z16.boolean().optional()
5299
5583
  });
5300
5584
  var ExtensionBridgeEventName = ((ExtensionBridgeEventName2) => {
5301
5585
  ExtensionBridgeEventName2[ExtensionBridgeEventName2["TaskCreated"] = "taskCreated" /* TaskCreated */] = "TaskCreated";
@@ -5320,108 +5604,108 @@ var ExtensionBridgeEventName = ((ExtensionBridgeEventName2) => {
5320
5604
  ExtensionBridgeEventName2["HeartbeatUpdated"] = "heartbeat_updated";
5321
5605
  return ExtensionBridgeEventName2;
5322
5606
  })(ExtensionBridgeEventName || {});
5323
- var extensionBridgeEventSchema = z15.discriminatedUnion("type", [
5324
- z15.object({
5325
- type: z15.literal(ExtensionBridgeEventName.TaskCreated),
5607
+ var extensionBridgeEventSchema = z16.discriminatedUnion("type", [
5608
+ z16.object({
5609
+ type: z16.literal(ExtensionBridgeEventName.TaskCreated),
5326
5610
  instance: extensionInstanceSchema,
5327
- timestamp: z15.number()
5611
+ timestamp: z16.number()
5328
5612
  }),
5329
- z15.object({
5330
- type: z15.literal(ExtensionBridgeEventName.TaskStarted),
5613
+ z16.object({
5614
+ type: z16.literal(ExtensionBridgeEventName.TaskStarted),
5331
5615
  instance: extensionInstanceSchema,
5332
- timestamp: z15.number()
5616
+ timestamp: z16.number()
5333
5617
  }),
5334
- z15.object({
5335
- type: z15.literal(ExtensionBridgeEventName.TaskCompleted),
5618
+ z16.object({
5619
+ type: z16.literal(ExtensionBridgeEventName.TaskCompleted),
5336
5620
  instance: extensionInstanceSchema,
5337
- timestamp: z15.number()
5621
+ timestamp: z16.number()
5338
5622
  }),
5339
- z15.object({
5340
- type: z15.literal(ExtensionBridgeEventName.TaskAborted),
5623
+ z16.object({
5624
+ type: z16.literal(ExtensionBridgeEventName.TaskAborted),
5341
5625
  instance: extensionInstanceSchema,
5342
- timestamp: z15.number()
5626
+ timestamp: z16.number()
5343
5627
  }),
5344
- z15.object({
5345
- type: z15.literal(ExtensionBridgeEventName.TaskFocused),
5628
+ z16.object({
5629
+ type: z16.literal(ExtensionBridgeEventName.TaskFocused),
5346
5630
  instance: extensionInstanceSchema,
5347
- timestamp: z15.number()
5631
+ timestamp: z16.number()
5348
5632
  }),
5349
- z15.object({
5350
- type: z15.literal(ExtensionBridgeEventName.TaskUnfocused),
5633
+ z16.object({
5634
+ type: z16.literal(ExtensionBridgeEventName.TaskUnfocused),
5351
5635
  instance: extensionInstanceSchema,
5352
- timestamp: z15.number()
5636
+ timestamp: z16.number()
5353
5637
  }),
5354
- z15.object({
5355
- type: z15.literal(ExtensionBridgeEventName.TaskActive),
5638
+ z16.object({
5639
+ type: z16.literal(ExtensionBridgeEventName.TaskActive),
5356
5640
  instance: extensionInstanceSchema,
5357
- timestamp: z15.number()
5641
+ timestamp: z16.number()
5358
5642
  }),
5359
- z15.object({
5360
- type: z15.literal(ExtensionBridgeEventName.TaskInteractive),
5643
+ z16.object({
5644
+ type: z16.literal(ExtensionBridgeEventName.TaskInteractive),
5361
5645
  instance: extensionInstanceSchema,
5362
- timestamp: z15.number()
5646
+ timestamp: z16.number()
5363
5647
  }),
5364
- z15.object({
5365
- type: z15.literal(ExtensionBridgeEventName.TaskResumable),
5648
+ z16.object({
5649
+ type: z16.literal(ExtensionBridgeEventName.TaskResumable),
5366
5650
  instance: extensionInstanceSchema,
5367
- timestamp: z15.number()
5651
+ timestamp: z16.number()
5368
5652
  }),
5369
- z15.object({
5370
- type: z15.literal(ExtensionBridgeEventName.TaskIdle),
5653
+ z16.object({
5654
+ type: z16.literal(ExtensionBridgeEventName.TaskIdle),
5371
5655
  instance: extensionInstanceSchema,
5372
- timestamp: z15.number()
5656
+ timestamp: z16.number()
5373
5657
  }),
5374
- z15.object({
5375
- type: z15.literal(ExtensionBridgeEventName.TaskPaused),
5658
+ z16.object({
5659
+ type: z16.literal(ExtensionBridgeEventName.TaskPaused),
5376
5660
  instance: extensionInstanceSchema,
5377
- timestamp: z15.number()
5661
+ timestamp: z16.number()
5378
5662
  }),
5379
- z15.object({
5380
- type: z15.literal(ExtensionBridgeEventName.TaskUnpaused),
5663
+ z16.object({
5664
+ type: z16.literal(ExtensionBridgeEventName.TaskUnpaused),
5381
5665
  instance: extensionInstanceSchema,
5382
- timestamp: z15.number()
5666
+ timestamp: z16.number()
5383
5667
  }),
5384
- z15.object({
5385
- type: z15.literal(ExtensionBridgeEventName.TaskSpawned),
5668
+ z16.object({
5669
+ type: z16.literal(ExtensionBridgeEventName.TaskSpawned),
5386
5670
  instance: extensionInstanceSchema,
5387
- timestamp: z15.number()
5671
+ timestamp: z16.number()
5388
5672
  }),
5389
- z15.object({
5390
- type: z15.literal(ExtensionBridgeEventName.TaskUserMessage),
5673
+ z16.object({
5674
+ type: z16.literal(ExtensionBridgeEventName.TaskUserMessage),
5391
5675
  instance: extensionInstanceSchema,
5392
- timestamp: z15.number()
5676
+ timestamp: z16.number()
5393
5677
  }),
5394
- z15.object({
5395
- type: z15.literal(ExtensionBridgeEventName.TaskTokenUsageUpdated),
5678
+ z16.object({
5679
+ type: z16.literal(ExtensionBridgeEventName.TaskTokenUsageUpdated),
5396
5680
  instance: extensionInstanceSchema,
5397
- timestamp: z15.number()
5681
+ timestamp: z16.number()
5398
5682
  }),
5399
- z15.object({
5400
- type: z15.literal(ExtensionBridgeEventName.ModeChanged),
5683
+ z16.object({
5684
+ type: z16.literal(ExtensionBridgeEventName.ModeChanged),
5401
5685
  instance: extensionInstanceSchema,
5402
- mode: z15.string(),
5403
- timestamp: z15.number()
5686
+ mode: z16.string(),
5687
+ timestamp: z16.number()
5404
5688
  }),
5405
- z15.object({
5406
- type: z15.literal(ExtensionBridgeEventName.ProviderProfileChanged),
5689
+ z16.object({
5690
+ type: z16.literal(ExtensionBridgeEventName.ProviderProfileChanged),
5407
5691
  instance: extensionInstanceSchema,
5408
- providerProfile: z15.object({ name: z15.string(), provider: z15.string().optional() }),
5409
- timestamp: z15.number()
5692
+ providerProfile: z16.object({ name: z16.string(), provider: z16.string().optional() }),
5693
+ timestamp: z16.number()
5410
5694
  }),
5411
- z15.object({
5412
- type: z15.literal("instance_registered" /* InstanceRegistered */),
5695
+ z16.object({
5696
+ type: z16.literal("instance_registered" /* InstanceRegistered */),
5413
5697
  instance: extensionInstanceSchema,
5414
- timestamp: z15.number()
5698
+ timestamp: z16.number()
5415
5699
  }),
5416
- z15.object({
5417
- type: z15.literal("instance_unregistered" /* InstanceUnregistered */),
5700
+ z16.object({
5701
+ type: z16.literal("instance_unregistered" /* InstanceUnregistered */),
5418
5702
  instance: extensionInstanceSchema,
5419
- timestamp: z15.number()
5703
+ timestamp: z16.number()
5420
5704
  }),
5421
- z15.object({
5422
- type: z15.literal("heartbeat_updated" /* HeartbeatUpdated */),
5705
+ z16.object({
5706
+ type: z16.literal("heartbeat_updated" /* HeartbeatUpdated */),
5423
5707
  instance: extensionInstanceSchema,
5424
- timestamp: z15.number()
5708
+ timestamp: z16.number()
5425
5709
  })
5426
5710
  ]);
5427
5711
  var ExtensionBridgeCommandName = /* @__PURE__ */ ((ExtensionBridgeCommandName2) => {
@@ -5430,29 +5714,29 @@ var ExtensionBridgeCommandName = /* @__PURE__ */ ((ExtensionBridgeCommandName2)
5430
5714
  ExtensionBridgeCommandName2["ResumeTask"] = "resume_task";
5431
5715
  return ExtensionBridgeCommandName2;
5432
5716
  })(ExtensionBridgeCommandName || {});
5433
- var extensionBridgeCommandSchema = z15.discriminatedUnion("type", [
5434
- z15.object({
5435
- type: z15.literal("start_task" /* StartTask */),
5436
- instanceId: z15.string(),
5437
- payload: z15.object({
5438
- text: z15.string(),
5439
- images: z15.array(z15.string()).optional(),
5440
- mode: z15.string().optional(),
5441
- providerProfile: z15.string().optional()
5717
+ var extensionBridgeCommandSchema = z16.discriminatedUnion("type", [
5718
+ z16.object({
5719
+ type: z16.literal("start_task" /* StartTask */),
5720
+ instanceId: z16.string(),
5721
+ payload: z16.object({
5722
+ text: z16.string(),
5723
+ images: z16.array(z16.string()).optional(),
5724
+ mode: z16.string().optional(),
5725
+ providerProfile: z16.string().optional()
5442
5726
  }),
5443
- timestamp: z15.number()
5727
+ timestamp: z16.number()
5444
5728
  }),
5445
- z15.object({
5446
- type: z15.literal("stop_task" /* StopTask */),
5447
- instanceId: z15.string(),
5448
- payload: z15.object({ taskId: z15.string() }),
5449
- timestamp: z15.number()
5729
+ z16.object({
5730
+ type: z16.literal("stop_task" /* StopTask */),
5731
+ instanceId: z16.string(),
5732
+ payload: z16.object({ taskId: z16.string() }),
5733
+ timestamp: z16.number()
5450
5734
  }),
5451
- z15.object({
5452
- type: z15.literal("resume_task" /* ResumeTask */),
5453
- instanceId: z15.string(),
5454
- payload: z15.object({ taskId: z15.string() }),
5455
- timestamp: z15.number()
5735
+ z16.object({
5736
+ type: z16.literal("resume_task" /* ResumeTask */),
5737
+ instanceId: z16.string(),
5738
+ payload: z16.object({ taskId: z16.string() }),
5739
+ timestamp: z16.number()
5456
5740
  })
5457
5741
  ]);
5458
5742
  var TaskBridgeEventName = ((TaskBridgeEventName2) => {
@@ -5461,21 +5745,21 @@ var TaskBridgeEventName = ((TaskBridgeEventName2) => {
5461
5745
  TaskBridgeEventName2[TaskBridgeEventName2["TaskInteractive"] = "taskInteractive" /* TaskInteractive */] = "TaskInteractive";
5462
5746
  return TaskBridgeEventName2;
5463
5747
  })(TaskBridgeEventName || {});
5464
- var taskBridgeEventSchema = z15.discriminatedUnion("type", [
5465
- z15.object({
5466
- type: z15.literal(TaskBridgeEventName.Message),
5467
- taskId: z15.string(),
5468
- action: z15.string(),
5748
+ var taskBridgeEventSchema = z16.discriminatedUnion("type", [
5749
+ z16.object({
5750
+ type: z16.literal(TaskBridgeEventName.Message),
5751
+ taskId: z16.string(),
5752
+ action: z16.string(),
5469
5753
  message: clineMessageSchema
5470
5754
  }),
5471
- z15.object({
5472
- type: z15.literal(TaskBridgeEventName.TaskModeSwitched),
5473
- taskId: z15.string(),
5474
- mode: z15.string()
5755
+ z16.object({
5756
+ type: z16.literal(TaskBridgeEventName.TaskModeSwitched),
5757
+ taskId: z16.string(),
5758
+ mode: z16.string()
5475
5759
  }),
5476
- z15.object({
5477
- type: z15.literal(TaskBridgeEventName.TaskInteractive),
5478
- taskId: z15.string()
5760
+ z16.object({
5761
+ type: z16.literal(TaskBridgeEventName.TaskInteractive),
5762
+ taskId: z16.string()
5479
5763
  })
5480
5764
  ]);
5481
5765
  var TaskBridgeCommandName = /* @__PURE__ */ ((TaskBridgeCommandName2) => {
@@ -5484,35 +5768,35 @@ var TaskBridgeCommandName = /* @__PURE__ */ ((TaskBridgeCommandName2) => {
5484
5768
  TaskBridgeCommandName2["DenyAsk"] = "deny_ask";
5485
5769
  return TaskBridgeCommandName2;
5486
5770
  })(TaskBridgeCommandName || {});
5487
- var taskBridgeCommandSchema = z15.discriminatedUnion("type", [
5488
- z15.object({
5489
- type: z15.literal("message" /* Message */),
5490
- taskId: z15.string(),
5491
- payload: z15.object({
5492
- text: z15.string(),
5493
- images: z15.array(z15.string()).optional(),
5494
- mode: z15.string().optional(),
5495
- providerProfile: z15.string().optional()
5771
+ var taskBridgeCommandSchema = z16.discriminatedUnion("type", [
5772
+ z16.object({
5773
+ type: z16.literal("message" /* Message */),
5774
+ taskId: z16.string(),
5775
+ payload: z16.object({
5776
+ text: z16.string(),
5777
+ images: z16.array(z16.string()).optional(),
5778
+ mode: z16.string().optional(),
5779
+ providerProfile: z16.string().optional()
5496
5780
  }),
5497
- timestamp: z15.number()
5781
+ timestamp: z16.number()
5498
5782
  }),
5499
- z15.object({
5500
- type: z15.literal("approve_ask" /* ApproveAsk */),
5501
- taskId: z15.string(),
5502
- payload: z15.object({
5503
- text: z15.string().optional(),
5504
- images: z15.array(z15.string()).optional()
5783
+ z16.object({
5784
+ type: z16.literal("approve_ask" /* ApproveAsk */),
5785
+ taskId: z16.string(),
5786
+ payload: z16.object({
5787
+ text: z16.string().optional(),
5788
+ images: z16.array(z16.string()).optional()
5505
5789
  }),
5506
- timestamp: z15.number()
5790
+ timestamp: z16.number()
5507
5791
  }),
5508
- z15.object({
5509
- type: z15.literal("deny_ask" /* DenyAsk */),
5510
- taskId: z15.string(),
5511
- payload: z15.object({
5512
- text: z15.string().optional(),
5513
- images: z15.array(z15.string()).optional()
5792
+ z16.object({
5793
+ type: z16.literal("deny_ask" /* DenyAsk */),
5794
+ taskId: z16.string(),
5795
+ payload: z16.object({
5796
+ text: z16.string().optional(),
5797
+ images: z16.array(z16.string()).optional()
5514
5798
  }),
5515
- timestamp: z15.number()
5799
+ timestamp: z16.number()
5516
5800
  })
5517
5801
  ]);
5518
5802
  var ExtensionSocketEvents = /* @__PURE__ */ ((ExtensionSocketEvents2) => {
@@ -5535,25 +5819,25 @@ var TaskSocketEvents = /* @__PURE__ */ ((TaskSocketEvents2) => {
5535
5819
  TaskSocketEvents2["RELAYED_COMMAND"] = "task:relayed_command";
5536
5820
  return TaskSocketEvents2;
5537
5821
  })(TaskSocketEvents || {});
5538
- var usageStatsSchema = z15.object({
5539
- success: z15.boolean(),
5540
- data: z15.object({
5541
- dates: z15.array(z15.string()),
5822
+ var usageStatsSchema = z16.object({
5823
+ success: z16.boolean(),
5824
+ data: z16.object({
5825
+ dates: z16.array(z16.string()),
5542
5826
  // Array of date strings
5543
- tasks: z15.array(z15.number()),
5827
+ tasks: z16.array(z16.number()),
5544
5828
  // Array of task counts
5545
- tokens: z15.array(z15.number()),
5829
+ tokens: z16.array(z16.number()),
5546
5830
  // Array of token counts
5547
- costs: z15.array(z15.number()),
5831
+ costs: z16.array(z16.number()),
5548
5832
  // Array of costs in USD
5549
- totals: z15.object({
5550
- tasks: z15.number(),
5551
- tokens: z15.number(),
5552
- cost: z15.number()
5833
+ totals: z16.object({
5834
+ tasks: z16.number(),
5835
+ tokens: z16.number(),
5836
+ cost: z16.number()
5553
5837
  // Total cost in USD
5554
5838
  })
5555
5839
  }),
5556
- period: z15.number()
5840
+ period: z16.number()
5557
5841
  // Period in days (e.g., 30)
5558
5842
  });
5559
5843
 
@@ -5564,18 +5848,18 @@ var COOKIE_CONSENT_EVENTS = {
5564
5848
  };
5565
5849
 
5566
5850
  // src/followup.ts
5567
- import { z as z16 } from "zod";
5568
- var suggestionItemSchema = z16.object({
5569
- answer: z16.string(),
5570
- mode: z16.string().optional()
5851
+ import { z as z17 } from "zod";
5852
+ var suggestionItemSchema = z17.object({
5853
+ answer: z17.string(),
5854
+ mode: z17.string().optional()
5571
5855
  });
5572
- var followUpDataSchema = z16.object({
5573
- question: z16.string().optional(),
5574
- suggest: z16.array(suggestionItemSchema).optional()
5856
+ var followUpDataSchema = z17.object({
5857
+ question: z17.string().optional(),
5858
+ suggest: z17.array(suggestionItemSchema).optional()
5575
5859
  });
5576
5860
 
5577
5861
  // src/ipc.ts
5578
- import { z as z17 } from "zod";
5862
+ import { z as z18 } from "zod";
5579
5863
  var IpcMessageType = /* @__PURE__ */ ((IpcMessageType2) => {
5580
5864
  IpcMessageType2["Connect"] = "Connect";
5581
5865
  IpcMessageType2["Disconnect"] = "Disconnect";
@@ -5589,84 +5873,92 @@ var IpcOrigin = /* @__PURE__ */ ((IpcOrigin2) => {
5589
5873
  IpcOrigin2["Server"] = "server";
5590
5874
  return IpcOrigin2;
5591
5875
  })(IpcOrigin || {});
5592
- var ackSchema = z17.object({
5593
- clientId: z17.string(),
5594
- pid: z17.number(),
5595
- ppid: z17.number()
5876
+ var ackSchema = z18.object({
5877
+ clientId: z18.string(),
5878
+ pid: z18.number(),
5879
+ ppid: z18.number()
5596
5880
  });
5597
5881
  var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
5598
5882
  TaskCommandName2["StartNewTask"] = "StartNewTask";
5599
5883
  TaskCommandName2["CancelTask"] = "CancelTask";
5600
5884
  TaskCommandName2["CloseTask"] = "CloseTask";
5601
5885
  TaskCommandName2["ResumeTask"] = "ResumeTask";
5886
+ TaskCommandName2["SendMessage"] = "SendMessage";
5602
5887
  return TaskCommandName2;
5603
5888
  })(TaskCommandName || {});
5604
- var taskCommandSchema = z17.discriminatedUnion("commandName", [
5605
- z17.object({
5606
- commandName: z17.literal("StartNewTask" /* StartNewTask */),
5607
- data: z17.object({
5889
+ var taskCommandSchema = z18.discriminatedUnion("commandName", [
5890
+ z18.object({
5891
+ commandName: z18.literal("StartNewTask" /* StartNewTask */),
5892
+ data: z18.object({
5608
5893
  configuration: rooCodeSettingsSchema,
5609
- text: z17.string(),
5610
- images: z17.array(z17.string()).optional(),
5611
- newTab: z17.boolean().optional()
5894
+ text: z18.string(),
5895
+ images: z18.array(z18.string()).optional(),
5896
+ newTab: z18.boolean().optional()
5612
5897
  })
5613
5898
  }),
5614
- z17.object({
5615
- commandName: z17.literal("CancelTask" /* CancelTask */),
5616
- data: z17.string()
5899
+ z18.object({
5900
+ commandName: z18.literal("CancelTask" /* CancelTask */),
5901
+ data: z18.string()
5902
+ }),
5903
+ z18.object({
5904
+ commandName: z18.literal("CloseTask" /* CloseTask */),
5905
+ data: z18.string()
5617
5906
  }),
5618
- z17.object({
5619
- commandName: z17.literal("CloseTask" /* CloseTask */),
5620
- data: z17.string()
5907
+ z18.object({
5908
+ commandName: z18.literal("ResumeTask" /* ResumeTask */),
5909
+ data: z18.string()
5621
5910
  }),
5622
- z17.object({
5623
- commandName: z17.literal("ResumeTask" /* ResumeTask */),
5624
- data: z17.string()
5911
+ z18.object({
5912
+ commandName: z18.literal("SendMessage" /* SendMessage */),
5913
+ data: z18.object({
5914
+ text: z18.string().optional(),
5915
+ images: z18.array(z18.string()).optional()
5916
+ })
5625
5917
  })
5626
5918
  ]);
5627
- var ipcMessageSchema = z17.discriminatedUnion("type", [
5628
- z17.object({
5629
- type: z17.literal("Ack" /* Ack */),
5630
- origin: z17.literal("server" /* Server */),
5919
+ var ipcMessageSchema = z18.discriminatedUnion("type", [
5920
+ z18.object({
5921
+ type: z18.literal("Ack" /* Ack */),
5922
+ origin: z18.literal("server" /* Server */),
5631
5923
  data: ackSchema
5632
5924
  }),
5633
- z17.object({
5634
- type: z17.literal("TaskCommand" /* TaskCommand */),
5635
- origin: z17.literal("client" /* Client */),
5636
- clientId: z17.string(),
5925
+ z18.object({
5926
+ type: z18.literal("TaskCommand" /* TaskCommand */),
5927
+ origin: z18.literal("client" /* Client */),
5928
+ clientId: z18.string(),
5637
5929
  data: taskCommandSchema
5638
5930
  }),
5639
- z17.object({
5640
- type: z17.literal("TaskEvent" /* TaskEvent */),
5641
- origin: z17.literal("server" /* Server */),
5642
- relayClientId: z17.string().optional(),
5931
+ z18.object({
5932
+ type: z18.literal("TaskEvent" /* TaskEvent */),
5933
+ origin: z18.literal("server" /* Server */),
5934
+ relayClientId: z18.string().optional(),
5643
5935
  data: taskEventSchema
5644
5936
  })
5645
5937
  ]);
5646
5938
 
5647
5939
  // src/mcp.ts
5648
- import { z as z18 } from "zod";
5649
- var mcpExecutionStatusSchema = z18.discriminatedUnion("status", [
5650
- z18.object({
5651
- executionId: z18.string(),
5652
- status: z18.literal("started"),
5653
- serverName: z18.string(),
5654
- toolName: z18.string()
5940
+ import { z as z19 } from "zod";
5941
+ var mcpExecutionStatusSchema = z19.discriminatedUnion("status", [
5942
+ z19.object({
5943
+ executionId: z19.string(),
5944
+ status: z19.literal("started"),
5945
+ serverName: z19.string(),
5946
+ toolName: z19.string()
5655
5947
  }),
5656
- z18.object({
5657
- executionId: z18.string(),
5658
- status: z18.literal("output"),
5659
- response: z18.string()
5948
+ z19.object({
5949
+ executionId: z19.string(),
5950
+ status: z19.literal("output"),
5951
+ response: z19.string()
5660
5952
  }),
5661
- z18.object({
5662
- executionId: z18.string(),
5663
- status: z18.literal("completed"),
5664
- response: z18.string().optional()
5953
+ z19.object({
5954
+ executionId: z19.string(),
5955
+ status: z19.literal("completed"),
5956
+ response: z19.string().optional()
5665
5957
  }),
5666
- z18.object({
5667
- executionId: z18.string(),
5668
- status: z18.literal("error"),
5669
- error: z18.string().optional()
5958
+ z19.object({
5959
+ executionId: z19.string(),
5960
+ status: z19.literal("error"),
5961
+ error: z19.string().optional()
5670
5962
  })
5671
5963
  ]);
5672
5964
 
@@ -5676,40 +5968,40 @@ function shouldUseSingleFileRead(modelId) {
5676
5968
  }
5677
5969
 
5678
5970
  // src/todo.ts
5679
- import { z as z19 } from "zod";
5680
- var todoStatusSchema = z19.enum(["pending", "in_progress", "completed"]);
5681
- var todoItemSchema = z19.object({
5682
- id: z19.string(),
5683
- content: z19.string(),
5971
+ import { z as z20 } from "zod";
5972
+ var todoStatusSchema = z20.enum(["pending", "in_progress", "completed"]);
5973
+ var todoItemSchema = z20.object({
5974
+ id: z20.string(),
5975
+ content: z20.string(),
5684
5976
  status: todoStatusSchema
5685
5977
  });
5686
5978
 
5687
5979
  // src/terminal.ts
5688
- import { z as z20 } from "zod";
5689
- var commandExecutionStatusSchema = z20.discriminatedUnion("status", [
5690
- z20.object({
5691
- executionId: z20.string(),
5692
- status: z20.literal("started"),
5693
- pid: z20.number().optional(),
5694
- command: z20.string()
5980
+ import { z as z21 } from "zod";
5981
+ var commandExecutionStatusSchema = z21.discriminatedUnion("status", [
5982
+ z21.object({
5983
+ executionId: z21.string(),
5984
+ status: z21.literal("started"),
5985
+ pid: z21.number().optional(),
5986
+ command: z21.string()
5695
5987
  }),
5696
- z20.object({
5697
- executionId: z20.string(),
5698
- status: z20.literal("output"),
5699
- output: z20.string()
5988
+ z21.object({
5989
+ executionId: z21.string(),
5990
+ status: z21.literal("output"),
5991
+ output: z21.string()
5700
5992
  }),
5701
- z20.object({
5702
- executionId: z20.string(),
5703
- status: z20.literal("exited"),
5704
- exitCode: z20.number().optional()
5993
+ z21.object({
5994
+ executionId: z21.string(),
5995
+ status: z21.literal("exited"),
5996
+ exitCode: z21.number().optional()
5705
5997
  }),
5706
- z20.object({
5707
- executionId: z20.string(),
5708
- status: z20.literal("fallback")
5998
+ z21.object({
5999
+ executionId: z21.string(),
6000
+ status: z21.literal("fallback")
5709
6001
  }),
5710
- z20.object({
5711
- executionId: z20.string(),
5712
- status: z20.literal("timeout")
6002
+ z21.object({
6003
+ executionId: z21.string(),
6004
+ status: z21.literal("timeout")
5713
6005
  })
5714
6006
  ]);
5715
6007
  export {
@@ -5719,6 +6011,7 @@ export {
5719
6011
  BEDROCK_1M_CONTEXT_MODEL_IDS,
5720
6012
  BEDROCK_DEFAULT_CONTEXT,
5721
6013
  BEDROCK_DEFAULT_TEMPERATURE,
6014
+ BEDROCK_GLOBAL_INFERENCE_MODEL_IDS,
5722
6015
  BEDROCK_MAX_TOKENS,
5723
6016
  BEDROCK_REGIONS,
5724
6017
  CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS,
@@ -5727,6 +6020,7 @@ export {
5727
6020
  COOKIE_CONSENT_EVENTS,
5728
6021
  ConnectionState,
5729
6022
  DEEP_SEEK_DEFAULT_TEMPERATURE,
6023
+ DEFAULT_CHECKPOINT_TIMEOUT_SECONDS,
5730
6024
  DEFAULT_CONSECUTIVE_MISTAKE_LIMIT,
5731
6025
  DEFAULT_MODES,
5732
6026
  DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT,
@@ -5756,15 +6050,16 @@ export {
5756
6050
  IO_INTELLIGENCE_CACHE_DURATION,
5757
6051
  IpcMessageType,
5758
6052
  IpcOrigin,
5759
- LITELLM_COMPUTER_USE_MODELS,
5760
6053
  LMSTUDIO_DEFAULT_TEMPERATURE,
6054
+ MAX_CHECKPOINT_TIMEOUT_SECONDS,
6055
+ MINIMAX_DEFAULT_TEMPERATURE,
6056
+ MIN_CHECKPOINT_TIMEOUT_SECONDS,
5761
6057
  MISTRAL_DEFAULT_TEMPERATURE,
5762
6058
  MODELS_BY_PROVIDER,
5763
6059
  MOONSHOT_DEFAULT_TEMPERATURE,
5764
6060
  OPENAI_AZURE_AI_INFERENCE_PATH,
5765
6061
  OPENAI_NATIVE_DEFAULT_TEMPERATURE,
5766
6062
  OPENROUTER_DEFAULT_PROVIDER_NAME,
5767
- OPEN_ROUTER_COMPUTER_USE_MODELS,
5768
6063
  OPEN_ROUTER_PROMPT_CACHING_MODELS,
5769
6064
  OPEN_ROUTER_REASONING_BUDGET_MODELS,
5770
6065
  OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS,
@@ -5772,6 +6067,9 @@ export {
5772
6067
  ORGANIZATION_DEFAULT,
5773
6068
  PROVIDER_SETTINGS_KEYS,
5774
6069
  RooCodeEventName,
6070
+ RooModelSchema,
6071
+ RooModelsResponseSchema,
6072
+ RooPricingSchema,
5775
6073
  SECRET_STATE_KEYS,
5776
6074
  TaskBridgeCommandName,
5777
6075
  TaskBridgeEventName,
@@ -5796,6 +6094,7 @@ export {
5796
6094
  cerebrasDefaultModelId,
5797
6095
  cerebrasModels,
5798
6096
  chutesDefaultModelId,
6097
+ chutesDefaultModelInfo,
5799
6098
  chutesModels,
5800
6099
  claudeCodeDefaultModelId,
5801
6100
  claudeCodeModels,
@@ -5844,6 +6143,7 @@ export {
5844
6143
  getApiProtocol,
5845
6144
  getClaudeCodeModelId,
5846
6145
  getModelId,
6146
+ getProviderDefaultModelId,
5847
6147
  gitPropertiesSchema,
5848
6148
  glamaDefaultModelId,
5849
6149
  glamaDefaultModelInfo,
@@ -5873,6 +6173,7 @@ export {
5873
6173
  isLanguage,
5874
6174
  isLocalProvider,
5875
6175
  isModelParameter,
6176
+ isNonBlockingAsk,
5876
6177
  isProviderName,
5877
6178
  isResumableAsk,
5878
6179
  isSecretStateKey,
@@ -5892,6 +6193,8 @@ export {
5892
6193
  mcpInstallationMethodSchema,
5893
6194
  mcpMarketplaceItemSchema,
5894
6195
  mcpParameterSchema,
6196
+ minimaxDefaultModelId,
6197
+ minimaxModels,
5895
6198
  mistralDefaultModelId,
5896
6199
  mistralModels,
5897
6200
  modeConfigSchema,
@@ -5903,6 +6206,7 @@ export {
5903
6206
  modelParametersSchema,
5904
6207
  moonshotDefaultModelId,
5905
6208
  moonshotModels,
6209
+ nonBlockingAsks,
5906
6210
  ollamaDefaultModelId,
5907
6211
  ollamaDefaultModelInfo,
5908
6212
  openAiModelInfoSaneDefaults,