This commit is contained in:
Daniel Bedeleanu
2026-04-15 10:50:56 +03:00
parent 29b5c7020c
commit a6af90ec48
2 changed files with 39 additions and 1 deletions

View File

@@ -19,7 +19,18 @@
"Bash(sqlite3 data/inventory.db \".schema users\")", "Bash(sqlite3 data/inventory.db \".schema users\")",
"Bash(sqlite3 data/inventory.db \"SELECT * FROM users;\")", "Bash(sqlite3 data/inventory.db \"SELECT * FROM users;\")",
"Bash(git restore:*)", "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 *)"
] ]
} }
} }

27
AGENTS.md Normal file
View File

@@ -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