fix(acp): classify apply_patch as edit (#30564)
This commit is contained in:
parent
5970f7820e
commit
89b26e8658
@ -46,6 +46,7 @@ export function toToolKind(toolName: string): ToolKind {
|
||||
return "fetch"
|
||||
|
||||
case "edit":
|
||||
case "apply_patch":
|
||||
case "patch":
|
||||
case "write":
|
||||
return "edit"
|
||||
|
||||
@ -15,6 +15,7 @@ describe("acp tool conversion", () => {
|
||||
expect(toToolKind("shell")).toBe("execute")
|
||||
expect(toToolKind("webfetch")).toBe("fetch")
|
||||
expect(toToolKind("edit")).toBe("edit")
|
||||
expect(toToolKind("apply_patch")).toBe("edit")
|
||||
expect(toToolKind("patch")).toBe("edit")
|
||||
expect(toToolKind("write")).toBe("edit")
|
||||
expect(toToolKind("grep")).toBe("search")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user