@roo-code/types 1.90.0 → 1.91.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 +60 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +171 -76
- package/dist/index.d.ts +171 -76
- package/dist/index.js +60 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -477,7 +477,6 @@ var toolNames = [
|
|
|
477
477
|
"apply_patch",
|
|
478
478
|
"search_files",
|
|
479
479
|
"list_files",
|
|
480
|
-
"list_code_definition_names",
|
|
481
480
|
"browser_action",
|
|
482
481
|
"use_mcp_tool",
|
|
483
482
|
"access_mcp_resource",
|
|
@@ -3217,7 +3216,7 @@ var ollamaDefaultModelInfo = {
|
|
|
3217
3216
|
};
|
|
3218
3217
|
|
|
3219
3218
|
// src/providers/openai.ts
|
|
3220
|
-
var openAiNativeDefaultModelId = "gpt-5.1";
|
|
3219
|
+
var openAiNativeDefaultModelId = "gpt-5.1-codex-max";
|
|
3221
3220
|
var openAiNativeModels = {
|
|
3222
3221
|
"gpt-5.1-codex-max": {
|
|
3223
3222
|
maxTokens: 128e3,
|
|
@@ -3229,7 +3228,7 @@ var openAiNativeModels = {
|
|
|
3229
3228
|
supportsPromptCache: true,
|
|
3230
3229
|
promptCacheRetention: "24h",
|
|
3231
3230
|
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
|
|
3232
|
-
reasoningEffort: "
|
|
3231
|
+
reasoningEffort: "xhigh",
|
|
3233
3232
|
inputPrice: 1.25,
|
|
3234
3233
|
outputPrice: 10,
|
|
3235
3234
|
cacheReadsPrice: 0.125,
|
|
@@ -3237,6 +3236,41 @@ var openAiNativeModels = {
|
|
|
3237
3236
|
tiers: [{ name: "priority", contextWindow: 4e5, inputPrice: 2.5, outputPrice: 20, cacheReadsPrice: 0.25 }],
|
|
3238
3237
|
description: "GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks"
|
|
3239
3238
|
},
|
|
3239
|
+
"gpt-5.2": {
|
|
3240
|
+
maxTokens: 128e3,
|
|
3241
|
+
contextWindow: 4e5,
|
|
3242
|
+
supportsNativeTools: true,
|
|
3243
|
+
includedTools: ["apply_patch"],
|
|
3244
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3245
|
+
supportsImages: true,
|
|
3246
|
+
supportsPromptCache: true,
|
|
3247
|
+
promptCacheRetention: "24h",
|
|
3248
|
+
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"],
|
|
3249
|
+
reasoningEffort: "medium",
|
|
3250
|
+
inputPrice: 1.75,
|
|
3251
|
+
outputPrice: 14,
|
|
3252
|
+
cacheReadsPrice: 0.175,
|
|
3253
|
+
supportsVerbosity: true,
|
|
3254
|
+
supportsTemperature: false,
|
|
3255
|
+
tiers: [
|
|
3256
|
+
{ name: "flex", contextWindow: 4e5, inputPrice: 0.875, outputPrice: 7, cacheReadsPrice: 0.0875 },
|
|
3257
|
+
{ name: "priority", contextWindow: 4e5, inputPrice: 3.5, outputPrice: 28, cacheReadsPrice: 0.35 }
|
|
3258
|
+
],
|
|
3259
|
+
description: "GPT-5.2: Our flagship model for coding and agentic tasks across industries"
|
|
3260
|
+
},
|
|
3261
|
+
"gpt-5.2-chat-latest": {
|
|
3262
|
+
maxTokens: 16384,
|
|
3263
|
+
contextWindow: 128e3,
|
|
3264
|
+
supportsNativeTools: true,
|
|
3265
|
+
includedTools: ["apply_patch"],
|
|
3266
|
+
excludedTools: ["apply_diff", "write_to_file"],
|
|
3267
|
+
supportsImages: true,
|
|
3268
|
+
supportsPromptCache: true,
|
|
3269
|
+
inputPrice: 1.75,
|
|
3270
|
+
outputPrice: 14,
|
|
3271
|
+
cacheReadsPrice: 0.175,
|
|
3272
|
+
description: "GPT-5.2 Chat: Optimized for conversational AI and chat use cases"
|
|
3273
|
+
},
|
|
3240
3274
|
"gpt-5.1": {
|
|
3241
3275
|
maxTokens: 128e3,
|
|
3242
3276
|
contextWindow: 4e5,
|
|
@@ -5010,14 +5044,24 @@ var mainlandZAiModels = {
|
|
|
5010
5044
|
var ZAI_DEFAULT_TEMPERATURE = 0.6;
|
|
5011
5045
|
var zaiApiLineConfigs = {
|
|
5012
5046
|
international_coding: {
|
|
5013
|
-
name: "International",
|
|
5047
|
+
name: "International Coding",
|
|
5014
5048
|
baseUrl: "https://api.z.ai/api/coding/paas/v4",
|
|
5015
5049
|
isChina: false
|
|
5016
5050
|
},
|
|
5017
5051
|
china_coding: {
|
|
5018
|
-
name: "China",
|
|
5052
|
+
name: "China Coding",
|
|
5019
5053
|
baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
|
|
5020
5054
|
isChina: true
|
|
5055
|
+
},
|
|
5056
|
+
international_api: {
|
|
5057
|
+
name: "International API",
|
|
5058
|
+
baseUrl: "https://api.z.ai/api/paas/v4",
|
|
5059
|
+
isChina: false
|
|
5060
|
+
},
|
|
5061
|
+
china_api: {
|
|
5062
|
+
name: "China API",
|
|
5063
|
+
baseUrl: "https://open.bigmodel.cn/api/paas/v4",
|
|
5064
|
+
isChina: true
|
|
5021
5065
|
}
|
|
5022
5066
|
};
|
|
5023
5067
|
|
|
@@ -5392,7 +5436,7 @@ var cerebrasSchema = apiModelIdProviderModelSchema.extend({
|
|
|
5392
5436
|
var sambaNovaSchema = apiModelIdProviderModelSchema.extend({
|
|
5393
5437
|
sambaNovaApiKey: import_zod8.z.string().optional()
|
|
5394
5438
|
});
|
|
5395
|
-
var zaiApiLineSchema = import_zod8.z.enum(["international_coding", "china_coding"]);
|
|
5439
|
+
var zaiApiLineSchema = import_zod8.z.enum(["international_coding", "china_coding", "international_api", "china_api"]);
|
|
5396
5440
|
var zaiSchema = apiModelIdProviderModelSchema.extend({
|
|
5397
5441
|
zaiApiKey: import_zod8.z.string().optional(),
|
|
5398
5442
|
zaiApiLine: zaiApiLineSchema.optional()
|
|
@@ -6241,6 +6285,13 @@ var globalSettingsSchema = import_zod14.z.object({
|
|
|
6241
6285
|
includeTaskHistoryInEnhance: import_zod14.z.boolean().optional(),
|
|
6242
6286
|
historyPreviewCollapsed: import_zod14.z.boolean().optional(),
|
|
6243
6287
|
reasoningBlockCollapsed: import_zod14.z.boolean().optional(),
|
|
6288
|
+
/**
|
|
6289
|
+
* Controls the keyboard behavior for sending messages in the chat input.
|
|
6290
|
+
* - "send": Enter sends message, Shift+Enter creates newline (default)
|
|
6291
|
+
* - "newline": Enter creates newline, Shift+Enter/Ctrl+Enter sends message
|
|
6292
|
+
* @default "send"
|
|
6293
|
+
*/
|
|
6294
|
+
enterBehavior: import_zod14.z.enum(["send", "newline"]).optional(),
|
|
6244
6295
|
profileThresholds: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.number()).optional(),
|
|
6245
6296
|
hasOpenedModeSelector: import_zod14.z.boolean().optional(),
|
|
6246
6297
|
lastModeExportPath: import_zod14.z.string().optional(),
|
|
@@ -6447,11 +6498,13 @@ var organizationDefaultSettingsSchema = globalSettingsSchema.pick({
|
|
|
6447
6498
|
terminalShellIntegrationTimeout: import_zod16.z.number().int().nonnegative().optional()
|
|
6448
6499
|
})
|
|
6449
6500
|
);
|
|
6501
|
+
var workspaceTaskVisibilitySchema = import_zod16.z.enum(["all", "list-only", "full-lockdown"]);
|
|
6450
6502
|
var organizationCloudSettingsSchema = import_zod16.z.object({
|
|
6451
6503
|
recordTaskMessages: import_zod16.z.boolean().optional(),
|
|
6452
6504
|
enableTaskSharing: import_zod16.z.boolean().optional(),
|
|
6453
6505
|
taskShareExpirationDays: import_zod16.z.number().int().positive().optional(),
|
|
6454
|
-
allowMembersViewAllTasks: import_zod16.z.boolean().optional()
|
|
6506
|
+
allowMembersViewAllTasks: import_zod16.z.boolean().optional(),
|
|
6507
|
+
workspaceTaskVisibility: workspaceTaskVisibilitySchema.optional()
|
|
6455
6508
|
});
|
|
6456
6509
|
var organizationFeaturesSchema = import_zod16.z.object({
|
|
6457
6510
|
roomoteControlEnabled: import_zod16.z.boolean().optional()
|