( hookInput: HookInput, timeoutMs: number, )
| 4239 | } |
| 4240 | |
| 4241 | async function executeEnvHooks( |
| 4242 | hookInput: HookInput, |
| 4243 | timeoutMs: number, |
| 4244 | ): Promise<{ |
| 4245 | results: HookOutsideReplResult[] |
| 4246 | watchPaths: string[] |
| 4247 | systemMessages: string[] |
| 4248 | }> { |
| 4249 | const results = await executeHooksOutsideREPL({ hookInput, timeoutMs }) |
| 4250 | if (results.length > 0) { |
| 4251 | invalidateSessionEnvCache() |
| 4252 | } |
| 4253 | const watchPaths = results.flatMap(r => r.watchPaths ?? []) |
| 4254 | const systemMessages = results |
| 4255 | .map(r => r.systemMessage) |
| 4256 | .filter((m): m is string => !!m) |
| 4257 | return { results, watchPaths, systemMessages } |
| 4258 | } |
| 4259 | |
| 4260 | export function executeCwdChangedHooks( |
| 4261 | oldCwd: string, |
no test coverage detected