From a6af90ec48a0ce0edc6de5f2e03c939b97b51e80 Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Wed, 15 Apr 2026 10:50:56 +0300 Subject: [PATCH] bla2 --- .claude/settings.local.json | 13 ++++++++++++- AGENTS.md | 27 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 AGENTS.md diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 09c461db..9c5dd415 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -19,7 +19,18 @@ "Bash(sqlite3 data/inventory.db \".schema users\")", "Bash(sqlite3 data/inventory.db \"SELECT * FROM users;\")", "Bash(git restore:*)", - "Bash(pkill -f \"uvicorn\")" + "Bash(pkill -f \"uvicorn\")", + "Bash(docker-compose build:*)", + "Bash(docker version:*)", + "Bash(docker compose version:*)", + "Bash(docker compose:*)", + "Bash(open -a Docker)", + "Bash(dockerd)", + "Bash(brew services:*)", + "Bash(colima start:*)", + "Bash(colima status:*)", + "Bash(colima stop:*)", + "Bash(bash *)" ] } } diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..998573f0 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,27 @@ +# 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