"""
causaliq-workflow: Workflow orchestration for causal discovery
"""

# Import core functionality
from .action import ActionProvider, WorkflowActionProvider
from .cache import WorkflowCache
from .logger import LogLevel, WorkflowLogger  # noqa: F401
from .registry import ActionRegistry, ActionRegistryError, WorkflowContext
from .status import TaskStatus  # noqa: F401
from .workflow import (
    AggregationConfig,
    WorkflowExecutionError,
    WorkflowExecutor,
)

__version__ = "0.4.0"
__author__ = "CausalIQ"
__email__ = "info@causaliq.com"

# Package metadata
__title__ = "causaliq-workflow"
__description__ = "Workflow orchestration for causal discovery"

__url__ = "https://github.com/causaliq/causaliq-workflow"
__license__ = "MIT"

# Version tuple for programmatic access (only numeric parts)
VERSION = tuple(int(part) for part in __version__.split(".") if part.isdigit())

__all__ = [
    "__version__",
    "__author__",
    "__email__",
    "VERSION",
    # Action provider for auto-discovery
    "ActionProvider",
    "WorkflowActionProvider",
    # Workflow components
    "ActionRegistry",
    "ActionRegistryError",
    "AggregationConfig",
    "WorkflowCache",
    "WorkflowContext",
    "WorkflowExecutor",
    "WorkflowExecutionError",
]
