MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / tool_to_permission

Function tool_to_permission

crates/opencode-agent/src/agent.rs:748–754  ·  view source on GitHub ↗
(tool: &str)

Source from the content-addressed store, hash-verified

746}
747
748fn 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
756fn map_loaded_permission_action(action: &LoadedPermissionAction) -> PermissionAction {
757 match action {

Callers 2

evaluateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected