Commit Graph

102 Commits

Author SHA1 Message Date
WASRUSGEN
6a68e560a5 fix: merge upload button into Elena response bubble, no duplicate message 2026-05-29 20:10:27 +03:00
WASRUSGEN
5649bdc2e0 fix: remove duplicate greeting on Elena screen 2 2026-05-29 20:06:15 +03:00
WASRUSGEN
b6fa8db7b3 feat: smart templates - context-aware, clarify flow, auto-generate via API 2026-05-29 19:52:32 +03:00
WASRUSGEN
82b60cb191 fix: permanent chat bar replaces dynamic input injection 2026-05-29 19:16:30 +03:00
WASRUSGEN
1182c56f2f fix: 3 cards, hide el-step1 on card click, question in chatwrap 2026-05-29 19:12:50 +03:00
WASRUSGEN
1981c1015e feat: doc contradiction detection + partner lawyer model 2026-05-29 19:03:38 +03:00
WASRUSGEN
d5ba3a2569 feat: dynamic context-aware buttons in returning chat 2026-05-29 16:09:02 +03:00
WASRUSGEN
9bd5cea375 fix: new contract button starts conversation, no generic picker 2026-05-29 15:29:43 +03:00
WASRUSGEN
23bd2ee049 fix: free tier message, parse actions in retChat, render action buttons 2026-05-29 15:16:39 +03:00
WASRUSGEN
a651285284 feat: persistent memory - chat history, contract storage, dossier compression 2026-05-29 15:08:27 +03:00
WASRUSGEN
cafe84c57f fix: remove hardcoded demo deadlines, persist to localStorage, fix action regex 2026-05-29 14:57:54 +03:00
WASRUSGEN
33d9ec4185 feat: Elena action buttons after each response 2026-05-29 14:50:33 +03:00
WASRUSGEN
82395cbba1 fix: no generic doc picker after deadline context transfer 2026-05-29 13:06:02 +03:00
WASRUSGEN
a16f18e862 fix: Elena context and upload offer logic 2026-05-29 01:06:56 +03:00
WASRUSGEN
9f564889b0 fix: Elena asks before redirecting to upload (check/dispute intents) 2026-05-29 00:42:33 +03:00
WASRUSGEN
b95b5a8180 prod: switch API_BASE to wasrusgen1.ru (Finnish VPS via Caddy)
Elena now calls https://wasrusgen1.ru/api/* — Finnish VPS, Anthropic not blocked.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 00:33:55 +03:00
WASRUSGEN
dc13d413f8 feat: Elena Level 2 — context-aware API, client name, case context, parties 2026-05-28 22:51:39 +03:00
WASRUSGEN
07a5e15c82 revert: Elena referent copy restored 2026-05-28 22:41:46 +03:00
WASRUSGEN
71b4aaf0fb fix: step wrapper span→div (garbled button), Elena=robot branding, green dot→brand 2026-05-28 22:37:13 +03:00
WASRUSGEN
a1de6c09ff feat: email draft modal — counterparty email from contract, open in mail client 2026-05-28 22:13:25 +03:00
WASRUSGEN
0382e97093 feat: auto-extract contract parties into postal form f.119 2026-05-28 22:10:52 +03:00
WASRUSGEN
97a7448fa2 feat: postal form f.119 + Pochta Russia tracking in Elena deadline steps 2026-05-28 21:53:12 +03:00
WASRUSGEN
a9a1259179 feat: launch price banner — Цена запуска до 28.08.2026 on pay screen 2026-05-28 21:15:09 +03:00
WASRUSGEN
bacff176e4 fix: telegram @VASRUSGEN — update all contact references 2026-05-28 20:53:23 +03:00
WASRUSGEN
5a355005b8 fix: brand compliance — only tokens.css colors in pricing-deck and privacy 2026-05-28 20:38:17 +03:00
WASRUSGEN
bcebdce331 feat: pricing-deck.html — обоснование ценовой стратегии (11 слайдов) 2026-05-28 19:52:38 +03:00
WASRUSGEN
44bab17da6 fix: email → i@wasrusgen.ru, url → wasrusgen1.ru/protect 2026-05-28 19:18:08 +03:00
WASRUSGEN
00bc096507 feat: privacy.html — политика конфиденциальности 152-ФЗ (10 разделов) 2026-05-28 19:00:44 +03:00
WASRUSGEN
d52fc8f3cc fix: retChatSend — wider isActionQ regex + fallback to buildDlAnswer when API unavailable 2026-05-28 18:44:39 +03:00
WASRUSGEN
f673776b61 fix: elenaIntent question — append to chatwrap when el-step1 is hidden (transfer context) 2026-05-28 18:32:44 +03:00
WASRUSGEN
0c938b3c48 feat: _rcTransferToElena — continue dialog in Elena screen with deadline context 2026-05-28 18:31:46 +03:00
WASRUSGEN
02f6fc70e3 fix: callToAction renders HTML tags as text — pass isRawHtml=true 2026-05-28 18:27:11 +03:00
WASRUSGEN
6e80948c02 fix: Elena answers 'Что нужно сделать?' with concrete steps
- _rcLastContext: stores active deadline when Elena mentions it
- _DL_ACTIONS: step-by-step actions per deadline type
  (payment / notification / renewal / termination / penalty / other)
