trace-stream 0.1.2

Streaming renderer for model token streams: tool-call parsing, thinking-text split, and markdown/syntax highlighting to ANSI
Documentation
// Copyright (c) 2026 Enzo Lombardi
// SPDX-License-Identifier: MIT

//! plank's model-token stream renderer, shared by the `plank` agent and the
//! `plank-console` Turbo Vision monitor.
//!
//! The pipeline is three layers, each usable on its own:
//!
//! - [`dsml`] — the strict parser for the DSML tool-call syntax the model was
//!   trained on.
//! - [`viz`] — [`viz::StreamRenderer`], which splits a raw byte stream into
//!   visible text, thinking text, tool banners and error banners, driving a
//!   [`viz::RenderSink`].
//! - [`render`] — [`render::TokenRenderer`], the byte-at-a-time ANSI markdown
//!   and syntax-highlighting renderer (the ds4 C parity path).

pub mod dsml;
pub mod render;
pub mod sink;
pub mod viz;

pub use sink::TerminalSink;