shape-diagnostics 0.3.1

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

pub mod terminal;