- Deleted `SEMANTIC_TAGGING_IMPLEMENTATION_SUMMARY.md`, `SEMANTIC_TAGGING_PRODUCTION_IMPLEMENTATION.md`, `SEMANTIC_TAGGING_PRODUCTION_READINESS.md`, `SEMANTIC_TAGGING_USAGE_GUIDE.md`, and other related files as they are no longer relevant to the current implementation.
- This cleanup helps streamline the documentation and focuses on the most up-to-date resources for the semantic tagging system.
This commit enhances the clarity and maintainability of the project documentation.
- Renamed `semantic_tag_manager` to `manager` and `semantic_tagging_facade` to `facade` for clarity and consistency.
- Removed the `semantic_tag_manager.rs` and `semantic_tagging_facade.rs` files as part of the restructuring.
- Updated module imports and re-exports in `mod.rs` to reflect the new naming conventions.
- Cleaned up whitespace in the codebase for improved readability.
This commit enhances the organization of the semantic tagging system, paving the way for future development.
- Reintroduced the `metadata` module in the operations layer for better organization.
- Replaced `UserMetadataService` with `UserMetadataManager` for improved clarity in user metadata handling.
- Updated `SemanticTagService` references to `SemanticTagManager` in tag operations for consistency.
- Enhanced documentation in the `tags` module to clarify the purpose and functionality of the tag operations.
- Removed deprecated services and cleaned up imports to streamline the codebase.
This commit improves the structure and readability of the semantic tagging system, setting the stage for future enhancements.
- Added `regex` dependency for improved text processing capabilities.
- Cleaned up code in various entity files by removing unnecessary whitespace and comments.
- Updated `Cargo.toml` to include the new `regex` dependency.
- Refactored database entity files to improve readability and maintainability.
This commit lays the groundwork for more advanced text processing features in the semantic tagging system.
This commit introduces the foundational elements for the semantic tagging system. It includes:
- **Domain Models**: New modules for `semantic_tag`, `semantic_tag_validation`, and related types.
- **Service Layer**: Implementation of `SemanticTagService` and `UserMetadataService` with core CRUD and search operations.
- **Action System Integration**: Actions for creating, applying, and searching tags (`CreateTagAction`, `ApplyTagsAction`, `SearchTagsAction`).
- **Database Migrations**: Schema definitions for semantic tagging tables.
- **Facade API**: `SemanticTaggingFacade` for simplified access to tagging features.
- **Validation**: Comprehensive validation rules for tag names, namespaces, and business logic.
- **Tests**: Unit tests for domain models and validation rules.
This lays the groundwork for advanced features like AI-driven suggestions, context resolution, and hierarchical organization.
Co-authored-by: ijamespine <ijamespine@me.com>
- Updated `bincode` dependency to version 1.3.3 for improved performance and security.
- Refactored error handling in `error.rs` to use `bincode::Error` instead of `bincode::ErrorKind`, ensuring better error management.
- Enhanced macro definitions in `macros.rs` to utilize the updated error handling structure.
- Improved error reporting in `manager.rs` when creating directories, providing clearer context for IO errors.
- Added a new design document for Sync Conduits, detailing the architecture and implementation plan for file synchronization in Spacedrive.
- Refactored argument handling in the job and library domains to improve clarity and consistency.
- Updated imports to use the correct input types for actions in the library and location modules.
- Enhanced type annotations for better readability and maintainability in the codebase.
- Added confirm_or_abort utility for dangerous operations
- Added confirmation prompts to:
- location remove
- library delete (new command)
- network revoke
- Kept our modular CLI structure with domains/ subdirectories
- Removed old flat .rs files that were moved to modular structure
- Deleted several domain modules including file, index, job, library, location, and network, which were no longer needed in the CLI structure.
- Cleaned up the codebase to improve maintainability and reduce complexity by removing obsolete functionality.
- Updated the module structure in `util/mod.rs` to reflect these changes.
- Updated the CoreContext struct to rename the session_state field to session for clarity.
- Refactored all instances in the codebase where session_state was used, ensuring consistency across ActionManager, JobManager, LibraryManager, and various query implementations.
- Enhanced session management by retrieving the current library ID directly from the session, improving code readability and maintainability.
- Added a new documentation file outlining the finalization plan for the Spacedrive refactor, detailing remaining tasks and objectives for migrating to a CQRS architecture.
- Implemented session state management to track the current library context across operations, improving the overall architecture's modularity and maintainability.
- Refactored CLI commands and core components to utilize the new session state service, ensuring a more consistent and error-free user experience.
- Enhanced error handling and logging in various modules to facilitate debugging and improve reliability.
- Introduced a new `ARCHITECTURE.md` file detailing the system overview, core architecture, daemon infrastructure, operations system, CLI client, data flow, key design decisions, implementation details, and future improvements.
- Enhanced CLI commands to validate instance names for security and check if the daemon is already running before starting a new instance.
- Updated the daemon's RPC server to handle requests concurrently and improved error handling with structured error types.
- Refactored action and query execution to support async operations more effectively.
Initialize networking service and register protocols.
Revoke action now removes device from persistence.
Co-authored-by: ijamespine <ijamespine@me.com>
This commit introduces a comprehensive set of network operations, including initialization, starting, stopping, pairing, revoking devices, and querying network status.
Co-authored-by: ijamespine <ijamespine@me.com>
- Updated the subproject commit to indicate a dirty state.
- Commented out the unused import of `PathBuf` in `daemon.rs` for clarity.
- Added a test module in `registry.rs` to list registered operations and ensure at least one action or query is registered.
- Registered core actions for library creation, deletion, export, renaming, and location management, improving modularity and consistency in action handling.
These changes enhance the reliability of the operation registration process and improve code clarity.
- Removed unnecessary whitespace in `cqrs.rs` to enhance code cleanliness.
- Reorganized imports in `addressing.rs` for better clarity and consistency.
- Introduced new input types for actions, including `Input` associated types in `CoreAction` and `LibraryAction`, promoting a more modular design.
- Updated action implementations to utilize the new input structures, improving maintainability and reducing redundancy.
- Enhanced event handling in `event.rs` to ensure proper library ID filtering.
These changes improve the overall structure and maintainability of the action and query systems while ensuring a consistent API surface.
- Added the `op!` macro to streamline the registration of library actions, core actions, and queries, reducing boilerplate and promoting consistency across the codebase.
- Implemented helper macros for generating method strings for actions and queries, enhancing clarity in operation declarations.
- Updated existing file operations (copy, delete, duplicate detection) to utilize the new macro, simplifying their input and action structures.
- Introduced comprehensive documentation for the operations initialization API, outlining usage patterns and conversion mechanisms.
These changes significantly enhance the modularity and maintainability of the operation registration process while ensuring a consistent API surface.
- Refactored the `ActionManager` to improve the dispatching of core and library-scoped actions, enhancing clarity and maintainability.
- Updated action input structures to remove unnecessary library ID fields, promoting a cleaner API and reducing redundancy.
- Enhanced the `dispatch_library` method to accept library ID as a parameter, simplifying the action execution process.
- Improved validation and error handling across various action implementations, ensuring consistent feedback and robustness.
These changes significantly enhance the modularity and maintainability of the action system while ensuring a consistent API surface.
- Updated the action registration macros from `register_action_input!` to `register_library_action_input!` to better reflect their purpose and improve clarity in the codebase.
- Adjusted related documentation and input structures to ensure consistency with the new naming convention.
- Enhanced the organization of input types for file operations and library management, promoting better modularity and maintainability.
These changes improve the clarity and consistency of the action registration process across the codebase.
- Updated the subproject commit to indicate a dirty state.
- Added a suite of tests for verifying the registration of queries and actions, ensuring proper naming conventions and the absence of duplicates.
- Implemented debugging output to list registered operations, enhancing traceability and verification of the inventory system.
These changes improve the reliability of the operation registration process and facilitate easier debugging.