()
| 53 | } |
| 54 | |
| 55 | async function importEngine(): Promise<HookEngineCtor> { |
| 56 | const mod = (await import(ENGINE_MODULE)) as { HookEngine: HookEngineCtor }; |
| 57 | return mod.HookEngine; |
| 58 | } |
| 59 | |
| 60 | describe('HookEngine integration', () => { |
| 61 | it('blocks a dangerous Shell command and allows a safe one via a PreToolUse script hook', async () => { |