( oldCwd: string, newCwd: string, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, )
| 4417 | } |
| 4418 | |
| 4419 | export function executeCwdChangedHooks( |
| 4420 | oldCwd: string, |
| 4421 | newCwd: string, |
| 4422 | timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, |
| 4423 | ): Promise<{ |
| 4424 | results: HookOutsideReplResult[] |
| 4425 | watchPaths: string[] |
| 4426 | systemMessages: string[] |
| 4427 | }> { |
| 4428 | const hookInput: CwdChangedHookInput = { |
| 4429 | ...createBaseHookInput(undefined), |
| 4430 | hook_event_name: 'CwdChanged', |
| 4431 | old_cwd: oldCwd, |
| 4432 | new_cwd: newCwd, |
| 4433 | } |
| 4434 | return executeEnvHooks(hookInput, timeoutMs) |
| 4435 | } |
| 4436 | |
| 4437 | export function executeFileChangedHooks( |
| 4438 | filePath: string, |
no test coverage detected