refactor(tool): convert write tool to Tool.defineEffect (#21901)

This commit is contained in:
Kit Langton
2026-04-10 16:57:12 -04:00
committed by GitHub
parent 378b8ca241
commit b139bc2ef3
3 changed files with 239 additions and 333 deletions
+2 -1
View File
@@ -110,6 +110,7 @@ export namespace ToolRegistry {
const bash = yield* BashTool
const codesearch = yield* CodeSearchTool
const globtool = yield* GlobTool
const writetool = yield* WriteTool
const state = yield* InstanceState.make<State>(
Effect.fn("ToolRegistry.state")(function* (ctx) {
@@ -173,7 +174,7 @@ export namespace ToolRegistry {
glob: Tool.init(globtool),
grep: Tool.init(GrepTool),
edit: Tool.init(EditTool),
write: Tool.init(WriteTool),
write: Tool.init(writetool),
task: Tool.init(task),
fetch: Tool.init(webfetch),
todo: Tool.init(todo),