feat: LLM-анализ — индикатор прогресса, кнопка рескана, статистика на дашборде
- Добавлен статус {"status": "analyzing"} в finding.report на время LLM-анализа
- Кнопка рескана (Retry) под LLM-отчётом в ручном режиме
- LLM-статистика на дашборде: analysed / pending
- Защита от двойного анализа через per-finding asyncio.Lock
- _llm_spinner.html — фрагмент спиннера для состояния analysing
- Удалён мёртвый код: constants, i18n, CSS, queries
- Фиксы: _env_int, индексы БД, UnicodeDecodeError, time.mktime и др.
- Шаблоны: shared includes (_status_badge, _pagination)
- AGENTS.md: workflow (lint, test, commit, rebuild)
This commit is contained in:
12
AGENTS.md
12
AGENTS.md
@@ -197,3 +197,15 @@ curl -X POST http://localhost:8080/webhooks/nexus \
|
||||
- **No Nexus Pro required:** the system works with Nexus OSS. Webhooks can be triggered manually or via community plugins.
|
||||
- **GuardDog deadlocks:** GuardDog is CPU-intensive. Use `MAX_CONCURRENT_SCANS` to avoid resource exhaustion.
|
||||
- **LLM may be slow:** increase `LLM_TIMEOUT_SECONDS` for large models. Set `LLM_MAX_CONCURRENT_ANALYSES` to limit parallel requests.
|
||||
|
||||
---
|
||||
|
||||
## Workflow
|
||||
|
||||
**After every change** — follow these steps in order:
|
||||
|
||||
1. **Document** — update `AGENTS.md` if the change introduces a new concept, env var, endpoint, or workflow.
|
||||
2. **Lint** — `ruff check guarddog_nexus && ruff format guarddog_nexus`
|
||||
3. **Test** — `python3 -m pytest -v` (must pass 100%)
|
||||
4. **Commit** — use the existing commit prefix convention (`feat:`, `fix:`, `refactor:`, `docs:`, `ui:`).
|
||||
5. **Rebuild** — `docker compose up -d --build` to deploy changes.
|
||||
|
||||
Reference in New Issue
Block a user