chore(deploy): comprehensive code quality and security improvements