@roo-code/types 1.30.0 → 1.31.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 +44 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +533 -199
- package/dist/index.d.ts +533 -199
- package/dist/index.js +41 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2135,25 +2135,42 @@ var xaiModels = {
|
|
|
2135
2135
|
|
|
2136
2136
|
// src/codebase-index.ts
|
|
2137
2137
|
import { z } from "zod";
|
|
2138
|
+
var CODEBASE_INDEX_DEFAULTS = {
|
|
2139
|
+
MIN_SEARCH_RESULTS: 10,
|
|
2140
|
+
MAX_SEARCH_RESULTS: 200,
|
|
2141
|
+
DEFAULT_SEARCH_RESULTS: 50,
|
|
2142
|
+
SEARCH_RESULTS_STEP: 10,
|
|
2143
|
+
MIN_SEARCH_SCORE: 0,
|
|
2144
|
+
MAX_SEARCH_SCORE: 1,
|
|
2145
|
+
DEFAULT_SEARCH_MIN_SCORE: 0.4,
|
|
2146
|
+
SEARCH_SCORE_STEP: 0.05
|
|
2147
|
+
};
|
|
2138
2148
|
var codebaseIndexConfigSchema = z.object({
|
|
2139
2149
|
codebaseIndexEnabled: z.boolean().optional(),
|
|
2140
2150
|
codebaseIndexQdrantUrl: z.string().optional(),
|
|
2141
|
-
codebaseIndexEmbedderProvider: z.enum(["openai", "ollama", "openai-compatible"]).optional(),
|
|
2151
|
+
codebaseIndexEmbedderProvider: z.enum(["openai", "ollama", "openai-compatible", "gemini"]).optional(),
|
|
2142
2152
|
codebaseIndexEmbedderBaseUrl: z.string().optional(),
|
|
2143
2153
|
codebaseIndexEmbedderModelId: z.string().optional(),
|
|
2144
|
-
|
|
2154
|
+
codebaseIndexEmbedderModelDimension: z.number().optional(),
|
|
2155
|
+
codebaseIndexSearchMinScore: z.number().min(0).max(1).optional(),
|
|
2156
|
+
codebaseIndexSearchMaxResults: z.number().min(CODEBASE_INDEX_DEFAULTS.MIN_SEARCH_RESULTS).max(CODEBASE_INDEX_DEFAULTS.MAX_SEARCH_RESULTS).optional(),
|
|
2157
|
+
// OpenAI Compatible specific fields
|
|
2158
|
+
codebaseIndexOpenAiCompatibleBaseUrl: z.string().optional(),
|
|
2159
|
+
codebaseIndexOpenAiCompatibleModelDimension: z.number().optional()
|
|
2145
2160
|
});
|
|
2146
2161
|
var codebaseIndexModelsSchema = z.object({
|
|
2147
2162
|
openai: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
2148
2163
|
ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
2149
|
-
"openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional()
|
|
2164
|
+
"openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional(),
|
|
2165
|
+
gemini: z.record(z.string(), z.object({ dimension: z.number() })).optional()
|
|
2150
2166
|
});
|
|
2151
2167
|
var codebaseIndexProviderSchema = z.object({
|
|
2152
2168
|
codeIndexOpenAiKey: z.string().optional(),
|
|
2153
2169
|
codeIndexQdrantApiKey: z.string().optional(),
|
|
2154
2170
|
codebaseIndexOpenAiCompatibleBaseUrl: z.string().optional(),
|
|
2155
2171
|
codebaseIndexOpenAiCompatibleApiKey: z.string().optional(),
|
|
2156
|
-
codebaseIndexOpenAiCompatibleModelDimension: z.number().optional()
|
|
2172
|
+
codebaseIndexOpenAiCompatibleModelDimension: z.number().optional(),
|
|
2173
|
+
codebaseIndexGeminiApiKey: z.string().optional()
|
|
2157
2174
|
});
|
|
2158
2175
|
|
|
2159
2176
|
// src/cloud.ts
|
|
@@ -2510,7 +2527,8 @@ var clineSays = [
|
|
|
2510
2527
|
"diff_error",
|
|
2511
2528
|
"condense_context",
|
|
2512
2529
|
"condense_context_error",
|
|
2513
|
-
"codebase_search_result"
|
|
2530
|
+
"codebase_search_result",
|
|
2531
|
+
"user_edit_todos"
|
|
2514
2532
|
];
|
|
2515
2533
|
var clineSaySchema = z6.enum(clineSays);
|
|
2516
2534
|
var toolProgressStatusSchema = z6.object({
|
|
@@ -2704,7 +2722,8 @@ var toolNames = [
|
|
|
2704
2722
|
"switch_mode",
|
|
2705
2723
|
"new_task",
|
|
2706
2724
|
"fetch_instructions",
|
|
2707
|
-
"codebase_search"
|
|
2725
|
+
"codebase_search",
|
|
2726
|
+
"update_todo_list"
|
|
2708
2727
|
];
|
|
2709
2728
|
var toolNamesSchema = z8.enum(toolNames);
|
|
2710
2729
|
var toolUsageSchema = z8.record(
|
|
@@ -2859,6 +2878,7 @@ var globalSettingsSchema = z11.object({
|
|
|
2859
2878
|
alwaysAllowExecute: z11.boolean().optional(),
|
|
2860
2879
|
alwaysAllowFollowupQuestions: z11.boolean().optional(),
|
|
2861
2880
|
followupAutoApproveTimeoutMs: z11.number().optional(),
|
|
2881
|
+
alwaysAllowUpdateTodoList: z11.boolean().optional(),
|
|
2862
2882
|
allowedCommands: z11.array(z11.string()).optional(),
|
|
2863
2883
|
allowedMaxRequests: z11.number().nullish(),
|
|
2864
2884
|
autoCondenseContext: z11.boolean().optional(),
|
|
@@ -2933,7 +2953,8 @@ var SECRET_STATE_KEYS = [
|
|
|
2933
2953
|
"litellmApiKey",
|
|
2934
2954
|
"codeIndexOpenAiKey",
|
|
2935
2955
|
"codeIndexQdrantApiKey",
|
|
2936
|
-
"codebaseIndexOpenAiCompatibleApiKey"
|
|
2956
|
+
"codebaseIndexOpenAiCompatibleApiKey",
|
|
2957
|
+
"codebaseIndexGeminiApiKey"
|
|
2937
2958
|
];
|
|
2938
2959
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
2939
2960
|
var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
|
|
@@ -2960,6 +2981,7 @@ var EVALS_SETTINGS = {
|
|
|
2960
2981
|
alwaysAllowSubtasks: true,
|
|
2961
2982
|
alwaysAllowExecute: true,
|
|
2962
2983
|
alwaysAllowFollowupQuestions: true,
|
|
2984
|
+
alwaysAllowUpdateTodoList: true,
|
|
2963
2985
|
followupAutoApproveTimeoutMs: 0,
|
|
2964
2986
|
allowedCommands: ["*"],
|
|
2965
2987
|
browserToolEnabled: false,
|
|
@@ -3351,6 +3373,15 @@ var commandExecutionStatusSchema = z17.discriminatedUnion("status", [
|
|
|
3351
3373
|
status: z17.literal("fallback")
|
|
3352
3374
|
})
|
|
3353
3375
|
]);
|
|
3376
|
+
|
|
3377
|
+
// src/todo.ts
|
|
3378
|
+
import { z as z18 } from "zod";
|
|
3379
|
+
var todoStatusSchema = z18.enum(["pending", "in_progress", "completed"]);
|
|
3380
|
+
var todoItemSchema = z18.object({
|
|
3381
|
+
id: z18.string(),
|
|
3382
|
+
content: z18.string(),
|
|
3383
|
+
status: todoStatusSchema
|
|
3384
|
+
});
|
|
3354
3385
|
export {
|
|
3355
3386
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
3356
3387
|
AWS_INFERENCE_PROFILE_MAPPING,
|
|
@@ -3358,6 +3389,7 @@ export {
|
|
|
3358
3389
|
BEDROCK_DEFAULT_TEMPERATURE,
|
|
3359
3390
|
BEDROCK_MAX_TOKENS,
|
|
3360
3391
|
BEDROCK_REGIONS,
|
|
3392
|
+
CODEBASE_INDEX_DEFAULTS,
|
|
3361
3393
|
DEEP_SEEK_DEFAULT_TEMPERATURE,
|
|
3362
3394
|
EVALS_SETTINGS,
|
|
3363
3395
|
EVALS_TIMEOUT,
|
|
@@ -3489,6 +3521,8 @@ export {
|
|
|
3489
3521
|
telemetrySettings,
|
|
3490
3522
|
telemetrySettingsSchema,
|
|
3491
3523
|
terminalActionIds,
|
|
3524
|
+
todoItemSchema,
|
|
3525
|
+
todoStatusSchema,
|
|
3492
3526
|
tokenUsageSchema,
|
|
3493
3527
|
toolGroups,
|
|
3494
3528
|
toolGroupsSchema,
|