MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isTeamMemoryWriteOrEdit

Function isTeamMemoryWriteOrEdit

src/utils/teamMemoryOps.ts:26–36  ·  view source on GitHub ↗
(
  toolName: string,
  toolInput: unknown,
)

Source from the content-addressed store, hash-verified

24 * Check if a Write or Edit tool use targets a team memory file.
25 */
26export function isTeamMemoryWriteOrEdit(
27 toolName: string,
28 toolInput: unknown,
29): boolean {
30 if (toolName !== FILE_WRITE_TOOL_NAME && toolName !== FILE_EDIT_TOOL_NAME) {
31 return false
32 }
33 const input = toolInput as { file_path?: string; path?: string } | undefined
34 const filePath = input?.file_path ?? input?.path
35 return filePath !== undefined && isTeamMemFile(filePath)
36}
37
38/**
39 * 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