mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 04:38:31 +00:00
fix(acp): classify apply_patch as edit (#30564)
This commit is contained in:
parent
5970f7820e
commit
89b26e8658
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue