mecha10_cli/services/
mod.rs

1//! Service layer for CLI business logic
2//!
3//! Services contain reusable business logic that can be shared across multiple
4//! command handlers. Each service is responsible for a specific domain:
5//!
6//! - **RedisService**: Redis connection and pub/sub operations
7//! - **ConfigService**: Project configuration management
8//! - **ProjectService**: Project detection and validation
9//! - **TemplateService**: Template rendering for code generation
10//! - **SimulationService**: Godot simulation generation
11//! - **ProcessService**: Process lifecycle management
12//! - **DockerService**: Docker container operations
13//! - **ComponentCatalogService**: Component discovery and installation
14//! - **PackageService**: Deployment package creation
15//! - **DeploymentService**: Remote deployment via SSH
16//! - **DiscoveryService**: Network node discovery
17//! - **InitService**: Project initialization logic
18//! - **ProjectTemplateService**: Project template file generation
19//! - **LogsService**: Log file collection and filtering
20//! - **DevService**: Development mode operations
21//! - **DevSession**: Development session lifecycle management
22//! - **ModelService**: AI model management and HuggingFace Hub integration
23//!
24//! # Design Principles
25//!
26//! - **Stateless**: Services should be stateless where possible
27//! - **Reusable**: Services should be usable across multiple commands
28//! - **Testable**: Services should have no CLI dependencies
29//! - **Focused**: Each service has a single, clear responsibility
30
31// Service modules
32pub mod component_catalog;
33pub mod config;
34pub mod deployment;
35pub mod dev;
36pub mod discovery;
37pub mod docker;
38pub mod init_service;
39pub mod logs;
40pub mod model_service;
41pub mod package;
42pub mod process;
43pub mod project;
44pub mod project_template_service;
45pub mod redis;
46pub mod simulation;
47pub mod template;
48pub mod topology;
49
50// Re-exports
51pub use component_catalog::ComponentCatalogService;
52pub use config::ConfigService;
53pub use deployment::DeploymentService;
54pub use dev::DevService;
55pub use discovery::DiscoveryService;
56pub use docker::DockerService;
57pub use init_service::InitService;
58pub use logs::{LogContentFilters, LogFileFilters, LogsService};
59pub use model_service::ModelService;
60pub use package::PackageService;
61pub use process::ProcessService;
62pub use project::ProjectService;
63pub use project_template_service::ProjectTemplateService;
64pub use redis::RedisService;
65pub use simulation::SimulationService;
66pub use template::TemplateService;
67pub use topology::{Topology, TopologyService};