Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
628 changes: 0 additions & 628 deletions apps/vscode-e2e/src/suite/tools/insert-content.test.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/types/src/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const toolNames = [
"read_file",
"write_to_file",
"apply_diff",
"insert_content",
"search_and_replace",
"apply_patch",
"search_files",
Expand Down
32 changes: 0 additions & 32 deletions src/core/assistant-message/NativeToolCallParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,28 +371,6 @@ export class NativeToolCallParser {
}
break

case "insert_content":
// For partial tool calls, we build nativeArgs incrementally as fields arrive.
// Unlike parseToolCall which validates all required fields, partial parsing
// needs to show progress as each field streams in.
if (
partialArgs.path !== undefined ||
partialArgs.line !== undefined ||
partialArgs.content !== undefined
) {
nativeArgs = {
path: partialArgs.path,
line:
typeof partialArgs.line === "number"
? partialArgs.line
: partialArgs.line !== undefined
? parseInt(String(partialArgs.line), 10)
: undefined,
content: partialArgs.content,
}
}
break

case "write_to_file":
if (partialArgs.path || partialArgs.content) {
nativeArgs = {
Expand Down Expand Up @@ -618,16 +596,6 @@ export class NativeToolCallParser {
}
break

case "insert_content":
if (args.path !== undefined && args.line !== undefined && args.content !== undefined) {
nativeArgs = {
path: args.path,
line: typeof args.line === "number" ? args.line : parseInt(String(args.line), 10),
content: args.content,
} as NativeArgsFor<TName>
}
break

case "apply_diff":
if (args.path !== undefined && args.diff !== undefined) {
nativeArgs = {
Expand Down
13 changes: 0 additions & 13 deletions src/core/assistant-message/presentAssistantMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { getSimpleReadFileToolDescription, simpleReadFileTool } from "../tools/s
import { shouldUseSingleFileRead, TOOL_PROTOCOL } from "@roo-code/types"
import { writeToFileTool } from "../tools/WriteToFileTool"
import { applyDiffTool } from "../tools/MultiApplyDiffTool"
import { insertContentTool } from "../tools/InsertContentTool"
import { searchAndReplaceTool } from "../tools/SearchAndReplaceTool"
import { applyPatchTool } from "../tools/ApplyPatchTool"
import { listCodeDefinitionNamesTool } from "../tools/ListCodeDefinitionNamesTool"
Expand Down Expand Up @@ -379,8 +378,6 @@ export async function presentAssistantMessage(cline: Task) {
return `[${block.name} for '${block.params.regex}'${
block.params.file_pattern ? ` in '${block.params.file_pattern}'` : ""
}]`
case "insert_content":
return `[${block.name} for '${block.params.path}']`
case "search_and_replace":
return `[${block.name} for '${block.params.path}']`
case "apply_patch":
Expand Down Expand Up @@ -811,16 +808,6 @@ export async function presentAssistantMessage(cline: Task) {
}
break
}
case "insert_content":
await checkpointSaveAndMark(cline)
await insertContentTool.handle(cline, block as ToolUse<"insert_content">, {
askApproval,
handleError,
pushToolResult,
removeClosingTag,
toolProtocol,
})
break
case "search_and_replace":
await checkpointSaveAndMark(cline)
await searchAndReplaceTool.handle(cline, block as ToolUse<"search_and_replace">, {
Expand Down
2 changes: 1 addition & 1 deletion src/core/auto-approval/tools.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ClineSayTool } from "../../shared/ExtensionMessage"

export function isWriteToolAction(tool: ClineSayTool): boolean {
return ["editedExistingFile", "appliedDiff", "newFileCreated", "insertContent", "generateImage"].includes(tool.tool)
return ["editedExistingFile", "appliedDiff", "newFileCreated", "generateImage"].includes(tool.tool)
}

export function isReadOnlyToolAction(tool: ClineSayTool): boolean {
Expand Down
38 changes: 0 additions & 38 deletions src/core/diff/insert-groups.ts

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading