@@ -13,16 +13,16 @@ import { AbsolutePath } from "@opencode-ai/core/schema"
1313import { SessionV2 } from "@opencode-ai/core/session"
1414import { ToolRegistry } from "@opencode-ai/core/tool/registry"
1515import { ToolOutputStore } from "@opencode-ai/core/tool-output-store"
16- import { ApplyPatchTool } from "@opencode-ai/core/tool/apply- patch"
16+ import { PatchTool } from "@opencode-ai/core/tool/patch"
1717import { location } from "./fixture/location"
1818import { tmpdir } from "./fixture/tmpdir"
1919import { makeLocationNode } from "@opencode-ai/core/effect/app-node"
2020import { testEffect } from "./lib/effect"
2121import { toolIdentity , executeTool , registerToolPlugin , settleTool , toolDefinitions } from "./lib/tool"
2222
23- const applyPatchToolNode = makeLocationNode ( {
24- name : "test/apply- patch-tool-plugin" ,
25- layer : Layer . effectDiscard ( registerToolPlugin ( ApplyPatchTool . Plugin ) ) ,
23+ const patchToolNode = makeLocationNode ( {
24+ name : "test/patch-tool-plugin" ,
25+ layer : Layer . effectDiscard ( registerToolPlugin ( PatchTool . Plugin ) ) ,
2626 deps : [ ToolRegistry . toolsNode , LocationMutation . node , FileMutation . node , FSUtil . node , PermissionV2 . node ] ,
2727} )
2828
@@ -116,7 +116,7 @@ const withTool = <A, E, R>(directory: string, body: (registry: ToolRegistry.Inte
116116 ToolRegistry . toolsNode ,
117117 LocationMutation . node ,
118118 FileMutation . node ,
119- applyPatchToolNode ,
119+ patchToolNode ,
120120 ] ) ,
121121 [
122122 [ FSUtil . node , filesystem ] ,
@@ -129,7 +129,7 @@ const withTool = <A, E, R>(directory: string, body: (registry: ToolRegistry.Inte
129129 )
130130}
131131
132- const call = ( patchText : string , id = "call-apply- patch" ) => ( {
132+ const call = ( patchText : string , id = "call-patch" ) => ( {
133133 sessionID,
134134 ...toolIdentity ,
135135 call : { type : "tool-call" as const , id, name : "patch" , input : { patchText } } ,
@@ -147,7 +147,7 @@ const exists = (target: string) =>
147147 )
148148const it = testEffect ( Layer . empty )
149149
150- describe ( "ApplyPatchTool " , ( ) => {
150+ describe ( "PatchTool " , ( ) => {
151151 it . live ( "registers and sequentially applies add, update, and delete hunks" , ( ) =>
152152 Effect . acquireUseRelease (
153153 Effect . promise ( ( ) => tmpdir ( ) ) ,
0 commit comments