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//! - **SimulationAssetsService**: Simulation asset download from GitHub releases
24//!
25//! # Design Principles
26//!
27//! - **Stateless**: Services should be stateless where possible
28//! - **Reusable**: Services should be usable across multiple commands
29//! - **Testable**: Services should have no CLI dependencies
30//! - **Focused**: Each service has a single, clear responsibility
31
32// Service modules
33pub mod component_catalog;
34pub mod config;
35pub mod deployment;
36pub mod dev;
37pub mod discovery;
38pub mod docker;
39pub mod init_service;
40pub mod logs;
41pub mod model_service;
42pub mod package;
43pub mod process;
44pub mod project;
45pub mod project_template_service;
46pub mod redis;
47pub mod simulation;
48pub mod simulation_assets;
49pub mod template;
50pub mod topology;
51
52// Re-exports
53pub use component_catalog::ComponentCatalogService;
54pub use config::ConfigService;
55pub use deployment::DeploymentService;
56pub use dev::DevService;
57pub use discovery::DiscoveryService;
58pub use docker::DockerService;
59pub use init_service::InitService;
60pub use logs::{LogContentFilters, LogFileFilters, LogsService};
61pub use model_service::ModelService;
62pub use package::PackageService;
63pub use process::ProcessService;
64pub use project::ProjectService;
65pub use project_template_service::ProjectTemplateService;
66pub use redis::RedisService;
67pub use simulation::SimulationService;
68pub use simulation_assets::SimulationAssetsService;
69pub use template::TemplateService;
70pub use topology::{Topology, TopologyService};