Files
tfm_ainventory/AGENTS.md
Daniel Bedeleanu a6af90ec48 bla2
2026-04-15 10:50:56 +03:00

938 B

AGENTS.md — Web App Project Rules

Tech Stack

  • Frontend: Next.js 15, React 19, TypeScript 5
  • Styling: Tailwind CSS v3.4, Lucide React (Icons)
  • Backend: Python 3.14, FastAPI, Uvicorn
  • Database: SQLite (SQLAlchemy) + Dexie (IndexedDB pentru offline-first)
  • AI & Vision: Google Gemini 2.0 (Vision), Tesseract.js (Local OCR)
  • Infrastructure: Docker, Caddy (Automatic SSL Reverse Proxy)
  • Security: JWT (python-jose), LDAP (Enterprise Integration)

Code Quality

  • Keep cyclomatic complexity under 10 per function
  • Aim for files under 300 lines

Testing

  • Write unit tests for all utility functions
  • Minimum 80% coverage on new code

Security

  • Store all secrets in inventory.env — never hardcode credentials
  • Never log API keys, tokens or passwords
  • Validate all user input before processing

Git Conventions

  • Use conventional commits (feat:, fix:, docs:, etc.)
  • Keep PRs under 400 lines of diff when possible