(parsed: &Value)
| 120 | } |
| 121 | |
| 122 | fn tool_input_command(parsed: &Value) -> &str { |
| 123 | parsed |
| 124 | .get("tool_input") |
| 125 | .and_then(|ti| ti.get("command")) |
| 126 | .and_then(Value::as_str) |
| 127 | .unwrap_or_default() |
| 128 | } |
| 129 | |
| 130 | /// The `tool_input.command` string, if any (Bash's shell command). Empty when |
| 131 | /// absent. Shared with the Claude hint path so it reads the command from the |
no outgoing calls
no test coverage detected