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