mirror of
https://github.com/wasrusgen/zov-tech.git
synced 2026-06-03 15:04:50 +00:00
Backend:
- main.py: _handle_contract_review() — GigaChat analyzes
contract text, returns structured JSON (summary, payment,
deadlines, risks, recommendations, missing_clauses)
with optional targeted question support
- /api/contract_review route (async, thread-pool)
- CONTRACT_SYSTEM prompt: plain-language analysis in Russian,
risk levels high/medium/low, missing-clause detection
Frontend:
- proposals.js: Proposals.mountContractReview(container)
· Textarea for contract text with char counter (16k limit)
· 5 preset quick-questions as tappable chips
· Free-form question input
· Thinking animation while AI processes
· Renders structured analysis: Summary, Payment,
Deadlines, Risks (color-coded), Recommendations,
Missing clauses, disclaimer footer
· Falls back to raw text if AI returns unstructured reply
- app.js: #/c/contract route in init() and routeByHash();
«Калькулятор бюджета» replaced by «Проверить договор»
in client home menu (active, not «скоро»)
- podbor.css: ~180 lines of contract review styles
(cr-* classes, risk colors, thinking animation)
- index.html: cache version → 20260516f
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .github/workflows | ||
| backend | ||
| backend-py | ||
| bot | ||
| deploy | ||
| design-drafts | ||
| docs | ||
| miniapp | ||
| .gitignore | ||
| .tmp_ssh.py | ||
| README.md | ||
ZOV Tech — AI-подбор кухонной техники
Telegram-бот + MiniApp для подбора техники под кухню фабрики ЗОВ. Менеджер заполняет с клиентом чек-лист → нейросеть собирает предложение → менеджер получает результат за минуту.
Структура
zov-tech/
├── bot/ — Telegram-бот (Python + aiogram)
├── miniapp/ — MiniApp (HTML + JS, хост на GitHub Pages)
├── backend/ — Google Apps Script (бэкенд + работа с Sheets)
├── docs/ — Документация (ТЗ, deployment, decisions)
└── .claude/ — настройки Claude Code (вне репо)
Стек
| Слой | Технология |
|---|---|
| Бот | Python 3.10+, aiogram 3.x |
| AI | Anthropic Claude (Haiku 4.5) |
| MiniApp | Vanilla JS + HTML, без сборки |
| Backend | Google Apps Script (Web App) |
| БД | Google Sheets (на старте), PostgreSQL (после роста) |
| Хостинг бота | VPS (Selectel / Timeweb) |
| Хостинг MiniApp | GitHub Pages |
Быстрый старт (когда будет код)
cd bot
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r requirements.txt
copy .env.example .env # заполнить токены
python main.py
Документация
- Техническое задание — полное ТЗ продукта.
Контакты
Куратор / заказчик: Василий (@wasrusgen) Канал: @wasrusgen1