(ctx context.Context, out chan<- StreamEvent, event StreamEvent)
| 1510 | command := stringFromAny(tc.Input["command"]) |
| 1511 | prefix := bashpkg.GetSimpleCommandPrefix(command) |
| 1512 | if prefix != "" && state.PermissionState.IsCommandPrefixConfirmed(prefix) { |
| 1513 | permission := bashpkg.AnalyzeCommandPermissions(command) |
| 1514 | if !permission.NeedsUserDecision { |
| 1515 | return false |
| 1516 | } |
| 1517 | } |
| 1518 | } |
| 1519 | if state.PermissionState != nil && state.PermissionState.IsToolConfirmed(tc.Name) { |
| 1520 | return false |
| 1521 | } |
| 1522 | if tool.ConfirmsFilePaths() && state.PermissionState != nil { |
no outgoing calls
no test coverage detected