"""
Persistent transclusion context for Information Spaces.

This package extends the existing TransclusionContext with:
- Database persistence for context state
- Cross-space reference resolution
- Reference graph for dependency tracking
- Variable scope layers (space, document, request)
- Event-driven cache invalidation
"""

from .persistent_context import (
    SpaceTransclusionContext,
    ScopedVariables,
    VariableScope,
    CrossSpaceResolver,
)
from .reference_graph import (
    ReferenceGraph,
    PersistentReferenceGraph,
    DependencyNode,
)
from .cache_invalidation import (
    RenderCache,
    CacheEntry,
    CacheInvalidator,
    create_invalidation_handler,
)

__all__ = [
    # Persistent context
    "SpaceTransclusionContext",
    "ScopedVariables",
    "VariableScope",
    "CrossSpaceResolver",
    # Reference graph
    "ReferenceGraph",
    "PersistentReferenceGraph",
    "DependencyNode",
    # Cache invalidation
    "RenderCache",
    "CacheEntry",
    "CacheInvalidator",
    "create_invalidation_handler",
]
