MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isTeamMemorySearch

Function isTeamMemorySearch

source code/utils/teamMemoryOps.ts:12–23  ·  view source on GitHub ↗
(toolInput: unknown)

Source from the content-addressed store, hash-verified

10 * Check if a search tool use targets team memory files by examining its path.
11 */
12export 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.

Callers

nothing calls this directly

Calls 1

isTeamMemFileFunction · 0.85

Tested by

no test coverage detected