Real-time adaptive intelligent microbial systems for dynamic biosynthesis in unpredictable environments