/**
 * Coding tool factories — gateway to vendor pi-coding-agent tools.
 *
 * Phase 5: Centralizes all pi-coding-agent imports.
 * The actual tool implementations (read, write, edit, bash, grep, find, ls)
 * stay in vendor for now — they're well-tested and battle-hardened.
 * This module is the single import point for the rest of Clawx.
 */
import { createCodingTools as vendorCreateCodingTools, createGrepTool as vendorCreateGrepTool, createFindTool as vendorCreateFindTool, createLsTool as vendorCreateLsTool, } from "@mariozechner/pi-coding-agent";
export function createCodingTools(cwd) {
    return vendorCreateCodingTools(cwd);
}
export function createGrepTool(cwd) {
    return vendorCreateGrepTool(cwd);
}
export function createFindTool(cwd) {
    return vendorCreateFindTool(cwd);
}
export function createLsTool(cwd) {
    return vendorCreateLsTool(cwd);
}
/**
 * Convert AgentMessages to LLM-compatible Messages.
 * Filters to standard message roles (user, assistant, toolResult).
 */
export function convertToLlm(messages) {
    return messages.filter((m) => m.role === "user" || m.role === "assistant" || m.role === "toolResult");
}
//# sourceMappingURL=coding-tools.js.map