"""Tool definitions and handlers for Claude integration.

This module re-exports from lenspr.tools for backwards compatibility.
The actual implementations are in lenspr/tools/.
"""

from lenspr.tools import LENS_TOOLS, handle_tool_call

# Re-export handlers with old names for backwards compatibility
from lenspr.tools.analysis import (
    handle_check_impact as _handle_check_impact,
)
from lenspr.tools.analysis import (
    handle_dead_code as _handle_dead_code,
)
from lenspr.tools.analysis import (
    handle_dependencies as _handle_dependencies,
)
from lenspr.tools.analysis import (
    handle_diff as _handle_diff,
)
from lenspr.tools.analysis import (
    handle_find_usages as _handle_find_usages,
)
from lenspr.tools.analysis import (
    handle_health as _handle_health,
)
from lenspr.tools.analysis import (
    handle_validate_change as _handle_validate_change,
)
from lenspr.tools.annotation import (
    handle_annotate as _handle_annotate,
)
from lenspr.tools.annotation import (
    handle_annotate_batch as _handle_annotate_batch,
)
from lenspr.tools.annotation import (
    handle_annotation_stats as _handle_annotation_stats,
)
from lenspr.tools.annotation import (
    handle_save_annotation as _handle_save_annotation,
)
from lenspr.tools.explain import (
    handle_explain as _handle_explain,
)
from lenspr.tools.modification import (
    handle_add_node as _handle_add_node,
)
from lenspr.tools.modification import (
    handle_batch as _handle_batch,
)
from lenspr.tools.modification import (
    handle_delete_node as _handle_delete_node,
)
from lenspr.tools.modification import (
    handle_rename as _handle_rename,
)
from lenspr.tools.modification import (
    handle_update_node as _handle_update_node,
)
from lenspr.tools.navigation import (
    handle_context as _handle_context,
)
from lenspr.tools.navigation import (
    handle_get_connections as _handle_get_connections,
)
from lenspr.tools.navigation import (
    handle_get_node as _handle_get_node,
)
from lenspr.tools.navigation import (
    handle_get_structure as _handle_get_structure,
)
from lenspr.tools.navigation import (
    handle_grep as _handle_grep,
)
from lenspr.tools.navigation import (
    handle_list_nodes as _handle_list_nodes,
)
from lenspr.tools.navigation import (
    handle_search as _handle_search,
)

__all__ = [
    "LENS_TOOLS",
    "handle_tool_call",
    # Legacy names for backwards compatibility
    "_handle_list_nodes",
    "_handle_get_node",
    "_handle_get_connections",
    "_handle_search",
    "_handle_get_structure",
    "_handle_context",
    "_handle_grep",
    "_handle_update_node",
    "_handle_add_node",
    "_handle_delete_node",
    "_handle_rename",
    "_handle_batch",
    "_handle_check_impact",
    "_handle_validate_change",
    "_handle_diff",
    "_handle_health",
    "_handle_dependencies",
    "_handle_dead_code",
    "_handle_find_usages",
    "_handle_annotate",
    "_handle_save_annotation",
    "_handle_annotate_batch",
    "_handle_annotation_stats",
    "_handle_explain",
]
