refactor(tool): convert codesearch tool internals to Effect (#21811)

This commit is contained in:
Kit Langton
2026-04-10 11:49:20 -04:00
committed by GitHub
parent 00e39d2114
commit bf601628db
2 changed files with 58 additions and 124 deletions
+2 -1
View File
@@ -102,6 +102,7 @@ export namespace ToolRegistry {
const plan = yield* PlanExitTool
const webfetch = yield* WebFetchTool
const websearch = yield* WebSearchTool
const codesearch = yield* CodeSearchTool
const state = yield* InstanceState.make<State>(
Effect.fn("ToolRegistry.state")(function* (ctx) {
@@ -170,7 +171,7 @@ export namespace ToolRegistry {
fetch: Tool.init(webfetch),
todo: Tool.init(todo),
search: Tool.init(websearch),
code: Tool.init(CodeSearchTool),
code: Tool.init(codesearch),
skill: Tool.init(SkillTool),
patch: Tool.init(ApplyPatchTool),
question: Tool.init(question),