(tool: &str)
| 746 | } |
| 747 | |
| 748 | fn tool_to_permission(tool: &str) -> &str { |
| 749 | match tool { |
| 750 | "write" | "edit" | "multiedit" | "apply_patch" | "patch" => "edit", |
| 751 | "ls" => "list", |
| 752 | _ => tool, |
| 753 | } |
| 754 | } |
| 755 | |
| 756 | fn map_loaded_permission_action(action: &LoadedPermissionAction) -> PermissionAction { |
| 757 | match action { |
no outgoing calls
no test coverage detected