use looprs_core::ports::UserOutput;
use crate::ui;
pub struct UiOutput;
impl UserOutput for UiOutput {
fn info(&self, msg: &str) {
ui::info(msg);
}
fn warn(&self, msg: &str) {
ui::warn(msg);
}
fn error(&self, msg: &str) {
ui::error(msg);
}
fn assistant_text(&self, text: &str) {
ui::assistant_text(text);
}
fn tool_call(&self, tool_name: &str, input_preview: &str) {
ui::tool_call(tool_name, input_preview);
}
fn tool_ok(&self) {
ui::tool_ok();
}
fn tool_err(&self, err_msg: &str) {
ui::tool_err(err_msg);
}
}