( oldCwd: string, newCwd: string, timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, )
| 4262 | } |
| 4263 | |
| 4264 | export function executeCwdChangedHooks( |
| 4265 | oldCwd: string, |
| 4266 | newCwd: string, |
| 4267 | timeoutMs: number = TOOL_HOOK_EXECUTION_TIMEOUT_MS, |
| 4268 | ): Promise<{ |
| 4269 | results: HookOutsideReplResult[] |
| 4270 | watchPaths: string[] |
| 4271 | systemMessages: string[] |
| 4272 | }> { |
| 4273 | const hookInput: CwdChangedHookInput = { |
| 4274 | ...createBaseHookInput(undefined), |
| 4275 | hook_event_name: 'CwdChanged', |
| 4276 | old_cwd: oldCwd, |
| 4277 | new_cwd: newCwd, |
| 4278 | } |
| 4279 | return executeEnvHooks(hookInput, timeoutMs) |
| 4280 | } |
| 4281 | |
| 4282 | export function executeFileChangedHooks( |
| 4283 | filePath: string, |
no test coverage detected