mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Checkpoint on insert and search/replace tools
This commit is contained in:
@@ -13,6 +13,8 @@ export const toolUseNames = [
|
||||
"read_file",
|
||||
"write_to_file",
|
||||
"apply_diff",
|
||||
"insert_code_block",
|
||||
"search_and_replace",
|
||||
"search_files",
|
||||
"list_files",
|
||||
"list_code_definition_names",
|
||||
@@ -50,6 +52,7 @@ export const toolParamNames = [
|
||||
"end_line",
|
||||
"mode_slug",
|
||||
"reason",
|
||||
"operations",
|
||||
] as const
|
||||
|
||||
export type ToolParamName = (typeof toolParamNames)[number]
|
||||
@@ -78,6 +81,11 @@ export interface WriteToFileToolUse extends ToolUse {
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "path" | "content" | "line_count">>
|
||||
}
|
||||
|
||||
export interface InsertCodeBlockToolUse extends ToolUse {
|
||||
name: "insert_code_block"
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "path" | "operations">>
|
||||
}
|
||||
|
||||
export interface SearchFilesToolUse extends ToolUse {
|
||||
name: "search_files"
|
||||
params: Partial<Pick<Record<ToolParamName, string>, "path" | "regex" | "file_pattern">>
|
||||
|
||||
Reference in New Issue
Block a user