49 Commits

Author SHA1 Message Date
798580a908 acc_invoices: журнал без зависания (Proxy вместо подмены query), общий журнал /api/log, MCP-инструменты acc_inv_* (все функции WebUI и анализ журнала)
All checks were successful
ci / test (push) Successful in 55s
ci / deploy (push) Successful in 3m23s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 20:29:00 +03:00
7541f0f69a Скрипт привязки перенесённых инвойсов к проводкам QuickBooks
Some checks failed
ci / deploy (push) Has been cancelled
ci / test (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 15:17:27 +03:00
6855b42be5 acc_invoices: перенос текущего реестра Excel в acc_invoices (скрипт), у оплаченных нет ошибки «нет файла»
All checks were successful
ci / test (push) Successful in 52s
ci / deploy (push) Successful in 3m9s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 14:53:52 +03:00
16e9b2c085 acc_invoices: сервис WebUI и бэкенд платёжного процесса (миграция 082, правила статусов, согласования, ручная отметка оплаты), статусы оплат, предложения к ТЗ
All checks were successful
ci / test (push) Successful in 59s
ci / deploy (push) Successful in 3m14s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 12:44:58 +03:00
cef2f2f296 old_invoices: сопоставление проектов и вендоров, md-отчёт; pay_method (080); spam-rescue: сравнение без регистра и диакритики, исправлен json в белом списке
Some checks failed
ci / test (push) Successful in 52s
ci / deploy (push) Failing after 4m45s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 08:05:19 +03:00
abb17121e6 Тест: имена файлов инвойсов по новой схеме
All checks were successful
ci / test (push) Successful in 54s
ci / deploy (push) Successful in 3m2s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 23:28:28 +03:00
db333d6750 Инвойсы на Drive: раскладка как в «07. Invoices» (Инвойсы / способ оплаты / Месяц ГГГГ / «$сумма Вендор.pdf»), перенос оплаченных; drive_folder
Some checks failed
ci / test (push) Failing after 59s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 23:27:04 +03:00
dd60da4091 old_invoices: таблица (миграция 079), разбор Excel Анастасии и загрузка; архив инвойсов вне рабочего реестра
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 23:23:47 +03:00
31e69589d8 Done: служебные пометки и «ждёт документ» не считаются нерешённой проблемой; правка тестов под новое правило
All checks were successful
ci / test (push) Successful in 1m3s
ci / deploy (push) Successful in 3m10s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 19:44:35 +03:00
1112dac733 Done: нельзя при нерешённой проблеме (Can't done - not solved yet. SS, исходная проблема сохраняется), точечная проверка операции в QuickBooks; вложения документов в QuickBooks (qbo-attach, миграция 078, ссылка на Drive в Memo); review-done-action.md по замечаниям
Some checks failed
ci / test (push) Failing after 1m0s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 19:32:51 +03:00
1a7515dfbc Очередь: столбец «списано с» и ссылка на QuickBooks, ответ на проблему и contract_basis (миграция 077), инструкции и процессы; review-done-action.md
All checks were successful
ci / test (push) Successful in 1m7s
ci / deploy (push) Successful in 3m16s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 17:47:01 +03:00
b642b816f3 Тест invoices-mail: новая логика дублей (вендор+номер+сумма) и исходящих счетов
All checks were successful
ci / test (push) Successful in 1m0s
ci / deploy (push) Successful in 3m14s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 17:07:38 +03:00
77deeab702 Проводка в QuickBooks после Done по категоризации: задание categorize-post (агент, результат в истории), миграция 076, processes.md
Some checks failed
ci / test (push) Failing after 57s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 17:02:00 +03:00
4fe1f36063 Инвойсы: в разбор берутся только входящие счета (исходящие KH Build отбрасываются: промпт и защита в коде); processes.md
Some checks failed
ci / test (push) Failing after 55s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 15:56:48 +03:00
dfa64ccb49 Инвойсы: дубль по вендору и номеру (пересылка и повторная отправка), корректировка суммы подсвечивается; processes.md
Some checks failed
ci / deploy (push) Has been cancelled
ci / test (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 15:53:43 +03:00
f06fe97561 spam-rescue: своё название (KH Build) не считается словом отбора
All checks were successful
ci / test (push) Successful in 51s
ci / deploy (push) Successful in 2m46s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 14:15:53 +03:00
1e4bf87857 spam-rescue: письма переносим (dryRun по умолчанию выключен)
All checks were successful
ci / test (push) Successful in 53s
ci / deploy (push) Successful in 2m56s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 14:10:56 +03:00
4ff79b2735 Ночное задание spam-rescue: возврат инвойсов из Спама (слова проектов/клиентов/вендоров, белый список, фильтры Gmail), миграция 075
All checks were successful
ci / test (push) Successful in 49s
ci / deploy (push) Successful in 2m56s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 06:54:05 +03:00
24fed3d5a1 Очередь разбора: сумма/получатель/дата/адрес проекта, дата получения и дни; автоудаление уже проведённого; справочник проектов QuickBooks и закрытые проекты; запрос почты с Delivered-To (по встрече 2026-11-27)
All checks were successful
ci / test (push) Successful in 49s
ci / deploy (push) Successful in 2m58s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 18:01:37 +03:00
90d80dff71 accounting_automation: журнал заданий и запросов (включён логгер Fastify), журнал не больше 10 МБ; планы тестирования для Юрия и Насти
All checks were successful
ci / test (push) Successful in 46s
ci / deploy (push) Successful in 2m40s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 10:11:00 +03:00
73eba1d977 Ручки для ассистентов: очередь кратко, остаток по контракту, поиск чека (список и ответ); раздел интерфейсов в передаче
Some checks failed
ci / deploy (push) Failing after 2m13s
ci / test (push) Successful in 49s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:02:09 +03:00
b2d80ac3c7 Merge branch 'worktree-agent-a766276e95541a0b4'
All checks were successful
ci / test (push) Successful in 44s
ci / deploy (push) Successful in 2m45s
2026-11-23 19:44:15 +03:00
74ffe8613b accounting_automation: сверка инвойсов с QuickBooks (invoice-reconcile), оплата независима от согласования, сумма и вендор из ленты, сводка Анастасии, правки finalize, поиска чека, проверки инвойса, chargeback; документы
Миграция 071: acc_discrepancies.reason и уникальный индекс открытых расхождений, уникальный открытый card_fraud по операции, insurer в разборе сертификатов.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 19:43:58 +03:00
48c8b372bd Claude при чтении недоверенных документов запускается без MCP-коннекторов и только с Read и Bash
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 19:27:12 +03:00
85f781b9fe categorize: пустой run_id допустим, если операций нет
All checks were successful
ci / test (push) Successful in 47s
ci / deploy (push) Successful in 2m44s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 19:21:49 +03:00
d6d203dea3 accounting_automation: инвойс в письме в любом виде (тело, вложения любых типов, zip); тесты; approved и snapshot документов
All checks were successful
ci / test (push) Successful in 45s
ci / deploy (push) Successful in 2m44s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 18:07:57 +03:00
a274c9c163 Слияние части C этапа 2 (сертификаты, сверка, история, chargeback, fraud) 2026-11-23 16:58:46 +03:00
4c99033f13 accounting_automation, этап 2: страховые сертификаты, сверка выписок, разбор истории правок, chargeback к контракту, fraud
- Миграции 061 (сертификаты: alert_kind, drive_file_id, request_*, acc_invoices.no_insurance) и 062 (acc_chargeback: kind contract|card_fraud,
  колонки contract, триггеры пересчёта acc_contracts.retained_amount и закрытия по остатку).
- Задания certificates, reconcile-monthly, history-weekly, fraud-weekly (JOB_NAMES, main.ts); расписание на сервере не заведено.
- Письма с сертификатами разбирает invoices-mail (document_type certificate); запрос подрядчику - через интерфейс ContractorMessenger
  (пока ручной: текст в request_log, Юля отправляет из JobTread).
- Ручки /chargeback/find|start|close|add-log|fraud для ассистента менеджера; MCP-инструменты acc_chargeback_*, acc_fraud_*,
  acc_contract_balance, acc_certificate_request_approve; очередь показывает задачи вида chargeback.
- Тесты на временной БД (сертификаты, сверка, история правок, chargeback и fraud, служебное API); описание данных в docs/proposed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:58:00 +03:00
fa83bfbc2f Слияние частей A и B этапа 2 (разрешены конфликты: задания, MCP-инструменты, формат ответа категоризации)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:55:16 +03:00
27d2404bd3 Merge branch 'worktree-agent-abd30c5c166471dc0' 2026-11-23 16:44:52 +03:00
9f8bf1932f accounting_automation, этап 2 (часть A): роль cfo по сумме, флажки fraud, проверка и оплата инвойсов
- approval.ts: роль подтверждающего при создании задачи категоризации (порог approvalThresholdUsd, первая оплата вендору)
- fraud.ts: красные флажки по картам (первая оплата, рост суммы от медианы), задание fraud-flags
- invoice-check.ts: заключение по инвойсу и задача invoice_approval; задание invoice-check
- invoice-paid.ts: markPaid и задание invoice-paid (paid_on, paid_amount контракта)
- MCP: acc_invoice_to_approve, acc_invoice_decide; миграция 041; документы proposed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:44:33 +03:00
115303ac07 accounting_automation: опция gmailIncludeSpam (письма подрядчиков в спаме)
All checks were successful
ci / test (push) Successful in 39s
ci / deploy (push) Successful in 2m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:41:33 +03:00
4922d8f044 Документы и комментарии: адрес группы invoice@khbuild.pro, чтение от agents@
All checks were successful
ci / test (push) Successful in 37s
ci / deploy (push) Successful in 2m48s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:31:00 +03:00
f636836f47 accounting_automation: Gmail читается от имени agents@ (участник группы invoice@), поиск по письмам на группу
All checks were successful
ci / test (push) Successful in 41s
ci / deploy (push) Successful in 2m44s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 16:30:08 +03:00
e90b9f352d qbo_auth: realmId шифруется, /callback отвечает 302, no-cache; требования Intuit: раздел E по оригиналу, ручные тесты через /tests
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m38s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 09:21:39 +03:00
cba424c86a MCP-таблица: ui/message с content массивом блоков (хост отклонял объект)
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m41s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 20:22:27 +03:00
053b5018c0 MCP: server/discover (2026-07-28), resultType и кэш-подсказки; таблица передаёт выделение в контекст Claude (ui/update-model-context) и кнопка «Спросить Claude про выбранные» (ui/message)
All checks were successful
ci / deploy (push) Successful in 2m42s
ci / test (push) Successful in 40s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 19:44:53 +03:00
4b5e0444b9 MCP Apps: extensions в initialize, _meta.ui в результате вызова, CSP ресурса, URI с хэшем, надёжное рукопожатие ui/initialize (initialized с таймаутом)
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m33s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 19:07:31 +03:00
dd7d8ae21e MCP: таблицу очереди всегда выводить текстом (приложения нет), acc_review_list вызывать сразу без вопросов
Some checks failed
ci / test (push) Failing after 41s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 18:43:36 +03:00
66eefae745 MCP: поток GET /mcp (SSE) с notifications/tools/list_changed при подключении, capabilities.tools.listChanged
Some checks failed
ci / test (push) Failing after 41s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 17:43:17 +03:00
5b2470a369 MCP: автоочистка журнала acc_mcp_log (оставляем последние 100000 записей)
Some checks failed
ci / test (push) Failing after 39s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 11:41:17 +03:00
de20e0400f MCP: короткий id во всех инструментах, журнал вызовов acc_mcp_log и представление acc_mcp_error_rate, расширены instructions
Some checks failed
ci / test (push) Failing after 39s
ci / deploy (push) Has been skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 11:36:17 +03:00
6c061929a1 MCP: описание acc_review_list с ключевыми словами про дела на сегодня
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m40s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 10:20:10 +03:00
ac2436e0f0 MCP: instructions для Claude (что у нас на сегодня -> очередь бухгалтерии) и промпт today; текст в p-mcp-instructions.md
All checks were successful
ci / test (push) Successful in 37s
ci / deploy (push) Successful in 2m40s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 09:28:12 +03:00
aae7472010 MCP: пакетный acc_review_batch, компактная таблица очереди, интерактивное приложение (ui://) с кнопками Done/Delegate/Snooze, подсказки readOnly/destructive
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m37s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 09:21:34 +03:00
7638242a51 MCP: scopes_supported в описании защищённого ресурса (Claude иначе просит все scope realm)
All checks were successful
ci / test (push) Successful in 39s
ci / deploy (push) Successful in 2m41s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:53:04 +03:00
198eafa86f MCP: WWW-Authenticate с resource_metadata для OAuth-обнаружения
All checks were successful
ci / test (push) Successful in 38s
ci / deploy (push) Successful in 2m37s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:36:18 +03:00
22d87d8d01 MCP: имя сервера accounting_automation
All checks were successful
ci / test (push) Successful in 39s
ci / deploy (push) Successful in 2m42s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:27:42 +03:00
b422309148 accounting_automation: этап 1 бухгалтерской автоматизации (инвойсы из почты, категоризация, ручной разбор, MCP), интервальные задания scheduler, миграции 033/034/038
All checks were successful
ci / test (push) Successful in 40s
ci / deploy (push) Successful in 2m41s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:05:28 +03:00