gnaw-ctx 0.1.1

Command-line and TUI tool that turns a codebase into an LLM-ready prompt (installs the `gnaw` binary).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! CLI-side rendered-prompt intermediate.
//!
//! The pipeline produces `gnaw_core::pipeline::Rendered`; the CLI wraps it with
//! the presentation fields its output + split stages read. Lives here, not in
//! core, because it's a frontend concern — this type left `gnaw_core::session`
//! when the eager session was deleted. A REST/MCP frontend shapes its own
//! response from `Rendered` and doesn't use this.

use gnaw_core::pipeline::FindingDto;

pub struct RenderedPrompt {
    pub prompt: String,
    pub token_count: usize,
    pub model_info: &'static str,
    pub secret_findings: Vec<FindingDto>,
}