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

Function isTeamMemorySearch

src/utils/teamMemoryOps.ts:10–21  ·  view source on GitHub ↗
(toolInput: unknown)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isTeamMemFileFunction · 0.85

Tested by

no test coverage detected