@roo-code/types 1.58.0 → 1.60.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
@@ -146,7 +146,7 @@ __export(index_exports, {
146
146
  ioIntelligenceDefaultModelId: () => ioIntelligenceDefaultModelId,
147
147
  ioIntelligenceModels: () => ioIntelligenceModels,
148
148
  ipcMessageSchema: () => ipcMessageSchema,
149
- isDynamicRouter: () => isDynamicRouter,
149
+ isDynamicProvider: () => isDynamicProvider,
150
150
  isGlobalStateKey: () => isGlobalStateKey,
151
151
  isIdleAsk: () => isIdleAsk,
152
152
  isInteractiveAsk: () => isInteractiveAsk,
@@ -191,6 +191,8 @@ __export(index_exports, {
191
191
  providerSettingsSchema: () => providerSettingsSchema,
192
192
  providerSettingsSchemaDiscriminated: () => providerSettingsSchemaDiscriminated,
193
193
  providerSettingsWithIdSchema: () => providerSettingsWithIdSchema,
194
+ qwenCodeDefaultModelId: () => qwenCodeDefaultModelId,
195
+ qwenCodeModels: () => qwenCodeModels,
194
196
  reasoningEffortWithMinimalSchema: () => reasoningEffortWithMinimalSchema,
195
197
  reasoningEfforts: () => reasoningEfforts,
196
198
  reasoningEffortsSchema: () => reasoningEffortsSchema,
@@ -594,13 +596,12 @@ var taskEventSchema = import_zod4.z.discriminatedUnion("eventName", [
594
596
 
595
597
  // src/experiment.ts
596
598
  var import_zod5 = require("zod");
597
- var experimentIds = ["powerSteering", "multiFileApplyDiff", "preventFocusDisruption", "assistantMessageParser"];
599
+ var experimentIds = ["powerSteering", "multiFileApplyDiff", "preventFocusDisruption"];
598
600
  var experimentIdsSchema = import_zod5.z.enum(experimentIds);
599
601
  var experimentsSchema = import_zod5.z.object({
600
602
  powerSteering: import_zod5.z.boolean().optional(),
601
603
  multiFileApplyDiff: import_zod5.z.boolean().optional(),
602
- preventFocusDisruption: import_zod5.z.boolean().optional(),
603
- assistantMessageParser: import_zod5.z.boolean().optional()
604
+ preventFocusDisruption: import_zod5.z.boolean().optional()
604
605
  });
605
606
 
606
607
  // src/followup.ts
@@ -1345,6 +1346,15 @@ var chutesModels = {
1345
1346
  outputPrice: 0,
1346
1347
  description: "DeepSeek V3 model."
1347
1348
  },
1349
+ "deepseek-ai/DeepSeek-V3.1": {
1350
+ maxTokens: 32768,
1351
+ contextWindow: 163840,
1352
+ supportsImages: false,
1353
+ supportsPromptCache: false,
1354
+ inputPrice: 0,
1355
+ outputPrice: 0,
1356
+ description: "DeepSeek V3.1 model."
1357
+ },
1348
1358
  "unsloth/Llama-3.3-70B-Instruct": {
1349
1359
  maxTokens: 32768,
1350
1360
  // From Groq
@@ -1637,7 +1647,8 @@ var deepSeekDefaultModelId = "deepseek-chat";
1637
1647
  var deepSeekModels = {
1638
1648
  "deepseek-chat": {
1639
1649
  maxTokens: 8192,
1640
- contextWindow: 64e3,
1650
+ // 8K max output
1651
+ contextWindow: 128e3,
1641
1652
  supportsImages: false,
1642
1653
  supportsPromptCache: true,
1643
1654
  inputPrice: 0.27,
@@ -1651,8 +1662,9 @@ var deepSeekModels = {
1651
1662
  description: `DeepSeek-V3 achieves a significant breakthrough in inference speed over previous models. It tops the leaderboard among open-source models and rivals the most advanced closed-source models globally.`
1652
1663
  },
1653
1664
  "deepseek-reasoner": {
1654
- maxTokens: 8192,
1655
- contextWindow: 64e3,
1665
+ maxTokens: 65536,
1666
+ // 64K max output for reasoning mode
1667
+ contextWindow: 128e3,
1656
1668
  supportsImages: false,
1657
1669
  supportsPromptCache: true,
1658
1670
  inputPrice: 0.55,
@@ -1663,7 +1675,7 @@ var deepSeekModels = {
1663
1675
  // $0.55 per million tokens (cache miss)
1664
1676
  cacheReadsPrice: 0.14,
1665
1677
  // $0.14 per million tokens (cache hit)
1666
- description: `DeepSeek-R1 achieves performance comparable to OpenAI-o1 across math, code, and reasoning tasks. Supports Chain of Thought reasoning with up to 32K tokens.`
1678
+ description: `DeepSeek-R1 achieves performance comparable to OpenAI-o1 across math, code, and reasoning tasks. Supports Chain of Thought reasoning with up to 64K output tokens.`
1667
1679
  }
1668
1680
  };
1669
1681
  var DEEP_SEEK_DEFAULT_TEMPERATURE = 0.6;
@@ -1819,6 +1831,15 @@ var fireworksModels = {
1819
1831
  outputPrice: 0.9,
1820
1832
  description: "A strong Mixture-of-Experts (MoE) language model with 671B total parameters with 37B activated for each token from Deepseek. Note that fine-tuning for this model is only available through contacting fireworks at https://fireworks.ai/company/contact-us."
1821
1833
  },
1834
+ "accounts/fireworks/models/deepseek-v3p1": {
1835
+ maxTokens: 16384,
1836
+ contextWindow: 163840,
1837
+ supportsImages: false,
1838
+ supportsPromptCache: false,
1839
+ inputPrice: 0.56,
1840
+ outputPrice: 1.68,
1841
+ description: "DeepSeek v3.1 is an improved version of the v3 model with enhanced performance, better reasoning capabilities, and improved code generation. This Mixture-of-Experts (MoE) model maintains the same 671B total parameters with 37B activated per token."
1842
+ },
1822
1843
  "accounts/fireworks/models/glm-4p5": {
1823
1844
  maxTokens: 16384,
1824
1845
  contextWindow: 128e3,
@@ -2252,9 +2273,11 @@ var groqModels = {
2252
2273
  maxTokens: 16384,
2253
2274
  contextWindow: 131072,
2254
2275
  supportsImages: false,
2255
- supportsPromptCache: false,
2276
+ supportsPromptCache: true,
2256
2277
  inputPrice: 1,
2257
2278
  outputPrice: 3,
2279
+ cacheReadsPrice: 0.5,
2280
+ // 50% discount for cached input tokens
2258
2281
  description: "Moonshot AI Kimi K2 Instruct 1T model, 128K context."
2259
2282
  },
2260
2283
  "openai/gpt-oss-120b": {
@@ -2823,6 +2846,33 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
2823
2846
  "google/gemini-2.5-flash-preview-05-20:thinking"
2824
2847
  ]);
2825
2848
 
2849
+ // src/providers/qwen-code.ts
2850
+ var qwenCodeDefaultModelId = "qwen3-coder-plus";
2851
+ var qwenCodeModels = {
2852
+ "qwen3-coder-plus": {
2853
+ maxTokens: 65536,
2854
+ contextWindow: 1e6,
2855
+ supportsImages: false,
2856
+ supportsPromptCache: false,
2857
+ inputPrice: 0,
2858
+ outputPrice: 0,
2859
+ cacheWritesPrice: 0,
2860
+ cacheReadsPrice: 0,
2861
+ description: "Qwen3 Coder Plus - High-performance coding model with 1M context window for large codebases"
2862
+ },
2863
+ "qwen3-coder-flash": {
2864
+ maxTokens: 65536,
2865
+ contextWindow: 1e6,
2866
+ supportsImages: false,
2867
+ supportsPromptCache: false,
2868
+ inputPrice: 0,
2869
+ outputPrice: 0,
2870
+ cacheWritesPrice: 0,
2871
+ cacheReadsPrice: 0,
2872
+ description: "Qwen3 Coder Flash - Fast coding model with 1M context window optimized for speed"
2873
+ }
2874
+ };
2875
+
2826
2876
  // src/providers/requesty.ts
2827
2877
  var requestyDefaultModelId = "coding/claude-4-sonnet";
2828
2878
  var requestyDefaultModelInfo = {
@@ -3647,6 +3697,7 @@ var providerNames = [
3647
3697
  "moonshot",
3648
3698
  "deepseek",
3649
3699
  "doubao",
3700
+ "qwen-code",
3650
3701
  "unbound",
3651
3702
  "requesty",
3652
3703
  "human-relay",
@@ -3734,7 +3785,9 @@ var vertexSchema = apiModelIdProviderModelSchema.extend({
3734
3785
  vertexKeyFile: import_zod8.z.string().optional(),
3735
3786
  vertexJsonCredentials: import_zod8.z.string().optional(),
3736
3787
  vertexProjectId: import_zod8.z.string().optional(),
3737
- vertexRegion: import_zod8.z.string().optional()
3788
+ vertexRegion: import_zod8.z.string().optional(),
3789
+ enableUrlContext: import_zod8.z.boolean().optional(),
3790
+ enableGrounding: import_zod8.z.boolean().optional()
3738
3791
  });
3739
3792
  var openAiSchema = baseProviderSettingsSchema.extend({
3740
3793
  openAiBaseUrl: import_zod8.z.string().optional(),
@@ -3851,6 +3904,9 @@ var ioIntelligenceSchema = apiModelIdProviderModelSchema.extend({
3851
3904
  ioIntelligenceModelId: import_zod8.z.string().optional(),
3852
3905
  ioIntelligenceApiKey: import_zod8.z.string().optional()
3853
3906
  });
3907
+ var qwenCodeSchema = apiModelIdProviderModelSchema.extend({
3908
+ qwenCodeOauthPath: import_zod8.z.string().optional()
3909
+ });
3854
3910
  var rooSchema = apiModelIdProviderModelSchema.extend({
3855
3911
  // No additional fields needed - uses cloud authentication
3856
3912
  });
@@ -3890,6 +3946,7 @@ var providerSettingsSchemaDiscriminated = import_zod8.z.discriminatedUnion("apiP
3890
3946
  fireworksSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("fireworks") })),
3891
3947
  featherlessSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("featherless") })),
3892
3948
  ioIntelligenceSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("io-intelligence") })),
3949
+ qwenCodeSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("qwen-code") })),
3893
3950
  rooSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("roo") })),
