swactor/crates/runtime-dashboard/examples/remote_tui.rs
zacheryasc 076f1194bf feat: tui, agent interface, stats hook (#29)
Runtime dashboard now features a TUI option and an interface for LLM tool use. Removed some bloat from stats collecting and replaced with a hook function to dump runtime stats into.
2026-02-11 15:23:26 +00:00

13 lines
412 B
Rust

use runtime_dashboard::tui::types::RuntimeEndpoint;
use runtime_dashboard::tui::{TuiConfig, start_tui_remote};
fn main() -> std::io::Result<()> {
let url = std::env::args()
.nth(1)
.unwrap_or_else(|| "http://localhost:9090".into());
let endpoint = RuntimeEndpoint::from_url(&url);
eprintln!("Connecting to {} ...", endpoint);
start_tui_remote(endpoint, TuiConfig::default())
}