Commit Graph

3 Commits

Author SHA1 Message Date
Jamie Pine
478f3136c5 refactor: enhance CQRS implementation with modular command and query traits
- Updated the `Command` trait to support modular output types, eliminating the need for a centralized `ActionOutput` enum.
- Refactored the `execute_command` function for direct command execution, improving type safety and performance by avoiding unnecessary JSON serialization.
- Implemented the new `ListLibrariesQuery` and associated output types for library listing operations, enhancing the query capabilities of the API.
- Updated existing actions like `LibraryCreateAction` and `VolumeTrackAction` to utilize the new modular command structure, simplifying their implementations.

These changes improve the modularity and maintainability of the action system while preserving existing functionality.
2025-09-08 20:08:44 -04:00
Jamie Pine
5f68a0d697 refactor: implement CQRS pattern with Command and Query traits
- Introduced a new `Command` trait to streamline action execution, reducing boilerplate and enhancing type safety.
- Updated the `Core` API to include `execute_command` and `execute_query` methods, providing a unified interface for command and query operations.
- Implemented the `Command` trait for `LibraryCreateAction`, ensuring compatibility with existing ActionManager functionality.
- Enhanced the API design documentation to reflect the new CQRS structure and its benefits.

These changes improve the clarity and maintainability of the action system while preserving existing functionality.
2025-09-08 19:36:37 -04:00
Jamie Pine
e129a90e3a refactor: remove API design document and update cloud submodule
- Deleted the `API_DESIGN_DOC.md` file, which contained the proposed architecture for the Spacedrive CLI and daemon refactoring.
- Updated the cloud submodule to reflect a dirty state, indicating local changes.

These changes streamline the project by removing outdated documentation and ensuring the cloud submodule is accurately represented.
2025-09-08 19:15:49 -04:00