MCPcopy Create free account
hub / github.com/Noumena-Network/code / executeFileChangedHooks

Function executeFileChangedHooks

src/utils/hooks.ts:4282–4298  ·  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

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

Callers 1

handleFileEventFunction · 0.85

Calls 2

createBaseHookInputFunction · 0.85
executeEnvHooksFunction · 0.85

Tested by

no test coverage detected