@roo-code/types 1.105.0 → 1.106.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 +109 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +314 -93
- package/dist/index.d.ts +314 -93
- package/dist/index.js +107 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3031,6 +3031,25 @@ var openAiNativeModels = {
|
|
|
3031
3031
|
],
|
|
3032
3032
|
description: "GPT-5.2: Our flagship model for coding and agentic tasks across industries"
|
|
3033
3033
|
},
|
|
3034
|
+
"gpt-5.2-codex": {
|
|
3035
|
+
maxTokens: 128e3,
|
|
3036
|
+
contextWindow: 4e5,
|
|
3037
|
+
supportsNativeTools: true,
|
|
3038
|
+
defaultToolProtocol: "native",
|
|
3039
|
+
includedTools: ["apply_patch"],
|
|
3040
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3041
|
+
supportsImages: true,
|
|
3042
|
+
supportsPromptCache: true,
|
|
3043
|
+
promptCacheRetention: "24h",
|
|
3044
|
+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
|
|
3045
|
+
reasoningEffort: "medium",
|
|
3046
|
+
inputPrice: 1.75,
|
|
3047
|
+
outputPrice: 14,
|
|
3048
|
+
cacheReadsPrice: 0.175,
|
|
3049
|
+
supportsTemperature: false,
|
|
3050
|
+
tiers: [{ name: "priority", contextWindow: 4e5, inputPrice: 3.5, outputPrice: 28, cacheReadsPrice: 0.35 }],
|
|
3051
|
+
description: "GPT-5.2 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks"
|
|
3052
|
+
},
|
|
3034
3053
|
"gpt-5.2-chat-latest": {
|
|
3035
3054
|
maxTokens: 16384,
|
|
3036
3055
|
contextWindow: 128e3,
|
|
@@ -3537,6 +3556,76 @@ var azureOpenAiDefaultApiVersion = "2024-08-01-preview";
|
|
|
3537
3556
|
var OPENAI_NATIVE_DEFAULT_TEMPERATURE = 0;
|
|
3538
3557
|
var OPENAI_AZURE_AI_INFERENCE_PATH = "/models/chat/completions";
|
|
3539
3558
|
|
|
3559
|
+
// src/providers/openai-codex.ts
|
|
3560
|
+
var openAiCodexDefaultModelId = "gpt-5.2-codex";
|
|
3561
|
+
var openAiCodexModels = {
|
|
3562
|
+
"gpt-5.1-codex-max": {
|
|
3563
|
+
maxTokens: 128e3,
|
|
3564
|
+
contextWindow: 4e5,
|
|
3565
|
+
supportsNativeTools: true,
|
|
3566
|
+
defaultToolProtocol: "native",
|
|
3567
|
+
includedTools: ["apply_patch"],
|
|
3568
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3569
|
+
supportsImages: true,
|
|
3570
|
+
supportsPromptCache: true,
|
|
3571
|
+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
|
|
3572
|
+
reasoningEffort: "xhigh",
|
|
3573
|
+
// Subscription-based: no per-token costs
|
|
3574
|
+
inputPrice: 0,
|
|
3575
|
+
outputPrice: 0,
|
|
3576
|
+
supportsTemperature: false,
|
|
3577
|
+
description: "GPT-5.1 Codex Max: Maximum capability coding model via ChatGPT subscription"
|
|
3578
|
+
},
|
|
3579
|
+
"gpt-5.2-codex": {
|
|
3580
|
+
maxTokens: 128e3,
|
|
3581
|
+
contextWindow: 4e5,
|
|
3582
|
+
supportsNativeTools: true,
|
|
3583
|
+
defaultToolProtocol: "native",
|
|
3584
|
+
includedTools: ["apply_patch"],
|
|
3585
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3586
|
+
supportsImages: true,
|
|
3587
|
+
supportsPromptCache: true,
|
|
3588
|
+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
|
|
3589
|
+
reasoningEffort: "medium",
|
|
3590
|
+
inputPrice: 0,
|
|
3591
|
+
outputPrice: 0,
|
|
3592
|
+
supportsTemperature: false,
|
|
3593
|
+
description: "GPT-5.2 Codex: OpenAI's flagship coding model via ChatGPT subscription"
|
|
3594
|
+
},
|
|
3595
|
+
"gpt-5.1-codex-mini": {
|
|
3596
|
+
maxTokens: 128e3,
|
|
3597
|
+
contextWindow: 4e5,
|
|
3598
|
+
supportsNativeTools: true,
|
|
3599
|
+
defaultToolProtocol: "native",
|
|
3600
|
+
includedTools: ["apply_patch"],
|
|
3601
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3602
|
+
supportsImages: true,
|
|
3603
|
+
supportsPromptCache: true,
|
|
3604
|
+
supportsReasoningEffort: ["low", "medium", "high"],
|
|
3605
|
+
reasoningEffort: "medium",
|
|
3606
|
+
inputPrice: 0,
|
|
3607
|
+
outputPrice: 0,
|
|
3608
|
+
supportsTemperature: false,
|
|
3609
|
+
description: "GPT-5.1 Codex Mini: Faster version for coding tasks via ChatGPT subscription"
|
|
3610
|
+
},
|
|
3611
|
+
"gpt-5.2": {
|
|
3612
|
+
maxTokens: 128e3,
|
|
3613
|
+
contextWindow: 4e5,
|
|
3614
|
+
supportsNativeTools: true,
|
|
3615
|
+
defaultToolProtocol: "native",
|
|
3616
|
+
includedTools: ["apply_patch"],
|
|
3617
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3618
|
+
supportsImages: true,
|
|
3619
|
+
supportsPromptCache: true,
|
|
3620
|
+
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"],
|
|
3621
|
+
reasoningEffort: "medium",
|
|
3622
|
+
inputPrice: 0,
|
|
3623
|
+
outputPrice: 0,
|
|
3624
|
+
supportsTemperature: false,
|
|
3625
|
+
description: "GPT-5.2: Latest GPT model via ChatGPT subscription"
|
|
3626
|
+
}
|
|
3627
|
+
};
|
|
3628
|
+
|
|
3540
3629
|
// src/providers/openrouter.ts
|
|
3541
3630
|
var openRouterDefaultModelId = "anthropic/claude-sonnet-4.5";
|
|
3542
3631
|
var openRouterDefaultModelInfo = {
|
|
@@ -5138,6 +5227,8 @@ function getProviderDefaultModelId(provider, options = { isChina: false }) {
|
|
|
5138
5227
|
case "openai-native":
|
|
5139
5228
|
return "gpt-4o";
|
|
5140
5229
|
// Based on openai-native patterns
|
|
5230
|
+
case "openai-codex":
|
|
5231
|
+
return openAiCodexDefaultModelId;
|
|
5141
5232
|
case "mistral":
|
|
5142
5233
|
return mistralDefaultModelId;
|
|
5143
5234
|
case "openai":
|
|
@@ -5223,6 +5314,7 @@ var providerNames = [
|
|
|
5223
5314
|
"mistral",
|
|
5224
5315
|
"moonshot",
|
|
5225
5316
|
"minimax",
|
|
5317
|
+
"openai-codex",
|
|
5226
5318
|
"openai-native",
|
|
5227
5319
|
"qwen-code",
|
|
5228
5320
|
"roo",
|
|
@@ -5349,6 +5441,9 @@ var geminiCliSchema = apiModelIdProviderModelSchema.extend({
|
|
|
5349
5441
|
geminiCliOAuthPath: z8.string().optional(),
|
|
5350
5442
|
geminiCliProjectId: z8.string().optional()
|
|
5351
5443
|
});
|
|
5444
|
+
var openAiCodexSchema = apiModelIdProviderModelSchema.extend({
|
|
5445
|
+
// No additional settings needed - uses OAuth authentication
|
|
5446
|
+
});
|
|
5352
5447
|
var openAiNativeSchema = apiModelIdProviderModelSchema.extend({
|
|
5353
5448
|
openAiNativeApiKey: z8.string().optional(),
|
|
5354
5449
|
openAiNativeBaseUrl: z8.string().optional(),
|
|
@@ -5463,6 +5558,7 @@ var providerSettingsSchemaDiscriminated = z8.discriminatedUnion("apiProvider", [
|
|
|
5463
5558
|
lmStudioSchema.merge(z8.object({ apiProvider: z8.literal("lmstudio") })),
|
|
5464
5559
|
geminiSchema.merge(z8.object({ apiProvider: z8.literal("gemini") })),
|
|
5465
5560
|
geminiCliSchema.merge(z8.object({ apiProvider: z8.literal("gemini-cli") })),
|
|
5561
|
+
openAiCodexSchema.merge(z8.object({ apiProvider: z8.literal("openai-codex") })),
|
|
5466
5562
|
openAiNativeSchema.merge(z8.object({ apiProvider: z8.literal("openai-native") })),
|
|
5467
5563
|
mistralSchema.merge(z8.object({ apiProvider: z8.literal("mistral") })),
|
|
5468
5564
|
deepSeekSchema.merge(z8.object({ apiProvider: z8.literal("deepseek") })),
|
|
@@ -5503,6 +5599,7 @@ var providerSettingsSchema = z8.object({
|
|
|
5503
5599
|
...lmStudioSchema.shape,
|
|
5504
5600
|
...geminiSchema.shape,
|
|
5505
5601
|
...geminiCliSchema.shape,
|
|
5602
|
+
...openAiCodexSchema.shape,
|
|
5506
5603
|
...openAiNativeSchema.shape,
|
|
5507
5604
|
...mistralSchema.shape,
|
|
5508
5605
|
...deepSeekSchema.shape,
|
|
@@ -5561,6 +5658,7 @@ var modelIdKeysByProvider = {
|
|
|
5561
5658
|
openrouter: "openRouterModelId",
|
|
5562
5659
|
bedrock: "apiModelId",
|
|
5563
5660
|
vertex: "apiModelId",
|
|
5661
|
+
"openai-codex": "apiModelId",
|
|
5564
5662
|
"openai-native": "openAiModelId",
|
|
5565
5663
|
ollama: "ollamaModelId",
|
|
5566
5664
|
lmstudio: "lmStudioModelId",
|
|
@@ -5662,6 +5760,11 @@ var MODELS_BY_PROVIDER = {
|
|
|
5662
5760
|
label: "MiniMax",
|
|
5663
5761
|
models: Object.keys(minimaxModels)
|
|
5664
5762
|
},
|
|
5763
|
+
"openai-codex": {
|
|
5764
|
+
id: "openai-codex",
|
|
5765
|
+
label: "OpenAI - ChatGPT Plus/Pro",
|
|
5766
|
+
models: Object.keys(openAiCodexModels)
|
|
5767
|
+
},
|
|
5665
5768
|
"openai-native": {
|
|
5666
5769
|
id: "openai-native",
|
|
5667
5770
|
label: "OpenAI",
|
|
@@ -6573,7 +6676,8 @@ var userFeaturesSchema = z16.object({
|
|
|
6573
6676
|
});
|
|
6574
6677
|
var userSettingsConfigSchema = z16.object({
|
|
6575
6678
|
extensionBridgeEnabled: z16.boolean().optional(),
|
|
6576
|
-
taskSyncEnabled: z16.boolean().optional()
|
|
6679
|
+
taskSyncEnabled: z16.boolean().optional(),
|
|
6680
|
+
llmEnhancedFeaturesEnabled: z16.boolean().optional()
|
|
6577
6681
|
});
|
|
6578
6682
|
var userSettingsDataSchema = z16.object({
|
|
6579
6683
|
features: userFeaturesSchema,
|
|
@@ -7378,6 +7482,8 @@ export {
|
|
|
7378
7482
|
normalizeClaudeCodeModelId,
|
|
7379
7483
|
ollamaDefaultModelId,
|
|
7380
7484
|
ollamaDefaultModelInfo,
|
|
7485
|
+
openAiCodexDefaultModelId,
|
|
7486
|
+
openAiCodexModels,
|
|
7381
7487
|
openAiModelInfoSaneDefaults,
|
|
7382
7488
|
openAiNativeDefaultModelId,
|
|
7383
7489
|
openAiNativeModels,
|