Modular Architecture Refactor
This release refactors the monolithic service architecture into focused, single-responsibility modules with comprehensive test coverage.
Architecture Improvements
- SQLite Repositories (
src/services/sqlite/) - Modular repositories for sessions, observations, prompts, summaries, and timeline - Worker Agents (
src/services/worker/agents/) - Extracted response processing, error handling, and session cleanup - Search Strategies (
src/services/worker/search/) - Modular search with Chroma, SQLite, and Hybrid strategies plus orchestrator - Context Generation (
src/services/context/) - Separated context building, token calculation, formatters, and renderers - Infrastructure (
src/services/infrastructure/) - Graceful shutdown, health monitoring, and process management - Server (
src/services/server/) - Express server setup, middleware, and error handling
Test Coverage
- 595 tests across 36 test files
- 1,120 expect() assertions
- Coverage for SQLite repos, worker agents, search, context, infrastructure, and server modules
Session ID Refactor
- Aligned tests with NULL-based memory session initialization pattern
- Updated
SESSION_ID_ARCHITECTURE.mddocumentation
Other Improvements
- Added missing logger imports to 34 files for better observability
- Updated esbuild and MCP SDK to latest versions
- Removed
bun.lockfrom version control
Full Changelog: v8.5.6...v8.5.7