cherry-studio/src/main
Vaayne 002a443281 🏗️ refactor: restructure agents service with migration system and modular architecture
BREAKING CHANGE: Major refactoring of agents service structure
- Split monolithic db.ts into focused query modules (agent, session, sessionLog)
- Implement comprehensive migration system with transaction support
- Reorganize services into dedicated services/ subdirectory
- Add production-ready schema versioning with rollback capability

### New Architecture:
- database/migrations/: Version-controlled schema evolution
- database/queries/: Entity-specific CRUD operations
- database/schema/: Table and index definitions
- services/: Business logic layer (AgentService, SessionService, SessionLogService)

### Key Features:
-  Migration system with atomic transactions and checksums
-  Modular query organization by entity type
-  Backward compatibility maintained for existing code
-  Production-ready rollback support
-  Comprehensive validation and testing

### Benefits:
- Single responsibility: Each file handles one specific concern
- Better maintainability: Easy to locate and modify entity-specific code
- Team-friendly: Reduced merge conflicts with smaller focused files
- Scalable: Simple to add new entities without cluttering existing code
- Production-ready: Safe schema evolution with migration tracking

All existing functionality preserved. Comprehensive testing completed (1420 tests pass).
2025-09-12 17:31:30 +08:00
..
apiServer 🏗️ refactor: restructure agents service with migration system and modular architecture 2025-09-12 17:31:30 +08:00
configs fix[SelectionAssistant]: shift+click behavior in macOS and clipboard behavior in Windows (#8390) 2025-07-23 17:24:26 +08:00
integration feat: add cherryin provider (#9681) 2025-08-30 20:09:35 +08:00
knowledge Refactor/migrate zod v4 (#10002) 2025-09-07 16:39:22 +08:00
mcpServers Refactor/migrate zod v4 (#10002) 2025-09-07 16:39:22 +08:00
services 🏗️ refactor: restructure agents service with migration system and modular architecture 2025-09-12 17:31:30 +08:00
utils ci: auto i18n (#9889) 2025-09-04 19:51:15 +08:00
bootstrap.ts refactor: move initAppDataDir function to a new utils module (#8337) 2025-07-21 15:46:14 +08:00
config.ts feat: add cherryin provider (#9681) 2025-08-30 20:09:35 +08:00
constant.ts feat: support portable config dir (#5039) 2025-04-24 17:23:56 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts 🏗️ refactor: restructure agents service with migration system and modular architecture 2025-09-12 17:31:30 +08:00
ipc.ts Feat/api server (#9855) 2025-09-11 09:51:29 +08:00