( context: ToolPermissionContext, tool: Pick<Tool, 'name' | 'mcpInfo'>, )
| 295 | * Check if the tool is listed in the always ask rules |
| 296 | */ |
| 297 | export function getAskRuleForTool( |
| 298 | context: ToolPermissionContext, |
| 299 | tool: Pick<Tool, 'name' | 'mcpInfo'>, |
| 300 | ): PermissionRule | null { |
| 301 | return getAskRules(context).find(rule => toolMatchesRule(tool, rule)) || null |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Check if a specific agent is denied via Agent(agentType) syntax. |
no test coverage detected