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