Skip to main content

summarize_entry_point_kinds

Function summarize_entry_point_kinds 

Source
pub fn summarize_entry_point_kinds<S: BuildHasher>(
    counts: &HashMap<EntryPointKind, usize, S>,
) -> Vec<String>
Expand description

Render a per-kind count map as a sorted list of human-friendly summary lines for the find_dead_code MCP tool’s entry_points_detected field.

Each line follows the shape "<count> <label>" — e.g. "12 framework-dispatched (MCP tools)", "3 library exports". The output is sorted lexicographically so the surface order is deterministic across calls.

Lives in ripvec-core so the MCP tool wrapper and any future CLI consumer share a single labelling convention. Added in 4.1.1 (Wave 1 Front A node A4) alongside EntryPointKind::FrameworkDispatched.