3894
3951
  defaultSchema
3895
3952
  ]);
@@ -3927,6 +3984,7 @@ var providerSettingsSchema = import_zod8.z.object({
3927
3984
  ...fireworksSchema.shape,
3928
3985
  ...featherlessSchema.shape,
3929
3986
  ...ioIntelligenceSchema.shape,
3987
+ ...qwenCodeSchema.shape,
3930
3988
  ...rooSchema.shape,
3931
3989
  ...codebaseIndexProviderSchema.shape
3932
3990
  });
@@ -4027,6 +4085,7 @@ var MODELS_BY_PROVIDER = {
4027
4085
  label: "OpenAI",
4028
4086
  models: Object.keys(openAiNativeModels)
4029
4087
  },
4088
+ "qwen-code": { id: "qwen-code", label: "Qwen Code", models: Object.keys(qwenCodeModels) },
4030
4089
  roo: { id: "roo", label: "Roo", models: Object.keys(rooModels) },
4031
4090
  sambanova: {
4032
4091
  id: "sambanova",
@@ -4061,7 +4120,7 @@ var dynamicProviders = [
4061
4120
  "requesty",
4062
4121
  "unbound"
4063
4122
  ];
4064
- var isDynamicRouter = (key) => dynamicProviders.includes(key);
4123
+ var isDynamicProvider = (key) => dynamicProviders.includes(key);
4065
4124
 
4066
4125
  // src/history.ts
4067
4126
  var import_zod9 = require("zod");
@@ -4946,7 +5005,7 @@ var commandExecutionStatusSchema = import_zod19.z.discriminatedUnion("status", [
4946
5005
  ioIntelligenceDefaultModelId,
4947
5006
  ioIntelligenceModels,
4948
5007
  ipcMessageSchema,
4949
- isDynamicRouter,
5008
+ isDynamicProvider,
4950
5009
  isGlobalStateKey,
4951
5010
  isIdleAsk,
4952
5011
  isInteractiveAsk,
@@ -4991,6 +5050,8 @@ var commandExecutionStatusSchema = import_zod19.z.discriminatedUnion("status", [
4991
5050
  providerSettingsSchema,
4992
5051
  providerSettingsSchemaDiscriminated,
4993
5052
  providerSettingsWithIdSchema,
5053
+ qwenCodeDefaultModelId,
5054
+ qwenCodeModels,
4994
5055
  reasoningEffortWithMinimalSchema,
4995
5056
  reasoningEfforts,
4996
5057
  reasoningEffortsSchema,