1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
//! Utility modules for the OSVM CLI
//!
//! This directory contains various utility modules that provide the core functionality
//! for the OSVM CLI, including SVM and node management, SSH deployment, and UI components.
//! Also includes utility wrappers for external dependencies.
use DeserializeOwned;
use ;
// UI and display utilities
/// Agent chat interface using cursive-multiplex with MCP tools
/// CLI-based agent execution without UI
/// Color formatting utilities for terminal output
/// Dashboard utilities for interactive SVM monitoring
/// Example command utilities for displaying usage examples
/// Custom keybinding system for agent interfaces
/// Node dashboard utilities for interactive node monitoring
/// Plugin system for extending functionality
/// Advanced theme customization system
// Core functionality
/// AST-based code analysis for enhanced fix suggestions
/// Security audit system for comprehensive vulnerability analysis
/// Modular audit system with structured vulnerability checks
/// Structured Rust code parser for security analysis
/// Template-based report generation system
/// Integration tests for audit system with AI fallback scenarios
/// Blueprint theme system for consistent UI styling
/// Granular circuit breaker system for AI services
/// Code snippet extraction for DeepLogic AI Analysis
/// Debug logging utilities with configurable verbosity levels
/// Simple devnet proxy for development
/// Devnet RPC node that syncs with real blockchain
/// eBPF deployment utilities for program deployment
/// Enhanced Git repository management with dynamic branch detection
/// Local RPC node deployment and management
/// Mainnet RPC connectivity
/// Markdown rendering for terminal output
/// Node management utilities for monitoring and controlling nodes
/// Configurable AI prompt templates system
/// Simple devnet proxy implementation
/// Solana RPC connectivity and monitoring
/// SSH deployment utilities for remote node deployment
/// SVM information and management utilities
// Self-repair and diagnostics
/// System diagnostics and health monitoring
/// Continuous log monitoring and automatic repair
/// OSVM internal logging system for tracking events and decisions
/// Self-repair system for automatic dependency management
// External dependency wrappers
/// Loads a YAML configuration file and deserializes it into the specified type
///
/// # Arguments
///
/// * `config_file` - Path to the YAML configuration file
///
/// # Returns
///
/// * `Result<T, io::Error>` - The deserialized configuration or an error
///
/// # Examples
///
/// ```
/// use osvm::utils::load_keys_config_file;
/// use serde::Deserialize;
///
/// #[derive(Deserialize)]
/// struct Config {
/// key: String,
/// }
///
/// let config: Config = load_keys_config_file("config.yml").unwrap();
/// ```