eli 0.5.0

Ease Lives Instantly — hook-first AI agent framework with multi-channel support
1
2
3
4
5
6
7
8
9
10
11
12
//! Tape viewer command.

/// Open the tape viewer web UI.
pub(crate) async fn tape_command(port: u16, dir: Option<std::path::PathBuf>) -> anyhow::Result<()> {
    let tapes_dir = dir.unwrap_or_else(|| {
        dirs::home_dir()
            .unwrap_or_else(|| std::path::PathBuf::from("."))
            .join(".eli")
            .join("tapes")
    });
    crate::builtin::tape_viewer::serve(tapes_dir, port).await
}