feat(events): Expose ctx object to the event scripts