@roo-code/types 1.79.0 → 1.80.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.cjs CHANGED
@@ -23,7 +23,7 @@ __export(index_exports, {
23
23
  ANTHROPIC_DEFAULT_MAX_TOKENS: () => ANTHROPIC_DEFAULT_MAX_TOKENS,
24
24
  ANTHROPIC_STYLE_PROVIDERS: () => ANTHROPIC_STYLE_PROVIDERS,
25
25
  AWS_INFERENCE_PROFILE_MAPPING: () => AWS_INFERENCE_PROFILE_MAPPING,
26
- BEDROCK_CLAUDE_SONNET_4_MODEL_ID: () => BEDROCK_CLAUDE_SONNET_4_MODEL_ID,
26
+ BEDROCK_1M_CONTEXT_MODEL_IDS: () => BEDROCK_1M_CONTEXT_MODEL_IDS,
27
27
  BEDROCK_DEFAULT_CONTEXT: () => BEDROCK_DEFAULT_CONTEXT,
28
28
  BEDROCK_DEFAULT_TEMPERATURE: () => BEDROCK_DEFAULT_TEMPERATURE,
29
29
  BEDROCK_MAX_TOKENS: () => BEDROCK_MAX_TOKENS,
@@ -272,6 +272,7 @@ __export(index_exports, {
272
272
  toolUsageSchema: () => toolUsageSchema,
273
273
  unboundDefaultModelId: () => unboundDefaultModelId,
274
274
  unboundDefaultModelInfo: () => unboundDefaultModelInfo,
275
+ usageStatsSchema: () => usageStatsSchema,
275
276
  userFeaturesSchema: () => userFeaturesSchema,
276
277
  userSettingsConfigSchema: () => userSettingsConfigSchema,
277
278
  userSettingsDataSchema: () => userSettingsDataSchema,
@@ -328,6 +329,7 @@ function isResumableAsk(ask) {
328
329
  return resumableAsks.includes(ask);
329
330
  }
330
331
  var interactiveAsks = [
332
+ "followup",
331
333
  "command",
332
334
  "tool",
333
335
  "browser_action_launch",
@@ -744,6 +746,39 @@ var codebaseIndexProviderSchema = import_zod6.z.object({
744
746
  // src/providers/anthropic.ts
745
747
  var anthropicDefaultModelId = "claude-sonnet-4-20250514";
746
748
  var anthropicModels = {
749
+ "claude-sonnet-4-5": {
750
+ maxTokens: 64e3,
751
+ // Overridden to 8k if `enableReasoningEffort` is false.
752
+ contextWindow: 2e5,
753
+ // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
754
+ supportsImages: true,
755
+ supportsComputerUse: true,
756
+ supportsPromptCache: true,
757
+ inputPrice: 3,
758
+ // $3 per million input tokens (≤200K context)
759
+ outputPrice: 15,
760
+ // $15 per million output tokens (≤200K context)
761
+ cacheWritesPrice: 3.75,
762
+ // $3.75 per million tokens
763
+ cacheReadsPrice: 0.3,
764
+ // $0.30 per million tokens
765
+ supportsReasoningBudget: true,
766
+ // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07')
767
+ tiers: [
768
+ {
769
+ contextWindow: 1e6,
770
+ // 1M tokens with beta flag
771
+ inputPrice: 6,
772
+ // $6 per million input tokens (>200K context)
773
+ outputPrice: 22.5,
774
+ // $22.50 per million output tokens (>200K context)
775
+ cacheWritesPrice: 7.5,
776
+ // $7.50 per million tokens (>200K context)
777
+ cacheReadsPrice: 0.6
778
+ // $0.60 per million tokens (>200K context)
779
+ }
780
+ ]
781
+ },
747
782
  "claude-sonnet-4-20250514": {
748
783
  maxTokens: 64e3,
749
784
  // Overridden to 8k if `enableReasoningEffort` is false.
@@ -896,6 +931,21 @@ var ANTHROPIC_DEFAULT_MAX_TOKENS = 8192;
896
931
  var bedrockDefaultModelId = "anthropic.claude-sonnet-4-20250514-v1:0";
897
932
  var bedrockDefaultPromptRouterModelId = "anthropic.claude-3-sonnet-20240229-v1:0";
898
933
  var bedrockModels = {
934
+ "anthropic.claude-sonnet-4-5-20250929-v1:0": {
935
+ maxTokens: 8192,
936
+ contextWindow: 2e5,
937
+ supportsImages: true,
938
+ supportsComputerUse: true,
939
+ supportsPromptCache: true,
940
+ supportsReasoningBudget: true,
941
+ inputPrice: 3,
942
+ outputPrice: 15,
943
+ cacheWritesPrice: 3.75,
944
+ cacheReadsPrice: 0.3,
945
+ minTokensPerCachePoint: 1024,
946
+ maxCachePoints: 4,
947
+ cachableFields: ["system", "messages", "tools"]
948
+ },
899
949
  "amazon.nova-pro-v1:0": {
900
950
  maxTokens: 5e3,
901
951
  contextWindow: 3e5,
@@ -1322,7 +1372,10 @@ var BEDROCK_REGIONS = [
1322
1372
  { value: "us-gov-east-1", label: "us-gov-east-1" },
1323
1373
  { value: "us-gov-west-1", label: "us-gov-west-1" }
1324
1374
  ].sort((a, b) => a.value.localeCompare(b.value));
1325
- var BEDROCK_CLAUDE_SONNET_4_MODEL_ID = "anthropic.claude-sonnet-4-20250514-v1:0";
1375
+ var BEDROCK_1M_CONTEXT_MODEL_IDS = [
1376
+ "anthropic.claude-sonnet-4-20250514-v1:0",
1377
+ "anthropic.claude-sonnet-4-5-20250929-v1:0"
1378
+ ];
1326
1379
 
1327
1380
  // src/providers/cerebras.ts
1328
1381
  var cerebrasDefaultModelId = "qwen-3-coder-480b-free";
@@ -1632,6 +1685,15 @@ var chutesModels = {
1632
1685
  outputPrice: 0,
1633
1686
  description: "GLM-4.5-FP8 model with 128k token context window, optimized for agent-based applications with MoE architecture."
1634
1687
  },
1688
+ "zai-org/GLM-4.5-turbo": {
1689
+ maxTokens: 32768,
1690
+ contextWindow: 131072,
1691
+ supportsImages: false,
1692
+ supportsPromptCache: false,
1693
+ inputPrice: 1,
1694
+ outputPrice: 3,
1695
+ description: "GLM-4.5-turbo model with 128K token context window, optimized for fast inference."
1696
+ },
1635
1697
  "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": {
1636
1698
  maxTokens: 32768,
1637
1699
  contextWindow: 262144,
@@ -1699,6 +1761,15 @@ function getClaudeCodeModelId(baseModelId, useVertex = false) {
1699
1761
  return useVertex ? convertModelNameForVertex(baseModelId) : baseModelId;
1700
1762
  }
1701
1763
  var claudeCodeModels = {
1764
+ "claude-sonnet-4-5": {
1765
+ ...anthropicModels["claude-sonnet-4-5"],
1766
+ supportsImages: false,
1767
+ supportsPromptCache: true,
1768
+ // Claude Code does report cache tokens
1769
+ supportsReasoningEffort: false,
1770
+ supportsReasoningBudget: false,
1771
+ requiredReasoningBudget: false
1772
+ },
1702
1773
  "claude-sonnet-4-20250514": {
1703
1774
  ...anthropicModels["claude-sonnet-4-20250514"],
1704
1775
  supportsImages: false,
@@ -2506,6 +2577,7 @@ var LITELLM_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
2506
2577
  "vertex_ai/claude-opus-4-1@20250805",
2507
2578
  "vertex_ai/claude-opus-4@20250514",
2508
2579
  "vertex_ai/claude-sonnet-4@20250514",
2580
+ "vertex_ai/claude-sonnet-4-5@20250929",
2509
2581
  "openrouter/anthropic/claude-3.5-sonnet",
2510
2582
  "openrouter/anthropic/claude-3.5-sonnet:beta",
2511
2583
  "openrouter/anthropic/claude-3.7-sonnet",
@@ -2750,6 +2822,20 @@ var openAiNativeModels = {
2750
2822
  supportsTemperature: false,
2751
2823
  tiers: [{ name: "flex", contextWindow: 4e5, inputPrice: 0.025, outputPrice: 0.2, cacheReadsPrice: 25e-4 }]
2752
2824
  },
2825
+ "gpt-5-codex": {
2826
+ maxTokens: 128e3,
2827
+ contextWindow: 4e5,
2828
+ supportsImages: true,
2829
+ supportsPromptCache: true,
2830
+ supportsReasoningEffort: true,
2831
+ reasoningEffort: "medium",
2832
+ inputPrice: 1.25,
2833
+ outputPrice: 10,
2834
+ cacheReadsPrice: 0.13,
2835
+ description: "GPT-5-Codex: A version of GPT-5 optimized for agentic coding in Codex",
2836
+ supportsVerbosity: true,
2837
+ supportsTemperature: false
2838
+ },
2753
2839
  "gpt-4.1": {
2754
2840
  maxTokens: 32768,
2755
2841
  contextWindow: 1047576,
@@ -3014,6 +3100,7 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
3014
3100
  "anthropic/claude-3.7-sonnet:beta",
3015
3101
  "anthropic/claude-3.7-sonnet:thinking",
3016
3102
  "anthropic/claude-sonnet-4",
3103
+ "anthropic/claude-sonnet-4.5",
3017
3104
  "anthropic/claude-opus-4",
3018
3105
  "anthropic/claude-opus-4.1",
3019
3106
  "google/gemini-2.5-flash-preview",
@@ -3033,6 +3120,7 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
3033
3120
  "anthropic/claude-3.7-sonnet:beta",
3034
3121
  "anthropic/claude-3.7-sonnet:thinking",
3035
3122
  "anthropic/claude-sonnet-4",
3123
+ "anthropic/claude-sonnet-4.5",
3036
3124
  "anthropic/claude-opus-4",
3037
3125
  "anthropic/claude-opus-4.1"
3038
3126
  ]);
@@ -3046,6 +3134,7 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
3046
3134
  "anthropic/claude-opus-4",
3047
3135
  "anthropic/claude-opus-4.1",
3048
3136
  "anthropic/claude-sonnet-4",
3137
+ "anthropic/claude-sonnet-4.5",
3049
3138
  "google/gemini-2.5-pro-preview",
3050
3139
  "google/gemini-2.5-pro",
3051
3140
  "google/gemini-2.5-flash-preview-05-20",
@@ -3110,6 +3199,33 @@ var rooModels = {
3110
3199
  inputPrice: 0,
3111
3200
  outputPrice: 0,
3112
3201
  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.)"
3202
+ },
3203
+ "roo/code-supernova-1-million": {
3204
+ maxTokens: 3e4,
3205
+ contextWindow: 1e6,
3206
+ supportsImages: true,
3207
+ supportsPromptCache: true,
3208
+ inputPrice: 0,
3209
+ outputPrice: 0,
3210
+ 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.)"
3211
+ },
3212
+ "xai/grok-4-fast": {
3213
+ maxTokens: 3e4,
3214
+ contextWindow: 2e6,
3215
+ supportsImages: false,
3216
+ supportsPromptCache: false,
3217
+ inputPrice: 0,
3218
+ outputPrice: 0,
3219
+ 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.)"
3220
+ },
3221
+ "deepseek/deepseek-chat-v3.1": {
3222
+ maxTokens: 16384,
3223
+ contextWindow: 163840,
3224
+ supportsImages: false,
3225
+ supportsPromptCache: false,
3226
+ inputPrice: 0,
3227
+ outputPrice: 0,
3228
+ 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."
3113
3229
  }
3114
3230
  };
3115
3231
 
@@ -3153,6 +3269,15 @@ var sambaNovaModels = {
3153
3269
  outputPrice: 4.5,
3154
3270
  description: "DeepSeek V3 model with 32K context window."
3155
3271
  },
3272
+ "DeepSeek-V3.1": {
3273
+ maxTokens: 8192,
3274
+ contextWindow: 32768,
3275
+ supportsImages: false,
3276
+ supportsPromptCache: false,
3277
+ inputPrice: 3,
3278
+ outputPrice: 4.5,
3279
+ description: "DeepSeek V3.1 model with 32K context window."
3280
+ },
3156
3281
  "DeepSeek-R1-Distill-Llama-70B": {
3157
3282
  maxTokens: 8192,
3158
3283
  contextWindow: 131072,
@@ -3188,6 +3313,15 @@ var sambaNovaModels = {
3188
3313
  inputPrice: 0.4,
3189
3314
  outputPrice: 0.8,
3190
3315
  description: "Alibaba Qwen 3 32B model with 8K context window."
3316
+ },
3317
+ "gpt-oss-120b": {
3318
+ maxTokens: 8192,
3319
+ contextWindow: 131072,
3320
+ supportsImages: false,
3321
+ supportsPromptCache: false,
3322
+ inputPrice: 0.22,
3323
+ outputPrice: 0.59,
3324
+ description: "OpenAI gpt oss 120b model with 128k context window."
3191
3325
  }
3192
3326
  };
3193
3327
 
@@ -3205,7 +3339,7 @@ var unboundDefaultModelInfo = {
3205
3339
  };
3206
3340
 
3207
3341
  // src/providers/vertex.ts
3208
- var vertexDefaultModelId = "claude-sonnet-4@20250514";
3342
+ var vertexDefaultModelId = "claude-sonnet-4-5@20250929";
3209
3343
  var vertexModels = {
3210
3344
  "gemini-2.5-flash-preview-05-20:thinking": {
3211
3345
  maxTokens: 65535,
@@ -3376,6 +3510,18 @@ var vertexModels = {
3376
3510
  cacheReadsPrice: 0.3,
3377
3511
  supportsReasoningBudget: true
3378
3512
  },
3513
+ "claude-sonnet-4-5@20250929": {
3514
+ maxTokens: 8192,
3515
+ contextWindow: 2e5,
3516
+ supportsImages: true,
3517
+ supportsComputerUse: true,
3518
+ supportsPromptCache: true,
3519
+ inputPrice: 3,
3520
+ outputPrice: 15,
3521
+ cacheWritesPrice: 3.75,
3522
+ cacheReadsPrice: 0.3,
3523
+ supportsReasoningBudget: true
3524
+ },
3379
3525
  "claude-opus-4-1@20250805": {
3380
3526
  maxTokens: 8192,
3381
3527
  contextWindow: 2e5,
@@ -3981,6 +4127,17 @@ var internationalZAiModels = {
3981
4127
  cacheWritesPrice: 0,
3982
4128
  cacheReadsPrice: 0.03,
3983
4129
  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."
4130
+ },
4131
+ "glm-4.6": {
4132
+ maxTokens: 98304,
4133
+ contextWindow: 204800,
4134
+ supportsImages: false,
4135
+ supportsPromptCache: true,
4136
+ inputPrice: 0.6,
4137
+ outputPrice: 2.2,
4138
+ cacheWritesPrice: 0,
4139
+ cacheReadsPrice: 0.11,
4140
+ 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."
3984
4141
  }
3985
4142
  };
3986
4143
  var mainlandZAiDefaultModelId = "glm-4.5";
@@ -4046,6 +4203,43 @@ var mainlandZAiModels = {
4046
4203
  cacheReadsPrice: 0.02
4047
4204
  }
4048
4205
  ]
4206
+ },
4207
+ "glm-4.6": {
4208
+ maxTokens: 98304,
4209
+ contextWindow: 204800,
4210
+ supportsImages: false,
4211
+ supportsPromptCache: true,
4212
+ inputPrice: 0.29,
4213
+ outputPrice: 1.14,
4214
+ cacheWritesPrice: 0,
4215
+ cacheReadsPrice: 0.057,
4216
+ 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.",
4217
+ tiers: [
4218
+ {
4219
+ contextWindow: 32e3,
4220
+ inputPrice: 0.21,
4221
+ outputPrice: 1,
4222
+ cacheReadsPrice: 0.043
4223
+ },
4224
+ {
4225
+ contextWindow: 128e3,
4226
+ inputPrice: 0.29,
4227
+ outputPrice: 1.14,
4228
+ cacheReadsPrice: 0.057
4229
+ },
4230
+ {
4231
+ contextWindow: 2e5,
4232
+ inputPrice: 0.29,
4233
+ outputPrice: 1.14,
4234
+ cacheReadsPrice: 0.057
4235
+ },
4236
+ {
4237
+ contextWindow: Infinity,
4238
+ inputPrice: 0.29,
4239
+ outputPrice: 1.14,
4240
+ cacheReadsPrice: 0.057
4241
+ }
4242
+ ]
4049
4243
  }
4050
4244
  };
4051
4245
  var ZAI_DEFAULT_TEMPERATURE = 0;
@@ -4214,7 +4408,8 @@ var openAiSchema = baseProviderSettingsSchema.extend({
4214
4408
  var ollamaSchema = baseProviderSettingsSchema.extend({
4215
4409
  ollamaModelId: import_zod7.z.string().optional(),
4216
4410
  ollamaBaseUrl: import_zod7.z.string().optional(),
4217
- ollamaApiKey: import_zod7.z.string().optional()
4411
+ ollamaApiKey: import_zod7.z.string().optional(),
4412
+ ollamaNumCtx: import_zod7.z.number().int().min(128).optional()
4218
4413
  });
4219
4414
  var vsCodeLmSchema = baseProviderSettingsSchema.extend({
4220
4415
  vsCodeLmModelSelector: import_zod7.z.object({
@@ -4656,11 +4851,15 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
4656
4851
  TelemetryEventName2["ACCOUNT_CONNECT_SUCCESS"] = "Account Connect Success";
4657
4852
  TelemetryEventName2["ACCOUNT_LOGOUT_CLICKED"] = "Account Logout Clicked";
4658
4853
  TelemetryEventName2["ACCOUNT_LOGOUT_SUCCESS"] = "Account Logout Success";
4854
+ TelemetryEventName2["FEATURED_PROVIDER_CLICKED"] = "Featured Provider Clicked";
4855
+ TelemetryEventName2["UPSELL_DISMISSED"] = "Upsell Dismissed";
4856
+ TelemetryEventName2["UPSELL_CLICKED"] = "Upsell Clicked";
4659
4857
  TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
4660
4858
  TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
4661
4859
  TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
4662
4860
  TelemetryEventName2["CONSECUTIVE_MISTAKE_ERROR"] = "Consecutive Mistake Error";
4663
4861
  TelemetryEventName2["CODE_INDEX_ERROR"] = "Code Index Error";
4862
+ TelemetryEventName2["TELEMETRY_SETTINGS_CHANGED"] = "Telemetry Settings Changed";
4664
4863
  return TelemetryEventName2;
4665
4864
  })(TelemetryEventName || {});
4666
4865
  var staticAppPropertiesSchema = import_zod10.z.object({
@@ -4735,6 +4934,9 @@ var rooCodeTelemetryEventSchema = import_zod10.z.discriminatedUnion("type", [
4735
4934
  "Account Connect Success" /* ACCOUNT_CONNECT_SUCCESS */,
4736
4935
  "Account Logout Clicked" /* ACCOUNT_LOGOUT_CLICKED */,
4737
4936
  "Account Logout Success" /* ACCOUNT_LOGOUT_SUCCESS */,
4937
+ "Featured Provider Clicked" /* FEATURED_PROVIDER_CLICKED */,
4938
+ "Upsell Dismissed" /* UPSELL_DISMISSED */,
4939
+ "Upsell Clicked" /* UPSELL_CLICKED */,
4738
4940
  "Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
4739
4941
  "Diff Application Error" /* DIFF_APPLICATION_ERROR */,
4740
4942
  "Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
@@ -4748,6 +4950,14 @@ var rooCodeTelemetryEventSchema = import_zod10.z.discriminatedUnion("type", [
4748
4950
  ]),
4749
4951
  properties: telemetryPropertiesSchema
4750
4952
  }),
4953
+ import_zod10.z.object({
4954
+ type: import_zod10.z.literal("Telemetry Settings Changed" /* TELEMETRY_SETTINGS_CHANGED */),
4955
+ properties: import_zod10.z.object({
4956
+ ...telemetryPropertiesSchema.shape,
4957
+ previousSetting: telemetrySettingsSchema,
4958
+ newSetting: telemetrySettingsSchema
4959
+ })
4960
+ }),
4751
4961
  import_zod10.z.object({
4752
4962
  type: import_zod10.z.literal("Task Message" /* TASK_MESSAGE */),
4753
4963
  properties: import_zod10.z.object({
@@ -4909,7 +5119,8 @@ var commandIds = [
4909
5119
  "importSettings",
4910
5120
  "focusInput",
4911
5121
  "acceptInput",
4912
- "focusPanel"
5122
+ "focusPanel",
5123
+ "toggleAutoApprove"
4913
5124
  ];
4914
5125
  var languages = [
4915
5126
  "ca",
@@ -5034,6 +5245,7 @@ var globalSettingsSchema = import_zod13.z.object({
5034
5245
  enhancementApiConfigId: import_zod13.z.string().optional(),
5035
5246
  includeTaskHistoryInEnhance: import_zod13.z.boolean().optional(),
5036
5247
  historyPreviewCollapsed: import_zod13.z.boolean().optional(),
5248
+ reasoningBlockCollapsed: import_zod13.z.boolean().optional(),
5037
5249
  profileThresholds: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.number()).optional(),
5038
5250
  hasOpenedModeSelector: import_zod13.z.boolean().optional(),
5039
5251
  lastModeExportPath: import_zod13.z.string().optional(),
@@ -5564,6 +5776,27 @@ var TaskSocketEvents = /* @__PURE__ */ ((TaskSocketEvents2) => {
5564
5776
  TaskSocketEvents2["RELAYED_COMMAND"] = "task:relayed_command";
5565
5777
  return TaskSocketEvents2;
5566
5778
  })(TaskSocketEvents || {});
5779
+ var usageStatsSchema = import_zod15.z.object({
5780
+ success: import_zod15.z.boolean(),
5781
+ data: import_zod15.z.object({
5782
+ dates: import_zod15.z.array(import_zod15.z.string()),
5783
+ // Array of date strings
5784
+ tasks: import_zod15.z.array(import_zod15.z.number()),
5785
+ // Array of task counts
5786
+ tokens: import_zod15.z.array(import_zod15.z.number()),
5787
+ // Array of token counts
5788
+ costs: import_zod15.z.array(import_zod15.z.number()),
5789
+ // Array of costs in USD
5790
+ totals: import_zod15.z.object({
5791
+ tasks: import_zod15.z.number(),
5792
+ tokens: import_zod15.z.number(),
5793
+ cost: import_zod15.z.number()
5794
+ // Total cost in USD
5795
+ })
5796
+ }),
5797
+ period: import_zod15.z.number()
5798
+ // Period in days (e.g., 30)
5799
+ });
5567
5800
 
5568
5801
  // src/cookie-consent.ts
5569
5802
  var CONSENT_COOKIE_NAME = "roo-code-cookie-consent";
@@ -5680,7 +5913,7 @@ var mcpExecutionStatusSchema = import_zod18.z.discriminatedUnion("status", [
5680
5913
 
5681
5914
  // src/single-file-read-models.ts
5682
5915
  function shouldUseSingleFileRead(modelId) {
5683
- return modelId.includes("grok-code-fast-1");
5916
+ return modelId.includes("grok-code-fast-1") || modelId.includes("code-supernova");
5684
5917
  }
5685
5918
 
5686
5919
  // src/todo.ts
@@ -5725,7 +5958,7 @@ var commandExecutionStatusSchema = import_zod20.z.discriminatedUnion("status", [
5725
5958
  ANTHROPIC_DEFAULT_MAX_TOKENS,
5726
5959
  ANTHROPIC_STYLE_PROVIDERS,
5727
5960
  AWS_INFERENCE_PROFILE_MAPPING,
5728
- BEDROCK_CLAUDE_SONNET_4_MODEL_ID,
5961
+ BEDROCK_1M_CONTEXT_MODEL_IDS,
5729
5962
  BEDROCK_DEFAULT_CONTEXT,
5730
5963
  BEDROCK_DEFAULT_TEMPERATURE,
5731
5964
  BEDROCK_MAX_TOKENS,
@@ -5974,6 +6207,7 @@ var commandExecutionStatusSchema = import_zod20.z.discriminatedUnion("status", [
5974
6207
  toolUsageSchema,
5975
6208
  unboundDefaultModelId,
5976
6209
  unboundDefaultModelInfo,
6210
+ usageStatsSchema,
5977
6211
  userFeaturesSchema,
5978
6212
  userSettingsConfigSchema,
5979
6213
  userSettingsDataSchema,