( toolName: string, prefix: string, )
| 209 | * Generate permission update suggestion for a prefix match. |
| 210 | */ |
| 211 | export function suggestionForPrefix( |
| 212 | toolName: string, |
| 213 | prefix: string, |
| 214 | ): PermissionUpdate[] { |
| 215 | return [ |
| 216 | { |
| 217 | type: 'addRules', |
| 218 | rules: [ |
| 219 | { |
| 220 | toolName, |
| 221 | ruleContent: `${prefix}:*`, |
| 222 | }, |
| 223 | ], |
| 224 | behavior: 'allow', |
| 225 | destination: 'localSettings', |
| 226 | }, |
| 227 | ] |
| 228 | } |
nothing calls this directly
no outgoing calls
no test coverage detected