( toolName: string, toolInput: unknown, )
| 24 | * Check if a Write or Edit tool use targets a team memory file. |
| 25 | */ |
| 26 | export 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. |
nothing calls this directly
no test coverage detected