- _buildDlAnswer(): renders numbered steps + legal warning + CTA buttons
- retChatSend(): detects action questions, answers in-chat (no redirect)
- API path: real Elena response with deadline context injected
- Fallback: template redirect only when no context + no API
- initReturnChat(): updated urgentDL message prompts follow-up question
- _rcAddBubble: supports raw HTML (isRawHtml param)
- _rcEscape: safe text rendering for plain messages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 18:22:55 +03:00
WASRUSGEN
ca518bb85d feat: client type selector + B2B form on pay screen
- Tabs: Физлицо / ИП / ООО — toggle B2B form visibility
- B2B fields: название, ИНН, КПП (ООО only), адрес, email
- File upload: multi-file, PDF/JPG/PNG/DOCX, 10MB limit, chip list
- Camera: getUserMedia → snap → preview; fallback input[capture] mobile
- Validation: ИНН length check (10/12), required fields before ykOpen
- Auto-save/restore requisites via localStorage
- _initPayScreen() — restore saved B2B data + sync balance on go('pay')

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 18:14:16 +03:00
WASRUSGEN
419dacda3c docs: публичная оферта — полная редакция 28.05.2026
- Тарифы: разовые услуги (990-2990 ₽) + Сопровождение (1490/2900/5900 ₽)
- Явно: НЕТ автопродления, досрочное прекращение с пропорциональным возвратом
- B2C vs B2B: документооборот, счёт и акт для ИП/ООО, чек для физлиц
- Возврат: позиция "не держим деньги за неоказанную услугу"
- 152-ФЗ: согласие на обработку ПДн, срок хранения 90 дней
- Ограничение ответственности: в пределах стоимости услуги
- Споры: СОЮ для физлиц (ЗоЗПП), АС СПб для ИП/ООО

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 17:42:52 +03:00
WASRUSGEN
b91c134327 feat: case status model — active/dispute/wait/completed/archived
- CT_DATA: replaced work/done with 5-state model, added id field
- STATUS_MAP: new labels with emojis per status
- Filters: Все / Активные / В споре / Завершённые / Срочные
- KPI: counts calculated from real statuses (not hardcoded)
- _getActiveCaseIds() / _getHotDeadlines() — helpers for Elena
- initReturnChat: urgentDL filtered to active/dispute cases only
- window._CT_DATA exported for cross-module access

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 17:27:22 +03:00
WASRUSGEN
844654ce59 feat: API layer — /api/elena real responses, /api/deadlines, Council agents
- API_BASE + _elenaApi() with Haiku/Sonnet fallback to templates
- startScan() calls /api/deadlines in parallel with animation
- signed_date question when contract date unknown (_askSignedDate)
- _setSignedDate() recalculates live deadlines, shows hot ones
- Council offer when complexity_score >= 3
- _runCouncil() → parallel 5 agents (Sonnet) + Opus synthesis
- _showCouncilResult() with agent cards + verdict

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 17:08:17 +03:00
WASRUSGEN
6b5211d996 fix: remove el-step1 restore timer, reset on go(start) instead 2026-05-28 16:16:41 +03:00
WASRUSGEN
39799dacc0 fix: invert classifier — whitelist offtopic, not legal; expand intent detection 2026-05-28 16:14:28 +03:00
WASRUSGEN
f63d021a03 feat: empathy-first hero chat — pain-based opening, empathy prefix, input-first UX 2026-05-28 16:11:25 +03:00
WASRUSGEN
05bd5ebe01 fix: create intent — doc type picker, no greeting, no cabinet redirect 2026-05-28 16:07:25 +03:00
WASRUSGEN
989597f490 feat: input classifier — legal/greeting/offtopic filter with progressive lock 2026-05-28 15:57:52 +03:00
WASRUSGEN
8c6289ed1a feat: service order card for power intent + voice mic in chat inputs 2026-05-28 15:45:49 +03:00
WASRUSGEN
c7c5d9f682 fix: _chatTransition — no el-step1 flash when routing from hero chat to Elena 2026-05-28 15:13:09 +03:00
WASRUSGEN
3c29e83ffc feat: personalized returning visitor chat — name, last contract, credits, urgent deadlines 2026-05-28 14:50:59 +03:00
WASRUSGEN
00e96de8bb feat: hero live chat widget — Elena types greeting → user replies → intent routing 2026-05-28 14:47:01 +03:00
WASRUSGEN
2ee34cbc0d feat: admin screen + hybrid pay (разовые+подписка) + balance tab + ЮKassa modal + возврат средств 2026-05-28 14:35:32 +03:00
WASRUSGEN
29edcc46b9 feat: Сроки — дедлайн-лента (заменяет Ганнт), сводка, фильтры, парсинг-архитектура 2026-05-28 13:31:52 +03:00
WASRUSGEN
7e2efc80d3 fix: незакрытые tabpane p-sroki и p-shab — вложение сломало Шаблоны и Составить документ 2026-05-28 13:16:18 +03:00
WASRUSGEN
d3bd861d6c text: typewriter — «Защищаю людей — не только бизнес» 2026-05-28 12:22:56 +03:00