Skip to main content

Module truncation

Module truncation 

Source

Structs§

TruncatedOutput

Functions§

formatted_truncate
Grounded Output Truncation Module. Ports the “Middle-Truncation” patterns from Codex-RS to ensure Hematite preserves exit codes and headers while providing line metadata.
truncate_middle
Truncate a string by keeping the beginning and end, removing the middle. Ensures UTF-8 safety by finding valid character boundaries.