StripReadToolLineNumbers removes line-number prefixes from Read tool output.
(output string)
| 288 | |
| 289 | // StripReadToolLineNumbers removes line-number prefixes from Read tool output. |
| 290 | func StripReadToolLineNumbers(output string) string { |
| 291 | return lineNumberRe.ReplaceAllString(output, "") |
| 292 | } |
| 293 | |
| 294 | // shellMetaRe matches common shell metadata lines. |
| 295 | var shellMetaRe = regexp.MustCompile(`(?im)^(exit\s*code:\s*\d+|wall\s*time:.*|output:)\s*$`) |
no outgoing calls