()
| 231 | * Called during CLI initialization. |
| 232 | */ |
| 233 | export function registerSessionFileAccessHooks(): void { |
| 234 | const hook: HookCallback = { |
| 235 | type: 'callback', |
| 236 | callback: handleSessionFileAccess, |
| 237 | timeout: 1, // Very short timeout - just logging |
| 238 | internal: true, |
| 239 | } |
| 240 | |
| 241 | registerHookCallbacks({ |
| 242 | PostToolUse: [ |
| 243 | { matcher: FILE_READ_TOOL_NAME, hooks: [hook] }, |
| 244 | { matcher: GREP_TOOL_NAME, hooks: [hook] }, |
| 245 | { matcher: GLOB_TOOL_NAME, hooks: [hook] }, |
| 246 | { matcher: FILE_EDIT_TOOL_NAME, hooks: [hook] }, |
| 247 | { matcher: FILE_WRITE_TOOL_NAME, hooks: [hook] }, |
| 248 | ], |
| 249 | }) |
| 250 | } |
| 251 |
nothing calls this directly
no test coverage detected