Elffuss BraidHub

kikocis/continue public

main · 850 BRawPermalink
1import { Tool } from "../..";
2
3import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
4
5export const viewDiffTool: Tool = {
6 type: "function",
7 displayTitle: "View Diff",
8 wouldLikeTo: "view the git diff",
9 isCurrently: "getting the git diff",
10 hasAlready: "viewed the git diff",
11 readonly: true,
12 isInstant: true,
13 group: BUILT_IN_GROUP_NAME,
14 function: {
15 name: BuiltInToolNames.ViewDiff,
16 description: "View the current diff of working changes",
17 parameters: {
18 type: "object",
19 properties: {},
20 },
21 },
22 systemMessageDescription: {
23 prefix: `To view the current git diff, use the ${BuiltInToolNames.ViewDiff} tool. This will show you the changes made in the working directory compared to the last commit.`,
24 },
25 defaultToolPolicy: "allowedWithoutPermission",
26 toolCallIcon: "CodeBracketIcon",
27};