/** * Test fixture: hook script that throws an error. Migrated to * defineHook in HOOK_API_V2 Phase 8. */ import { defineHook } from '@celilo/capabilities'; export default defineHook({ requires: [], handler: async () => { throw new Error('Hook execution failed: simulated error'); }, });