This update supercharges errlocal by eliminating all manual setup tasks. We've introduced a streamlined interactive initialization, zero-config cloud deployments, and resilient fallback states!
✨ New Features & Enhancements
- Interactive CLI Setup (
errlocal init): Say goodbye to manually creating.envfiles. We've added a highly intuitive@inquirer/promptsUI. Just runerrlocal initand let the CLI guide you through adding your API keys. - Smart Key Pre-filling: If you ever run
errlocal initagain, it intelligently remembers your existing environment keys so you never have to re-type them! - Zero-Config Cloud Schema: The first time you hit "Sync to Cloud",
errlocalwill automatically communicate with the UrBackend API and provision the exacterror_logsschema required! No manual database configuration required. - Graceful Fallbacks: The core error analysis works even if your secondary API keys are missing. If you only provide a Groq key, the CLI dynamically and gracefully disables the translation and cloud-sync options without crashing.
🛠️ Developer Improvements
- Added Vitest for robust unit testing.
- Automated CI/CD via GitHub Actions to seamlessly test your application whenever code hits the
mainbranch.
🪲 Bug Fixes
- Fixed an issue where the CLI routing engine didn't properly recognize the
initcommand. - Fixed the ensureSchema function so that it properly handles native UrBackend
404responses before building the collection.
Installation / Upgrade:
npm install -g errlocal@latest