@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.cjs
CHANGED
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
BEDROCK_DEFAULT_TEMPERATURE: () => BEDROCK_DEFAULT_TEMPERATURE,
|
|
27
27
|
BEDROCK_MAX_TOKENS: () => BEDROCK_MAX_TOKENS,
|
|
28
28
|
BEDROCK_REGIONS: () => BEDROCK_REGIONS,
|
|
29
|
+
CODEBASE_INDEX_DEFAULTS: () => CODEBASE_INDEX_DEFAULTS,
|
|
29
30
|
DEEP_SEEK_DEFAULT_TEMPERATURE: () => DEEP_SEEK_DEFAULT_TEMPERATURE,
|
|
30
31
|
EVALS_SETTINGS: () => EVALS_SETTINGS,
|
|
31
32
|
EVALS_TIMEOUT: () => EVALS_TIMEOUT,
|
|
@@ -157,6 +158,8 @@ __export(index_exports, {
|
|
|
157
158
|
telemetrySettings: () => telemetrySettings,
|
|
158
159
|
telemetrySettingsSchema: () => telemetrySettingsSchema,
|
|
159
160
|
terminalActionIds: () => terminalActionIds,
|
|
161
|
+
todoItemSchema: () => todoItemSchema,
|
|
162
|
+
todoStatusSchema: () => todoStatusSchema,
|
|
160
163
|
tokenUsageSchema: () => tokenUsageSchema,
|
|
161
164
|
toolGroups: () => toolGroups,
|
|
162
165
|
toolGroupsSchema: () => toolGroupsSchema,
|
|
@@ -2312,25 +2315,42 @@ var xaiModels = {
|
|
|
2312
2315
|
|
|
2313
2316
|
// src/codebase-index.ts
|
|
2314
2317
|
var import_zod = require("zod");
|
|
2318
|
+
var CODEBASE_INDEX_DEFAULTS = {
|
|
2319
|
+
MIN_SEARCH_RESULTS: 10,
|
|
2320
|
+
MAX_SEARCH_RESULTS: 200,
|
|
2321
|
+
DEFAULT_SEARCH_RESULTS: 50,
|
|
2322
|
+
SEARCH_RESULTS_STEP: 10,
|
|
2323
|
+
MIN_SEARCH_SCORE: 0,
|
|
2324
|
+
MAX_SEARCH_SCORE: 1,
|
|
2325
|
+
DEFAULT_SEARCH_MIN_SCORE: 0.4,
|
|
2326
|
+
SEARCH_SCORE_STEP: 0.05
|
|
2327
|
+
};
|
|
2315
2328
|
var codebaseIndexConfigSchema = import_zod.z.object({
|
|
2316
2329
|
codebaseIndexEnabled: import_zod.z.boolean().optional(),
|
|
2317
2330
|
codebaseIndexQdrantUrl: import_zod.z.string().optional(),
|
|
2318
|
-
codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible"]).optional(),
|
|
2331
|
+
codebaseIndexEmbedderProvider: import_zod.z.enum(["openai", "ollama", "openai-compatible", "gemini"]).optional(),
|
|
2319
2332
|
codebaseIndexEmbedderBaseUrl: import_zod.z.string().optional(),
|
|
2320
2333
|
codebaseIndexEmbedderModelId: import_zod.z.string().optional(),
|
|
2321
|
-
|
|
2334
|
+
codebaseIndexEmbedderModelDimension: import_zod.z.number().optional(),
|
|
2335
|
+
codebaseIndexSearchMinScore: import_zod.z.number().min(0).max(1).optional(),
|
|
2336
|
+
codebaseIndexSearchMaxResults: import_zod.z.number().min(CODEBASE_INDEX_DEFAULTS.MIN_SEARCH_RESULTS).max(CODEBASE_INDEX_DEFAULTS.MAX_SEARCH_RESULTS).optional(),
|
|
2337
|
+
// OpenAI Compatible specific fields
|
|
2338
|
+
codebaseIndexOpenAiCompatibleBaseUrl: import_zod.z.string().optional(),
|
|
2339
|
+
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional()
|
|
2322
2340
|
});
|
|
2323
2341
|
var codebaseIndexModelsSchema = import_zod.z.object({
|
|
2324
2342
|
openai: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
2325
2343
|
ollama: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
2326
|
-
"openai-compatible": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
|
|
2344
|
+
"openai-compatible": import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional(),
|
|
2345
|
+
gemini: import_zod.z.record(import_zod.z.string(), import_zod.z.object({ dimension: import_zod.z.number() })).optional()
|
|
2327
2346
|
});
|
|
2328
2347
|
var codebaseIndexProviderSchema = import_zod.z.object({
|
|
2329
2348
|
codeIndexOpenAiKey: import_zod.z.string().optional(),
|
|
2330
2349
|
codeIndexQdrantApiKey: import_zod.z.string().optional(),
|
|
2331
2350
|
codebaseIndexOpenAiCompatibleBaseUrl: import_zod.z.string().optional(),
|
|
2332
2351
|
codebaseIndexOpenAiCompatibleApiKey: import_zod.z.string().optional(),
|
|
2333
|
-
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional()
|
|
2352
|
+
codebaseIndexOpenAiCompatibleModelDimension: import_zod.z.number().optional(),
|
|
2353
|
+
codebaseIndexGeminiApiKey: import_zod.z.string().optional()
|
|
2334
2354
|
});
|
|
2335
2355
|
|
|
2336
2356
|
// src/cloud.ts
|
|
@@ -2687,7 +2707,8 @@ var clineSays = [
|
|
|
2687
2707
|
"diff_error",
|
|
2688
2708
|
"condense_context",
|
|
2689
2709
|
"condense_context_error",
|
|
2690
|
-
"codebase_search_result"
|
|
2710
|
+
"codebase_search_result",
|
|
2711
|
+
"user_edit_todos"
|
|
2691
2712
|
];
|
|
2692
2713
|
var clineSaySchema = import_zod6.z.enum(clineSays);
|
|
2693
2714
|
var toolProgressStatusSchema = import_zod6.z.object({
|
|
@@ -2881,7 +2902,8 @@ var toolNames = [
|
|
|
2881
2902
|
"switch_mode",
|
|
2882
2903
|
"new_task",
|
|
2883
2904
|
"fetch_instructions",
|
|
2884
|
-
"codebase_search"
|
|
2905
|
+
"codebase_search",
|
|
2906
|
+
"update_todo_list"
|
|
2885
2907
|
];
|
|
2886
2908
|
var toolNamesSchema = import_zod8.z.enum(toolNames);
|
|
2887
2909
|
var toolUsageSchema = import_zod8.z.record(
|
|
@@ -3036,6 +3058,7 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
3036
3058
|
alwaysAllowExecute: import_zod11.z.boolean().optional(),
|
|
3037
3059
|
alwaysAllowFollowupQuestions: import_zod11.z.boolean().optional(),
|
|
3038
3060
|
followupAutoApproveTimeoutMs: import_zod11.z.number().optional(),
|
|
3061
|
+
alwaysAllowUpdateTodoList: import_zod11.z.boolean().optional(),
|
|
3039
3062
|
allowedCommands: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
3040
3063
|
allowedMaxRequests: import_zod11.z.number().nullish(),
|
|
3041
3064
|
autoCondenseContext: import_zod11.z.boolean().optional(),
|
|
@@ -3110,7 +3133,8 @@ var SECRET_STATE_KEYS = [
|
|
|
3110
3133
|
"litellmApiKey",
|
|
3111
3134
|
"codeIndexOpenAiKey",
|
|
3112
3135
|
"codeIndexQdrantApiKey",
|
|
3113
|
-
"codebaseIndexOpenAiCompatibleApiKey"
|
|
3136
|
+
"codebaseIndexOpenAiCompatibleApiKey",
|
|
3137
|
+
"codebaseIndexGeminiApiKey"
|
|
3114
3138
|
];
|
|
3115
3139
|
var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
|
|
3116
3140
|
var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
|
|
@@ -3137,6 +3161,7 @@ var EVALS_SETTINGS = {
|
|
|
3137
3161
|
alwaysAllowSubtasks: true,
|
|
3138
3162
|
alwaysAllowExecute: true,
|
|
3139
3163
|
alwaysAllowFollowupQuestions: true,
|
|
3164
|
+
alwaysAllowUpdateTodoList: true,
|
|
3140
3165
|
followupAutoApproveTimeoutMs: 0,
|
|
3141
3166
|
allowedCommands: ["*"],
|
|
3142
3167
|
browserToolEnabled: false,
|
|
@@ -3528,6 +3553,15 @@ var commandExecutionStatusSchema = import_zod17.z.discriminatedUnion("status", [
|
|
|
3528
3553
|
status: import_zod17.z.literal("fallback")
|
|
3529
3554
|
})
|
|
3530
3555
|
]);
|
|
3556
|
+
|
|
3557
|
+
// src/todo.ts
|
|
3558
|
+
var import_zod18 = require("zod");
|
|
3559
|
+
var todoStatusSchema = import_zod18.z.enum(["pending", "in_progress", "completed"]);
|
|
3560
|
+
var todoItemSchema = import_zod18.z.object({
|
|
3561
|
+
id: import_zod18.z.string(),
|
|
3562
|
+
content: import_zod18.z.string(),
|
|
3563
|
+
status: todoStatusSchema
|
|
3564
|
+
});
|
|
3531
3565
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3532
3566
|
0 && (module.exports = {
|
|
3533
3567
|
ANTHROPIC_DEFAULT_MAX_TOKENS,
|
|
@@ -3536,6 +3570,7 @@ var commandExecutionStatusSchema = import_zod17.z.discriminatedUnion("status", [
|
|
|
3536
3570
|
BEDROCK_DEFAULT_TEMPERATURE,
|
|
3537
3571
|
BEDROCK_MAX_TOKENS,
|
|
3538
3572
|
BEDROCK_REGIONS,
|
|
3573
|
+
CODEBASE_INDEX_DEFAULTS,
|
|
3539
3574
|
DEEP_SEEK_DEFAULT_TEMPERATURE,
|
|
3540
3575
|
EVALS_SETTINGS,
|
|
3541
3576
|
EVALS_TIMEOUT,
|
|
@@ -3667,6 +3702,8 @@ var commandExecutionStatusSchema = import_zod17.z.discriminatedUnion("status", [
|
|
|
3667
3702
|
telemetrySettings,
|
|
3668
3703
|
telemetrySettingsSchema,
|
|
3669
3704
|
terminalActionIds,
|
|
3705
|
+
todoItemSchema,
|
|
3706
|
+
todoStatusSchema,
|
|
3670
3707
|
tokenUsageSchema,
|
|
3671
3708
|
toolGroups,
|
|
3672
3709
|
toolGroupsSchema,
|