# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Orchestrator: registers all core agent tools by delegating to domain modules."""

from modules.serviceCenter.services.serviceAgent.toolRegistry import ToolRegistry

from modules.serviceCenter.services.serviceAgent.coreTools._workspaceTools import _registerWorkspaceTools
from modules.serviceCenter.services.serviceAgent.coreTools._connectionTools import _registerConnectionTools
from modules.serviceCenter.services.serviceAgent.coreTools._dataSourceTools import _registerDataSourceTools
from modules.serviceCenter.services.serviceAgent.coreTools._documentTools import _registerDocumentTools
from modules.serviceCenter.services.serviceAgent.coreTools._mediaTools import _registerMediaTools
from modules.serviceCenter.services.serviceAgent.coreTools._featureSubAgentTools import _registerFeatureSubAgentTools
from modules.serviceCenter.services.serviceAgent.coreTools._crossWorkflowTools import _registerCrossWorkflowTools


def registerCoreTools(registry: ToolRegistry, services):
    """Register all built-in core tools on the agent ToolRegistry.

    Delegates to domain-specific modules under coreTools/.
    """
    _registerWorkspaceTools(registry, services)
    _registerConnectionTools(registry, services)
    _registerDataSourceTools(registry, services)
    _registerDocumentTools(registry, services)
    _registerMediaTools(registry, services)
    _registerFeatureSubAgentTools(registry, services)
    _registerCrossWorkflowTools(registry, services)
