You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: implement interface segregation for ExtManager
Addresses interface pollution by separating concerns between general extension
management and AI-specific plugin management using Interface Segregation Principle.
Changes:
- Split ExtManager into three focused interfaces:
* ExtManager: handles general extension start/stop/download operations
* AIPluginManager: manages AI plugin registration, discovery, health checks
* CompositeManager: combines both interfaces for full functionality
- Updated constructor functions to return CompositeManager type
- Fixed test isolation issues by using NewStoreExtManagerInstance in tests
- All Go server tests and frontend tests (34/34) passing
This refactoring improves code maintainability, follows SOLID principles,
and maintains backward compatibility while enabling independent development
of AI and general extension features.
0 commit comments