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