"""
Task Manager - Backward Compatibility

此模块提供向后兼容导入。
请使用新的包导入方式:
    from src.services.task_manager import task_manager
    from src.services.task_manager.manager import UnifiedTaskManager
"""

def __getattr__(name):
    """延迟加载以避免循环导入问题"""
    if name == "task_manager":
        from .manager import task_manager
        return task_manager
    elif name == "UnifiedTaskManager":
        from .manager import UnifiedTaskManager
        return UnifiedTaskManager
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


from .models import TaskPriority, TaskConfig, TaskItem

__all__ = [
    "task_manager",
    "TaskPriority",
    "TaskConfig",
    "TaskItem",
    "UnifiedTaskManager",
]
