v0.4.0 - JavaScript/TypeScript Support, AI Auto-Fix, JetBrains Plugin
🚀 What's New in v0.4.0
JavaScript/TypeScript Support
- Multi-language validation - Now supports
.js,.jsx,.ts,.tsx,.mjs,.mtsfiles - JS Security Analyzer - Detects eval(), innerHTML XSS, prototype pollution, command injection, hardcoded secrets
- JS Hallucination Analyzer - Detects fake npm packages, invented functions, placeholder APIs
- TypeScript-specific checks - @ts-ignore, any type usage, type safety issues
AI-Powered Auto-Fix
- Multi-provider LLM support - OpenAI, Anthropic, Ollama, custom endpoints
- CLI command:
aitrust ai-fix <file> --apply - Python API:
AIAutoFixerclass andai_fix_code()function - Configurable via environment variables -
OPENAI_API_KEY,ANTHROPIC_API_KEY,USE_OLLAMA
JetBrains Plugin
- Complete IntelliJ/PyCharm plugin with tool window, status bar widget, inline annotators
- One-click AI fixes directly in your IDE
- Settings page for API configuration
CLI Updates
- New
ai-fixcommand for LLM-powered fixes - New
languagescommand showing supported languages - Multi-language validation automatic based on file extension
📦 Installation
pip install ai-trust-validator==0.4.0🔗 Links
🙏 Thanks
Thanks to all contributors and users! If this helps you, please ⭐ the repo!