"""Session persistence — the PostgreSQL store, split by concern.

* `ddl` — schema definitions and the migrations run on first use.
* `rows` — `Message` <-> row mapping and archive-aware session hydration.
* `store` — `PgSessionStore`; every public behavior lives here.

`navi.core.pg_session_store` remains as a compatibility shim; new code should
import from here.
"""

from .rows import repair_dangling_tool_calls
from .store import PgSessionStore, pending_sweep_loop

__all__ = ["PgSessionStore", "pending_sweep_loop", "repair_dangling_tool_calls"]
