rho-coding-agent 1.48.0

A lightweight agent harness inspired by Pi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::tui::markdown::txm::layout_tree::LayoutNode;
use crate::tui::markdown::txm::style::Style;

pub trait Backend {
    type Output;
    type Error: std::error::Error;

    fn render(&self, tree: &LayoutNode) -> Result<Self::Output, Self::Error>;
}

pub trait RenderTarget {
    fn set(&mut self, x: usize, y: usize, ch: char, style: Style);
    fn fill_row(&mut self, y: usize, x_start: usize, x_end: usize, ch: char, style: Style);
}