isBashTool returns true if the tool name represents a bash/shell invocation. It matches the generic "bash" / "Bash" tool names used by most engines and the per-command "bash_*" entries generated by the Codex log parser.
(name string)
| 588 | // It matches the generic "bash" / "Bash" tool names used by most engines and the |
| 589 | // per-command "bash_*" entries generated by the Codex log parser. |
| 590 | func isBashTool(name string) bool { |
| 591 | lower := strings.ToLower(name) |
| 592 | return lower == "bash" || strings.HasPrefix(lower, "bash_") //nolint:tolowerequalfold |
| 593 | } |
| 594 | |
| 595 | // computeToolCallsDiff diffs engine-level tool calls from two LogMetrics values. |
| 596 | // Returns nil when both metrics have no tool call data. |
no test coverage detected