feat(04-01): create memory module structure and SQLite manager

- Created src/memory module with MemoryManager stub
- Created src/memory/storage subpackage
- Implemented SQLiteManager with connection management and thread safety
- Database schema supports conversations, messages, and metadata
- Includes proper indexing and error handling

Schema:
- conversations table: id, title, timestamps, metadata, session stats
- messages table: id, conversation_id, role, content, importance, embedding_ref
- Foreign key constraints and performance indexes
- Thread-local connections with WAL mode for concurrency
This commit is contained in:
Mai Development
2026-01-27 22:50:02 -05:00
parent 61db47e8d6
commit bdba17773c
3 changed files with 596 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
"""
Storage module for memory operations.
Provides SQLite database management and vector storage capabilities
for conversation persistence and semantic search.
"""
from .sqlite_manager import SQLiteManager
# from .vector_store import VectorStore # Will be added in Task 2
__all__ = ["SQLiteManager", "VectorStore"]