refactor: rename apply_patch tool
This commit is contained in:
parent
910e37f6d8
commit
5db320b02d
22 changed files with 48 additions and 46 deletions
|
|
@ -628,11 +628,11 @@ function emitEdit(state: State): void {
|
|||
|
||||
function emitPatch(state: State): void {
|
||||
const file = path.join(process.cwd(), "src", "demo-format.ts")
|
||||
const ref = make(state, "apply_patch", {
|
||||
const ref = make(state, "patch", {
|
||||
patchText: "*** Begin Patch\n*** End Patch",
|
||||
})
|
||||
doneTool(state, ref, {
|
||||
title: "apply_patch",
|
||||
title: "patch",
|
||||
output: "",
|
||||
metadata: {
|
||||
files: [
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ type ToolName =
|
|||
| "bash"
|
||||
| "write"
|
||||
| "edit"
|
||||
| "apply_patch"
|
||||
| "patch"
|
||||
| "batch"
|
||||
| "task"
|
||||
| "todowrite"
|
||||
|
|
@ -1094,7 +1094,7 @@ const TOOL_RULES = {
|
|||
},
|
||||
permission: permEdit,
|
||||
},
|
||||
apply_patch: {
|
||||
patch: {
|
||||
view: {
|
||||
output: false,
|
||||
final: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue