pub fn truncate_content(s: &str, max: usize) -> StringExpand description
Re-export the canonical truncate from codemem-core.
Truncate a string to max bytes, appending “…” if truncated.
Handles multi-byte UTF-8 safely by finding the nearest char boundary.