"""领域 Repository 协议 + SQLAlchemy 实现 + 只读视图（ARCH §3.5）。"""

from __future__ import annotations

from ww_core.domain.chapter_repo import (
    ChapterDraftView,
    ChapterRepo,
    ChapterView,
    SqlChapterRepo,
)
from ww_core.domain.character_repo import (
    CharacterWriteRepo,
    CharacterWriteView,
    SqlCharacterWriteRepo,
)
from ww_core.domain.digest_repo import DigestAppendRepo, SqlDigestAppendRepo
from ww_core.domain.foreshadow_repo import (
    ForeshadowLedgerRepo,
    ForeshadowLedgerView,
    SqlForeshadowLedgerRepo,
)
from ww_core.domain.foreshadow_state import (
    CLOSED,
    OPEN,
    OVERDUE,
    PARTIAL,
    ForeshadowStatus,
    InvalidTransition,
    apply_overdue_scan,
    is_overdue,
    transition,
)
from ww_core.domain.injection_repo import (
    EntityRef,
    InjectionOverride,
    InjectionOverrideRepo,
    SqlInjectionOverrideRepo,
)
from ww_core.domain.job_repo import (
    JobRepo,
    JobView,
    SqlJobRepo,
)
from ww_core.domain.outline_write_repo import (
    OutlineWriteRepo,
    OutlineWriteView,
    SqlOutlineWriteRepo,
)
from ww_core.domain.project_repo import (
    ProjectCreate,
    ProjectRepo,
    ProjectView,
    SqlProjectRepo,
)
from ww_core.domain.repositories import DigestView, MemoryRepos
from ww_core.domain.review_repo import ReviewRepo, ReviewView, SqlReviewRepo
from ww_core.domain.rule_repo import (
    RuleListItemView,
    RuleWriteRepo,
    RuleWriteView,
    SqlRuleWriteRepo,
)
from ww_core.domain.style_repo import (
    SqlStyleFingerprintWriteRepo,
    StyleFingerprintView,
    StyleFingerprintWriteRepo,
)
from ww_core.domain.template_repo import (
    SqlTemplateRepo,
    TemplateCreate,
    TemplateRepo,
    TemplateView,
)
from ww_core.domain.world_entity_repo import (
    SqlWorldEntityWriteRepo,
    WorldEntityWriteRepo,
    WorldEntityWriteView,
)

__all__ = [
    "ChapterDraftView",
    "ChapterRepo",
    "ChapterView",
    "SqlChapterRepo",
    "CharacterWriteRepo",
    "CharacterWriteView",
    "SqlCharacterWriteRepo",
    "WorldEntityWriteRepo",
    "WorldEntityWriteView",
    "SqlWorldEntityWriteRepo",
    "DigestAppendRepo",
    "SqlDigestAppendRepo",
    "DigestView",
    "ForeshadowLedgerRepo",
    "ForeshadowLedgerView",
    "SqlForeshadowLedgerRepo",
    "ForeshadowStatus",
    "InvalidTransition",
    "EntityRef",
    "InjectionOverride",
    "InjectionOverrideRepo",
    "SqlInjectionOverrideRepo",
    "JobRepo",
    "JobView",
    "SqlJobRepo",
    "OPEN",
    "PARTIAL",
    "CLOSED",
    "OVERDUE",
    "apply_overdue_scan",
    "is_overdue",
    "transition",
    "MemoryRepos",
    "OutlineWriteRepo",
    "OutlineWriteView",
    "SqlOutlineWriteRepo",
    "ProjectCreate",
    "ProjectRepo",
    "ProjectView",
    "SqlProjectRepo",
    "ReviewRepo",
    "ReviewView",
    "SqlReviewRepo",
    "RuleListItemView",
    "RuleWriteView",
    "RuleWriteRepo",
    "SqlRuleWriteRepo",
    "StyleFingerprintWriteRepo",
    "StyleFingerprintView",
    "SqlStyleFingerprintWriteRepo",
    "TemplateCreate",
    "TemplateRepo",
    "TemplateView",
    "SqlTemplateRepo",
]
