( filePath: string, event: 'change' | 'add' | 'unlink', timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, )
| 4280 | } |
| 4281 | |
| 4282 | export 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 | |
| 4300 | export type InstructionsLoadReason = |
| 4301 | | 'session_start' |
no test coverage detected