"""
History tracking module for Information Spaces.

Provides optional git-based version control for space content,
enabling commit history, diffs, and version restoration.
"""

from .models import (
    Commit,
    Branch,
    HistoryEntry,
    DiffResult,
    DiffLine,
    DiffType,
    HistoryConfig,
)
from .interfaces import (
    IHistoryBackend,
    IHistoryQuery,
)
from .git_backend import GitHistoryBackend, GitError
from .events import GitHistoryEventHandler, HistoryEventCoordinator
from .queries import HistoryQueryService

__all__ = [
    # Models
    "Commit",
    "Branch",
    "HistoryEntry",
    "DiffResult",
    "DiffLine",
    "DiffType",
    "HistoryConfig",
    # Interfaces
    "IHistoryBackend",
    "IHistoryQuery",
    # Implementations
    "GitHistoryBackend",
    "GitError",
    "GitHistoryEventHandler",
    "HistoryEventCoordinator",
    "HistoryQueryService",
]
