"""Memory Layer - Persistence and history tracking.
This module provides:
- Resources: Read-only access to change history, reports, decisions, and insights
- Tools: Write operations for saving snapshots, logging decisions, and recording learnings
- Internal functions: Data access functions used by resources and tools
"""
from .database import init_database, get_db_connection
from .change_log import log_change, get_recent_changes
from .report_history import store_report, get_report_history
from .decisions import record_decision, get_decisions
from .learnings import add_learning, get_learnings
from .resources import register_memory_resources, get_memory_resources, read_memory_resource
from .tools import register_memory_tools
__all__ = [
# Database
"init_database",
"get_db_connection",
# Internal data access functions
"log_change",
"get_recent_changes",
"store_report",
"get_report_history",
"record_decision",
"get_decisions",
"add_learning",
"get_learnings",
# MCP registration functions
"register_memory_resources",
"register_memory_tools",
# Resource access functions (for Phase 3 server integration)
"get_memory_resources",
"read_memory_resource",
]