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

Function registerSessionFileAccessHooks

src/utils/sessionFileAccessHooks.ts:233–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 * Called during CLI initialization.
232 */
233export 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

Callers

nothing calls this directly

Calls 1

registerHookCallbacksFunction · 0.85

Tested by

no test coverage detected