Check if a tool name is a file-modifying tool that should trigger snapshots
(tool_name: &str)
| 144 | |
| 145 | /// Check if a tool name is a file-modifying tool that should trigger snapshots |
| 146 | pub fn is_file_modifying_tool(tool_name: &str) -> bool { |
| 147 | matches!(tool_name, "write" | "edit" | "patch") |
| 148 | } |
| 149 | |
| 150 | /// Extract the file path from tool arguments for file-modifying tools |
| 151 | pub fn extract_file_path(tool_name: &str, args: &serde_json::Value) -> Option<String> { |
no outgoing calls
no test coverage detected