( filePath: string, event: 'change' | 'add' | 'unlink', timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, )
| 4276 | } |
| 4277 | |
| 4278 | export 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 | |
| 4296 | export type InstructionsLoadReason = |
| 4297 | | 'session_start' |
no test coverage detected