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 auth;
34pub mod component_catalog;
35pub mod config;
36pub mod credentials;
37pub mod deployment;
38pub mod dev;
39pub mod discovery;
40pub mod docker;
41pub mod init_service;
42pub mod logs;
43pub mod model_service;
44pub mod package;
45pub mod process;
46pub mod project;
47pub mod project_template_service;
48pub mod redis;
49pub mod simulation;
50pub mod simulation_assets;
51pub mod template;
52pub mod topology;
53
54// Re-exports
55pub use auth::AuthService;
56pub use component_catalog::ComponentCatalogService;
57pub use config::ConfigService;
58pub use credentials::CredentialsService;
59pub use deployment::DeploymentService;
60pub use dev::DevService;
61pub use discovery::DiscoveryService;
62pub use docker::DockerService;
63pub use init_service::InitService;
64pub use logs::{LogContentFilters, LogFileFilters, LogsService};
65pub use model_service::ModelService;
66pub use package::PackageService;
67pub use process::ProcessService;
68pub use project::ProjectService;
69pub use project_template_service::ProjectTemplateService;
70pub use redis::RedisService;
71pub use simulation::SimulationService;
72pub use simulation_assets::SimulationAssetsService;
73pub use template::TemplateService;
74pub use topology::{Topology, TopologyService};