chore: format
This commit is contained in:
parent
d716d74978
commit
fef14917c6
3 changed files with 12 additions and 4 deletions
|
|
@ -179,7 +179,11 @@ parameter is useful if you want to rename a variable for instance.`,
|
|||
}
|
||||
|
||||
// Generate diff for result display
|
||||
const diff = generateDiff(args.oldContent, args.newContent, args.file_path);
|
||||
const diff = generateDiff(
|
||||
args.oldContent,
|
||||
args.newContent,
|
||||
args.file_path,
|
||||
);
|
||||
|
||||
return `Successfully edited ${args.file_path}\nDiff:\n${diff}`;
|
||||
} catch (error) {
|
||||
|
|
|
|||
|
|
@ -310,7 +310,11 @@ If you want to create a new file, use:
|
|||
}
|
||||
|
||||
// Generate diff for result display
|
||||
const diff = generateDiff(args.originalContent, args.newContent, args.file_path);
|
||||
const diff = generateDiff(
|
||||
args.originalContent,
|
||||
args.newContent,
|
||||
args.file_path,
|
||||
);
|
||||
|
||||
const action = args.isCreatingNewFile ? "created" : "edited";
|
||||
return `Successfully ${action} ${args.file_path} with ${args.editCount} edit${args.editCount === 1 ? "" : "s"}\nDiff:\n${diff}`;
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ const ToolResultSummary: React.FC<ToolResultSummaryProps> = ({
|
|||
{toolName === "Edit"
|
||||
? " File edited successfully"
|
||||
: toolName === "MultiEdit"
|
||||
? " File edited successfully"
|
||||
: " File written successfully"}
|
||||
? " File edited successfully"
|
||||
: " File written successfully"}
|
||||
</Text>
|
||||
</Box>
|
||||
<ColoredDiff diffContent={diffSection} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue