yrippert
33d391778a
WIP: backend email-validator, CSP disabled, MOCK_DATA env
2026-02-17 22:40:41 +00:00
Yuriy
44b14cc4fd
feat: все AI-функции переведены на Anthropic Claude API
...
- ai_service.py: единый AI-сервис (chat, chat_with_history, analyze_document)
- routes/ai.py: POST /api/v1/ai/chat (chat, summarize, extract_risks, classify, translate)
- config.py: ANTHROPIC_API_KEY, ANTHROPIC_MODEL
- requirements.txt: anthropic>=0.42.0
- api-client.ts: aiApi (chat, summarize, extractRisks)
- CSP: connect-src добавлен https://api.anthropic.com
- app/api/ai-chat: прокси на бэкенд /api/v1/ai/chat (Anthropic)
- legal_agents/llm_client.py: переведён на ai_service (Claude)
- AIAccessSettings: только Claude (Sonnet 4, 3 Sonnet, 3 Opus)
- k8s, .env.example: OPENAI → ANTHROPIC
- package.json: удалена зависимость openai
- Документация: OpenAI/GPT заменены на Claude/Anthropic
Провайдер: исключительно Anthropic Claude
Модель по умолчанию: claude-sonnet-4-20250514
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-15 15:51:59 +03:00
Yuriy
d47baa1782
refactor: удалены ссылки на knowledge/ (не относится к КЛГ АСУ ТК)
...
- Удалены API routes, rewrites и ссылки на knowledge/reglaments
- knowledge/ удалена из git-истории (6 ГБ PDF не относящихся к проекту)
- Нормативная база обслуживается через модуль legal (routes/legal/)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-15 14:02:14 +03:00
Yuriy
b84c6d83ca
chore: add untracked project files (app, backend, components, docs, e2e, helm, hooks, keycloak, knowledge, lib, monitoring, public, tools, utils)
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 23:29:18 +03:00
Yuriy
a7da43be0e
apply recommendations: security, get_db, exceptions, eslint, api-client
...
- session: set_tenant use bound param (SQL injection fix)
- health: text('SELECT 1'), REDIS_URL from config
- deps: re-export get_db from session, use settings.ENABLE_DEV_AUTH (default False)
- routes: all get_db from app.api.deps; conftest overrides deps.get_db
- main: register exception handlers from app.api.exceptions
- next.config: enable ESLint and TypeScript checks
- .eslintrc: drop @typescript-eslint/recommended; fix no-console (logger, ws-client, regulations)
- backend/.env.example added
- frontend: export apiFetch; dashboard, profile, settings, risks use api-client
- docs/ANALYSIS_AND_RECOMMENDATIONS.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 21:48:58 +03:00
Yuriy
b147d16798
MVP: заглушки, auth, .env.example, связь с бэкендом, главная КЛГ
...
- Заполнены заглушки: user-friendly-messages, health, aria, keyboard
- backend: core/auth.py, /api/v1/stats; cached-api → backend-client при USE_MOCK_DATA=false
- .env.example, middleware auth (skip при USE_MOCK_DATA), убраны неиспользуемые deps
- Страницы: airworthiness, maintenance, defects, modifications; AircraftAddModal, Sidebar
- Главная страница: REFLY — Контроль лётной годности (вместо Numerology App)
- Линт/скрипты: eslintrc, security, cleanup, logs, api inbox/knowledge
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 16:43:53 +03:00
Yuriy
0150aba4f5
Consolidation: KLG ASUTK + PAPA integration
...
- Unify API: lib/api.ts uses /api/v1, inbox uses /api/inbox (rewrites)
- Remove localhost refs: openapi, inbox page
- Add rewrites: /api/inbox|tmc -> inbox-server, /api/v1 -> FastAPI
- Add stub routes: knowledge/insights, recommendations, search, log-error
- Transfer from PAPA: prompts (inspection, tmc), scripts, supabase, data/tmc-requests
- Fix inbox-server: ORDER BY created_at, package.json
- Remove redundant app/api/inbox/files route (rewrites handle it)
- knowledge/ in gitignore (large PDFs)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-08 17:18:31 +03:00