MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / executeFileChangedHooks

Function executeFileChangedHooks

source code/utils/hooks.ts:4280–4296  ·  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

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

Callers 1

handleFileEventFunction · 0.85

Calls 2

createBaseHookInputFunction · 0.85
executeEnvHooksFunction · 0.85

Tested by

no test coverage detected