export function categorizeClaudeTool(toolName) {
    // File read (read-only)
    if (["Read", "Glob", "Grep"].includes(toolName))
        return "fileRead";
    // File write (create, modify)
    if (["Write", "Edit", "MultiEdit"].includes(toolName))
        return "fileWrite";
    // Code execution (shell, notebooks, shell management)
    if (["Bash", "NotebookEdit", "KillShell"].includes(toolName))
        return "codeExecution";
    // Web access
    if (["WebFetch", "WebSearch"].includes(toolName))
        return "webAccess";
    // Callboard platform tools
    if (toolName === "mcp__callboard-tools__render_file")
        return "fileRead";
    // Tools that don't need permission checks (always allowed)
    if (["TodoWrite", "Task", "ExitPlanMode", "AskUserQuestion", "SlashCommand", "BashOutput", "Config", "ListMcpResources", "ReadMcpResource"].includes(toolName)) {
        return null;
    }
    // Default to fileWrite for unknown tools (conservative)
    return "fileWrite";
}
