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

Function isTeamMemoryWriteOrEdit

source code/utils/teamMemoryOps.ts:28–38  ·  view source on GitHub ↗
(
  toolName: string,
  toolInput: unknown,
)

Source from the content-addressed store, hash-verified

26 * Check if a Write or Edit tool use targets a team memory file.
27 */
28export function isTeamMemoryWriteOrEdit(
29 toolName: string,
30 toolInput: unknown,
31): boolean {
32 if (toolName !== FILE_WRITE_TOOL_NAME && toolName !== FILE_EDIT_TOOL_NAME) {
33 return false
34 }
35 const input = toolInput as { file_path?: string; path?: string } | undefined
36 const filePath = input?.file_path ?? input?.path
37 return filePath !== undefined && isTeamMemFile(filePath)
38}
39
40/**
41 * Append team memory summary parts to the parts array.

Callers

nothing calls this directly

Calls 1

isTeamMemFileFunction · 0.85

Tested by

no test coverage detected