(input)
| 515 | return truncate(command, TOOL_SUMMARY_MAX_LENGTH); |
| 516 | }, |
| 517 | getActivityDescription(input) { |
| 518 | if (!input?.command) { |
| 519 | return 'Running command'; |
| 520 | } |
| 521 | const desc = input.description ?? truncate(input.command, TOOL_SUMMARY_MAX_LENGTH); |
| 522 | return `Running ${desc}`; |
| 523 | }, |
| 524 | async validateInput(input: BashToolInput): Promise<ValidationResult> { |
| 525 | if (feature('MONITOR_TOOL') && !isBackgroundTasksDisabled && !input.run_in_background) { |
| 526 | const sleepPattern = detectBlockedSleepPattern(input.command); |
nothing calls this directly
no test coverage detected