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
//! TUI (Terminal User Interface) for DSL workflow management
//!
//! This module provides an interactive REPL-style terminal interface for creating,
//! editing, and executing DSL workflows. It follows hexagonal architecture patterns,
//! treating the TUI as a primary adapter that drives the DSL application layer.
//!
//! # Architecture
//!
//! - `app.rs`: Core application state, event loop, view router, modal system
//! - `events.rs`: Event handling and input processing
//! - `ui/`: View components (workflow list, editor, execution monitor, help)
//! - `state.rs`: Application state management
//! - `theme.rs`: Color schemes and styling
//! - `help/`: Comprehensive help and documentation system
//!
//! # Usage
//!
//! ```no_run
//! use periplon_sdk::tui::TuiApp;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut app = TuiApp::new()?;
//! app.run().await?;
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
/// Type alias for backward compatibility and clearer usage
pub type TuiApp = App;