Update candle to 0.9 (#6913)
This commit is contained in:
@@ -131,8 +131,8 @@ impl ToolInspector for PermissionInspector {
|
||||
}
|
||||
}
|
||||
// 2. Check if it's a readonly or regular tool (both pre-approved)
|
||||
else if self.readonly_tools.contains(tool_name.as_ref())
|
||||
|| self.regular_tools.contains(tool_name.as_ref())
|
||||
else if self.readonly_tools.contains(&**tool_name)
|
||||
|| self.regular_tools.contains(&**tool_name)
|
||||
{
|
||||
InspectionAction::Allow
|
||||
}
|
||||
@@ -153,9 +153,9 @@ impl ToolInspector for PermissionInspector {
|
||||
InspectionAction::Allow => {
|
||||
if goose_mode == GooseMode::Auto {
|
||||
"Auto mode - all tools approved".to_string()
|
||||
} else if self.readonly_tools.contains(tool_name.as_ref()) {
|
||||
} else if self.readonly_tools.contains(&**tool_name) {
|
||||
"Tool marked as read-only".to_string()
|
||||
} else if self.regular_tools.contains(tool_name.as_ref()) {
|
||||
} else if self.regular_tools.contains(&**tool_name) {
|
||||
"Tool pre-approved".to_string()
|
||||
} else {
|
||||
"User permission allows this tool".to_string()
|
||||
|
||||
Reference in New Issue
Block a user