(absolutePath: string)
| 272 | |
| 273 | // Check if file is within the session memory directory |
| 274 | function isSessionMemoryPath(absolutePath: string): boolean { |
| 275 | // SECURITY: Normalize to prevent path traversal bypasses via .. segments |
| 276 | const normalizedPath = normalize(absolutePath) |
| 277 | return normalizedPath.startsWith(getSessionMemoryDir()) |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * Check if file is within the current project's directory. |
no test coverage detected