(block: &Value)
| 766 | } |
| 767 | |
| 768 | fn block_text(block: &Value) -> Option<&str> { |
| 769 | let block_map = block.as_object()?; |
| 770 | if block_map.get("type").and_then(Value::as_str) != Some("text") { |
| 771 | return None; |
| 772 | } |
| 773 | block_map.get("text").and_then(Value::as_str) |
| 774 | } |
| 775 | |
| 776 | fn first_text_from_claude_content(content: &Value) -> Option<String> { |
| 777 | match content { |
no outgoing calls
no test coverage detected