@roo-code/types 1.107.0 → 1.109.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 +143 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -5
- package/dist/index.d.ts +106 -5
- package/dist/index.js +143 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -966,6 +966,38 @@ var anthropicModels = {
|
|
|
966
966
|
}
|
|
967
967
|
]
|
|
968
968
|
},
|
|
969
|
+
"claude-opus-4-6": {
|
|
970
|
+
maxTokens: 128e3,
|
|
971
|
+
// Overridden to 8k if `enableReasoningEffort` is false.
|
|
972
|
+
contextWindow: 2e5,
|
|
973
|
+
// Default 200K, extendable to 1M with beta flag
|
|
974
|
+
supportsImages: true,
|
|
975
|
+
supportsPromptCache: true,
|
|
976
|
+
inputPrice: 5,
|
|
977
|
+
// $5 per million input tokens (≤200K context)
|
|
978
|
+
outputPrice: 25,
|
|
979
|
+
// $25 per million output tokens (≤200K context)
|
|
980
|
+
cacheWritesPrice: 6.25,
|
|
981
|
+
// $6.25 per million tokens
|
|
982
|
+
cacheReadsPrice: 0.5,
|
|
983
|
+
// $0.50 per million tokens
|
|
984
|
+
supportsReasoningBudget: true,
|
|
985
|
+
// Tiered pricing for extended context (requires beta flag)
|
|
986
|
+
tiers: [
|
|
987
|
+
{
|
|
988
|
+
contextWindow: 1e6,
|
|
989
|
+
// 1M tokens with beta flag
|
|
990
|
+
inputPrice: 10,
|
|
991
|
+
// $10 per million input tokens (>200K context)
|
|
992
|
+
outputPrice: 37.5,
|
|
993
|
+
// $37.50 per million output tokens (>200K context)
|
|
994
|
+
cacheWritesPrice: 12.5,
|
|
995
|
+
// $12.50 per million tokens (>200K context)
|
|
996
|
+
cacheReadsPrice: 1
|
|
997
|
+
// $1.00 per million tokens (>200K context)
|
|
998
|
+
}
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
969
1001
|
"claude-opus-4-5-20251101": {
|
|
970
1002
|
maxTokens: 32e3,
|
|
971
1003
|
// Overridden to 8k if `enableReasoningEffort` is false.
|
|
@@ -1350,6 +1382,40 @@ var bedrockModels = {
|
|
|
1350
1382
|
maxCachePoints: 4,
|
|
1351
1383
|
cachableFields: ["system", "messages", "tools"]
|
|
1352
1384
|
},
|
|
1385
|
+
"anthropic.claude-opus-4-6-v1": {
|
|
1386
|
+
maxTokens: 8192,
|
|
1387
|
+
contextWindow: 2e5,
|
|
1388
|
+
// Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
|
|
1389
|
+
supportsImages: true,
|
|
1390
|
+
supportsPromptCache: true,
|
|
1391
|
+
supportsReasoningBudget: true,
|
|
1392
|
+
inputPrice: 5,
|
|
1393
|
+
// $5 per million input tokens (≤200K context)
|
|
1394
|
+
outputPrice: 25,
|
|
1395
|
+
// $25 per million output tokens (≤200K context)
|
|
1396
|
+
cacheWritesPrice: 6.25,
|
|
1397
|
+
// $6.25 per million tokens
|
|
1398
|
+
cacheReadsPrice: 0.5,
|
|
1399
|
+
// $0.50 per million tokens
|
|
1400
|
+
minTokensPerCachePoint: 1024,
|
|
1401
|
+
maxCachePoints: 4,
|
|
1402
|
+
cachableFields: ["system", "messages", "tools"],
|
|
1403
|
+
// Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07')
|
|
1404
|
+
tiers: [
|
|
1405
|
+
{
|
|
1406
|
+
contextWindow: 1e6,
|
|
1407
|
+
// 1M tokens with beta flag
|
|
1408
|
+
inputPrice: 10,
|
|
1409
|
+
// $10 per million input tokens (>200K context)
|
|
1410
|
+
outputPrice: 37.5,
|
|
1411
|
+
// $37.50 per million output tokens (>200K context)
|
|
1412
|
+
cacheWritesPrice: 12.5,
|
|
1413
|
+
// $12.50 per million tokens (>200K context)
|
|
1414
|
+
cacheReadsPrice: 1
|
|
1415
|
+
// $1.00 per million tokens (>200K context)
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1353
1419
|
"anthropic.claude-opus-4-5-20251101-v1:0": {
|
|
1354
1420
|
maxTokens: 8192,
|
|
1355
1421
|
contextWindow: 2e5,
|
|
@@ -1696,13 +1762,15 @@ var BEDROCK_REGIONS = [
|
|
|
1696
1762
|
].sort((a, b) => a.value.localeCompare(b.value));
|
|
1697
1763
|
var BEDROCK_1M_CONTEXT_MODEL_IDS = [
|
|
1698
1764
|
"anthropic.claude-sonnet-4-20250514-v1:0",
|
|
1699
|
-
"anthropic.claude-sonnet-4-5-20250929-v1:0"
|
|
1765
|
+
"anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
1766
|
+
"anthropic.claude-opus-4-6-v1"
|
|
1700
1767
|
];
|
|
1701
1768
|
var BEDROCK_GLOBAL_INFERENCE_MODEL_IDS = [
|
|
1702
1769
|
"anthropic.claude-sonnet-4-20250514-v1:0",
|
|
1703
1770
|
"anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
1704
1771
|
"anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
1705
|
-
"anthropic.claude-opus-4-5-20251101-v1:0"
|
|
1772
|
+
"anthropic.claude-opus-4-5-20251101-v1:0",
|
|
1773
|
+
"anthropic.claude-opus-4-6-v1"
|
|
1706
1774
|
];
|
|
1707
1775
|
var BEDROCK_SERVICE_TIER_MODEL_IDS = [
|
|
1708
1776
|
// Amazon Nova models
|
|
@@ -2331,6 +2399,16 @@ var fireworksModels = {
|
|
|
2331
2399
|
cacheReadsPrice: 0.15,
|
|
2332
2400
|
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."
|
|
2333
2401
|
},
|
|
2402
|
+
"accounts/fireworks/models/kimi-k2p5": {
|
|
2403
|
+
maxTokens: 16384,
|
|
2404
|
+
contextWindow: 262144,
|
|
2405
|
+
supportsImages: true,
|
|
2406
|
+
supportsPromptCache: true,
|
|
2407
|
+
inputPrice: 0.6,
|
|
2408
|
+
outputPrice: 3,
|
|
2409
|
+
cacheReadsPrice: 0.1,
|
|
2410
|
+
description: "Kimi K2.5 is Moonshot AI's flagship agentic model and a new SOTA open model. It unifies vision and text, thinking and non-thinking modes, and single-agent and multi-agent execution into one model. Fireworks enables users to control the reasoning behavior and inspect its reasoning history for greater transparency."
|
|
2411
|
+
},
|
|
2334
2412
|
"accounts/fireworks/models/minimax-m2": {
|
|
2335
2413
|
maxTokens: 4096,
|
|
2336
2414
|
contextWindow: 204800,
|
|
@@ -3522,7 +3600,7 @@ var OPENAI_NATIVE_DEFAULT_TEMPERATURE = 0;
|
|
|
3522
3600
|
var OPENAI_AZURE_AI_INFERENCE_PATH = "/models/chat/completions";
|
|
3523
3601
|
|
|
3524
3602
|
// src/providers/openai-codex.ts
|
|
3525
|
-
var openAiCodexDefaultModelId = "gpt-5.
|
|
3603
|
+
var openAiCodexDefaultModelId = "gpt-5.3-codex";
|
|
3526
3604
|
var openAiCodexModels = {
|
|
3527
3605
|
"gpt-5.1-codex-max": {
|
|
3528
3606
|
maxTokens: 128e3,
|
|
@@ -3554,6 +3632,20 @@ var openAiCodexModels = {
|
|
|
3554
3632
|
supportsTemperature: false,
|
|
3555
3633
|
description: "GPT-5.1 Codex: GPT-5.1 optimized for agentic coding via ChatGPT subscription"
|
|
3556
3634
|
},
|
|
3635
|
+
"gpt-5.3-codex": {
|
|
3636
|
+
maxTokens: 128e3,
|
|
3637
|
+
contextWindow: 4e5,
|
|
3638
|
+
includedTools: ["apply_patch"],
|
|
3639
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3640
|
+
supportsImages: true,
|
|
3641
|
+
supportsPromptCache: true,
|
|
3642
|
+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
|
|
3643
|
+
reasoningEffort: "medium",
|
|
3644
|
+
inputPrice: 0,
|
|
3645
|
+
outputPrice: 0,
|
|
3646
|
+
supportsTemperature: false,
|
|
3647
|
+
description: "GPT-5.3 Codex: OpenAI's flagship coding model via ChatGPT subscription"
|
|
3648
|
+
},
|
|
3557
3649
|
"gpt-5.2-codex": {
|
|
3558
3650
|
maxTokens: 128e3,
|
|
3559
3651
|
contextWindow: 4e5,
|
|
@@ -3696,8 +3788,9 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
|
|
|
3696
3788
|
"anthropic/claude-sonnet-4.5",
|
|
3697
3789
|
"anthropic/claude-opus-4",
|
|
3698
3790
|
"anthropic/claude-opus-4.1",
|
|
3699
|
-
"anthropic/claude-haiku-4.5",
|
|
3700
3791
|
"anthropic/claude-opus-4.5",
|
|
3792
|
+
"anthropic/claude-opus-4.6",
|
|
3793
|
+
"anthropic/claude-haiku-4.5",
|
|
3701
3794
|
"google/gemini-2.5-flash-preview",
|
|
3702
3795
|
"google/gemini-2.5-flash-preview:thinking",
|
|
3703
3796
|
"google/gemini-2.5-flash-preview-05-20",
|
|
@@ -3717,9 +3810,10 @@ var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
|
|
|
3717
3810
|
"anthropic/claude-3.7-sonnet:beta",
|
|
3718
3811
|
"anthropic/claude-opus-4",
|
|
3719
3812
|
"anthropic/claude-opus-4.1",
|
|
3813
|
+
"anthropic/claude-opus-4.5",
|
|
3814
|
+
"anthropic/claude-opus-4.6",
|
|
3720
3815
|
"anthropic/claude-sonnet-4",
|
|
3721
3816
|
"anthropic/claude-sonnet-4.5",
|
|
3722
|
-
"anthropic/claude-opus-4.5",
|
|
3723
3817
|
"anthropic/claude-haiku-4.5",
|
|
3724
3818
|
"google/gemini-2.5-pro-preview",
|
|
3725
3819
|
"google/gemini-2.5-pro",
|
|
@@ -4177,6 +4271,37 @@ var vertexModels = {
|
|
|
4177
4271
|
cacheReadsPrice: 0.1,
|
|
4178
4272
|
supportsReasoningBudget: true
|
|
4179
4273
|
},
|
|
4274
|
+
"claude-opus-4-6": {
|
|
4275
|
+
maxTokens: 8192,
|
|
4276
|
+
contextWindow: 2e5,
|
|
4277
|
+
// Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'
|
|
4278
|
+
supportsImages: true,
|
|
4279
|
+
supportsPromptCache: true,
|
|
4280
|
+
inputPrice: 5,
|
|
4281
|
+
// $5 per million input tokens (≤200K context)
|
|
4282
|
+
outputPrice: 25,
|
|
4283
|
+
// $25 per million output tokens (≤200K context)
|
|
4284
|
+
cacheWritesPrice: 6.25,
|
|
4285
|
+
// $6.25 per million tokens
|
|
4286
|
+
cacheReadsPrice: 0.5,
|
|
4287
|
+
// $0.50 per million tokens
|
|
4288
|
+
supportsReasoningBudget: true,
|
|
4289
|
+
// Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07')
|
|
4290
|
+
tiers: [
|
|
4291
|
+
{
|
|
4292
|
+
contextWindow: 1e6,
|
|
4293
|
+
// 1M tokens with beta flag
|
|
4294
|
+
inputPrice: 10,
|
|
4295
|
+
// $10 per million input tokens (>200K context)
|
|
4296
|
+
outputPrice: 37.5,
|
|
4297
|
+
// $37.50 per million output tokens (>200K context)
|
|
4298
|
+
cacheWritesPrice: 12.5,
|
|
4299
|
+
// $12.50 per million tokens (>200K context)
|
|
4300
|
+
cacheReadsPrice: 1
|
|
4301
|
+
// $1.00 per million tokens (>200K context)
|
|
4302
|
+
}
|
|
4303
|
+
]
|
|
4304
|
+
},
|
|
4180
4305
|
"claude-opus-4-5@20251101": {
|
|
4181
4306
|
maxTokens: 8192,
|
|
4182
4307
|
contextWindow: 2e5,
|
|
@@ -4366,7 +4491,11 @@ var vertexModels = {
|
|
|
4366
4491
|
description: "Kimi K2 Thinking Model with 256K context window."
|
|
4367
4492
|
}
|
|
4368
4493
|
};
|
|
4369
|
-
var VERTEX_1M_CONTEXT_MODEL_IDS = [
|
|
4494
|
+
var VERTEX_1M_CONTEXT_MODEL_IDS = [
|
|
4495
|
+
"claude-sonnet-4@20250514",
|
|
4496
|
+
"claude-sonnet-4-5@20250929",
|
|
4497
|
+
"claude-opus-4-6"
|
|
4498
|
+
];
|
|
4370
4499
|
var VERTEX_REGIONS = [
|
|
4371
4500
|
{ value: "global", label: "global" },
|
|
4372
4501
|
{ value: "us-central1", label: "us-central1" },
|
|
@@ -4614,6 +4743,8 @@ var xaiModels = {
|
|
|
4614
4743
|
cacheWritesPrice: 0.05,
|
|
4615
4744
|
cacheReadsPrice: 0.05,
|
|
4616
4745
|
description: "xAI's Grok 4.1 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning",
|
|
4746
|
+
supportsReasoningEffort: ["low", "high"],
|
|
4747
|
+
reasoningEffort: "low",
|
|
4617
4748
|
includedTools: ["search_replace"],
|
|
4618
4749
|
excludedTools: ["apply_diff"]
|
|
4619
4750
|
},
|
|
@@ -4640,6 +4771,8 @@ var xaiModels = {
|
|
|
4640
4771
|
cacheWritesPrice: 0.05,
|
|
4641
4772
|
cacheReadsPrice: 0.05,
|
|
4642
4773
|
description: "xAI's Grok 4 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning",
|
|
4774
|
+
supportsReasoningEffort: ["low", "high"],
|
|
4775
|
+
reasoningEffort: "low",
|
|
4643
4776
|
includedTools: ["search_replace"],
|
|
4644
4777
|
excludedTools: ["apply_diff"]
|
|
4645
4778
|
},
|
|
@@ -4709,6 +4842,8 @@ var VERCEL_AI_GATEWAY_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
|
|
|
4709
4842
|
"anthropic/claude-3.7-sonnet",
|
|
4710
4843
|
"anthropic/claude-opus-4",
|
|
4711
4844
|
"anthropic/claude-opus-4.1",
|
|
4845
|
+
"anthropic/claude-opus-4.5",
|
|
4846
|
+
"anthropic/claude-opus-4.6",
|
|
4712
4847
|
"anthropic/claude-sonnet-4",
|
|
4713
4848
|
"openai/gpt-4.1",
|
|
4714
4849
|
"openai/gpt-4.1-mini",
|
|
@@ -4746,6 +4881,8 @@ var VERCEL_AI_GATEWAY_VISION_AND_TOOLS_MODELS = /* @__PURE__ */ new Set([
|
|
|
4746
4881
|
"anthropic/claude-3.7-sonnet",
|
|
4747
4882
|
"anthropic/claude-opus-4",
|
|
4748
4883
|
"anthropic/claude-opus-4.1",
|
|
4884
|
+
"anthropic/claude-opus-4.5",
|
|
4885
|
+
"anthropic/claude-opus-4.6",
|
|
4749
4886
|
"anthropic/claude-sonnet-4",
|
|
4750
4887
|
"google/gemini-1.5-flash",
|
|
4751
4888
|
"google/gemini-1.5-pro",
|