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
//! ORCS Application Layer.
//!
//! This crate provides:
//!
//! - **[`OrcsApp`]**: High-level application wrapper with HIL integration
//! - **Re-exports**: Convenient access to all ORCS crates
//! - **[`AppError`]**: Unified application-level error type
//!
//! # Quick Start
//!
//! ```ignore
//! use orcs_app::{OrcsApp, NoOpResolver};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let mut app = OrcsApp::builder(NoOpResolver).build().await?;
//! app.run_interactive().await?;
//! Ok(())
//! }
//! ```
//!
//! # Crate Architecture
//!
//! ```text
//! ┌─────────────────────────────────────────────────────────────┐
//! │ Plugin SDK Layer │
//! ├─────────────────────────────────────────────────────────────┤
//! │ orcs-types, orcs-event, orcs-component │
//! └─────────────────────────────────────────────────────────────┘
//! ↓
//! ┌─────────────────────────────────────────────────────────────┐
//! │ Runtime Layer │
//! ├─────────────────────────────────────────────────────────────┤
//! │ orcs-runtime (auth, channel, engine, components, io) │
//! └─────────────────────────────────────────────────────────────┘
//! ↓
//! ┌─────────────────────────────────────────────────────────────┐
//! │ Application Layer ◄── HERE │
//! ├─────────────────────────────────────────────────────────────┤
//! │ orcs-app (OrcsApp + re-exports + AppError) │
//! └─────────────────────────────────────────────────────────────┘
//! ↓
//! ┌─────────────────────────────────────────────────────────────┐
//! │ Frontend Layer │
//! ├─────────────────────────────────────────────────────────────┤
//! │ orcs-cli (uses OrcsApp → interactive mode) │
//! └─────────────────────────────────────────────────────────────┘
//! ```
//!
//! # Error Handling Strategy
//!
//! ```text
//! Internal Errors (ChannelError, EngineError, etc.)
//! ↓ From impl
//! AppError (this crate)
//! ↓ anyhow::Error / eprintln
//! CLI output
//! ```
pub use ;
pub use AppError;
pub use ;
// Re-export from Plugin SDK Layer
pub use ;
pub use ;
pub use ;
// Re-export from Runtime Layer
pub use ;
// Re-export configuration types
pub use ;
// Re-export sandbox types
pub use ;
// Re-export work directory type
pub use WorkDir;