(toolInput: unknown)
| 10 | * Check if a search tool use targets team memory files by examining its path. |
| 11 | */ |
| 12 | export function isTeamMemorySearch(toolInput: unknown): boolean { |
| 13 | const input = toolInput as |
| 14 | | { path?: string; pattern?: string; glob?: string } |
| 15 | | undefined |
| 16 | if (!input) { |
| 17 | return false |
| 18 | } |
| 19 | if (input.path && isTeamMemFile(input.path)) { |
| 20 | return true |
| 21 | } |
| 22 | return false |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Check if a Write or Edit tool use targets a team memory file. |
nothing calls this directly
no test coverage detected