implemented todo tool

This commit is contained in:
Dax Raad
2025-06-04 15:09:40 -04:00
parent 093e64eb54
commit 53b0a25085
3 changed files with 143 additions and 18 deletions

View File

@@ -20,6 +20,7 @@ import { ReadTool } from "../tool/read"
import type { Tool } from "../tool/tool"
import { MultiEditTool } from "../tool/multiedit"
import { WriteTool } from "../tool/write"
import { TodoReadTool, TodoWriteTool } from "../tool/todo"
export namespace Provider {
const log = Log.create({ service: "provider" })
@@ -178,6 +179,8 @@ export namespace Provider {
EditTool,
MultiEditTool,
WriteTool,
TodoWriteTool,
TodoReadTool,
]
const TOOL_MAPPING: Record<string, Tool.Info[]> = {
anthropic: TOOLS.filter((t) => t.id !== "opencode.patch"),