trace_stream/lib.rs
1// Copyright (c) 2026 Enzo Lombardi
2// SPDX-License-Identifier: MIT
3
4//! plank's model-token stream renderer, shared by the `plank` agent and the
5//! `plank-console` Turbo Vision monitor.
6//!
7//! The pipeline is three layers, each usable on its own:
8//!
9//! - [`dsml`] — the strict parser for the DSML tool-call syntax the model was
10//! trained on.
11//! - [`viz`] — [`viz::StreamRenderer`], which splits a raw byte stream into
12//! visible text, thinking text, tool banners and error banners, driving a
13//! [`viz::RenderSink`].
14//! - [`render`] — [`render::TokenRenderer`], the byte-at-a-time ANSI markdown
15//! and syntax-highlighting renderer (the ds4 C parity path).
16
17pub mod dsml;
18pub mod render;
19pub mod sink;
20pub mod viz;
21
22pub use sink::TerminalSink;