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
//! mimobox-sdk: Unified Agent Sandbox API
//!
//! **Smart routing by default, full control for advanced users.**
//!
//! Zero-config sandbox creation with automatic backend selection, plus
//! complete configuration control via [`Config::builder()`].
//!
//! # Quick Start
//!
//! ```rust,no_run
//! use mimobox_sdk::Sandbox;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut sandbox = Sandbox::new()?;
//! let result = sandbox.execute("/bin/echo hello")?;
//! println!("exit: {:?}", result.exit_code);
//! sandbox.destroy()?;
//! # Ok(())
//! # }
//! ```
//!
//! # Feature Gates
//!
//! | Feature | Backend | Default |
//! |---------|---------|---------|
//! | `os` | OS-level (Linux/macOS) | Yes |
//! | `vm` | microVM (Linux + KVM) | No |
//! | `wasm` | Wasm (Wasmtime) | No |
//!
//! # Key Types
//!
//! - [`Sandbox`] — Primary entry point for all sandbox operations
//! - [`Config`] / [`ConfigBuilder`] — SDK configuration with builder pattern
//! - [`ExecuteResult`] — Command execution result (stdout, stderr, exit code, timing)
//! - [`StreamEvent`] — Streaming output event enum
//! - [`SdkError`] / [`ErrorCode`] — Structured error model
//! - [`SandboxSnapshot`] — Opaque snapshot handle
//! - [`PtySession`] — Interactive terminal session
pub use ;
pub use SdkError;
pub use ;
pub use Sandbox;
pub use ;
pub use ;