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 template_download;
53pub mod topology;
54
55// Re-exports
56pub use auth::AuthService;
57pub use component_catalog::ComponentCatalogService;
58pub use config::ConfigService;
59pub use credentials::CredentialsService;
60pub use deployment::DeploymentService;
61pub use dev::DevService;
62pub use discovery::DiscoveryService;
63pub use docker::DockerService;
64pub use init_service::InitService;
65pub use logs::{LogContentFilters, LogFileFilters, LogsService};
66pub use model_service::ModelService;
67pub use package::PackageService;
68pub use process::ProcessService;
69pub use project::ProjectService;
70pub use project_template_service::ProjectTemplateService;
71pub use redis::RedisService;
72pub use simulation::SimulationService;
73pub use simulation_assets::SimulationAssetsService;
74pub use template::TemplateService;
75pub use template_download::TemplateDownloadService;
76pub use topology::{Topology, TopologyService};