import { createPiTools } from "../pi/tools.js";
import { todoWriteTool } from "./todo-tool.js";
const PI_BUILTIN_TOOL_NAMES = new Set(["read", "bash", "edit", "write", "grep", "find", "ls"]);
export function createPiCodingCustomTools(options) {
    const tools = createPiTools(options).map((tool) => {
        const name = PI_BUILTIN_TOOL_NAMES.has(tool.name) ? `visionclaw_${tool.name}` : tool.name;
        return {
            name,
            label: tool.label,
            description: tool.description,
            promptSnippet: tool.description,
            parameters: tool.parameters,
            prepareArguments: tool.prepareArguments,
            executionMode: tool.executionMode,
            execute: async (toolCallId, params, signal, onUpdate) => tool.execute(toolCallId, params, signal, onUpdate),
        };
    });
    return [...tools, todoWriteTool];
}
//# sourceMappingURL=tools.js.map