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

Function executeFileChangedHooks

src/utils/hooks.ts:4278–4294  ·  view source on GitHub ↗
(
  filePath: string,
  event: 'change' | 'add' | 'unlink',
  timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS,
)

Source from the content-addressed store, hash-verified

4276}
4277
4278export function executeFileChangedHooks(
4279 filePath: string,
4280 event: 'change' | 'add' | 'unlink',
4281 timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS,
4282): Promise<{
4283 results: HookOutsideReplResult[]
4284 watchPaths: string[]
4285 systemMessages: string[]
4286}> {
4287 const hookInput: FileChangedHookInput = {
4288 ...createBaseHookInput(undefined),
4289 hook_event_name: 'FileChanged',
4290 file_path: filePath,
4291 event,
4292 }
4293 return executeEnvHooks(hookInput, timeoutMs)
4294}
4295
4296export type InstructionsLoadReason =
4297 | 'session_start'

Callers 1

handleFileEventFunction · 0.85

Calls 2

createBaseHookInputFunction · 0.85
executeEnvHooksFunction · 0.85

Tested by

no test coverage detected