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