"""Collection state tracking for change detection."""

from __future__ import annotations

from dataclasses import dataclass, field
from datetime import datetime


@dataclass
class CollectionState:
    """Persisted state for a tracked collection, used for change detection."""

    collection_id: str
    asset_ids: set[str] = field(default_factory=set)
    pending_asset_ids: set[str] = field(default_factory=set)
    name: str = ""
    shared: bool = False
    last_updated: datetime | None = None
