shape_diagnostics/render.rs
1//! Renderers for [`crate::Diagnostic`].
2//!
3//! Each renderer consumes an LSDS [`crate::Diagnostic`] and produces a
4//! representation suited to its medium. **The renderer never modifies the
5//! diagnostic**; it is read-only output formatting.
6//!
7//! # Renderers
8//!
9//! - [`terminal`] — human-readable plain-text output. Approximates the
10//! shape of today's `ShapeError::SemanticError` text rendering for
11//! borrow errors.
12//!
13//! Future renderers (post first session) per ADR-006 §9.1:
14//!
15//! - `lsp` — produces `lsp_types::Diagnostic`.
16//! - `mcp` — produces structured MCP tool responses.
17
18pub mod terminal;