( hookInput: HookInput, timeoutMs: number, )
| 4398 | } |
| 4399 | |
| 4400 | async function executeEnvHooks( |
| 4401 | hookInput: HookInput, |
| 4402 | timeoutMs: number, |
| 4403 | ): Promise<{ |
| 4404 | results: HookOutsideReplResult[] |
| 4405 | watchPaths: string[] |
| 4406 | systemMessages: string[] |
| 4407 | }> { |
| 4408 | const results = await executeHooksOutsideREPL({ hookInput, timeoutMs }) |
| 4409 | if (results.length > 0) { |
| 4410 | invalidateSessionEnvCache() |
| 4411 | } |
| 4412 | const watchPaths = results.flatMap(r => r.watchPaths ?? []) |
| 4413 | const systemMessages = results |
| 4414 | .map(r => r.systemMessage) |
| 4415 | .filter((m): m is string => !!m) |
| 4416 | return { results, watchPaths, systemMessages } |
| 4417 | } |
| 4418 | |
| 4419 | export function executeCwdChangedHooks( |
| 4420 | oldCwd: string, |
no test coverage detected