Compare commits

..

1202 Commits

Author SHA1 Message Date
4e1d981719 Merge pull request 'PEP-320: один демон исполнителя проверок на регистрацию' (#305) from task/pep-320 into main
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 33с
peppa/bundle bundle: success за 1с
peppa/test test: success за 1706с
peppa-ci / ci (push) Successful in 30m51s
2026-11-27 14:30:01 +00:00
e227609a0d Merge pull request 'PEP-321: упавшее задание проверок перезапускается через пару минут' (#304) from task/pep-321 into main
PEP-321 [skip ci]
2026-11-27 14:29:57 +00:00
4ae203e037 PEP-320: один демон исполнителя проверок на регистрацию
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1652с
peppa-ci / ci (pull_request) Successful in 29m39s
supervise.sh пишет в .pid номер самого демона, журнал без буфера sed,
лишних демонов каталога останавливает SIGTERM; register.sh сначала
останавливает прежнего демона. Тест с mock-act-runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:42:33 +00:00
d4dd8f235b PEP-321: упавшее задание проверок перезапускается через пару минут, а не через полчаса
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1650с
peppa-ci / ci (pull_request) Successful in 29m34s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:39:41 +00:00
12af9b54bf Merge pull request 'PEP-314: Go и PostgreSQL — в песочнице агента, проверках и шаблоне выкладки' (#301) from task/pep-314 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1705с
peppa-ci / ci (push) Successful in 31m21s
2026-11-27 12:36:22 +00:00
b411a65964 Merge pull request 'PEP-319: в сообщении о версии — только задачи, чьи коммиты в неё вошли' (#303) from task/pep-319 into main
PEP-319 [skip ci]
2026-11-27 12:36:18 +00:00
3a195f9980 PEP-314: помощник проверяет, что Go распаковался; тест не привязан к Linux
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 37с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1705с
peppa-ci / ci (pull_request) Successful in 30m46s
Приёмка координатора, полный локальный прогон на macOS: четыре теста «Go для проверок» ждали архив
для Linux, а помощник просит архив своей системы. Заодно нашёлся изъян самого помощника: когда
curl ничего не скачал, tar на macOS считает пустой поток пустым архивом — помощник сообщал об
успехе и ставил в PATH каталог без go. Теперь итог загрузки проверяется по самому файлу go.

Проверено: macOS — 13 из 13 (без правки скрипта «Go не скачался» падает); Linux, образ задания
проверок — обычная загрузка и отказ с кодом 1 при недоступном адресе.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 17:17:10 +05:00
40eda2ea6f Merge branch 'main' into task/pep-314
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1626с
peppa-ci / ci (pull_request) Successful in 29m30s
2026-11-27 12:04:01 +00:00
df565fa515 PEP-319: в сообщении о версии — только задачи, чьи коммиты в неё вошли
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1658с
peppa-ci / ci (pull_request) Successful in 29m48s
Список задач версии собирался из всего текста коммитов между версиями: задача, названная в
описании чужого коммита, попадала в сообщение канала как выпущенная (27.11.2026 — дважды).
Теперь считается только ключ в начале заголовка коммита или названия слитого PR.

Тест: коммит с упоминанием другой задачи в тексте и «Merge branch» — в списке только задачи версии;
до правки падали оба теста.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 16:56:28 +05:00
049b05ca19 Merge pull request 'PEP-318: «Принять всё» отвечает сразу, приёмка идёт в фоне' (#302) from task/pep-318 into main
All checks were successful
peppa/lint lint: success за 5с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 40с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1738с
peppa-ci / ci (push) Successful in 32m25s
2026-11-27 11:45:48 +00:00
700669380a Merge pull request 'PEP-317: страница «Gitea» не ждёт Git-сервер при заходе' (#300) from task/pep-317 into main
PEP-317 [skip ci]
2026-11-27 11:45:44 +00:00
13e5550de9 PEP-314: память — грабли с uid без passwd и *.go в шаблоне
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 37с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1779с
peppa-ci / ci (pull_request) Successful in 32m3s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:31:55 +00:00
b02c41ec80 PEP-314: замечания координатора — база у агента без записи в passwd (nss_wrapper), Dockerfile.golang, адрес базы ${ROUTER}-db, «go 1.27» = последний выпуск, stop без адреса, оценка времени
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1773с
peppa-ci / ci (pull_request) Successful in 32m0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:31:46 +00:00
9052c24c6a PEP-318: вместе с PEP-317 — в тестовом моке Gitea обе задержки ответа (общая и для поиска репозиториев)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 40с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1739с
peppa-ci / ci (pull_request) Successful in 32m45s
Обе задачи правили одно место мока: ответ с задержкой. Объединено: задержка поиска и общая задержка
работают вместе, берётся большая.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 16:29:43 +05:00
bcee434ed9 PEP-318: недоступная служба запуска — не отказ; на паузе решение выполняется
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1637с
peppa-ci / ci (pull_request) Successful in 29m38s
Замечания координатора: RunnerUnavailableError оставляет задачу в очереди без причины,
веб отпускает аренду, вачдог доводит; проверка паузы убрана из processAcceptQueue
(отложенное по PEP-127 по-прежнему ждёт «Продолжить»). Тесты и спека.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:02:48 +00:00
217d0d44ac PEP-314: временная база под root — пользователь для базы создаётся, если его нет (PEPPA_PG_USER); тесты под root в проверках
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 40с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1656с
peppa-ci / ci (pull_request) Successful in 29m49s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:45:32 +00:00
8dce469bbc PEP-317: казахский перевод пометки «Список загружается»
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 34с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1673с
peppa-ci / ci (pull_request) Successful in 30m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:45:25 +00:00
1c3a11db3b PEP-318: «Принять всё» отвечает сразу, приёмка идёт в фоне по одной задаче
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1624с
peppa-ci / ci (pull_request) Successful in 29m7s
Очередь приёмки в settings (accept.queue / accept.run / accept.worker), веб запускает
обработку после ответа, вачдог доводит брошенную. Страница «Приёмка» показывает ход и итог.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:23:33 +00:00
004b9f3cca PEP-314: стандарт 1.1.0 — данные продукта и копии, команды проверок для Go; правила и AGENTS.md шаблона; archive
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: failure за 1600с
peppa-ci / ci (pull_request) Failing after 28m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:15:18 +00:00
ec7345f483 PEP-317: страница «Gitea» не ждёт Git-сервер — список из памяти при любом возрасте, переживает перезапуск
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: failure за 1591с
peppa-ci / ci (pull_request) Failing after 28m44s
Последний список отдаётся сразу (старше минуты — обновление в фоне), хранится в settings
`gitea.overview` и прогревается при старте веба; без списка — «загружается». Ждёт Gitea
только «Получить заново» и «Сделать закрытым».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:13:36 +00:00
6df31deae0 PEP-314: шаблон выкладки Go + PostgreSQL — пароль базы на стенд, копия перед миграцией, тома превью уходят с превью
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:10:45 +00:00
a7f992dae2 PEP-314: помощник шаблона ставит Go и временную PostgreSQL для проверок без docker
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:06:52 +00:00
88d6ce4921 PEP-314: Go и PostgreSQL 18 в образе агента, дымовой тест их проверяет
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:05:34 +00:00
bb474b2a0a Merge pull request 'PEP-316: любая транзакция берёт блокировку записи первой — «database is locked» при записи из другого процесса' (#299) from task/pep-316 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1605с
peppa-ci / ci (push) Successful in 29m9s
2026-11-27 08:21:00 +00:00
ae7400e4f1 PEP-316: любая транзакция берёт блокировку записи первой — «database is locked» при записи из другого процесса
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1639с
peppa-ci / ci (pull_request) Successful in 29m27s
27.11.2026 в 11:27 веб потерял отчёт шага проверки с ошибкой «database is locked»: в этот момент
в базу писал другой процесс. `db.transaction` по умолчанию начиналась как читающая (BEGIN), а
читающей транзакции SQLite не даёт ждать блокировку записи: первая запись получает отказ сразу,
busy_timeout не работает. Утренняя правка результата проверок обернула чтение и запись в такую
транзакцию и гонку не убрала; так же были устроены ещё 15 транзакций ядра (команда агентов,
подписки, чаты, журнал подключений).

- db/client.ts: транзакция всегда начинается с BEGIN IMMEDIATE — ждёт свою очередь и видит то,
  что сохранили другие.
- Тест db-write-lock.test.ts с настоящим вторым процессом (mock-db-writer держит блокировку
  записи): отчёт проверки и транзакция «прочитал — записал» ждут и сохраняются. До исправления
  оба случая падали той же ошибкой, что на проде, сразу и без ожидания.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 13:02:47 +05:00
57191981a2 Merge pull request 'PEP-315: «Дать: чтение» после истёкших полных прав не возвращает запись' (#298) from task/pep-315 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 37с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1579с
peppa-ci / ci (push) Successful in 28m44s
2026-11-27 07:51:46 +00:00
7e84bfd9eb Merge pull request 'PEP-261: «Дать: чтение / полные права» и срок кнопками под запросом доступа агента' (#297) from task/pep-261 into main
Заход приёмки 27.11: PEP-261 перед исправлением PEP-315 [skip ci]
2026-11-27 07:51:42 +00:00
cb604d7a41 PEP-315: «Дать: чтение» после истёкших полных прав не возвращает запись
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 34с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1569с
peppa-ci / ci (pull_request) Successful in 28m8s
Приёмка PEP-261, 27.11.2026: агенту дали полные права на срок, срок вышел; на новый запрос
владелец нажал «Дать: чтение» — проект снова получил чтение и запись, а сообщение говорило
«чтение». `grantFor` расширял права по строке прошлой выдачи и не смотрел, действует ли она.
На живом сервере выдач ещё не было.

- core/access-requests.ts: прошлая выдача расширяет новую, только пока она действует
  (`grantState` = active); права и операции истёкшей или снятой «без дела» не возвращаются.
- Тест access-regrant.test.ts: истёкшие полные права и права, снятые «без дела» → «Дать: чтение»
  даёт только чтение (оба случая падали до исправления: writeMode auto вместо off);
  действующая выдача по-прежнему только расширяется.
- Спека access-hub: уточнение требования и сценарий «Чтение после истёкших полных прав».

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 12:20:45 +05:00
fd0db12629 Merge branch 'main' into task/pep-261
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1571с
peppa-ci / ci (pull_request) Successful in 28m45s
2026-11-27 07:13:58 +00:00
2bbeeab019 Merge pull request 'PEP-285: аудит стека FORGE относительно Default Stack' (#295) from task/pep-285 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1623с
peppa-ci / ci (push) Successful in 29m15s
2026-11-27 06:34:19 +00:00
6b8e2d2892 Merge pull request 'PEP-284: новые проекты получают FORGE Default Stack в инструкциях агентов' (#294) from task/pep-284 into main
Заход приёмки 27.11: PEP-284 и PEP-285 после зелёных проверок [skip ci]
2026-11-27 06:34:14 +00:00
a1525081ab Заход приёмки 27.11: стыковка PEP-284 и PEP-285, пустые строки в двух спеках [skip ci]
- PEP-285 правит строку стандарта, PEP-284 требует, чтобы копия в шаблоне совпадала с ним:
  вместе тест «Копия стандарта в шаблоне отстала» падал. Ссылка на аудит записана путём
  в репозитории платформы (в копии проекта относительная ссылка вела бы в никуда), копия
  в template/ обновлена.
- Мой разборщик конфликтов слияния в блоках «обе стороны добавили» выбрасывал строки,
  уже встречавшиеся у другой стороны, в том числе пустые: в спеках gitea-integration
  (заход из 20 задач, PEP-281 и PEP-282) и engineering-standards (PEP-285) пропало 13 пустых
  строк. Возвращены, блоки требований сверены с текстом агентов. Других потерь нет:
  повтор всех 21 слияния показал только пустые строки.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 11:33:53 +05:00
b0674c1c2e Заход приёмки 27.11: PEP-285 поверх main и PEP-284 [skip ci] 2026-11-27 11:33:53 +05:00
5191f1e5fe Merge branch 'main' into task/pep-285
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 37с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1629с
peppa-ci / ci (pull_request) Successful in 29m20s
2026-11-27 06:25:17 +00:00
3bef77100e Merge branch 'main' into task/pep-284
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1632с
peppa-ci / ci (pull_request) Successful in 29m21s
2026-11-27 06:25:16 +00:00
92e7c6f85f PEP-261: тест кнопок выдачи, AGENTS.md, память, archive change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1586с
peppa-ci / ci (pull_request) Successful in 28m31s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:15:39 +00:00
69cebe9b22 Merge pull request 'PEP-313: результат проверки пишется одной транзакцией — отчёт шага и опрос статусов не ломают друг друга' (#296) from task/pep-313 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1643с
peppa-ci / ci (push) Successful in 30m7s
2026-11-27 05:59:55 +00:00
079df65255 PEP-261: кнопки «Дать: чтение / полные права» и срок под запросом доступа агента
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:55:51 +00:00
3785562d51 PEP-285: аудит стека FORGE относительно Default Stack
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 36с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1647с
peppa-ci / ci (pull_request) Successful in 29m33s
Отчёт docs/standards/forge-stack-audit.md (слои, статусы, DDD-Lite, PostgreSQL/UUIDv7,
Bugsink, Gitea/Forgejo, Docker, roadmap, решения владельцу), ссылка из стандарта, тест структуры.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:55:17 +00:00
73b4653e1f PEP-284: память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 37с
peppa/bundle bundle: success за 1с
peppa/test test: success за 1649с
peppa-ci / ci (pull_request) Successful in 29m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:55:05 +00:00
8052413375 PEP-284: стандарт стека в шаблоне новых проектов (AGENTS.md, RULES.md, копия стандарта, e2e через шаблон Gitea)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:54:56 +00:00
978ccfdd3e PEP-313: результат проверки пишется одной транзакцией — отчёт шага и опрос статусов не ломают друг друга
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 41с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1644с
peppa-ci / ci (pull_request) Successful in 29m56s
27.11.2026 в 02:32 веб ответил 500 на отчёт шага проверки: «UNIQUE constraint failed:
check_runs.project_id, check_runs.sha, check_runs.check». Отчёт шага (веб) и опрос статусов
(вачдог) писали одну проверку одного коммита одновременно: чтение шло отдельно от записи, оба не
видели строки, вторая вставка падала, отчёт с журналом терялся.

- core/ci.ts: `upsertCheckRun` — чтение и запись в одной синхронной транзакции (блокировка записи
  берётся первой); второй писатель видит строку первого, журнал отчёта сохраняется, «изменилось» —
  один раз.
- Тест project-tabs.test.ts: два одновременных отчёта — одна запись; до исправления падал той же
  ошибкой, что на проде.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 10:41:55 +05:00
b664e6ad7c Merge pull request 'PEP-304: подписки в лимите — не «нет подписки»; время людям — в поясе платформы' (#292) from task/pep-304 into main
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 35с
peppa/bundle bundle: success за 0с
peppa-ci / ci (push) Has been cancelled
2026-11-27 05:31:19 +00:00
d5bcec2f95 Merge pull request 'PEP-298: ложный «конфликт» сразу после обновления ветки не зовёт агента' (#291) from task/pep-298 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:31:14 +00:00
690d0d59a2 Merge pull request 'PEP-294: хвосты после переезда — суперадмины по id, уборка токенов, сообщения фабрики закрываются сами, capacity_wait один раз' (#290) from task/pep-294 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:31:09 +00:00
59ac4ddb28 Merge pull request 'PEP-293: вход через eGov при сбоях сервиса подписи' (#289) from task/pep-293 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:31:05 +00:00
e9d1c68897 Merge pull request 'PEP-292: сообщение о новой версии FORGE без git в контейнере' (#288) from task/pep-292 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:31:00 +00:00
37cf2933c9 Merge pull request 'PEP-291: журналы сервисов переживают выкатку' (#287) from task/pep-291 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:54 +00:00
e712ecbaff Merge pull request 'PEP-283: FORGE Default Stack и принципы DDD-Lite' (#286) from task/pep-283 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:49 +00:00
efa7e4308c Merge pull request 'PEP-282: случайные падения проверок — таймаут к Gitea не съедает пауза процесса; список упавших тестов в отчёте; повтор тестов main' (#285) from task/pep-282 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:48 +00:00
ad6dd0a178 Merge pull request 'PEP-274: «Готовим ссылку» со сроком, поле чата на телефоне, свои заголовки вкладок' (#283) from task/pep-274 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:47 +00:00
8a6e9234b8 Merge pull request 'PEP-273: /gitea из кэша и по 50 строк, ссылки веба без предзагрузки' (#281) from task/pep-273 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:42 +00:00
664c9ef5e9 Merge pull request 'PEP-272: /api/health анониму — только ok; без X-Powered-By, script-src в CSP, аватар по https' (#282) from task/pep-272 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:40 +00:00
375ad25cd8 Merge pull request 'PEP-303: сторожа экрана не реагируют на текст в выводе агента' (#274) from task/pep-303 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:39 +00:00
98eddf376b Merge pull request 'PEP-302: отложенные находки приёмки видны и не теряются, поломки — в «Предложено» сразу' (#272) from task/pep-302 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:34 +00:00
eaca63aa0f Merge pull request 'PEP-281: старый Git — сверка 16 PR и 57 веток, ссылки на него убраны из платформы' (#276) from task/pep-281 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:32 +00:00
43176fc15d Merge pull request 'PEP-280: новые проекты закрытые по умолчанию; суперадмин закрывает публичные' (#273) from task/pep-280 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:31 +00:00
650d4e649e Merge pull request 'PEP-279: старые вопросы закрываются вариантом по умолчанию, «Принять» — одна сводка в день' (#271) from task/pep-279 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:26 +00:00
265c1d6052 Merge pull request 'PEP-260: Access Hub — агенту только текст, ключ bearer/header латиницей' (#250) from task/pep-260 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:25 +00:00
564c7a0217 Merge pull request 'PEP-250: Access Hub — агент сам просит доступ к сервису, владелец подключает ключ один раз' (#240) from task/pep-250 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:19 +00:00
7d0b3bcee8 Merge pull request 'PEP-217: Web Vitals пользователей и проверка веса JS в CI' (#206) from task/pep-217 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:30:17 +00:00
d6d5044e61 Merge pull request 'PEP-306: память проекта — файл на задачу, без конфликтов и красного теста размера' (#293) from task/pep-306 into main
Заход приёмки 27.11: двадцать задач одним заходом, проверки сервера — на итоговом коммите. [skip ci]
2026-11-27 05:29:58 +00:00
bc14e5824c Заход приёмки 27.11: стыковка задач между собой [skip ci]
Двадцать задач слиты одним заходом; три правила одной задачи ломались кодом другой:

- PEP-273 × PEP-250, PEP-279: три новых файла веба брали `next/link` напрямую — переведены на
  `@/components/Link` (сторож no-prefetch.test.ts).
- PEP-281 × PEP-272: адрес аватара в health-anon.test.ts и спеке web-auth — на git.vibe42.kz
  (сторож old-git-cleanup.test.ts не пускает старый адрес в репозиторий).
- PEP-217 × PEP-281: в observe.db миграции стали подряд (web_vitals — версия 4, монитор «Интернет» —
  версия 5); тест PEP-281 возвращал файл «к версии 3» и повторял чужую миграцию. Версия берётся по
  самой миграции (`observeMigrationIndex`).

Стыки, решённые при слиянии: страница /gitea и мок `/repos/search` (PEP-273 × PEP-280; после
«Сделать закрытым» страница берёт свежий список мимо кэша), импорты (PEP-250 × PEP-302,
PEP-279 × PEP-291, PEP-273 × PEP-304), память — файл на задачу по раскладке PEP-306.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 10:11:36 +05:00
d2124d8008 Заход приёмки 27.11: PEP-304 поверх main и принятых перед ней [skip ci] 2026-11-27 10:09:21 +05:00
787cde39f2 Заход приёмки 27.11: PEP-298 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:55 +05:00
f9881ea43f Заход приёмки 27.11: PEP-294 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:55 +05:00
c44f2db3f4 Заход приёмки 27.11: PEP-293 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:54 +05:00
5302e74fc8 Заход приёмки 27.11: PEP-292 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:54 +05:00
1c5fc6e072 Заход приёмки 27.11: PEP-291 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:54 +05:00
899570acf1 Заход приёмки 27.11: PEP-283 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:40 +05:00
d8b1fcfd5f Заход приёмки 27.11: PEP-282 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:39 +05:00
9a87f92d87 Заход приёмки 27.11: PEP-274 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:39 +05:00
4a15bcf551 Заход приёмки 27.11: PEP-273 поверх main и принятых перед ней [skip ci] 2026-11-27 10:08:39 +05:00
7373ad013d Заход приёмки 27.11: PEP-272 поверх main и принятых перед ней [skip ci] 2026-11-27 10:07:39 +05:00
22136ea160 Заход приёмки 27.11: PEP-303 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:37 +05:00
9b38dab378 Заход приёмки 27.11: PEP-302 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:36 +05:00
61261370bd Заход приёмки 27.11: PEP-281 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:20 +05:00
d059b4b50f Заход приёмки 27.11: PEP-280 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:19 +05:00
a60dc9c8df Заход приёмки 27.11: PEP-279 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:19 +05:00
4ef53f2627 Заход приёмки 27.11: PEP-260 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:19 +05:00
070574ce96 Заход приёмки 27.11: PEP-250 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:19 +05:00
0bdb722f7c Заход приёмки 27.11: PEP-217 поверх main и принятых перед ней [skip ci] 2026-11-27 10:06:04 +05:00
a7223a7923 Заход приёмки 27.11: PEP-306 поверх main [skip ci] 2026-11-27 10:05:29 +05:00
76b8efc78c PEP-306: архив change, запись памяти задачи
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1472с
peppa-ci / ci (pull_request) Successful in 26m34s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:07:40 +00:00
b52ccb4651 PEP-304: архив change, память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 35с
peppa/test test: success за 1489с
peppa-ci / ci (pull_request) Successful in 26m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:56:21 +00:00
020886eb1c PEP-304: подписки в лимите — не «нет подписки»; время людям — в поясе платформы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:55:49 +00:00
c82eb083d4 PEP-306: память проекта — файл на задачу, общий текст собирается при запуске
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:55:37 +00:00
d38719e213 PEP-298: ложный «конфликт» сразу после обновления ветки не зовёт агента; карточка считает проверки по списку версии
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1513с
peppa-ci / ci (pull_request) Successful in 27m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:34:13 +00:00
2a2405f588 PEP-294: archive change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1512с
peppa-ci / ci (pull_request) Successful in 27m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:24:19 +00:00
ac17f79cc4 PEP-294: память — суперадмины по id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:23:44 +00:00
f870bc7b67 PEP-294: суперадмины по id учётки, уборка токенов MCP, сообщения фабрики закрываются сами, capacity_wait один раз
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:22:28 +00:00
e30b3371f9 PEP-293: archive change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 36с
peppa/test test: success за 1522с
peppa-ci / ci (pull_request) Successful in 27m26s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:19:02 +00:00
206083d127 PEP-294: proposal — хвосты после переезда на сервер
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:17:23 +00:00
c52ff4a4f1 PEP-293: вход через eGov — липкий запасной DNS, понятная фраза при недоступном сервисе подписи
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:17:02 +00:00
e2b06b5e80 PEP-292: версия FORGE для канала — из коммита выкатки и истории main в Gitea, без git в контейнере
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 35с
peppa/test test: success за 1527с
peppa-ci / ci (pull_request) Successful in 27m32s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:16:00 +00:00
8746d80ab3 Merge branch 'main' into task/pep-282
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 35с
peppa/test test: success за 1523с
peppa-ci / ci (pull_request) Successful in 27m33s
2026-11-26 21:49:14 +00:00
11261e4483 PEP-291: archive change, память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1521с
peppa-ci / ci (pull_request) Successful in 27m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:48:05 +00:00
eac871eac4 PEP-291: журналы сервисов в $PEPPA_HOME/logs с ротацией, путь в peppa status
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:47:39 +00:00
71cac58cf9 Merge branch 'main' into task/pep-272
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/test test: success за 1538с
peppa-ci / ci (pull_request) Successful in 27m43s
2026-11-26 21:42:54 +00:00
c3f552b500 Merge branch 'main' into task/pep-273
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/test test: success за 1546с
peppa-ci / ci (pull_request) Successful in 27m51s
2026-11-26 21:41:33 +00:00
af218f76f5 PEP-283: archive change, память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1559с
peppa-ci / ci (pull_request) Successful in 28m3s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:31:25 +00:00
8065c1936c PEP-283: FORGE Default Stack и принципы DDD-Lite
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:30:54 +00:00
0d539146ac Merge branch 'main' into task/pep-274
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 37с
peppa/test test: success за 1558с
peppa-ci / ci (pull_request) Successful in 28m5s
2026-11-26 21:26:33 +00:00
31cdfad789 Merge branch 'main' into task/pep-280
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 38с
peppa/test test: success за 1566с
peppa-ci / ci (pull_request) Successful in 28m17s
2026-11-26 21:24:53 +00:00
0873b087d8 Merge branch 'main' into task/pep-281
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 55с
peppa/build build: success за 38с
peppa/test test: success за 1574с
peppa-ci / ci (pull_request) Successful in 28m38s
2026-11-26 21:14:03 +00:00
1341d61a05 PEP-272: тест зависшего раннера ждёт, пока экран устоится, вместо паузы 1,5 с
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 38с
peppa/test test: success за 1580с
peppa-ci / ci (pull_request) Successful in 28m35s
Под нагрузкой CI ответ мок-агента дорисовывался между тиками, вачдог видел активность.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:13:37 +00:00
d743b38f31 PEP-273: тест зависшего раннера ждёт, пока экран успокоится (нестабилен в CI)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 35с
peppa/test test: success за 1590с
peppa-ci / ci (pull_request) Successful in 28m43s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:12:37 +00:00
227c911baa PEP-282: архив change, память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1558с
peppa-ci / ci (pull_request) Successful in 28m7s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:11:14 +00:00
d2372c631b PEP-282: отчёт проверки называет упавшие тесты; тесты main повторяются один раз
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:10:38 +00:00
a1717939da PEP-282: таймаут запроса к Gitea по отзывчивому времени — пауза процесса не обрывает готовый ответ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:08:34 +00:00
511e85661b Merge pull request 'PEP-312: сжатие разговора на простое не делает агента «работающим»' (#284) from task/pep-312 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 82с
peppa/build build: success за 62с
peppa/test test: success за 1671с
peppa-ci / ci (push) Successful in 31m15s
2026-11-26 20:56:42 +00:00
76c40f7f40 PEP-274: archive change, память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 56с
peppa/test test: success за 1713с
peppa-ci / ci (pull_request) Successful in 30m59s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:55:09 +00:00
cd9147a7e5 Merge branch 'main' into task/pep-280
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/test test: success за 1737с
peppa-ci / ci (pull_request) Successful in 31m22s
2026-11-26 20:53:10 +00:00
f117f7fb62 PEP-274: «Готовим ссылку» со сроком, поле чата на телефоне, заголовки вкладок
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:52:14 +00:00
3999db7893 Merge branch 'main' into task/pep-281
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 37с
peppa/test test: success за 1714с
peppa-ci / ci (pull_request) Successful in 30m59s
2026-11-26 20:42:54 +00:00
4c9a14fc11 PEP-312: сжатие разговора на простое не делает агента «работающим»
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 86с
peppa/build build: success за 60с
peppa/test test: success за 1681с
peppa-ci / ci (pull_request) Successful in 31m21s
Claude Code сам сжимает простаивающий разговор («Compacted while idle, before the prompt cache
expired») и шлёт SessionStart с source: "compact". Хук session-start ставил сессии «работает»:
ход не начинался, экран не менялся, и через 15 минут вачдог объявлял агента зависшим, а через
час останавливал и перезапускал. С 26.11 13:26 так помечены 9 из 11 сжатых на простое сессий;
27.11 — три агента задач, которые ждут «Принять».

- runner/hook.ts: при source "compact" сохраняется только новый id разговора; статус и время
  последней активности не меняются. /clear, resume и старт — как раньше.
- AGENTS.md: заметка.
- Тест claude-live.test.ts: падал до исправления.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 01:39:02 +05:00
ce03df667c PEP-272: /api/health анониму — только ok; без X-Powered-By, script-src в CSP, аватар по https
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 55с
peppa/build build: success за 35с
peppa/test test: failure за 1720с
peppa-ci / ci (pull_request) Failing after 31m5s
- /api/health без ключа X-Peppa-Health (HMAC от PEPPA_SECRET, принимается и PREVIOUS) отдаёт только {ok};
  ключ шлют сторож адреса, сторож отставания выкатки, healthcheck контейнеров, скрипты выкатки
- poweredByHeader: false; CSP: script-src 'self' 'unsafe-inline' (unsafe-eval только в dev), worker-src 'self'
- httpsAvatar: http → https при записи и показе
- тест health-anon.test.ts, change archived

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:36:06 +00:00
fdc88d587c PEP-273: архив change, память проекта
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: failure за 1734с
peppa-ci / ci (pull_request) Failing after 31m14s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:34:48 +00:00
f6ae77efe1 PEP-273: ссылки веба без предзагрузки — обёртка @/components/Link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:34:02 +00:00
96fa6151ab PEP-273: /gitea — кэш списка, параллельные страницы, 50 строк на страницу
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:31:56 +00:00
4f0c414c31 Merge pull request 'PEP-311: Codex не нашёл разговор при resume — новый разговор, а не падения по кругу' (#280) from task/pep-311 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 38с
peppa/test test: success за 1672с
peppa-ci / ci (push) Successful in 30m52s
2026-11-26 20:24:56 +00:00
8ed5e76bea Merge pull request 'PEP-310: автовыкатка сообщает о неудаче сразу и пробует ту же версию снова через час' (#279) from task/pep-310 into main
Some checks failed
peppa-ci / ci (push) Has been cancelled
2026-11-26 20:24:36 +00:00
004508557f Merge pull request 'PEP-309: «Ошибки из прода» без ложных записей — отказ человеку, ожидание базы при выкатке, действие, которое ждёт запуска агента' (#278) from task/pep-309 into main
Some checks failed
peppa-ci / ci (push) Has been cancelled
2026-11-26 20:24:15 +00:00
f540ea12ae Merge pull request 'PEP-308: проверка, которая не отчиталась, не держит задачу — «проверки ещё идут» только пока статусы меняются' (#277) from task/pep-308 into main
Some checks failed
peppa-ci / ci (push) Has been cancelled
2026-11-26 20:23:27 +00:00
24e624be1a PEP-280: тест ревьюера ждёт окончания ревью и запуска агента по отдельности, с запасом под нагрузку CI
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 37с
peppa/test test: success за 1740с
peppa-ci / ci (pull_request) Successful in 31m35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:21:42 +00:00
2c064023f4 PEP-311: Codex не нашёл разговор при resume — новый разговор, а не падения по кругу
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 58с
peppa/build build: success за 39с
peppa/test test: success за 1705с
peppa-ci / ci (pull_request) Successful in 31m34s
EMP-2 (проект «Экомат», подписка ChatGPT) хранит id разговора Codex времён Mac. На сервере его
файла нет: `codex resume <thread>` отвечает «Failed to resume session from …: thread/resume failed:
no rollout found for thread id …» и выходит с кодом 1. Вачдог считал это падением: три
автоперезапуска, затем снова после каждой выкатки и каждого лечения застрявшей задачи —
27.11 восемь перезапусков за час, задача стоит с 18.11.

- runner/recovery.ts: `CODEX_LOST_CONVERSATION_RE`, `conversationLost(provider, tail)`;
  watchdog.ts зовёт `onConversationLost` и для Codex: id разговора забывается, сразу новый запуск,
  автоперезапуск не тратится (как у Claude, PEP-227).
- Мок Codex: `forgetResume` печатает настоящую строку Codex 0.171.
- Тест lost-conversation.test.ts: падал до исправления.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 01:04:46 +05:00
2c582e190d PEP-310: автовыкатка сообщает о неудаче сразу и пробует ту же версию снова через час
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 57с
peppa/build build: success за 39с
peppa/test test: success за 1693с
peppa-ci / ci (pull_request) Successful in 31m19s
26.11 в 23:40 сборка образа упала («permission denied» в ~/.docker): учётке сервера дали прямой
доступ к docker, скрипт перестал звать sudo, а служебные файлы остались за root от прежних
`sudo -E docker`. Автовыкатка записала версию как неудачную и больше её не пробовала; никому
ничего не пришло — сторож отставания (PEP-277) говорит только через два часа.

- scripts/platform-deploy.sh: `die` при --auto зовёт работающий вачдог
  (`peppa platform deploy-failed <sha> <причина>`); неудачная цель пропускается час, потом пробуется
  снова (scripts/lib/deploy-failed.sh, PEPPA_AUTODEPLOY_RETRY_MIN); `sudo -E -H` — root не пишет в
  ~/.docker учётки; `fix_docker_home` возвращает учётке оставшиеся там чужие файлы до сборки; откат
  называет причину в последней строке.
- runner/deploy-lag.ts: `alertDeployFailed` — суперадминам одно сообщение на версию и причину.
- CLI `peppa platform deploy-failed`; переводы en/kk.
- AGENTS.md: заметки PEP-308, PEP-309 и PEP-310 (три исправления сливаются одним заходом).
- Тесты: autodeploy.test.ts (метка неудачи, сообщение, ~/.docker), deploy-lag.test.ts (одно сообщение).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 01:00:26 +05:00
460da8bae2 PEP-309: «Ошибки из прода» без ложных записей — отказ человеку, ожидание базы при выкатке, действие, которое ждёт запуска агента
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 55с
peppa/build build: success за 38с
peppa/test test: success за 1698с
peppa-ci / ci (pull_request) Successful in 31m9s
У проекта PEP 17 открытых записей, и часть из них не ошибки:
- `PeppaError` («Нет активных подписок…») — понятный отказ на странице, а записан как сбой;
- «Медленно: /journal», «/projects» — один запрос по первичному ключу ждал базу 245 и 333 мс,
  пока выкатка копировала и мигрировала её;
- «Медленно: ACTION /», «/dashboard/delays», «/subscriptions» — действие ждёт службу запуска
  агентов 2,5–6 с по своей природе, порог 1,5 с срабатывал всегда.

- core/error-report.ts: `isRefusal`, `reportRequestError` — отказ в ошибки не уходит;
  apps/web/instrumentation.ts зовёт его из `onRequestError`.
- core/request-timing.ts: действиям свой порог `PEPPA_SLOW_ACTION_MS` (10 с); одиночный долгий
  запрос при быстром ответе — в ошибки только при повторе за час.
- Тесты request-timing.test.ts: три новых правила; до исправления падали.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 00:56:57 +05:00
3d35bbf2b6 PEP-308: проверка, которая не отчиталась, не держит задачу — «проверки ещё идут» только пока статусы меняются
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 40с
peppa/test test: success за 1720с
peppa-ci / ci (pull_request) Successful in 31m31s
PEP-217 стояла шесть дней: ветка в конфликте с main, три проверки из четырёх зелёные, статуса
peppa/test нет — задание пропало. Гейт отвечал «проверки ещё идут (3 из 4)»: просьба обновить
ветку была придержана «до конца проверок» навсегда, агент на update_task(status: review) получал
«подожди проверок».

- core/ci.ts: `lostChecks` — нужные проверки без результата на голове, чьи статусы peppa/* молчат
  дольше PEPPA_CHECKS_LOST_HOURS (3 ч); `prGate` для такой головы не говорит «ещё идут», а идёт
  дальше: конфликт, отставание (обновление ветки запустит проверки), иначе «проверки не завершились».
- runner/flow.ts: `requestRebase` потерянных проверок не ждёт.
- mcp/agent.ts: отказ агенту называет конфликт и молчащую проверку и что сделать; такую передачу
  на ревью не запоминаем (`review.wanted`).
- runner/review-wanted.ts, stuck-tasks.ts: отметка снимается; сторож застрявших задач просит агента
  запустить проверки новым коммитом.
- Мок Gitea: у статуса время (`updated_at`). Спека platform-delays, переводы en/kk.
- Тесты lost-checks.test.ts: 5 из 6 падали до исправления.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 00:55:50 +05:00
be7ce67078 PEP-260: слияние main — спека и переводы Access Hub (обе стороны), память без дублей
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 39с
peppa/test test: success за 1796с
peppa-ci / ci (pull_request) Successful in 32m32s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:48:29 +00:00
d45137203f PEP-281: архив change, требование в specs/gitea-integration, память
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 39с
peppa/test test: success за 1767с
peppa-ci / ci (pull_request) Successful in 32m33s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:47:40 +00:00
7cf259b83a PEP-250: мерж main (PEP-259, OAuth подключений), миграция запросов доступа — 0035
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 42с
peppa/test test: success за 1827с
peppa-ci / ci (pull_request) Successful in 33m8s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:47:31 +00:00
9794baf8ed PEP-281: сверка старого Git, ссылки на него убраны из кода, мониторинг «Интернет» проверяет новый Git
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:43:51 +00:00
bae36b82b7 Merge branch 'main' into task/pep-303
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 38с
peppa/test test: success за 1843с
peppa-ci / ci (pull_request) Successful in 33m29s
2026-11-26 19:42:49 +00:00
d903b17770 Merge branch 'main' into task/pep-280
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 41с
peppa/test test: failure за 1886с
peppa-ci / ci (pull_request) Failing after 34m20s
2026-11-26 19:39:23 +00:00
c6b44d9c44 PEP-217: память проекта — без дублей после слияния, в пределе
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 55с
peppa/build build: success за 39с
peppa/bundle bundle: success за 0с
peppa/test test: success за 1849с
peppa-ci / ci (pull_request) Successful in 33m49s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:39:15 +00:00
1ef3bd7c98 PEP-217: слияние с main — конфликты решены, терминал на /sessions грузится по требованию, эталон веса JS обновлён
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 40с
peppa/bundle bundle: success за 2с
peppa/test test: failure за 1869с
peppa-ci / ci (pull_request) Failing after 33m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:38:45 +00:00
a1dcb10daf Merge branch 'main' into task/pep-302
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 38с
peppa/test test: success за 1861с
peppa-ci / ci (pull_request) Successful in 34m9s
2026-11-26 19:37:44 +00:00
66020888c9 Merge branch 'main' into task/pep-279
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 40с
peppa/test test: success за 1853с
peppa-ci / ci (pull_request) Successful in 34m7s
2026-11-26 19:37:43 +00:00
912ebcf813 Merge pull request 'PEP-305: «Принято, ждёт обновления» снимается, когда одна версия несёт несколько задач' (#275) from task/pep-305 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1768с
peppa-ci / ci (push) Successful in 32m36s
2026-11-26 19:24:08 +00:00
d198818996 PEP-303: память проекта, archive change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1652с
peppa-ci / ci (pull_request) Successful in 29m51s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:10:07 +00:00
63ef12a100 PEP-303: плашка лимита — до двух значков CLI перед фразой; задачи отмечены
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:09:28 +00:00
7d5adcdfe1 PEP-302: архив change, спека agent-task-origin
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1657с
peppa-ci / ci (pull_request) Successful in 29m57s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:06:58 +00:00
9e97fd531d PEP-279: старые вопросы закрываются вариантом по умолчанию, «Принять» — одна сводка в день
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1644с
peppa-ci / ci (pull_request) Successful in 29m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:06:46 +00:00
fb7d6e1b62 PEP-302: память — грабли мока проверки на повтор
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:06:46 +00:00
70de049164 PEP-305: «Принято, ждёт обновления» снимается, когда одна версия несёт несколько задач
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 56с
peppa/build build: success за 38с
peppa/test test: success за 1772с
peppa-ci / ci (pull_request) Successful in 32m15s
В образе платформы нет рабочей копии git: `git merge-base --is-ancestor` падал, ошибка читалась
как «коммит не входит», и «Готово» получала только задача, чей коммит слияния совпал с коммитом
живого веба. 26.11 версия 1dc99c5b принесла PEP-301 и PEP-268 — PEP-301 осталась ждать навсегда.

- core/rollout.ts: `commitIn` различает «не предок» (false) и «git не знает» (null);
  `rolledOutWhere` при «не знает» спрашивает вызывающего (`inLive`).
- runner/rollout.ts: `liveCarries` — коммиты, достижимые из коммита живого веба, у Gitea
  (`commits?sha=`, страницами); список одного коммита веба читается один раз и только до времени
  самого коммита задачи (`rollout.wait.shaAt`). Gitea не отвечает — следующий проход.
- GiteaClient.listCommits: страница; мок Gitea: страницы, предел 50, время коммита.
- Тесты: каталог без git, две задачи одной версией — обе «Готово» (падал до исправления);
  ответы git «не предок» / «неизвестно».

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 00:06:35 +05:00
0c50be58f6 PEP-302: отложенные находки приёмки видны и не теряются, поломки — в «Предложено» сразу
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:06:31 +00:00
420b4ae357 PEP-280: архив change, AGENTS.md
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 35с
peppa/test test: success за 1629с
peppa-ci / ci (pull_request) Successful in 29m37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:06:21 +00:00
311aad4c90 PEP-303: сторожа экрана читают только строки CLI, не вывод инструментов агента
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:05:39 +00:00
223ef9f84f PEP-280: тест — агент клонирует и пушит закрытый репозиторий через релей
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:04:34 +00:00
fb1f316d9b PEP-280: новые проекты закрытые по умолчанию; суперадмин закрывает публичные в «Gitea»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:03:54 +00:00
1dc99c5b5a Merge pull request 'PEP-268: сбои платформы не списывают попытки задачи (F-05)' (#265) from task/pep-268 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1475с
peppa-ci / ci (push) Successful in 26m43s
2026-11-26 18:05:58 +00:00
3b303c2a8d PEP-268: память — убран устаревший дубль строки PEP-269 после слияния main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1544с
peppa-ci / ci (pull_request) Successful in 27m51s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:36:36 +00:00
81f0269c40 Merge branch 'main' into task/pep-268
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:23 +00:00
be58172bca PEP-268: мок лимита — сброс через 2 часа вместо фиксированных 5pm
С PEP-300 баннер с прошедшим временем сброса не считается лимитом, и тест
«usage limit banner» падал каждый день 17:00–21:00 (и на main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:16 +00:00
1bd3a3e2f0 Merge pull request 'PEP-301: задачи с конфликтом, которыми никто не занимается' (#270) from task/pep-301 into main
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: failure за 1518с
peppa-ci / ci (push) Failing after 27m33s
2026-11-26 16:51:35 +00:00
0ccf12b3a6 PEP-268: память ужата после слияния main (12024 → 11912)
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 35с
peppa/test test: failure за 1539с
peppa-ci / ci (pull_request) Failing after 27m52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:50:11 +00:00
2dcb12f683 Merge branch 'main' into task/pep-268
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: failure за 1518с
peppa-ci / ci (pull_request) Failing after 27m33s
2026-11-26 16:22:12 +00:00
15c222534c Merge branch 'main' into task/pep-301
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1513с
peppa-ci / ci (pull_request) Successful in 27m25s
2026-11-26 16:22:11 +00:00
edac120990 Merge pull request 'PEP-295: задача не от человека — в работу только через «Предложено»' (#268) from task/pep-295 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1456с
peppa-ci / ci (push) Successful in 26m23s
2026-11-26 14:54:15 +00:00
307626f300 Merge branch 'main' into task/pep-295
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1536с
peppa-ci / ci (pull_request) Successful in 27m45s
2026-11-26 14:25:41 +00:00
3e258f24df Merge pull request 'PEP-287: уборка диска сервера — папки агентов, кэш сборки, образы платформы, сторож места' (#267) from task/pep-287 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1483с
peppa-ci / ci (push) Successful in 26m51s
2026-11-26 14:21:59 +00:00
1656923958 PEP-295: память проекта после rebase — без дубля
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1471с
peppa-ci / ci (pull_request) Successful in 26m30s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:41 +00:00
d857b15c11 PEP-295: память проекта после rebase — без дубля
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:35 +00:00
8bc56de251 PEP-295: память проекта после rebase — без дубля, в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:35 +00:00
9b95023cb4 PEP-295: archive change pep-295-proposals-only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:35 +00:00
e962779d37 PEP-295: AGENTS.md, память проекта, tasks.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:35 +00:00
580fbac015 PEP-295: задача не от человека — только через «Предложено», общий предел в сутки, исключение владельца
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:54:35 +00:00
c5dae8d1e7 Merge branch 'main' into task/pep-287
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1471с
peppa-ci / ci (pull_request) Successful in 26m30s
2026-11-26 13:54:28 +00:00
113de40b8e Merge pull request 'PEP-287: уборка диска сервера — папки агентов, кэш сборки, образы платформы, сторож места' (#267) from task/pep-287 into main 2026-11-26 13:54:22 +00:00
0a25e94591 Merge branch 'main' into task/pep-287
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 36с
peppa/test test: success за 1569с
peppa-ci / ci (pull_request) Successful in 28m17s
2026-11-26 13:25:09 +00:00
64255e6550 PEP-268: сбои платформы не списывают попытки задачи
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1510с
peppa-ci / ci (pull_request) Successful in 27m11s
Пропавшая сессия tmux, зависание Claude до SessionStart и запуск с HostUnreachable/
TMUX_SERVER_DOWN — planPlatformRetry: свой счётчик watch_state.platformFails, бесплатный
перезапуск через 1/5/15/30 мин, суперадмину одно сообщение на третьем сбое, владельцу —
строка «Сбой на нашей стороне, чиним». Тест platform-failures-free.test.ts; change
архивирован, требование в openspec/specs/watchdog-recovery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:18:46 +00:00
edf0abf7a1 PEP-301: память в пределе после слияния с main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1501с
peppa-ci / ci (pull_request) Successful in 27m4s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:14:40 +00:00
b1a2dd13eb PEP-301: память, AGENTS.md, архив change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:14:40 +00:00
c8a95cc67f PEP-301: подавленная просьба обновить изменения повторяется, почасовая сверка конфликтов без хозяина, старый вопрос не держит сторожа, недельные результаты — решение владельца
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:14:40 +00:00
c8d2450851 Merge pull request 'PEP-271: права агента задаёт платформа — .claude/settings.json репозитория их не расширяет (F-07)' (#263) from task/pep-271 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1493с
peppa-ci / ci (push) Successful in 26m56s
2026-11-26 13:14:10 +00:00
41bb8c8614 Merge branch 'main' into task/pep-271
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 37с
peppa/test test: success за 1474с
peppa-ci / ci (pull_request) Successful in 26m48s
2026-11-26 12:46:54 +00:00
994010ca54 PEP-287: память после rebase — без устаревшей строки, в пределе
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1525с
peppa-ci / ci (pull_request) Successful in 27m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:26:12 +00:00
bf426ceb70 PEP-287: память после rebase — без дублей, в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:24:54 +00:00
ad9f580519 PEP-287: память после rebase — без дубля, в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:24:54 +00:00
5e85cf36eb PEP-287: документы, память, архив change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:24:54 +00:00
4233f842b1 PEP-287: уборка диска — папки агентов, кэш сборки, образы платформы, сторож места
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:24:54 +00:00
efca6117a3 Merge pull request 'PEP-278: «Принято, ждёт обновления» — «Готово» только когда коммит задачи работает' (#266) from task/pep-278 into main
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 35с
peppa/test test: failure за 1520с
peppa-ci / ci (push) Failing after 28m10s
2026-11-26 12:22:48 +00:00
53aee41852 Merge branch 'main' into task/pep-271
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 39с
peppa/test test: success за 1545с
peppa-ci / ci (pull_request) Successful in 28m5s
2026-11-26 12:18:48 +00:00
fd4415ca92 Merge branch 'main' into task/pep-278
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 37с
peppa/test test: success за 1555с
peppa-ci / ci (pull_request) Successful in 28m36s
2026-11-26 11:52:38 +00:00
7825899163 Merge pull request 'PEP-277: сторож «прод отстаёт от main» — сообщение суперадминам' (#264) from task/pep-277 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 37с
peppa/test test: success за 1516с
peppa-ci / ci (push) Successful in 27m44s
2026-11-26 11:52:23 +00:00
ad2eb2bd36 PEP-271: AGENTS.md без задвоенных абзацев после слияния с main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1548с
peppa-ci / ci (pull_request) Successful in 28m10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:47:13 +00:00
9e467cc3e6 PEP-271: шаг tools повторяет apt и падает явно, если tmux не установлен
Прогон проверок упал на spawn tmux ENOENT: зеркало Ubuntu было в синхронизации, apt-get update
вернул ошибку, && молча пропустил установку tmux, шаг остался зелёным.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:46:45 +00:00
e744f7873d Merge branch 'main' into task/pep-277
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 37с
peppa/test test: success за 1569с
peppa-ci / ci (pull_request) Successful in 28m35s
2026-11-26 11:22:59 +00:00
b8c2bf9076 PEP-278: память проекта — убран дубль после rebase, ужата под предел
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/test test: success за 1574с
peppa-ci / ci (pull_request) Successful in 28m45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:20:22 +00:00
59d3f6eb41 PEP-278: ужать память проекта под предел
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:20:12 +00:00
dfe6f18234 PEP-278: archive change, память проекта
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:20:12 +00:00
4ba532afc8 PEP-278: принятая задача «ждёт обновления», пока её коммит не работает
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:20:12 +00:00
1143d10fa8 Merge pull request 'PEP-264: модель по провайдеру — Codex не запускается с моделью Claude (F-03)' (#260) from task/pep-264 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1482с
peppa-ci / ci (push) Successful in 26m53s
2026-11-26 11:06:18 +00:00
d564892364 PEP-277: ужать память проекта до предела (после мержа main — 12121 из 12000)
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1498с
peppa-ci / ci (pull_request) Successful in 27m6s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:54:22 +00:00
fe4c131aee PEP-264: память проекта — убран дубль после rebase
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 34с
peppa/test test: success за 1561с
peppa-ci / ci (pull_request) Successful in 29m15s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:32:12 +00:00
2aac71ca38 PEP-264: архив change, AGENTS.md, память проекта
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:30:42 +00:00
fd795afd7f PEP-264: модель по провайдеру — модель чужого CLI не уходит в запуск
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:30:42 +00:00
aa00444e74 PEP-271: память как в main — правило уже в AGENTS.md, предел памяти
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/test test: failure за 976с
peppa-ci / ci (pull_request) Failing after 19m56s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:26:18 +00:00
dde08970aa Merge branch 'main' into task/pep-277
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: failure за 1525с
peppa-ci / ci (pull_request) Failing after 30m47s
2026-11-26 10:23:17 +00:00
86ddf80920 PEP-271: память без дубля после rebase на main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:22:04 +00:00
e1b81e14ca PEP-271: права агента Claude задаёт платформа — managed-settings в контейнере, .claude/settings.json репозитория их не расширяет
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:22:04 +00:00
9a25e1dc86 Merge pull request 'PEP-265: зависание агента на старте — сбой платформы, а не задачи' (#262) from task/pep-265 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 36с
peppa/test test: success за 1538с
peppa-ci / ci (push) Successful in 29m22s
2026-11-26 10:21:16 +00:00
b00e9c1959 Merge branch 'main' into task/pep-265
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 55с
peppa/build build: success за 37с
peppa/test test: success за 1558с
peppa-ci / ci (pull_request) Successful in 28m53s
2026-11-26 09:31:16 +00:00
065768e0b6 Merge branch 'main' into task/pep-277
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 39с
peppa/test test: success за 1534с
peppa-ci / ci (pull_request) Successful in 27m53s
2026-11-26 09:22:28 +00:00
4bb4d3d7a3 Merge pull request 'PEP-300: плашка лимита с прошедшим временем — не новый лимит' (#269) from task/pep-300 into main
All checks were successful
peppa/lint lint: success за 5с
peppa/typecheck typecheck: success за 56с
peppa/build build: success за 46с
peppa/test test: success за 1554с
peppa-ci / ci (push) Successful in 29m18s
2026-11-26 09:09:47 +00:00
fd56afdbf3 PEP-300: плашка лимита с прошедшим временем — не новый лимит
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 35с
peppa/test test: failure за 1531с
peppa-ci / ci (pull_request) Failing after 27m42s
25.11.2026 три рабочие подписки получили отметку «лимит» на сутки вперёд.
Claude Code при лимите ждёт сброса сам («set to continue automatically at
6:50pm») и продолжает, плашка остаётся на экране. Вачдог читал её после
конца хода, в 18:51, и время без даты выходило завтрашним.

- passedReset (runner/limits.ts): время на плашке уже прошло (не больше
  4 часов назад, сегодня или вчера сразу после полуночи; полная дата в
  прошлом) — лимит за плашкой кончился.
- Вачдог по такой плашке подписку не помечает и агента не останавливает,
  событие usage_limit_passed раз на плашку; упавший процесс со старой
  плашкой в хвосте — сбой, а не лимит.
- parseResetTime не меняется: им читают свежие сообщения (хук, «Проверить»).
- Время в сообщениях о лимите — в поясе платформы (PEPPA_TZ), а не сервера.

Тесты: limits.test.ts (PEP-300) — падали до исправления.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-26 13:53:56 +05:00
546027bb4e PEP-277: сторож «прод отстаёт от main» — сообщение суперадминам
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1471с
peppa-ci / ci (pull_request) Successful in 29m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:40:49 +00:00
3e2a2b4333 PEP-265: archive change pep-265-start-hang
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 36с
peppa/test test: success за 1468с
peppa-ci / ci (pull_request) Successful in 26m36s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:40:45 +00:00
1646f465f3 PEP-265: зависание агента на старте — сбой платформы, а не задачи
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:40:45 +00:00
119bd97edc Merge pull request 'PEP-299: агент задачи в ревью уступает место очереди' (#261) from task/pep-299 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 36с
peppa/test test: success за 1489с
peppa-ci / ci (push) Successful in 27m26s
2026-11-26 08:40:23 +00:00
dcec76f3d4 PEP-299: агент задачи в ревью уступает место очереди и продолжает тот же разговор
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 56с
peppa/build build: success за 38с
peppa/test test: success за 1444с
peppa-ci / ci (pull_request) Successful in 26m17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:26:27 +00:00
e9cdd782ce Merge pull request 'PEP-248: задание, которое исполнитель не берёт, — не очередь проверок' (#235) from task/pep-248 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 31с
peppa/test test: success за 1521с
peppa-ci / ci (push) Successful in 27m30s
2026-11-25 19:05:53 +00:00
16f2004cd4 Merge branch 'main' into task/pep-248
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1536с
peppa-ci / ci (pull_request) Successful in 28m0s
2026-11-25 18:36:47 +00:00
ad59289ae7 PEP-248: тест ревьюера ждёт саму карточку «готово» — статус ставится раньше неё (гонка под нагрузкой CI)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1376с
peppa-ci / ci (pull_request) Successful in 24m52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:10:10 +00:00
d852aed15b PEP-248: вачдог перепроверяет пропавшую сессию tmux перед перезапуском (нестабильный cjm hang под нагрузкой CI)
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 32с
peppa/test test: failure за 1490с
peppa-ci / ci (pull_request) Failing after 27m28s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:39:00 +00:00
d81a767d2b Merge pull request 'PEP-259: срок у разрешения Access Hub и автоснятие после 72 ч без дела' (#245) from task/pep-259 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 37с
peppa/test test: success за 1430с
peppa-ci / ci (push) Successful in 26m28s
2026-11-25 17:26:39 +00:00
5271a29237 Merge branch 'main' into task/pep-248
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 38с
peppa/test test: failure за 1696с
peppa-ci / ci (pull_request) Failing after 30m53s
2026-11-25 16:52:29 +00:00
f31f321564 Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 35с
peppa/test test: success за 1661с
peppa-ci / ci (pull_request) Successful in 31m22s
2026-11-25 16:41:03 +00:00
1f733a1d29 Merge pull request 'PEP-297: время в очереди на агента — не молчание агента в шаге конфликта' (#259) from task/pep-297 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1690с
peppa-ci / ci (push) Successful in 30m21s
2026-11-25 16:10:13 +00:00
7ca11abb82 PEP-248: слияние с main — нет исполнителя у своего кода (PEP-255) идёт через общую свою задержку
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1562с
peppa-ci / ci (pull_request) Successful in 28m39s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:57:00 +00:00
5019e1ad80 Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1546с
peppa-ci / ci (pull_request) Successful in 28m56s
Миграция сроков разрешений переименована в 0034 (0033 заняла PEP-252).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:54:14 +00:00
ec1d042b0a PEP-297: время в очереди на агента — не молчание агента в шаге конфликта
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1546с
peppa-ci / ci (pull_request) Successful in 29m2s
После выкатки PEP-269 задача с конфликтом, которая стояла в очереди на агента
(предел задач на код), через 90 минут эскалировалась суперадмину как «агент не
обновил изменения», хотя агент ещё не стартовал: 15 ложных сообщений за полтора
часа. Пока задача ждёт места (isWaitingForCapacity), шаг — «ждём», а время
агента отсчитывается с момента, когда он получил место.

Тест в conflict-step.test.ts падал до исправления.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 20:53:41 +05:00
468eefba3d Merge pull request 'PEP-255: зависшая проверка одного проекта не останавливает приёмку остальных' (#239) from task/pep-255 into main
Some checks failed
peppa-ci / ci (push) Failing after 10m12s
2026-11-25 15:26:28 +00:00
550d74678b Merge pull request 'PEP-252: Access Hub — вход в сервисы через OAuth (Google, GitHub), шлюз сам обновляет токены' (#242) from task/pep-252 into main
Some checks are pending
peppa-ci / ci (push) Waiting to run
2026-11-25 15:26:18 +00:00
5433e970eb Merge pull request 'PEP-257: раздел «Сессии», терминал без растяжения, нижняя панель tmux' (#243) from task/pep-257 into main
Some checks are pending
peppa-ci / ci (push) Waiting to run
2026-11-25 15:26:13 +00:00
5fd5379f88 Merge pull request 'PEP-267: закреплённые версии Claude Code, Codex, OpenCode' (#251) from task/pep-267 into main
Some checks are pending
peppa-ci / ci (push) Waiting to run
2026-11-25 15:26:05 +00:00
b629cb0acf Merge pull request 'PEP-270: задачи агентов — предложения, не больше 5 в сутки на проект' (#255) from task/pep-270 into main
Some checks are pending
peppa-ci / ci (push) Waiting to run
2026-11-25 15:25:54 +00:00
cd9d9cd9e5 Поезд приёмки: память проекта ужата до предела
Some checks failed
peppa-ci / ci (pull_request) Failing after 10m24s
После слияния пяти задач .peppa/memory.md вышла за предел remember (12 775 из
12 000 символов, тест project-memory-size). Склеены два варианта записи о
песочнице раннера; убраны три записи, которые повторяют AGENTS.md
(PEP-123, PEP-139/140, PEP-153).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 20:25:14 +05:00
6fb083a064 Поезд приёмки: PEP-255 поверх предыдущих (task/pep-255)
Конфликт в packages/core/src/platform-status.ts: импорт версий агентов (PEP-267)
и standingChecksLanes (PEP-255) — оставлены оба.
2026-11-25 20:07:11 +05:00
5d7775cdb3 Поезд приёмки: PEP-252 поверх предыдущих (task/pep-252) 2026-11-25 20:06:57 +05:00
6a8d3bc008 Поезд приёмки: PEP-257 поверх предыдущих (task/pep-257)
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 33с
peppa/test test: failure за 1650с
peppa-ci / ci (pull_request) Failing after 30m0s
2026-11-25 20:06:57 +05:00
020f1e08f4 Поезд приёмки: PEP-267 поверх предыдущих (task/pep-267)
Some checks failed
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 35с
peppa/test test: failure за 1646с
peppa-ci / ci (pull_request) Failing after 30m5s
2026-11-25 20:06:57 +05:00
a827251ed9 Поезд приёмки: PEP-270 поверх предыдущих (task/pep-270)
All checks were successful
peppa/lint lint: success за 10с
peppa/typecheck typecheck: success за 54с
peppa/build build: success за 38с
peppa/test test: success за 1559с
peppa-ci / ci (pull_request) Successful in 29m3s
2026-11-25 20:06:56 +05:00
b106fba99f PEP-259: вопрос и его «Подробнее» пишутся одной транзакцией (гонка в reviewer.test)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 36с
peppa/test test: success за 1552с
peppa-ci / ci (pull_request) Successful in 28m30s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:33:58 +00:00
1e5f0f4b17 Merge branch 'main' into task/pep-252
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 35с
peppa/test test: failure за 1623с
peppa-ci / ci (pull_request) Failing after 29m32s
2026-11-25 14:27:13 +00:00
c3e2381e3c Merge branch 'main' into task/pep-270
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 36с
peppa/test test: success за 1456с
peppa-ci / ci (pull_request) Successful in 26m18s
2026-11-25 14:27:11 +00:00
0a29a3340b PEP-255: память проекта в пределе после мержа main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1434с
peppa-ci / ci (pull_request) Successful in 26m32s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:26:40 +00:00
1bf8164b9e PEP-255: мерж main — шаг конфликта (PEP-269) вместо прямых просьб, очередь своей линии в requestRebase
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:24:00 +00:00
3f49568aaa PEP-267: память проекта в пределе после свежей main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 38с
peppa/test test: success за 1428с
peppa-ci / ci (pull_request) Successful in 25m59s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:19:48 +00:00
0db37d2543 Merge origin/main into task/pep-248
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1579с
peppa-ci / ci (pull_request) Successful in 28m44s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:14:24 +00:00
330c08b44d PEP-267: память проекта поверх свежей main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:14:17 +00:00
53536c8df7 PEP-267: чтение из Gitea повторяется один раз при обрыве соединения — гейт не закрывается на сетевом сбое
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:14:17 +00:00
2bb3d4f4b4 PEP-267: закреплённые версии Claude Code, Codex, OpenCode — без автообновления, дымовой тест и откат образа, сверка для суперадмина
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:14:16 +00:00
44f8d24e9d Merge branch 'main' into task/pep-257
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 38с
peppa/test test: failure за 1430с
peppa-ci / ci (pull_request) Failing after 26m7s
2026-11-25 14:14:11 +00:00
b9db1ea739 Merge pull request 'PEP-296: ссылка на PR не из репозитория проекта не открывает гейт' (#258) from task/pep-296 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 38с
peppa/test test: success за 1609с
peppa-ci / ci (push) Successful in 29m11s
2026-11-25 13:57:31 +00:00
d20bfe496e PEP-296: чужая ссылка не закрывает задачу и в запомненной приёмке, «Принять», автомерже
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 35с
peppa/test test: failure за 1638с
peppa-ci / ci (pull_request) Failing after 29m35s
pendingAcceptTick завершал приёмку, когда taskPrNumber не узнавал ссылку
(так закрылись PEP-255 и PEP-257); mergeTaskPr возвращал «PR нет», автомерж
шёл в afterMerge. Теперь ссылка вида /pulls/<n> не из репозитория проекта —
отказ с причиной, задача остаётся на проверке. Тест на все три пути.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 18:41:22 +05:00
23fc8e063a PEP-296: ссылка на PR не из репозитория проекта не открывает гейт
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 38с
peppa/test test: success за 1461с
peppa-ci / ci (pull_request) Successful in 26m56s
25.11 PEP-255 и PEP-257 стали «Готово» с несмерженными PR: агент после rebase
записал pr_url на старый Git, taskPrNumber не узнал репозиторий, prGate вернул
«PR нет», запомненное «Принять» закрыло задачу без мержа.

- core/ci.ts: foreignPrUrl; prGate закрыт для ссылки вида /pulls/<n> не из
  репозитория проекта.
- mcp/agent.ts: update_task приводит такую ссылку к настоящему PR проекта
  (тот же номер, ветка задачи) или отказывает агенту.
- тест foreign-pr-url.test.ts (падал до исправления).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 18:38:54 +05:00
a9a1eddd22 Merge branch 'main' into task/pep-252
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 37с
peppa/test test: success за 1497с
peppa-ci / ci (pull_request) Successful in 27m41s
2026-11-25 13:29:36 +00:00
b9cc11adb9 Merge branch 'main' into task/pep-270
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 39с
peppa/test test: success за 1497с
peppa-ci / ci (pull_request) Successful in 27m38s
2026-11-25 13:29:34 +00:00
82d6ec0b73 Merge branch 'main' into task/pep-259
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 40с
peppa/test test: failure за 1559с
peppa-ci / ci (pull_request) Failing after 28m35s
2026-11-25 13:24:15 +00:00
1b1c87ff1c Merge pull request 'PEP-269: конфликт с main — отдельный шаг, а не перезапуски' (#254) from task/pep-269 into main
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 34с
peppa-ci / ci (push) Has been cancelled
2026-11-25 13:24:05 +00:00
8a656ef1e7 PEP-257: память проекта — убраны дубли после rebase на main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 39с
peppa/test test: success за 1478с
peppa-ci / ci (pull_request) Successful in 27m23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:10:50 +00:00
bd7c031a87 PEP-255: мерж main — спеки задержек вместе, память без дублей
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 36с
peppa/test test: success за 1413с
peppa-ci / ci (pull_request) Successful in 25m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:04:40 +00:00
c83454889c PEP-252: вход в сервисы через OAuth (Google, GitHub) — поверх свежей main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1416с
peppa-ci / ci (pull_request) Successful in 26m6s
Ядро (обновление токенов, «Войти заново», отзыв в сервисе), экран «Подключения»,
тексты ru/kk/en, мок и тесты. Пересобрано на main после PEP-251/258:
миграция теперь 0033_access_hub_oauth, маскировка ответа — connectionKeyForms
от текущего токена, проверка подключений принимает notify вместе с drivers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:00:23 +00:00
a6f38e439c PEP-257: строка статуса tmux — отдельным запросом в фоне, кадр pane её не ждёт
Красные проверки: все тесты кадра терминала в CI ждали первый кадр, tmux-сервер
после этого пропадал. Запрос размера pane снова прежний (один display-message),
строка статуса читается отдельно, с таймаутом, раз в секунду и без ожидания;
сбой — кадр без строки и одно предупреждение в журнал.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:58:11 +00:00
a330ca575c PEP-257: archive change pep-257-sessions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:58:11 +00:00
5db9b11b1f PEP-257: дизайн, AGENTS.md, память проекта
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:58:11 +00:00
14904b98a1 PEP-257: переводы, словарь, полный экран, визуальная проверка
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:58:11 +00:00
65041d2dc4 PEP-257: раздел «Сессии», терминал без растяжения и по ширине
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:58:03 +00:00
58abeef326 PEP-257: строка статуса tmux в терминале агента
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:58:02 +00:00
5f73cb7e11 PEP-248: память без повторов после слияния с main
Some checks failed
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 33с
peppa/test test: failure за 1591с
peppa-ci / ci (pull_request) Failing after 29m37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:56:42 +00:00
c9e36e50da Merge remote-tracking branch 'origin/main' into task/pep-248 2026-11-25 12:56:30 +00:00
5f45f32e1a PEP-270: решение по ошибке продукта пишется вместе со статусом «задача»
All checks were successful
peppa/lint lint: success за 4с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 37с
peppa/test test: success за 1414с
peppa-ci / ci (pull_request) Successful in 26m43s
createBugTask ставил status=task, а решение (decision/decisionReason) записывалось
следующим обновлением — читатель между ними видел задачу без решения (прогон 205,
incidents.test «triage, триажёр уверен»). Теперь одним обновлением.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:56:23 +00:00
df327075c6 Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 56с
peppa/build build: success за 43с
peppa/test test: success за 1447с
peppa-ci / ci (pull_request) Successful in 27m11s
2026-11-25 12:56:23 +00:00
c7c11a4120 PEP-270: тесты «готово» ждут ходов сторожа, а не одного
Под нагрузкой CI ответ Gitea опаздывает, prGate закрыт и «готово» придерживается до
следующего reviewCardTick — тесты делали один ход и падали (прогон 193). Проверки те же:
одно новое сообщение и ровно пять карточек; см. PEP-282.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:56:23 +00:00
f421ea60c7 PEP-270: задачи агентов — предложения, не больше 5 в сутки на проект
- MCP create_task агента: origin agent + «Предложено» (раньше — задача человека, диспетчер брал её сам)
- AgentLimits.perDay (5, скользящие 24 ч), proposalRoom/proposalsToday; сверх — отказ агенту,
  находки приёмки — в недельную сводку; событие proposal_limited
- CLI agent-limits perDay=N, правило агентам в template/RULES.md, тест proposal-daily-limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:56:23 +00:00
2d419f1f34 Merge branch 'main' into task/pep-269
All checks were successful
peppa/lint lint: success за 8с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 41с
peppa/test test: success за 1440с
peppa-ci / ci (pull_request) Successful in 26m52s
2026-11-25 12:56:14 +00:00
7948d83649 Merge pull request 'PEP-286: агенты на Codex видят MCP peppa (env сервера, без подтверждений, без приложений аккаунта)' (#257) from task/pep-286 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 35с
peppa/test test: success за 1357с
peppa-ci / ci (push) Successful in 25m18s
2026-11-25 10:32:20 +00:00
6a3074f86f PEP-286: Codex agents get the peppa MCP server's env, tools without approval, no account apps
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 32с
peppa/test test: success за 1309с
peppa-ci / ci (pull_request) Successful in 24m16s
Codex starts MCP servers with a bare environment, so peppa-mcp lacked the
session's PEPPA_* (relay token, URL, session) and exposed no tools; agents
called the ChatGPT account's own «peppa» app, which wanted a fresh sign-in.
mock-codex now strips the MCP env like the real CLI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:05:42 +05:00
91fe2a6277 Merge pull request 'PEP-276: выкатка без базы не начинается; раскладка сервера важнее ~/.peppa' (#256) from task/pep-276 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 31с
peppa/test test: success за 1319с
peppa-ci / ci (push) Successful in 23m50s
2026-11-24 21:06:45 +00:00
323ec16417 Merge remote-tracking branch 'origin/main' into HEAD
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1357с
peppa-ci / ci (pull_request) Successful in 24m28s
2026-11-24 20:41:54 +00:00
88f5a8a6cf Merge pull request 'PEP-266: дымовой тест запуска агентов после выкатки и раз в час' (#248) from task/pep-266 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1504с
peppa-ci / ci (push) Successful in 27m15s
2026-11-24 19:59:23 +00:00
9f9fb8208c PEP-266: тест трёх красных проверок ждёт сообщений агенту до 90 с
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1395с
peppa-ci / ci (pull_request) Successful in 25m23s
Мок берёт сообщения по одному, на каждый ход — два процесса хуков; под
полным прогоном CI четыре хода подряд не укладываются в 25 с по умолчанию.
Условие то же, увеличена только выдержка.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:32:05 +00:00
cb75173562 PEP-269: список конфликтующих файлов — git с пределом по времени, эскалация не виснет
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 32с
peppa/test test: success за 1409с
peppa-ci / ci (pull_request) Successful in 25m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:24:06 +00:00
336e63d82f PEP-266: тест переезда на Codex не зависит от того, успел ли мок закончить ход
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: failure за 1553с
peppa-ci / ci (pull_request) Failing after 28m15s
Мок Codex после переезда сразу завершает первый ход и сообщает свой id
разговора — на загруженном CI conversationId уже не null. Проверяем суть:
разговор Claude не переносится (id другой; если есть — новый разговор Codex).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:57:29 +00:00
f99eed9ae3 PEP-276: выкатка без базы не начинается; раскладка сервера важнее ~/.peppa
24.11 первый запуск из cron взял пустой ~/.peppa (его оставил прошлый
неудачный запуск) и поднял сервисы на пустой базе на 7 минут. Данные
не пострадали; исправлено тут же ручной выкаткой.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:37:47 +05:00
274336779c Merge branch 'main' into task/pep-266
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: failure за 1678с
peppa-ci / ci (pull_request) Failing after 30m13s
2026-11-24 18:02:50 +00:00
0e38722e89 Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1548с
peppa-ci / ci (pull_request) Successful in 28m18s
2026-11-24 17:57:13 +00:00
4e3dcc4461 Merge branch 'main' into task/pep-269
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 33с
peppa/test test: failure за 1533с
peppa-ci / ci (pull_request) Failing after 27m53s
2026-11-24 17:56:55 +00:00
179189c063 Merge pull request 'PEP-276: выкатка платформы на сервере сама — режим --auto и cron' (#253) from task/pep-276 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 41с
peppa/test test: success за 1469с
peppa-ci / ci (push) Successful in 27m40s
2026-11-24 17:34:20 +00:00
578542f8b3 Merge pull request 'PEP-263: доверие Claude для worktree — и на основную копию репозитория' (#252) from task/pep-263 into main
Some checks are pending
peppa-ci / ci (push) Waiting to run
2026-11-24 17:34:17 +00:00
6508321cf9 Merge branch 'main' into task/pep-266
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 34с
peppa/test test: success за 1588с
peppa-ci / ci (pull_request) Successful in 28m47s
2026-11-24 17:02:44 +00:00
542ab656f8 PEP-269: archive change
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 41с
peppa/test test: success за 1639с
peppa-ci / ci (pull_request) Successful in 29m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:58:09 +00:00
f035f94460 PEP-269: конфликт с main — отдельный шаг: одна просьба агенту, потом человек со списком файлов
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:57:59 +00:00
a377a932b5 PEP-276: выкатка платформы на сервере сама — режим --auto и cron
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1389с
peppa-ci / ci (pull_request) Successful in 25m9s
После переезда выкатку не запускало ничего: прод остался на e694f4c3.
Скрипт сам находит раскладку сервера, --auto выкатывает HEAD main при
зелёных проверках, упавшая цель не повторяется; cron раз в 10 минут.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:54:10 +05:00
ec45617e0f PEP-263: доверие Claude для worktree — и на основную копию репозитория
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1414с
peppa-ci / ci (pull_request) Successful in 26m2s
Claude Code 2.1.330 ищет доверие worktree по корню основного репозитория
(git common dir), а PEP-241 писал его только на папку worktree: агенты
висели на «Is this a project you trust?» (QLFW-80). Проверено на сервере:
с ключом на основную копию CLI сразу открывает рабочий экран.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:51:33 +05:00
b62e80635b PEP-259: разрешение без дела снимается только по решению владельца — запрос «Снять / Оставить» после 72 ч
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 41с
peppa/test test: success за 1618с
peppa-ci / ci (pull_request) Successful in 29m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:50:31 +00:00
fb14af361a Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 52с
peppa/build build: success за 38с
peppa/test test: success за 1392с
peppa-ci / ci (pull_request) Successful in 26m7s
2026-11-24 16:35:34 +00:00
f4b51c38e7 Merge pull request 'PEP-275: «Попросить подписку у администратора» на странице проекта' (#249) from task/pep-275 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 37с
peppa/test test: success за 1395с
peppa-ci / ci (push) Successful in 25m55s
2026-11-24 16:33:30 +00:00
ac64d2d0aa Merge branch 'main' into task/pep-266
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 32с
peppa/test test: success за 1484с
peppa-ci / ci (pull_request) Successful in 27m21s
2026-11-24 16:25:01 +00:00
959abed1f4 PEP-260: архив change, память
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1462с
peppa-ci / ci (pull_request) Successful in 26m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:12:55 +00:00
00cb57cdd6 PEP-250: тест перехода Claude → Codex без гонки с номером нового разговора
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1502с
peppa-ci / ci (pull_request) Successful in 27m7s
Codex может успеть сообщить свой thread-id до чтения сессии; проверяем, что разговор
Claude не перенесён, а не что номер пуст.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:11:44 +00:00
7ac68bdf68 PEP-260: шлюз отдаёт агенту только текст, ключ bearer/header — латиницей, подсказка про эхо-операции
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:11:01 +00:00
82490e958e Merge pull request 'PEP-262: openspec в образах платформы и агента' (#247) from task/pep-262 into main
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 35с
peppa-ci / ci (push) Has been cancelled
2026-11-24 16:02:51 +00:00
4844ea5e35 Merge branch 'main' into task/pep-259
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 34с
peppa/test test: success за 1384с
peppa-ci / ci (pull_request) Successful in 25m6s
2026-11-24 16:02:31 +00:00
43d78dd060 PEP-275: «Попросить подписку у администратора» на странице проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1378с
peppa-ci / ci (pull_request) Successful in 25m18s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:02:15 +00:00
071d833e69 Merge origin/main into task/pep-266
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1449с
peppa-ci / ci (pull_request) Successful in 26m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:56:40 +00:00
8701fa3886 Merge pull request 'PEP-258: Access Hub — ключ не утекает к агенту ни в каком виде' (#246) from task/pep-258 into main
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa-ci / ci (push) Has been cancelled
2026-11-24 15:52:42 +00:00
9713682640 Merge branch 'main' into task/pep-250
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 35с
peppa/test test: failure за 1545с
peppa-ci / ci (pull_request) Failing after 28m1s
Конфликты с PEP-253: миграция запросов доступа — 0033, правило агентам о внешних
сервисах и секретах объединено, память без дублей в пределе.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:31:04 +00:00
7991a2e374 PEP-259: срок у разрешения Access Hub и автоснятие без дела
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1453с
peppa-ci / ci (pull_request) Successful in 26m21s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:21:54 +00:00
b6d3921429 PEP-266: CLI peppa smoke, раздел «Запуск агентов» на Observability, тест, архив change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1455с
peppa-ci / ci (pull_request) Successful in 26m17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:19:52 +00:00
9b2b233e95 PEP-258: маскировка всех форм ключа и в шлюзе баз/SSH/S3/почты (PEP-251); память в пределе
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1426с
peppa-ci / ci (pull_request) Successful in 25m45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:18:42 +00:00
4bd220f20d PEP-258: tasks.md — все пункты выполнены
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:16:12 +00:00
01c25ab51d PEP-258: архив change, память, задача PEP-260
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:16:12 +00:00
4d53a943b4 PEP-258: маскировка всех форм ключа подключения и тест-ловушка
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:16:12 +00:00
eee9ab5c85 Merge pull request 'PEP-253: ключи внешних сервисов из секретов проекта — в подключения, агенту в окружение не попадают' (#244) from task/pep-253 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 36с
peppa/test test: success за 1396с
peppa-ci / ci (push) Successful in 25m31s
2026-11-24 15:15:06 +00:00
0130dc5098 PEP-266: дымовой тест запуска агентов — модуль, тик вачдога, мок commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:12:44 +00:00
e758b17cf6 PEP-262: openspec в образах платформы и агента
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1378с
peppa-ci / ci (pull_request) Successful in 24m58s
После переезда в Docker «Создать проект» падал на openspec init (ENOENT).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:54:37 +00:00
6b8a248d0c Merge branch 'main' into task/pep-250
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1429с
peppa-ci / ci (pull_request) Successful in 25m58s
Конфликты с PEP-251 (протоколы Access Hub): миграция запросов доступа — 0032,
список подключений, MCP агента и переводы — обе стороны; память в пределе.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:47:26 +00:00
8769a75ae3 PEP-253: мерж main (PEP-251), миграция секретов — 0032, память в пределе
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1423с
peppa-ci / ci (pull_request) Successful in 25m55s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:30:54 +00:00
e74cce689e Merge pull request 'PEP-251: Access Hub — базы данных, SSH/SFTP, S3 и почта через шлюз' (#241) from task/pep-251 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1428с
peppa-ci / ci (push) Successful in 25m51s
2026-11-24 14:19:03 +00:00
9d09ba1914 PEP-250: память проекта в пределе после мержа main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1361с
peppa-ci / ci (pull_request) Successful in 24m42s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:04:50 +00:00
13a912b7e5 PEP-253: мерж main, память без дублей в пределе
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 33с
peppa/test test: success за 1337с
peppa-ci / ci (pull_request) Successful in 24m30s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:48:50 +00:00
14a6c9d4f1 Merge branch 'main' into task/pep-248
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1364с
peppa-ci / ci (pull_request) Successful in 24m45s
2026-11-24 13:39:11 +00:00
e2b75590cc Merge branch 'main' into task/pep-251
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 33с
peppa/test test: success за 1378с
peppa-ci / ci (pull_request) Successful in 24m59s
2026-11-24 13:36:48 +00:00
dcf21baf72 Merge branch 'main' into task/pep-250
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: failure за 1404с
peppa-ci / ci (pull_request) Failing after 25m27s
2026-11-24 13:28:21 +00:00
b79983f5b0 Merge pull request 'PEP-256: выкатка платформы не обрывает работающих агентов (tmux в peppa-tmux)' (#237) from task/pep-256 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1393с
peppa-ci / ci (push) Successful in 25m11s
2026-11-24 13:15:18 +00:00
b79f84d966 PEP-253: архив изменения, требования в openspec/specs/project-secrets; память проекта
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1370с
peppa-ci / ci (pull_request) Successful in 24m51s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:11:08 +00:00
eecdbd542f PEP-253: тесты — секрет «только продукту», настройка проекта, переезд в подключение, отчёт; регрессия
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:09:58 +00:00
d325840f95 PEP-248: решение по ошибке из продукта записывается до задачи; тест триажа сверяет итог после сообщения
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1342с
peppa-ci / ci (pull_request) Successful in 24m16s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:03:43 +00:00
ce70d764cb PEP-248: тест ревьюера ждёт подробности карточки «готово» — они пишутся сразу после сообщения
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:03:43 +00:00
738495afc2 PEP-248: память без повторов после rebase на main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:03:42 +00:00
8e4afae099 PEP-248: память проекта в пределе после мержа main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:03:42 +00:00
2b16425669 PEP-248: задание, которое исполнитель не берёт, — не очередь проверок; переподключение исполнителя, повтор суперадмину, сбой Gitea не сбрасывает очередь
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:03:42 +00:00
b2344302c5 PEP-253: переводы, «Помощь», правило агентам
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:02:57 +00:00
ce706efb18 PEP-253: веб — кому идёт секрет, «Сделать подключением», настройка проекта, отчёт суперадмину; MCP, CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:01:12 +00:00
e8a651a3b8 PEP-253: секрет «только продукту» / «агенту», настройка проекта, угадывание сервиса, переезд в подключение, отчёт
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:58:15 +00:00
54693f8c65 PEP-253: план — ключи сервисов из секретов в подключения
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:54:23 +00:00
5598af84bf Merge branch 'main' into task/pep-251
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1367с
peppa-ci / ci (pull_request) Successful in 24m44s
2026-11-24 12:50:11 +00:00
67b9af95ab Merge branch 'main' into task/pep-250
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 34с
peppa/test test: success за 1395с
peppa-ci / ci (pull_request) Successful in 25m14s
2026-11-24 12:46:06 +00:00
aeafc73dea Merge branch 'main' into task/pep-256
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1399с
peppa-ci / ci (pull_request) Successful in 25m29s
2026-11-24 12:38:24 +00:00
8b3f7e9159 Merge pull request 'PEP-247: задача «В работе» без агента — запуск или задержка с причиной' (#236) from task/pep-247 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1388с
peppa-ci / ci (push) Successful in 25m6s
2026-11-24 12:20:08 +00:00
07f77e4167 Merge branch 'main' into task/pep-250
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1377с
peppa-ci / ci (pull_request) Successful in 24m58s
2026-11-24 12:07:31 +00:00
b7d8ec10e5 PEP-251: экран «Подключения» для баз, серверов, хранилищ и почты; CLI внутренних адресов; переводы, словарь, документы, архив change
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 49с
peppa/build build: success за 34с
peppa/test test: success за 1388с
peppa-ci / ci (pull_request) Successful in 25m10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:06:58 +00:00
9a694c6627 Merge branch 'main' into task/pep-256
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 31с
peppa/test test: success за 1372с
peppa-ci / ci (pull_request) Successful in 24m45s
2026-11-24 11:59:28 +00:00
432959dd9b PEP-251: шлюз Access Hub для баз данных, SSH/SFTP, S3 и почты (ядро, MCP, моки, тесты)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:57:41 +00:00
04fb99b05a Merge branch 'main' into task/pep-255
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1355с
peppa-ci / ci (pull_request) Successful in 24m34s
2026-11-24 11:55:39 +00:00
1829b2a934 Merge branch 'main' into task/pep-247
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1378с
peppa-ci / ci (pull_request) Successful in 24m58s
2026-11-24 11:42:41 +00:00
d3e7163b66 Merge pull request 'PEP-249: Access Hub — каталог сервисов и права «чтение / запись»' (#234) from task/pep-249 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1385с
peppa-ci / ci (push) Successful in 25m7s
2026-11-24 11:35:30 +00:00
89b7fa4f17 PEP-250: архив изменения, требования в openspec/specs/access-hub; память проекта
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1395с
peppa-ci / ci (pull_request) Successful in 25m10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:28:11 +00:00
d1162e3acf PEP-250: автозапрос из отказа шлюза без смены формы ответа, тесты сценариев, правило агентам
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:27:52 +00:00
156b24508a PEP-256: память проекта в пределе после мержа main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 31с
peppa/test test: success за 1366с
peppa-ci / ci (pull_request) Successful in 24m50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:25:04 +00:00
35f8695064 Merge remote-tracking branch 'origin/main' into task/pep-256 2026-11-24 11:22:46 +00:00
84f50b1c5b PEP-250: запросы доступа — таблица, ядро, MCP агента, кнопка бота, карточка владельца, переводы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:22:45 +00:00
cbb1c2aa4b PEP-255: мерж main — память проекта без дублей
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1390с
peppa-ci / ci (pull_request) Successful in 25m5s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:19:20 +00:00
4e0f7b163c Merge remote-tracking branch 'origin/main' into task/pep-255 2026-11-24 11:16:41 +00:00
b331305f4a PEP-250: план — запросы доступа агента к сервисам
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:14:06 +00:00
92ac94f5dc PEP-247: память как в main после rebase
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1358с
peppa-ci / ci (pull_request) Successful in 24m31s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:06:54 +00:00
70a065138b PEP-247: память — одна строка о песочнице после rebase на main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:05:25 +00:00
842273f26a PEP-247: память без дублей после rebase на main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:05:25 +00:00
d34aa3f4ea PEP-247: память без дублей после rebase
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:05:25 +00:00
0c35980ec8 PEP-247: спека, AGENTS.md, память
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:05:25 +00:00
5e59f1c758 PEP-247: задача «В работе» без агента — запуск или задержка; законная причина видна на карточке
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:05:25 +00:00
ff35ccf774 PEP-249: повторы в памяти проекта после слияния убраны (работа стори уже в main через PEP-254)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1330с
peppa-ci / ci (pull_request) Successful in 24m3s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:58:37 +00:00
79efbd5fe6 Merge pull request 'PEP-244: контейнеры агентов не остаются без присмотра' (#232) from task/pep-244 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1329с
peppa-ci / ci (push) Successful in 24m2s
2026-11-24 10:52:43 +00:00
4825c5f8e1 Merge branch 'main' into task/pep-256
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 33с
peppa/test test: failure за 1345с
peppa-ci / ci (pull_request) Failing after 24m20s
2026-11-24 10:41:20 +00:00
07d17375fd PEP-255: память проекта без дублей после мержа main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1342с
peppa-ci / ci (pull_request) Successful in 24m22s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:35:30 +00:00
36ef0f8559 Merge remote-tracking branch 'origin/main' into task/pep-255 2026-11-24 10:32:30 +00:00
e007404134 PEP-244: память проекта после rebase — строки о песочнице в одну
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 32с
peppa/test test: success за 1361с
peppa-ci / ci (pull_request) Successful in 24m35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:08:44 +00:00
01317c30ea PEP-244: память проекта после rebase — без дублей, в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:07:28 +00:00
f51fce9164 PEP-244: контейнер агента удаляется с пропавшей сессией; сверка сирот раз в минуту
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:07:27 +00:00
04d9c60b3c Merge pull request 'PEP-254: Access Hub — журнал до действия с цепочкой хэшей, выгрузка, свой ключ данных у каждого подключения' (#238) from task/pep-254 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 33с
peppa/test test: success за 1326с
peppa-ci / ci (push) Successful in 24m1s
2026-11-24 10:04:02 +00:00
6e83a392d5 PEP-256: итог --tmux без слова «ГОТОВО» — его ищет проверка порядка шаблона
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 32с
peppa/test test: success за 1316с
peppa-ci / ci (pull_request) Successful in 23m46s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:51:27 +00:00
fa805e3303 PEP-255: ждёт только проект со своей зависшей головой или вся линия, если зависли все её головы
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1322с
peppa-ci / ci (pull_request) Successful in 23m53s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:45:35 +00:00
9db1fa0b0a PEP-255: архив change, память проекта без дублей
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 43с
peppa/build build: success за 33с
peppa/test test: success за 1346с
peppa-ci / ci (pull_request) Successful in 24m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:38:07 +00:00
99f9cb9f0e PEP-255: очередь проверок по линиям исполнителя, попытка обновления — только ушедшая просьба
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:37:39 +00:00
a5e4d49a97 PEP-254: архив изменения, требования в openspec/specs/access-hub
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 32с
peppa/test test: success за 1359с
peppa-ci / ci (pull_request) Successful in 24m32s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:31:11 +00:00
c8652e57ae PEP-254: журнал Access Hub до действия и с цепочкой хэшей, контрольные точки, выгрузка; свой ключ данных у каждого подключения
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:30:19 +00:00
8b4facba11 PEP-256: tmux-сервер агентов в отдельном контейнере peppa-tmux — выкатка не обрывает агентов
Some checks failed
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: failure за 1349с
peppa-ci / ci (pull_request) Failing after 24m23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:26:45 +00:00
63ef6d6e04 Merge remote-tracking branch 'origin/task/pep-249' into task/pep-254 2026-11-24 09:19:32 +00:00
ef8878a4fe Merge pull request 'PEP-224: статус функций из мониторинга — недоступное серое с подписью «временно недоступно»' (#215) from task/pep-224 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 32с
peppa/test test: success за 1329с
peppa-ci / ci (push) Successful in 24m2s
2026-11-24 09:18:52 +00:00
f9415ff287 PEP-224: мерж main — раздел «Функции» рядом со «Скоростью страниц», память без дублей
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 31с
peppa/test test: success за 1274с
peppa-ci / ci (pull_request) Successful in 23m2s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:32:45 +00:00
9c38952861 Merge pull request 'PEP-246: агент перезапускается в новой рабочей копии, если старой нет на хосте; сторож не теряет назревшую попытку' (#233) from task/pep-246 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 31с
peppa/test test: success за 1259с
peppa-ci / ci (push) Successful in 22m53s
2026-11-24 05:05:48 +00:00
6c9d77fa35 PEP-249: слияние с main, повторы в памяти проекта убраны
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1330с
peppa-ci / ci (pull_request) Successful in 24m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 19:10:43 +00:00
0ed62b4940 Merge remote-tracking branch 'origin/main' into task/pep-249 2026-11-23 19:09:28 +00:00
4b90e619fc Merge remote-tracking branch 'origin/main' into task/pep-246
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 33с
peppa/test test: success за 1328с
peppa-ci / ci (pull_request) Successful in 24m8s
# Conflicts:
#	packages/runner/src/index.ts
2026-11-23 19:01:00 +00:00
ca3dbf29c0 PEP-249: память проекта в пределе после слияния с main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1351с
peppa-ci / ci (pull_request) Successful in 24m44s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:35:54 +00:00
9a04fee7e8 PEP-246: память проекта в пределе после мержа main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 34с
peppa/test test: success за 1393с
peppa-ci / ci (pull_request) Successful in 25m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:21:06 +00:00
6c8cf27c93 Merge pull request 'PEP-241: агенты на ChatGPT начинают работу — доверие папке и чужая модель' (#228) from task/pep-241 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1386с
peppa-ci / ci (push) Successful in 25m18s
2026-11-23 18:10:49 +00:00
4d1315bdcb Merge branch 'main' into task/pep-249
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 31с
peppa/test test: failure за 1332с
peppa-ci / ci (pull_request) Failing after 24m17s
2026-11-23 17:56:09 +00:00
198294e5a3 Merge branch 'main' into task/pep-246
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 34с
peppa/test test: failure за 1334с
peppa-ci / ci (pull_request) Failing after 24m16s
2026-11-23 17:44:44 +00:00
9e5cdc606f Merge branch 'main' into task/pep-241
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1390с
peppa-ci / ci (pull_request) Successful in 25m15s
2026-11-23 17:29:36 +00:00
c7eb820d36 Merge pull request 'PEP-221: долгая история вне основной базы — history.db и архив логов' (#211) from task/pep-221 into main
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1399с
peppa-ci / ci (push) Successful in 25m29s
2026-11-23 17:20:06 +00:00
2315ae7b86 Merge branch 'main' into task/pep-249
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1411с
peppa-ci / ci (pull_request) Successful in 25m34s
2026-11-23 17:05:59 +00:00
ce1cd1285d Merge branch 'main' into task/pep-246
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 32с
peppa/test test: success за 1342с
peppa-ci / ci (pull_request) Successful in 24m20s
2026-11-23 16:55:20 +00:00
0638569a4b Merge branch 'main' into task/pep-241
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 33с
peppa/test test: success за 1308с
peppa-ci / ci (pull_request) Successful in 23m52s
2026-11-23 16:40:20 +00:00
0a299dfcfe Merge branch 'main' into task/pep-221
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 31с
peppa/test test: success за 1336с
peppa-ci / ci (pull_request) Successful in 24m7s
2026-11-23 16:29:00 +00:00
cdf0e102fa Merge pull request 'PEP-213: медленные запросы видны — замер на сервере и warning в Bugsink' (#204) from task/pep-213 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1345с
peppa-ci / ci (push) Successful in 24m25s
2026-11-23 16:18:58 +00:00
18a838ee56 Merge branch 'main' into task/pep-249
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 34с
peppa/test test: success за 1381с
peppa-ci / ci (pull_request) Successful in 25m5s
2026-11-23 16:05:21 +00:00
ab0138f0be Merge branch 'main' into task/pep-246
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1385с
peppa-ci / ci (pull_request) Successful in 25m11s
2026-11-23 15:54:23 +00:00
fe5800a0bb Merge branch 'main' into task/pep-241
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1333с
peppa-ci / ci (pull_request) Successful in 24m23s
2026-11-23 15:41:16 +00:00
f183be31f5 Merge branch 'main' into task/pep-224
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 32с
peppa/test test: success за 1306с
peppa-ci / ci (pull_request) Successful in 23m51s
2026-11-23 15:41:13 +00:00
c58a004237 Merge branch 'main' into task/pep-221
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 34с
peppa/test test: success за 1320с
peppa-ci / ci (pull_request) Successful in 24m11s
2026-11-23 15:28:07 +00:00
9b90996739 Merge branch 'main' into task/pep-213
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 33с
peppa/test test: success за 1338с
peppa-ci / ci (pull_request) Successful in 24m39s
2026-11-23 15:26:51 +00:00
597be6c663 Merge pull request 'PEP-245: обрыв прохода к FORGE снаружи виден суперадмину с причиной' (#231) from task/pep-245 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 34с
peppa/test test: success за 1354с
peppa-ci / ci (push) Successful in 24m42s
2026-11-23 15:15:19 +00:00
028f1183b4 PEP-249: архив изменения, требования в openspec/specs/access-hub
All checks were successful
peppa/lint lint: success за 3с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 34с
peppa/test test: success за 1384с
peppa-ci / ci (pull_request) Successful in 25m32s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:10:36 +00:00
2747deffe5 PEP-246: change в архиве, спеки обновлены
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 31с
peppa/test test: success за 1354с
peppa-ci / ci (pull_request) Successful in 24m45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:10:20 +00:00
6da36b6da7 PEP-249: экран «Подключения» — каталог, шаги, проверка ключа, режимы; переводы ru/kk/en; память
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:08:57 +00:00
a0c13d4311 PEP-249: тесты каталога, режимов, способов ключа, проверки и вызова по короткому имени
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:02:12 +00:00
7d4d33492b PEP-241: память в пределе после rebase (убраны пункты, повторяющие AGENTS.md)
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 32с
peppa/test test: success за 1314с
peppa-ci / ci (pull_request) Successful in 24m5s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:01:50 +00:00
9a1f38c14d PEP-246: перезапуск агента в новой рабочей копии вместо пути с другой машины; сторож не теряет назревшую попытку; peppa session paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:01:32 +00:00
1bf8c913c0 PEP-249: каталог сервисов, права чтение/запись, проверка ключа, короткое имя в MCP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:08 +00:00
acb6e3fb81 PEP-224: статус функций из мониторинга (сведено с main после PEP-225)
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 34с
peppa/test test: success за 1325с
peppa-ci / ci (pull_request) Successful in 24m11s
Функция → мониторинги (core/feature-status.ts), серая кнопка входа через eGov и статус MCP,
отказ startEgovFlow, журнал и сообщения в канал. После переезда живых обновлений на
WebSocket (PEP-225): область `features` в LIVE_PLAIN_SCOPES, открыта без входа (SSE и
WebSocket с `anonymous: true` — только открытые области), смотрится по таймеру вместе с
`observe`, смена сбрасывает кэш статусов.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:03 +00:00
3b53b3345e PEP-221: rebase на main (PEP-220 уже там, FORGE); память без повторов
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 48с
peppa/build build: success за 34с
peppa/test test: success за 1355с
peppa-ci / ci (pull_request) Successful in 24m56s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:58:44 +00:00
ae279037c7 PEP-221: миграция индексов после main — 0028; память без повторов и в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:58:31 +00:00
bf37ebab24 PEP-221: память проекта, архив change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:58:26 +00:00
1ce548b224 PEP-221: долгая история в history.db и архиве логов, читатели журнала и метрик
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:58:26 +00:00
09ac951d4d PEP-241: Codex на ChatGPT начинает работу — доверие папке и модель только своему CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:57:59 +00:00
6778b99161 PEP-213: память после rebase — без дублей, в предел
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 51с
peppa/build build: success за 35с
peppa/test test: success за 1379с
peppa-ci / ci (pull_request) Successful in 25m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:56:43 +00:00
1461fd9ffd PEP-213: замер медленных страниц и SQL, warning в Bugsink, сводка на /observability
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:56:43 +00:00
5c95519e4d Merge branch 'main' into task/pep-245
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 33с
peppa/test test: success за 1413с
peppa-ci / ci (pull_request) Successful in 25m39s
2026-11-23 14:49:32 +00:00
8ba72b0263 Merge pull request 'PEP-242: шаблон проектов уходит в Gitea сам; блок секретов проектам без затирания доработок' (#229) from task/pep-242 into main
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 32с
peppa/test test: success за 1418с
peppa-ci / ci (push) Has been cancelled
2026-11-23 14:49:21 +00:00
8fa203664f PEP-245: память и AGENTS.md
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 31с
peppa/test test: success за 1255с
peppa-ci / ci (pull_request) Successful in 22m45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:24:41 +00:00
2365ec2fcc PEP-245: обрыв прохода к FORGE снаружи виден суперадмину с причиной; туннель Mac быстрее замечает обрыв
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:24:22 +00:00
f8f6d735e6 PEP-242: память проекта в пределе после мержа main (убран пункт, повторяющий AGENTS.md)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 32с
peppa/test test: success за 1253с
peppa-ci / ci (pull_request) Successful in 23m17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 08:56:59 +00:00
076e3c42cc Merge branch 'main' into task/pep-242
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 31с
peppa/test test: failure за 1250с
peppa-ci / ci (pull_request) Failing after 23m44s
2026-11-23 08:32:22 +00:00
7bedf9d342 PEP-242: якорь блока секретов не зависит от названия платформы (после PEP-243 «из FORGE»)
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 42с
peppa/build build: success за 31с
peppa/test test: success за 1278с
peppa-ci / ci (pull_request) Successful in 23m28s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 08:08:01 +00:00
44a00668c8 Merge pull request 'PEP-223: напоминание о простое каждые 30 минут' (#212) from task/pep-223 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1250с
peppa-ci / ci (push) Successful in 22m44s
2026-11-23 07:38:14 +00:00
4fa58fa21d Merge branch 'main' into task/pep-242
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: failure за 1244с
peppa-ci / ci (pull_request) Failing after 23m9s
2026-11-23 07:25:57 +00:00
dad7d80f03 PEP-223: AGENTS.md — один абзац Observability
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 31с
peppa/test test: success за 1268с
peppa-ci / ci (pull_request) Successful in 23m0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:07:49 +00:00
073c47bb3e PEP-223: память после rebase — без дублей, в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:07:41 +00:00
66f9de2732 PEP-223: архив change, память и AGENTS.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:07:41 +00:00
fea2c4b93a PEP-223: напоминания о затянувшемся сбое мониторинга и сервисов раз в 30 минут
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:07:41 +00:00
e694f4c30f Merge pull request 'PEP-243: платформа называется FORGE; второй адрес forge.telecom.quest' (#230) from task/pep-243 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 32с
peppa/test test: success за 1262с
peppa-ci / ci (push) Successful in 23m21s
2026-11-23 07:01:08 +00:00
15668145e7 Merge branch 'main' into task/pep-242
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1315с
peppa-ci / ci (pull_request) Successful in 24m41s
2026-11-23 06:47:29 +00:00
0e2eee38e8 Merge remote-tracking branch 'vibe/main' into task/pep-243
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1289с
peppa-ci / ci (pull_request) Successful in 23m25s
2026-11-23 11:19:22 +05:00
f3d10a4c25 PEP-243: платформа называется FORGE — название во всех текстах для людей и подсказках агентам, адрес forge.telecom.quest
«Peppa FACTORY» → «FORGE» в экранах, сообщениях, словарях en/kk, шаблоне и тестах; «Пеппа» → «FORGE» в подсказках
агентам и правилах; логотип, значок, версия кэша service worker; в словаре старые названия — в «Нельзя».
Внутренние имена (CLI peppa, PEPPA_*, MCP-сервер peppa, ключи PEP-N) не меняются. Второй адрес — в mac-route.sh.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 11:18:49 +05:00
06ad1362dc Merge pull request 'PEP-220: журналы работы хранятся сутки' (#209) from task/pep-220 into main
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: failure за 1281с
peppa-ci / ci (push) Failing after 23m41s
2026-11-23 06:14:17 +00:00
c75b7c6f3d PEP-242: purpose спеки project-template
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 31с
peppa/test test: success за 1262с
peppa-ci / ci (pull_request) Successful in 23m0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:07:56 +00:00
f12281fe85 PEP-242: archive change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:07:50 +00:00
2d1b7f755a PEP-242: память проекта — шаблон уходит сам
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:07:45 +00:00
60077e5b2d PEP-242: AGENTS.md и памятка сервера — шаблон уходит сам, блок секретов проектам
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:07:33 +00:00
badad190eb PEP-242: шаблон уходит в Gitea с выкаткой, сверка в вачдоге, ci connect --secrets-only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:07:20 +00:00
2c01d3330d PEP-242: proposal — шаблон уходит в Gitea сам, блок секретов проектам
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:02:58 +00:00
caece35ad0 Merge branch 'main' into task/pep-220
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 31с
peppa/test test: success за 1276с
peppa-ci / ci (pull_request) Successful in 23m10s
2026-11-23 05:46:29 +00:00
0b146776cf Merge pull request 'PEP-239: акцентный цвет интерфейса — синий вместо розового' (#226) from task/pep-239 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 33с
peppa/test test: success за 1286с
peppa-ci / ci (push) Successful in 23m31s
2026-11-23 05:37:33 +00:00
05a23bbe9d PEP-239: акцентный цвет интерфейса — синий вместо розового
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 35с
peppa/test test: success за 1295с
peppa-ci / ci (pull_request) Successful in 23m33s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 05:10:16 +00:00
0cded8d4ad PEP-220: уборка журналов работы (срок 1 день), индексы, итог на /observability
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 46с
peppa/build build: success за 33с
peppa/test test: success за 1282с
peppa-ci / ci (pull_request) Successful in 23m22s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 05:09:39 +00:00
3532c62c18 Merge pull request 'PEP-240: выкатка платформы и Bugsink на сервере — что пришлось делать руками' (#227) from task/pep-240 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 50с
peppa/build build: success за 31с
peppa/test test: success за 1292с
peppa-ci / ci (push) Successful in 23m30s
2026-11-23 04:53:23 +00:00
eb36844de3 PEP-240: выкатка на сервере зовёт docker через sudo и делает копию базы из образа; Bugsink принимает имя контейнера, перенос со сверкой
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 43с
peppa/build build: success за 32с
peppa/test test: success за 1282с
peppa-ci / ci (pull_request) Successful in 23m21s
Первая выкатка платформы на сервере и перенос Bugsink (23.11): у пользователя нет доступа к сокету docker,
на хосте нет sqlite3, Bugsink по имени контейнера отвечал 400, вебхуки проектов указывали на
host.docker.internal.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 09:29:15 +05:00
447504564d Merge pull request 'PEP-238: кнопки синие вместо розовых' (#225) from task/pep-238 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 42с
peppa/build build: success за 29с
peppa/test test: success за 1216с
peppa-ci / ci (push) Successful in 22m38s
2026-11-23 04:16:46 +00:00
61d45a58bd PEP-238: кнопки синие вместо розовых
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 47с
peppa/build build: success за 32с
peppa/test test: success за 1246с
peppa-ci / ci (pull_request) Successful in 23m4s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:45:38 +00:00
b7bb890360 Merge pull request 'PEP-233: сторож раннера проверок не обрывает задания; PR без проверок не держит очередь' (#223) from task/pep-233 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 29с
peppa/test test: success за 1257с
peppa-ci / ci (push) Successful in 23m1s
2026-11-22 09:28:14 +00:00
fe65945cff PEP-233: память в пределе после мержа main; тест паузы не считает письма прошлых сценариев
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 44с
peppa/build build: success за 29с
peppa/test test: success за 1211с
peppa-ci / ci (pull_request) Successful in 22m25s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:04:36 +00:00
ac98817f95 Merge branch 'main' into task/pep-233
Some checks failed
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 42с
peppa/build build: success за 29с
peppa/test test: failure за 1222с
peppa-ci / ci (pull_request) Failing after 22m12s
2026-11-22 08:37:15 +00:00
0ccd38d284 PEP-233: тест неудачных релизов — запас времени на шесть сообщений агенту по очереди
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 41с
peppa/build build: success за 28с
peppa/test test: success за 1198с
peppa-ci / ci (pull_request) Successful in 22m1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:13:44 +00:00
1f1d4ea631 Merge pull request 'PEP-234: Access Hub MVP — подключения пользователей, права агентов, серверный шлюз' (#222) from task/pep-234 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 43с
peppa/build build: success за 30с
peppa/test test: success за 1213с
peppa-ci / ci (push) Successful in 22m22s
2026-11-22 08:07:04 +00:00
3ba5093b02 Merge branch 'main' into task/pep-234
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 30с
peppa/test test: success за 1219с
peppa-ci / ci (pull_request) Successful in 22m18s
2026-11-22 07:44:48 +00:00
b55f1494aa Merge branch 'main' into task/pep-233
Some checks failed
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 41с
peppa/build build: success за 30с
peppa/test test: failure за 1210с
peppa-ci / ci (pull_request) Failing after 22m4s
2026-11-22 07:44:10 +00:00
9656d10e36 Merge pull request 'PEP-237: скрипты переноса продуктов — правки по итогам переноса 22.11' (#224) from task/pep-237 into main
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 41с
peppa/build build: success за 29с
peppa/test test: success за 1193с
peppa-ci / ci (push) Successful in 22m4s
2026-11-22 07:06:02 +00:00
3f11148ea3 PEP-237: архив change products-with-data, спека и docs/SERVER.md — состояние после переноса
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 42с
peppa/build build: success за 29с
peppa/test test: success за 1206с
peppa-ci / ci (pull_request) Successful in 21m56s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:43:29 +05:00
43d691196c PEP-237: превью — список с отдельного дескриптора, неизвестная версия остаётся на Mac
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:43:01 +05:00
89745fc33f PEP-231: продукт получает окружение контейнера Mac; раннер ждёт только выкладки
Находки переноса 22.11: секреты в Peppa расходились с тем, с чем продукты работали;
проектные peppa-deploy.sh передают compose свои переменные (SERVICE_ALIAS, PEPPA_SHA).
reenv — выровнять перенесённый продукт. Раннер: поток проверок платформы не кончается.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:43:01 +05:00
07292a2dfe PEP-231: сверка окружения продукта на Mac и сервере (имена и суммы значений)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:43:01 +05:00
0091d4deb2 PEP-233: память после мержа main — без повторов и в пределе
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 42с
peppa/build build: success за 30с
peppa/test test: success за 1200с
peppa-ci / ci (pull_request) Successful in 23m2s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:39:24 +00:00
9582d98a36 Merge remote-tracking branch 'origin/main' into task/pep-233 2026-11-22 05:36:56 +00:00
4d8295c91e PEP-234: main в ветку; память без повторов и в пределе
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 45с
peppa/build build: success за 31с
peppa/test test: success за 1207с
peppa-ci / ci (pull_request) Successful in 23m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:33:31 +00:00
0244715d8e Merge pull request 'PEP-231: продукты проектов (с данными), Bugsink и адреса — на сервер' (#221) from task/pep-231 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 22с
peppa/build build: success за 16с
peppa/test test: success за 681с
peppa-ci / ci (push) Successful in 12m50s
2026-11-22 05:19:29 +00:00
3a964d60e4 PEP-234: архив change, память проекта
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 22с
peppa/build build: success за 14с
peppa/test test: success за 674с
peppa-ci / ci (pull_request) Successful in 12m35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:19:24 +00:00
52d10be6c5 PEP-234: Access Hub — подключения пользователей, разрешения агентам, серверный шлюз, журнал
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:19:11 +00:00
6d68b7af47 Merge pull request 'PEP-230: образ платформы знает свой коммит (переезд на сервер, шаг 1)' (#218) from task/pep-230 into main
Some checks failed
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 22с
peppa/build build: success за 14с
peppa-ci / ci (push) Has been cancelled
2026-11-22 05:09:53 +00:00
ba0b6ee542 PEP-234: план Access Hub (proposal, design, spec, tasks)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:08:56 +00:00
3a64542236 Merge remote-tracking branch 'vibe/main' into task/pep-231
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 14с
peppa/test test: success за 672с
peppa-ci / ci (pull_request) Successful in 12m30s
2026-11-22 10:06:00 +05:00
d300728996 PEP-233: archive change, память проекта
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 14с
peppa/test test: success за 666с
peppa-ci / ci (pull_request) Successful in 12m28s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:04:40 +00:00
90bbc62e5d PEP-233: сторож не обрывает задания, PR без проверок не держит очередь
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 05:04:17 +00:00
7df41c6151 Merge branch 'main' into task/pep-230
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 15с
peppa/test test: success за 675с
peppa-ci / ci (pull_request) Successful in 12m31s
2026-11-22 04:57:20 +00:00
124e910511 PEP-233: proposal, design, specs, tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:55:46 +00:00
c09f6da5c4 PEP-231: адрес Bugsink после переноса идёт на сервер маршрутом Mac
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 22с
peppa/build build: success за 15с
peppa/test test: success за 684с
peppa-ci / ci (pull_request) Successful in 12m47s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:52:10 +05:00
3dfb59dbb4 PEP-231: PEP-230 в ветку (память в пределе); память и AGENTS.md — продукты с данными
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 16с
peppa/test test: success за 688с
peppa-ci / ci (pull_request) Successful in 12m44s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:50:13 +05:00
8afc61fd91 Merge remote-tracking branch 'vibe/task/pep-230' into task/pep-231 2026-11-22 09:49:54 +05:00
e83302c398 PEP-231: продукты переезжают вместе с данными и без отчёта о выкладке
Some checks failed
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 15с
peppa/test test: failure за 693с
peppa-ci / ci (pull_request) Failing after 12m51s
products-move.sh (Mac) и product-up.sh (сервер): та же версия, тома со сверкой сумм,
Postgres дампом, предпроверки и откат, превью, раннер проверок. Маршрут Mac: на сервер
идут только адреса продуктов — общее правило спорило со страницами Gitea.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:49:11 +05:00
048235a72b PEP-230: память после мержа main — без дублей и в пределе
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 14с
peppa/test test: success за 682с
peppa-ci / ci (pull_request) Successful in 12m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:43:49 +00:00
e52f06c5be Merge pull request 'PEP-225: один WebSocket на вкладку, точечные обновления вместо перерисовки' (#216) from task/pep-225 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 15с
peppa/test test: success за 670с
peppa-ci / ci (push) Successful in 12m28s
2026-11-22 04:37:26 +00:00
6b105ce393 Merge branch 'task/pep-230' into task/pep-231 2026-11-22 09:32:11 +05:00
94292adb41 Merge branch 'main' into task/pep-230
Some checks failed
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 15с
peppa/test test: failure за 673с
peppa-ci / ci (pull_request) Failing after 12m27s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:30:18 +05:00
cee0866904 Merge branch 'main' into task/pep-225
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 24с
peppa/build build: success за 16с
peppa/test test: success за 676с
peppa-ci / ci (pull_request) Successful in 12m36s
2026-11-22 04:24:36 +00:00
5e18f326be PEP-231: архив change, спека docker-platform
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 20с
peppa/build build: success за 13с
peppa/test test: success за 650с
peppa-ci / ci (pull_request) Successful in 32m33s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:18:44 +00:00
9f62b76b00 PEP-231: скрипты переезда (продукты, Bugsink, туннель сервера, Mac), docs/SERVER.md, AGENTS.md, память
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:17:20 +00:00
9a50d1d6e2 PEP-231: перевыкатка продуктов (peppa deploy redeploy), сверка адресов с туннелем сервера, Bugsink и cloudflared в compose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:14:48 +00:00
52e1bbe56f PEP-231: proposal, design, tasks, спека
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:10:08 +00:00
44020548db Merge pull request 'PEP-228: новые сообщения чата появляются без перерисовки страницы' (#220) from task/pep-228 into main
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 20с
peppa/build build: success за 14с
peppa/test test: success за 653с
peppa-ci / ci (push) Successful in 13m8s
2026-11-21 16:06:40 +00:00
c41af2c60b PEP-228: main в ветку (PEP-227); память без повторов и в пределе
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 20с
peppa/build build: success за 14с
peppa/test test: success за 652с
peppa-ci / ci (pull_request) Successful in 12m26s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:47:33 +00:00
cfb619bbf9 Merge remote-tracking branch 'origin/main' into task/pep-228 2026-11-21 15:45:25 +00:00
930d4783f8 Merge pull request 'PEP-227: «No conversation found» при resume → новый запуск, а не перезапуск по кругу' (#219) from task/pep-227 into main
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 20с
peppa/build build: success за 13с
peppa/test test: success за 653с
peppa-ci / ci (push) Successful in 12m55s
2026-11-21 15:24:57 +00:00
d9fc21c426 PEP-228: main в ветку; вкладка «Ошибки» без опроса по таймеру (PEP-225 убрал AutoRefresh)
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 20с
peppa/build build: success за 14с
peppa/test test: success за 652с
peppa-ci / ci (pull_request) Successful in 30m31s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:14:50 +00:00
e46c83f3b3 Merge remote-tracking branch 'origin/main' into task/pep-228 2026-11-21 15:12:22 +00:00
524432b91b PEP-228: память проекта, AGENTS.md, архив change
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 22с
peppa/build build: success за 15с
peppa/test test: success за 658с
peppa-ci / ci (pull_request) Successful in 12m37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:59:31 +00:00
496db3999a PEP-228: тест области chat:<id> и отбора сообщений; отбор — в lib/chat-live-types
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:57:00 +00:00
c750a8778c PEP-227: архив change, спека watchdog-recovery, память, AGENTS.md
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 14с
peppa/test test: success за 671с
peppa-ci / ci (pull_request) Successful in 12m55s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:54:54 +00:00
81730b63c4 PEP-227: потерянный разговор Claude — новый запуск вместо resume по кругу; диалог кредитов модели
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:54:19 +00:00
0dceba0ff2 PEP-228: область chat:<id> несёт сообщения для зрителя, лента чата дорисовывает их на месте
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:54:13 +00:00
a9e730f10f PEP-230: архив change, спеки docker-platform, хвосты — PEP-231/232
All checks were successful
peppa/lint lint: success за 0с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 16с
peppa/test test: success за 667с
peppa-ci / ci (pull_request) Successful in 12m35s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:50:25 +00:00
0af4024a07 PEP-230: автор коммитов агента в контейнере, инструкция разработчика для сервера, состояние переезда
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 22с
peppa/build build: success за 14с
peppa/test test: success за 670с
peppa-ci / ci (pull_request) Successful in 13m23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:49:49 +00:00
2acfb8af27 PEP-228: proposal, design, спека, tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:49:36 +00:00
714b002cf5 PEP-230: сессии с Mac после переезда перезапускаются в контейнере
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
peppa/build build: success за 13с
peppa/test test: success за 642с
peppa-ci / ci (pull_request) Successful in 12m14s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 19:00:50 +05:00
c46e11f72f PEP-230: монитор спрашивает порт веба по имени контейнера
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:58:36 +05:00
316eca7ede PEP-230: CLI Claude и Codex в образе платформы (ИИ-роли, вход подписок); страж портов на общем сервере выключен
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:36:38 +05:00
af542c8167 PEP-230: имя колонки разговора в правке базы
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:31:07 +05:00
379ae6a845 PEP-230: проверка перед переключением считает только текущую ветку рабочей копии
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:28:08 +05:00
3d4a213caa PEP-230: скрипты переключения на сервер (маршрут, перенос репозиториев и базы, откат)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:27:24 +05:00
0591785b67 PEP-230: адрес Gitea для раннера проверок настраивается (PEPPA_RUNNER_GITEA_URL)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:21:05 +05:00
bd0e7984fb PEP-230: решение по Gitea — репозитории Peppa переезжают в Gitea сервера
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:15:54 +05:00
f783873de7 PEP-230: платформа в контейнерах на Linux — не root, общий tmux, адрес веба для агента, экран bypass
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:06:38 +05:00
8c21f54144 PEP-230: образ платформы знает свой коммит при сборке без .git
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 17:47:38 +05:00
cb513d4153 Merge pull request 'PEP-229: суперадмин не появился — PEP-226 не была выкачена' (#217) from task/pep-229 into main 2026-11-21 17:41:38 +05:00
08b32b91ca PEP-229: разбор — PEP-226 не была выкачена; тест «права суперадмина сразу», спека, память
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:41:05 +05:00
293f627b0e Merge pull request 'PEP-226: кнопка «Сделать суперадмином» / «Снять суперадмина»' (#214) from task/pep-226 into main 2026-11-21 11:25:48 +05:00
49ad125bd3 Merge branch 'main' into task/pep-226 2026-11-21 11:13:06 +05:00
34eb6c9f2b Merge pull request 'PEP-222: платформа и агенты в Docker (образ, compose, выкатка, умолчание container)' (#210) from task/pep-222 into main 2026-11-21 11:11:43 +05:00
817ab41136 Merge branch 'main' into task/pep-226 2026-11-21 10:59:37 +05:00
83a301d86f Merge branch 'main' into task/pep-222 2026-11-21 10:58:57 +05:00
cad5b3a2de Merge pull request 'PEP-218: ошибки из Bugsink прямо в Peppa — сводка, список, карточка' (#213) from task/pep-218 into main 2026-11-21 10:58:49 +05:00
cfdd66a631 PEP-225: память проекта, архив change
All checks were successful
peppa/build build: success за 14с
peppa/lint lint: success за 1с
peppa/test test: success за 649с
peppa/typecheck typecheck: success за 22с
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:38:23 +05:00
8bb7c687a8 PEP-225: обновление без связи ждёт канал; AGENTS.md, tasks.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:37:49 +05:00
b4252cfe60 PEP-225: замер 50 вкладок, кэш пути tasks.md в хабе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:27:28 +05:00
98ce49abaf PEP-225: тип в тесте
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:24:07 +05:00
33a830fe07 PEP-225: клиент — одно соединение на вкладку, острова доски и статуса, без опросов; тесты канала
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:23:35 +05:00
0d86b801ee PEP-225: веб через свой сервер в launchd, переустановка агента веба при выкатке
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:04:14 +05:00
d3c29890f4 PEP-225: хаб с частями и строками задач, протокол WebSocket, свой сервер веба
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:03:20 +05:00
0b6a474c2b PEP-225: proposal, design, спеки, tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:57:52 +05:00
b3a1b1f38e PEP-226: кнопка «Сделать суперадмином» / «Снять суперадмина» на странице «Пользователи»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:56:28 +05:00
895ffb6180 PEP-218: память проекта, архив change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:17:36 +05:00
31a8868b86 PEP-218: события по времени, длинные заголовки в две строки, мок — first/last seen по времени
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:16:35 +05:00
29388820bf PEP-218: экраны ошибок (вкладка «Ошибки», «Баги» проекта, карточка), MCP list/get/resolve_error, переводы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:03:13 +05:00
acafb97b04 PEP-218: адаптер Bugsink, мок, ядро ошибок (сводка, список, карточка, действия) и тест
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:58:32 +05:00
32b5acb265 PEP-218: proposal — ошибки Bugsink в Peppa
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:54:17 +05:00
45d5598db0 PEP-222: ужал память проекта после слияния с main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 19:53:29 +05:00
909fb7b3a0 PEP-222: архив change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 19:52:59 +05:00
e8c87ec04d PEP-222: образ и compose платформы, выкатка контейнерами, раннеры в контейнерах по умолчанию
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 19:52:59 +05:00
8e01419e14 Merge pull request 'PEP-215: доска и страница задачи открываются быстрее' (#207) from task/pep-215 into main 2026-11-20 19:39:54 +05:00
841a87ffd4 Merge branch 'main' into task/pep-215 2026-11-20 19:27:18 +05:00
f36e0f1a0e Merge pull request 'PEP-214: индексы горячих запросов, keyPrefix вместо LIKE, PRAGMA optimize' (#208) from task/pep-214 into main 2026-11-20 19:27:12 +05:00
39f9269643 PEP-214: память после слияния с main; миграция 0026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:57:18 +05:00
17bcf69f19 PEP-214: память — в пределе после слияния
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:56:42 +05:00
526803ccdf PEP-214: архив change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:56:42 +05:00
2e8aad7d10 PEP-214: память — в пределе
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:56:42 +05:00
aff895db27 PEP-214: индексы горячих запросов, keyPrefix вместо LIKE по settings, PRAGMA optimize
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 18:56:42 +05:00
0832b270fa Merge branch 'main' into task/pep-215 2026-11-20 18:49:06 +05:00
c0a590623d Merge pull request 'PEP-216: Главная и «Подписки» без задержек' (#205) from task/pep-216 into main 2026-11-20 18:48:43 +05:00
d7f7a9a72d PEP-215: доска не ждёт Gitea, сессии проекта одним запросом, обновление страницы не чаще раза в 4 с
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:36:40 +05:00
7e9e45c274 Merge branch 'main' into task/pep-216 2026-11-20 17:09:14 +05:00
b82b01bf5e Merge pull request 'PEP-212: MCP в режиме «код» — один лёгкий инструмент вместо десятков' (#203) from task/pep-212 into main 2026-11-20 17:09:07 +05:00
d8a37833f3 PEP-217: Web Vitals пользователей, проверка веса JS в CI, словари не в браузерном бандле
All checks were successful
peppa/build build: success за 16с
peppa/bundle bundle: success за 0с
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 21с
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:03:07 +05:00
1b7b85d1d3 Merge branch 'main' into task/pep-216 2026-11-20 16:56:40 +05:00
a9c40f04d2 Merge branch 'main' into task/pep-212 2026-11-20 16:55:05 +05:00
228db9f133 Merge pull request 'PEP-211: неудачный вход через eGov записывается с причиной' (#202) from task/pep-211 into main 2026-11-20 16:54:59 +05:00
01354a84cc PEP-216: archive the change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:41:25 +05:00
65a5d15aae PEP-216: Главная и «Подписки» без задержек — прогресс без запроса на проект, поток, индекс событий
Главная 80 → 30 мс, 40 запросов разом p95 2,98 → 1,12 с; «Подписки» 36 → 22 мс.
Замер на копии живой базы (apps/web/scripts/bench-pages.ts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:31:10 +05:00
071aac4bef PEP-212: «Принять» при идущих проверках — один повтор запроса состояния PR (нестабильный тест accept-pending)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:56:15 +05:00
75024e1520 PEP-211: перезапуск проверок — accept-pending.test.ts упал единожды под нагрузкой, локально 3/3 зелёно
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:55:16 +05:00
9d48bd9047 PEP-212: MCP в режиме «код» — search_api + execute (QuickJS), platform_status, тексты и тесты
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 16:39:35 +05:00
6274f2d4b3 PEP-212: proposal, design, specs, tasks; quickjs-emscripten
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 16:20:06 +05:00
f266b681f7 PEP-211: неудачный вход через eGov записывается с причиной, сводка на Observability
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 15:03:30 +05:00
b170560cba Merge pull request 'PEP-219: индекс events(session_id, type) — доска грузится 6 с' (#201) from task/pep-219 into main 2026-11-18 21:25:55 +05:00
7189fd2457 PEP-219: индекс events(session_id, type) — доска не перебирает все события на каждую сессию
listSessions считает переключения подписки подзапросом по events для каждой
сессии; без индекса это полный просмотр ~40 000 строк × 746 сессий (4,4 с на
копии живой базы, 0,008 с с индексом).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:57:39 +05:00
b47e95f91f Merge pull request 'PEP-156: кто говорит — события от имени Peppa FACTORY, агент под кличкой, роли на «вы»' (#151) from task/pep-156 into main 2026-11-18 18:51:04 +05:00
943d025759 PEP-156: память проекта — как в main (запись про авторов уже в AGENTS.md) 2026-11-18 18:31:54 +05:00
1b18708a53 PEP-156: память — короче 2026-11-18 18:30:48 +05:00
fdc742bb91 PEP-156: слияние с main (PEP-198: один аналитик) — роли, подписи, тесты 2026-11-18 18:30:48 +05:00
8c651120ae PEP-156: память проекта — только своя запись, остальное как в main 2026-11-18 18:30:48 +05:00
Асель
43e1319c5f PEP-156: кто говорит — события от имени Peppa FACTORY, агент под кличкой, роли на «вы»
Проекция событий в чаты подписывает то, что сделала фабрика или агент, «Peppa FACTORY»;
логин — только под словами человека. Слова агента — с кличкой (чат, карточка вопроса,
Telegram «🤖 Шустрик: …»), роли — «Аналитик» и «Продакт-агент». «Агент <кличка> взял
задачу в работу» ждёт запуска агента. Промпты ролей требуют «вы» (ADDRESS_RULE),
informalAddress проверяет ответы моков. Change pep-156-who-speaks в архиве, спека
project-chats, тест who-speaks.test.ts.

Rebased on main (one commit on top of 1074d276).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:30:48 +05:00
870bca5d19 Merge pull request 'PEP-131: голосовой ввод на языке пользователя (казахский, английский)' (#126) from task/pep-131 into main 2026-11-18 18:30:38 +05:00
1e74d186f9 Merge branch 'main' into task/pep-131 2026-11-18 18:17:30 +05:00
03ea886782 Merge pull request 'PEP-177: у каждой подписки видно, чья она' (#168) from task/pep-177 into main 2026-11-18 18:15:38 +05:00
7556c1fae6 PEP-131: memory — main's file plus one line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 18:03:42 +05:00
cdfc999e68 PEP-131: project memory — one short line, no duplicate section after merge
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 18:02:09 +05:00
8275728395 PEP-131: merge duplicated «Решения» section in project memory
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 18:02:09 +05:00
Асель
c49866d356 PEP-131: voiceText takes the user after rebase onto feedback voice (PEP-143)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 18:02:09 +05:00
Асель
4a30be42c4 PEP-131: archive the change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:02:09 +05:00
Асель
3c09859cef PEP-131: voice is recognised in the speaker's interface language (kk/en), PEPPA_TRANSCRIBE_LANG=auto; Kazakh checked on the live Whisper
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:02:09 +05:00
2272c73f03 Merge branch 'main' into task/pep-177 2026-11-18 18:02:02 +05:00
414164f1dc Merge pull request 'PEP-209: застрявшие задачи доходят сами, приёмка — одним экраном' (#200) from task/pep-209 into main 2026-11-18 17:52:09 +05:00
4156cdaa3f PEP-209: тест автономии ждёт подробностей карточки «готово» (гонка записи на медленном CI)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:38:12 +05:00
721d4324b0 PEP-209: пустой SET в updateTask/updateSession/updateGoal, один агент на общую рабочую копию
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:16:39 +05:00
401c64d2f0 PEP-209: архив change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 17:07:30 +05:00
dd333161af PEP-177: resolve spec merge markers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 17:04:25 +05:00
Асель
aaca910ace PEP-177: OpenSpec change archived
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 17:04:21 +05:00
9b8b558bf2 PEP-209: память проекта (ужата, факты о застрявших задачах)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:57:12 +05:00
5e900ffe29 PEP-209: AGENTS.md, план выполнен, суть не повторяет название
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:56:48 +05:00
274d3a749e PEP-209: переводы, тесты самолечения и приёмки
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:54:55 +05:00
b554f66d9c PEP-209: страница «Приёмка», «Принять всё», объединение предложений, сводка в Telegram, Главная и задержки в Дашборде
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:50:03 +05:00
9d1c4f0de2 PEP-209: самолечение застрявших задач, расписание повторов, кнопки задержек
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:43:13 +05:00
b38adce510 Merge pull request 'PEP-208: ночная тишина 23:00–08:00 — никаких сообщений никому' (#199) from task/pep-208 into main 2026-11-18 09:02:50 +05:00
7fb02db5f6 PEP-208: архив change, память проекта
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:51:27 +05:00
42c1269b69 PEP-208: ночная тишина 23:00–08:00 для всех сообщений Telegram и push
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:51:15 +05:00
c572a25e38 Merge pull request 'PEP-207: чаты — понятно, что от меня нужно, и это можно сделать на месте' (#198) from task/pep-207 into main 2026-11-18 00:42:02 +05:00
e8247924c6 PEP-207: чаты — понятно, что от меня нужно, и это можно сделать на месте
Агент не меняет статус принятой задачи (причина противоречия в PEP-204);
«Посмотреть результат» / «Принять» / «Поправить» в сообщении «готово»;
переписка сверху вниз с полем ввода внизу; строка состояния вместо служебных
сообщений; компактные события; очистка «Всех событий»; выбор проекта списком;
«Задача описана. Начать работу?».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:30:02 +05:00
ce6fafd16e Merge pull request 'PEP-206: «Попросить подписку у администратора» всегда в «Подписках» проекта' (#197) from task/pep-206 into main 2026-11-18 00:23:52 +05:00
dd91427496 PEP-206: архив change 2026-11-18 00:10:52 +05:00
f0a55f9682 Merge pull request 'PEP-205: очередь проверок не встаёт молча, лимит и вход Codex не роняют агентов' (#196) from task/pep-205 into main 2026-11-18 00:08:17 +05:00
380b6fb5dc PEP-206: «Попросить подписку у администратора» всегда в «Настройки проекта → Подписки»
Запрос заранее, пока агенты работают: суперадмину «Одолжить на сутки» /
«Отказать», запрос не закрывается сам и не показывается полосой лимита.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:06:39 +05:00
e3ad0ac672 PEP-205: архив change, rebase без лишних ограничений
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 23:52:27 +05:00
204c8e3388 PEP-205: очередь проверок не встаёт молча, лимит и вход Codex не роняют агентов
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 23:50:03 +05:00
462d52c612 Merge pull request 'PEP-204: суперадмин объединяет учётки одного человека' (#195) from task/pep-204 into main 2026-11-17 23:19:21 +05:00
890e802fcc PEP-204: слияние с main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 23:07:04 +05:00
597194a47b Merge pull request 'PEP-202: Observability — сервис мониторингов, раздел для суперадмина, MCP' (#192) from task/pep-202 into main 2026-11-17 22:51:09 +05:00
75a3deda21 PEP-204: суперадмин объединяет учётки одного человека
Экран «Объединить учётки» с подтверждением, подсказки на «Пользователях»,
защита (сама с собой, разные ИИН, суперадмин — отдельная отметка),
журнал users_merged и одно сообщение владельцу.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:45:44 +05:00
d1fcbb6ca7 PEP-202: слияние с main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:36:07 +05:00
d85bf8b74e Merge pull request 'PEP-198: Аналитик — единственный собеседник пользователя' (#194) from task/pep-198 into main 2026-11-17 22:30:53 +05:00
65501b3fb9 PEP-202: слияние с main 2026-11-17 22:27:24 +05:00
0c52383863 PEP-198: переписка — поле нового сообщения сверху, новые сообщения первыми (замечание PM)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:07:39 +05:00
2a7457de98 Merge branch 'main' into task/pep-198 2026-11-17 21:45:23 +05:00
c3404822fc PEP-198: архив change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:33:02 +05:00
ac2881a6a6 PEP-198: часть разбивки задачи человека — «готово» сразу
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:32:56 +05:00
bb33d3fcca PEP-198: AGENTS.md, память проекта, tasks.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:30:53 +05:00
575c31ac42 PEP-198: тесты под голос Аналитика
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:30:16 +05:00
812e3c9341 PEP-198: чат — задачи только кнопкой, решения на странице задачи, «Помощь», словарь, переводы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:29:21 +05:00
a0cda002c7 PEP-198: тесты — пересылка через Аналитика, сводка, застрявшие
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:23:04 +05:00
9569380143 PEP-198: вопросы агентов через Аналитика, сводка готовых, застрявшие задачи
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:21:50 +05:00
40f4a3e0b5 Merge pull request 'PEP-197: фабрика не ставит сама себе задачи по кругу' (#189) from task/pep-197 into main 2026-11-17 21:20:49 +05:00
024ee18982 PEP-198: один Аналитик на входе задачи, решения и разбивка
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:17:44 +05:00
ffd4e4c171 PEP-202: Observability — сервис мониторингов peppa-observer, раздел для суперадмина, MCP
Сервис peppa-observer (своя база observe.db, журнал 7 дней): мониторинги HTTP(S),
TCP, DNS (системный против 1.1.1.1), «Интернет», heartbeat; состояние меняется
после N неудач/удач подряд, одно сообщение в канал платформы на смену, упавшие
вместе с интернетом молчат. Раздел /observability и MCP-инструменты — только
суперадмину и агентам платформы. Встроенные: «Интернет», «eGov relay» (HTTP, DNS).
Проверка сети из вачдога (PEP-201) переехала сюда.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:15:36 +05:00
7ffef5718f PEP-198: план изменения
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:12:27 +05:00
3ccf7739ec Merge branch 'main' into task/pep-197 2026-11-17 21:09:10 +05:00
aaf15d6909 Merge remote-tracking branch 'origin/main' into task/pep-202 2026-11-17 21:04:10 +05:00
0e59932a48 Merge pull request 'PEP-203: подбор специалиста не держит вачдог' (#193) from task/pep-203 into main 2026-11-17 20:50:27 +05:00
c2b5a46ee6 PEP-203: подбор специалиста не держит тик вачдога
specialistHold звал модель по очереди для каждой готовой задачи бэклога прямо в тике:
на живой 125 задач — вачдог не писал heartbeat, выкатка откатывалась. Теперь тик
читает только готовые подборы, недостающие считаются в фоне по одному и только для
первых трёх задач очереди; пока подбор считается, такая задача ждёт.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:38:45 +05:00
49a8a4976e PEP-197: память — убрать дубль пункта о сообщениях
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 20:33:47 +05:00
9cb03ae917 Merge main into task/pep-197
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 20:22:17 +05:00
c3c26d35af PEP-197: перезапуск проверок
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 20:11:26 +05:00
67bf91e9df PEP-202: OpenSpec change — сервис мониторингов Observability
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:02:02 +05:00
061ae93a48 Merge pull request 'PEP-201: вачдог следит за DNS и интернетом' (#191) from task/pep-201 into main 2026-11-17 19:51:58 +05:00
aa3af0a76f Merge pull request 'PEP-200: вход через eGov — обход недоступных адресов relay' (#190) from task/pep-200 into main 2026-11-17 19:47:30 +05:00
9299407c72 PEP-201: вачдог следит за DNS и интернетом и пишет в канал платформы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 19:39:44 +05:00
2f6ee065cf PEP-200: вход через eGov — повтор запроса к relay через адреса запасного DNS
Системный DNS Mac Studio отдаёт для sign.aitu.uz недоступные адреса Cloudflare;
если relay не ответил, запрос повторяется через адреса от PEPPA_FALLBACK_DNS
(по умолчанию 1.1.1.1) с тем же именем хоста.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 19:35:16 +05:00
7423b0e544 Merge pull request 'PEP-158: версия продукта не обновилась — вернуть агенту с причиной, а не только суперадмину' (#150) from task/pep-158 into main 2026-11-17 18:18:53 +05:00
70f1c30d07 PEP-158: project memory within the limit after merging main
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 18:01:13 +05:00
05a4dab2f4 PEP-197: память проекта 2026-11-17 17:59:46 +05:00
3aa43334a4 Merge remote-tracking branch 'origin/main' into task/pep-158 2026-11-17 17:59:38 +05:00
156f1fbaaf PEP-197: архив change 2026-11-17 17:59:38 +05:00
d8cedab5f0 Merge main into task/pep-197 2026-11-17 17:59:01 +05:00
e29e95e13f PEP-197: тест product под новые поля 2026-11-17 17:58:31 +05:00
218f35af86 PEP-197: фабрика не ставит себе задачи по кругу — «Предложено», пределы, дубли, версия с финишем
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:55:09 +05:00
f83e9e00cc Merge pull request 'PEP-183: специалисты получают задачи по своему профилю' (#173) from task/pep-183 into main 2026-11-17 17:48:38 +05:00
6167ec8231 Merge remote-tracking branch 'origin/main' into task/pep-158 2026-11-17 17:43:54 +05:00
c6b81dc550 PEP-183: память в пределе после слияния main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:32:59 +05:00
a0e2523641 Merge remote-tracking branch 'origin/main' into task/pep-183 2026-11-17 17:32:05 +05:00
cf51f01952 Merge pull request 'PEP-153: вопрос не становится задачей — фабрика отвечает и предлагает «Завести как задачу»' (#149) from task/pep-153 into main 2026-11-17 17:31:08 +05:00
27e8de9e7e PEP-158: drop a build artefact change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 17:17:03 +05:00
114fc3f495 PEP-158: project memory — main's compacted file plus one line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 17:16:57 +05:00
1f38016170 PEP-183: память в пределе (убраны дубли пунктов)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:15:37 +05:00
Асель
23ef2e843e PEP-153: вопрос не становится задачей — фабрика отвечает и предлагает «Завести как задачу»
Сообщение боту и в чате проекта сначала классифицируется (правила, затем модель
на подписке проекта): вопрос получает ответ с кнопкой «Завести как задачу»,
описание изменения — черновик, неясное или сбой — выбор кнопками.
OpenSpec change pep-153-question-not-task (в архиве).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 17:15:36 +05:00
db1dd78a9e PEP-183: свежий main (PEP-179/182)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:00:54 +05:00
Асель
329731f452 PEP-158: archive the change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 16:59:21 +05:00
Асель
38da8ee85a PEP-158: a failed product update goes back to the story's agent with the reason and the log
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 16:59:21 +05:00
Асель
1bce775b14 PEP-158: proposal — a failed product update goes back to the story's agent
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 16:59:04 +05:00
32c6179b86 Merge pull request 'PEP-196: агент не засыпает при зелёных проверках и конфликте PR' (#188) from task/pep-196 into main 2026-11-17 16:46:17 +05:00
df7f39234c PEP-196: агент не засыпает навсегда при зелёных проверках и конфликте PR
Платформа будила агента после зелёных проверок только при открытом гейте:
PR, который конфликтует с main, оставлял агента ждать вечно (QLFW: 8
задач висели в работе). Теперь при конфликте агент получает просьбу
обновить ветку, а раз в минуту wakeIdleOnGreen находит у задач в работе
с ждущим агентом открытый PR (pr_url или ветка task/<key>) с зелёными
проверками и будит агента — один раз на коммит.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:34:34 +05:00
bd6d964850 Merge pull request 'PEP-195: привязка Gmail к учётке eGov объединяет учётки' (#187) from task/pep-195 into main 2026-11-17 16:26:04 +05:00
03fddf4829 PEP-195: OpenSpec change, спека и память
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 16:13:44 +05:00
d894f2d7cb PEP-195: привязка Gmail к учётке eGov объединяет учётки
Кто сначала вошёл через Google, получил отдельную учётку, и привязать
этот Google к учётке eGov было нельзя. Теперь привязка объединяет их:
проекты, участие в проектах, подключённые подписки, Telegram и свой бот
переходят в учётку eGov, старая отключается (core/merge-users.ts).
Учётка со своим eGov или Gitea не объединяется.

Ошибка привязки возвращается в «Настройки» (раньше уходила на /login,
откуда вошедшего перебрасывало на Главную, и текст терялся).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:10:18 +05:00
4619e197c9 Merge pull request 'PEP-194: вход через eGov — повтор и понятная ошибка' (#186) from task/pep-194 into main 2026-11-17 14:34:18 +05:00
3cf1b6477b Merge pull request 'PEP-191: основная ветка новых проектов защищена — пишет только peppa-bot' (#184) from task/pep-191 into main 2026-11-17 14:33:34 +05:00
324c2139b8 PEP-194: вход через eGov — повтор запроса к сервису подписи и понятная ошибка
Сервис подписи sign.aitu.uz иногда висит на одном из адресов; ответ 502
Cloudflare подменял своей страницей, и на экране входа было
«Unexpected token <… is not valid JSON».

- relay: таймаут 8 с, один повтор при сетевой ошибке или 5xx
- маршруты start/status отвечают 424 (не 5xx — Cloudflare не подменяет)
- страница входа: непонятный ответ → «eGov сейчас не отвечает…»,
  опрос статуса переживает до 5 сбоев подряд
- мок: failNext, тест повтора

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:22:37 +05:00
5e513e5047 Merge branch 'main' into task/pep-191 2026-11-17 14:21:52 +05:00
c092639a93 Merge pull request 'PEP-189: страж порта и домена Peppa' (#182) from task/pep-189 into main 2026-11-17 14:20:19 +05:00
9ccd7e74a1 PEP-191: память проекта — как в main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:10:33 +05:00
4e61cc9e78 Merge branch 'main' into task/pep-189 2026-11-17 14:08:36 +05:00
768cb4eae6 PEP-191: archive change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:08:34 +05:00
a06714c25f PEP-191: основная ветка проекта защищена — пишет только peppa-bot
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:08:34 +05:00
79d75e5234 PEP-191: archive change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:08:34 +05:00
5db4841fb8 Merge pull request 'PEP-192: ужать память проекта' (#185) from task/pep-192 into main 2026-11-17 14:08:22 +05:00
faa47870d0 PEP-189: казахские переводы сообщений стража
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:30:56 +05:00
15d06cdad1 PEP-189: страж порта и домена — чужой контейнер на порту/домене Peppa останавливается, публичный адрес проверяется
Агент IA-2 опубликовал свой контейнер на 127.0.0.1:3100 и подменил сайт платформы.
Вачдог раз в минуту останавливает (не удаляет) контейнер, занявший зарезервированный
порт или домен платформы, пишет суперадмину и агенту; /api/health публичного адреса
должен отвечать Peppa. Маршруты Traefik — priority 100000, правило агентам в RULES.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:30:50 +05:00
384c87398b PEP-192: память проекта ужата до 6 400 символов, тест на предел и дубли
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:11:18 +05:00
80457bde42 Merge pull request 'PEP-190: get_started и страница «Инструкция для ИИ»' (#183) from task/pep-190 into main 2026-11-17 12:57:43 +05:00
f516c6676f PEP-190: get_started, памятка для ИИ-клиентов и страница /mcp-guide
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 12:46:19 +05:00
aa6a232b35 PEP-190: proposal 2026-11-17 12:43:58 +05:00
1b343339ab Merge pull request 'PEP-188: Codex запускается без сбоев' (#181) from task/pep-188 into main 2026-11-17 11:16:22 +05:00
c410016e37 PEP-188: Codex запускается без сбоев — кавычки в .env, доверие папке, отказ на параметрах
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 11:03:30 +05:00
2467f24ead Merge pull request 'PEP-187: чужой текст не становится командой для агента' (#180) from task/pep-187 into main 2026-11-17 10:53:07 +05:00
55e486155e PEP-187: archive change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 10:42:22 +05:00
ba07ccd951 PEP-187: чужой текст — данные, не инструкции: метка, поиск признаков, список адресов сети, правило агентам
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 10:32:43 +05:00
31d153dd8d Merge pull request 'PEP-184 (этап 1): эталонные задачи фабрики и скрытые проверки' (#176) from task/pep-184 into main 2026-11-17 09:02:50 +05:00
173b8c77dc Merge branch 'main' into task/pep-184 2026-11-17 08:52:05 +05:00
3f893a6039 Merge pull request 'PEP-182: не больше 9 агентов на подписку — ёмкость, очередь задач, команда в пределах ёмкости' (#174) from task/pep-182 into main 2026-11-17 08:41:12 +05:00
523888b3da Merge branch 'main' into task/pep-184 2026-11-17 08:41:06 +05:00
0097cb07f7 PEP-182: не больше 9 агентов на подписку — ёмкость, очередь задач, «Делается · В очереди»
Ёмкость подписки (core/capacity.ts, по умолчанию 9, суперадмин меняет на набор 1–20);
pickSubscription, ротация и ручной перевод агентов уважают ёмкость; без места задача
ждёт в очереди и запускается сама по порядку доски (capacityQueueTick); команда растёт
только в пределах ёмкости; экраны «Подписки», Главная, доска, страница задачи; ru/kk/en;
тест subscription-capacity.test.ts; OpenSpec change archived.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:55:40 +05:00
c7a2eba3e3 Merge pull request 'PEP-150: сбои не идут пользователю — платформа повторяет сама, суперадмин получает одно сообщение' (#143) from task/pep-150 into main 2026-11-17 02:54:09 +05:00
e0df98d1af PEP-150: limit question offers «Попросить подписку у администратора» (PEP-186); keep main's deploy hook
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:43:59 +05:00
Асель
6d4ce75ca9 PEP-184: путь к bench/ вычисляется при вызове (сборка сайта)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:09:17 +05:00
Асель
d108197f0f PEP-184: задачи 5–8, тест набора, archive change, память
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:09:17 +05:00
Асель
76ff373eee PEP-184: основа эталона, запуск скрытых проверок, задачи 1–4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:09:17 +05:00
Асель
139a8618ca PEP-184: proposal — эталонные задачи, этап 1 (набор и скрытые проверки)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:09:17 +05:00
a42264ee03 Merge pull request 'PEP-185: «Взять в работу?» и в проектах, где задачи берутся сами' (#179) from task/pep-185-auto into main 2026-11-17 02:00:02 +05:00
bb9aa537f4 Merge pull request 'PEP-181: удаление проекта на виду — в карточке проекта и раздел «Удалённые проекты»' (#172) from task/pep-181 into main 2026-11-17 01:56:20 +05:00
39e58da6fe PEP-185: «Взять в работу?» also in auto projects — for stories the dispatcher can't take now
BRM (pick=auto, WIP 1, 8 in work): ready stories waited forever and nobody was asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:48:56 +05:00
8c6cea7465 PEP-150: merge main (PEP-185 pick questions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:46:27 +05:00
a9403e48cd Merge remote-tracking branch 'origin/main' into task/pep-181 2026-11-17 01:45:46 +05:00
667c852bf1 Merge pull request 'PEP-186: закончилась подписка — попросить подписку у администратора' (#178) from task/pep-186 into main 2026-11-17 00:27:01 +05:00
d716f3540a Merge branch 'main' into task/pep-186 2026-11-17 00:16:34 +05:00
25e393b406 PEP-186: архив change, память проекта
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:55:34 +05:00
c25e1485d3 PEP-186: заём на набор — без повторного запроса; документация
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:55:07 +05:00
669364cebe Merge pull request 'PEP-185: «Взять в работу?» вопросом по готовым задачам' (#177) from task/pep-185 into main 2026-11-16 23:50:29 +05:00
eba01a2e0e PEP-186: кнопка запроса подписки — Telegram, полоса, проект, «Подписки»; переводы
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:49:10 +05:00
4677fadfb4 PEP-186: запрос подписки у администратора — ядро, вачдог, тест
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:44:43 +05:00
edff5c899b PEP-185: archive change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 23:40:43 +05:00
287f152eeb PEP-185: вопрос «Взять в работу?» по готовым задачам бэклога
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 23:40:38 +05:00
2deacd6747 Merge branch 'main' into task/pep-181 2026-11-16 23:36:58 +05:00
5054559a07 Merge pull request 'PEP-178: под каким аккаунтом подписка — почта рядом с названием' (#169) from task/pep-178 into main 2026-11-16 23:34:59 +05:00
ad39a8cc6f Merge branch 'main' into task/pep-181 2026-11-16 23:24:14 +05:00
b75f155899 PEP-178: merge main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 23:24:00 +05:00
208b86c4ce Merge pull request 'PEP-179: «Погоня за задачей» на странице «Команда»' (#175) from task/pep-179-chase into main 2026-11-16 23:22:31 +05:00
4255bb055f Merge branch 'main' into task/pep-178 2026-11-16 23:21:46 +05:00
1ba179f968 Merge pull request 'PEP-180: длинное сообщение в чате и обсуждении задачи принимается целиком' (#171) from task/pep-180 into main 2026-11-16 23:18:24 +05:00
3828c80a67 PEP-150: merge main (PEP-174/176/...); accept-pending test waits for the held card
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:13:34 +05:00
58db1edf2f PEP-181: текст раздела «Удалённые проекты» без «владельцы удалили», проверка в браузере, память проекта, OpenSpec archive
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:09:45 +05:00
47aa102d4c PEP-181: одна кнопка «Удалить» с подтверждением в карточке и в шапке проекта, суперадмин удаляет любой проект, OpenSpec change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:09:45 +05:00
d2903db557 PEP-181: the live-copy pre-commit hook blocks only the live copy itself — worktrees share the hooks directory and kept failing to commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:09:45 +05:00
fd87c6780f PEP-181: delete a project right on its card in «Проекты» (owner or superadmin, with a confirmation); deleted projects in their own section with «Вернуть проект»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:09:45 +05:00
fb76581214 Merge remote-tracking branch 'origin/main' into task/pep-179-chase
# Conflicts:
#	packages/shared/src/i18n/en/admin.ts
#	packages/shared/src/i18n/kk/admin.ts
2026-11-16 23:07:27 +05:00
a65a1d175f Merge branch 'task/pep-178' of https://git.telecom.quest/peppa/peppa into task/pep-178 2026-11-16 23:05:13 +05:00
1a53765e80 Merge branch 'main' into task/pep-180 2026-11-16 23:04:50 +05:00
d7c9a99635 PEP-178: merge main (PEP-176 manual switch) — the switch list shows each subscription's account
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:04:40 +05:00
c2e8f81f61 Merge pull request 'PEP-176: ручное переключение подписки суперадмином — перевести агентов' (#167) from task/pep-176 into main 2026-11-16 23:00:29 +05:00
Асель
0aa59aacd6 PEP-180: OpenSpec change, archive
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 22:54:00 +05:00
Асель
d1026c9744 PEP-180: a long message (up to 60 000 characters) goes into the chat and a task's discussion whole; the analyst reads it whole; Telegram gets a shortened copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:53:18 +05:00
Асель
20bb0d25a8 PEP-179: «Погоня за задачей» на странице «Команда»
Над списком агентов — пиксельный мопс бросает задачу, работающие агенты гоняют её по
трассе (CSS offset-path), свободные ждут на скамейке. Данные — core teamChaseView: трасса
= агенты с живым раннером (≤8, остальные «+N»), скамейка — свободные в команде, счётчик —
задачи в «Готово» видимых проектов; «+1» — только при росте счётчика, «Жмите «Принять»» —
только при задачах на приёмке. Живая область team, LiveRefresh pauseHidden. Подсказки,
касание (первое — подсказка, второе — переход), клавиатура, прокрутка к карточке,
«Скрыть» с запоминанием, уменьшенное движение и экономия батареи, < 420 px — строка значков.
PWA: свой шрифт Press Start 2P (OFL), service worker кэширует оболочку и /team, без сети —
последний состав и «Нет связи — данные на ЧЧ:ММ».

Заодно: listAgents и выбор свободного агента считали занятость по id сессии вместо id агента
(drizzle рендерит ${agents.id} в подзапросе голым "id").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:41:46 +05:00
6e02c303b3 Merge branch 'main' into task/pep-176 2026-11-16 22:35:25 +05:00
9fc48aef73 Merge pull request 'PEP-174: пауза проекта — агенты, роли ИИ и уведомления стоят до «Продолжить»' (#166) from task/pep-174 into main 2026-11-16 22:32:53 +05:00
Асель
ec78f7abea PEP-183: задачи по профилю — специалисты получают подходящие задачи, ожидание занятого специалиста
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 22:19:40 +05:00
243817eb01 Merge branch 'main' into task/pep-176 2026-11-16 22:14:35 +05:00
5e0a99767b Merge branch 'main' into task/pep-174 2026-11-16 22:04:31 +05:00
665bc2bf01 Merge pull request 'PEP-155: список переписки проекта — «Ждут вас», «В работе», «Готово», поиск, статус и агент у треда' (#147) from task/pep-155 into main 2026-11-16 22:03:44 +05:00
Асель
cd07be9a8f PEP-176: project memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:43:32 +05:00
Асель
9a5200ac67 PEP-176: switching goes through the runner service; manual switches labelled in the feed; OpenSpec change (archived), test for «nowhere to go»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:43:27 +05:00
Асель
9c66a01101 PEP-176: the superadmin moves a subscription's agents by hand — to a chosen working subscription of the pool or to any free one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:43:26 +05:00
Асель
9b1fa54009 PEP-178: OpenSpec change archived
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 21:40:30 +05:00
Асель
5524348974 PEP-178: every subscription shows its account — ChatGPT's e-mail is read from the sign-in, Claude's is typed at sign-in or in «Изменить»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:26:51 +05:00
Асель
a12005dc7b PEP-174: тест паузы под одно напоминание через 4 ч в рабочее время (PEP-173)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:26:25 +05:00
Асель
114cd5b6d8 PEP-174: память проекта, OpenSpec archive
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:25:27 +05:00
Асель
efbb124ce3 PEP-174: вачдог дожимает остановку, плашка на телефоне, справка и AGENTS.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:25:27 +05:00
Асель
9afe6d4d5d PEP-174: пауза проекта — агенты, роли ИИ и уведомления стоят до «Продолжить»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:25:21 +05:00
Асель
48f676dc8d PEP-155: свежий main (PEP-172/173); память — версия main + пункт PEP-155
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:25:09 +05:00
Асель
1ddc65ff68 Merge remote-tracking branch 'origin/main' into task/pep-155 2026-11-16 21:25:00 +05:00
5f3e3f750b Merge pull request 'PEP-172: выкатка одной командой с обязательными проверками и откатом; агентам нельзя в копию живого сайта' (#163) from task/pep-172 into main 2026-11-16 21:24:26 +05:00
Асель
186310a42b PEP-177: every subscription shows whose it is — the person's name next to it; new pool subscriptions are named after their owner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:12:50 +05:00
47af8a40cf Merge branch 'main' into task/pep-172 2026-11-16 20:53:45 +05:00
d9f9f3c8ca Merge pull request 'PEP-173: одно напоминание через 4 часа и только в рабочее время' (#164) from task/pep-173 into main 2026-11-16 20:52:21 +05:00
Асель
1b2d784a64 PEP-150: merge main (PEP-163 project trash, PEP-171)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:31:30 +05:00
Асель
fd909a9951 PEP-172: OpenSpec change (archived), health waits for heartbeats after the restart, project memory compacted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:23:53 +05:00
Асель
52941ff606 PEP-155: свежий main; память без дублей и в пределе 12 000 символов
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:23:41 +05:00
Асель
9553442b0a Merge remote-tracking branch 'origin/main' into task/pep-173-s393 2026-11-16 20:23:01 +05:00
Асель
6b551adcb6 Merge remote-tracking branch 'origin/main' into task/pep-155 2026-11-16 20:22:45 +05:00
Асель
2877d8a736 Merge remote-tracking branch 'origin/main' into pep-172-s392 2026-11-16 20:22:11 +05:00
fc3124a6c4 Merge pull request 'PEP-163: удаление проекта — неделя у суперадмина, потом насовсем' (#156) from task/pep-163 into main 2026-11-16 20:13:55 +05:00
Асель
a5e5268aca PEP-155: память в пределе 12 000 символов
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:09:29 +05:00
Асель
7a8fe1df0e PEP-155: память проекта поверх свежего main, в пределе
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:09:23 +05:00
Асель
df197db426 Merge remote-tracking branch 'origin/main' into task/pep-155
# Conflicts:
#	apps/web/app/(app)/chats/[chat]/page.tsx
#	openspec/specs/project-chats/spec.md
2026-11-16 20:08:58 +05:00
Асель
02981bdebf PEP-163: merge main — the projects migration is 0022 after attachments (0021); deleted projects stay off the superadmin's dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:01:31 +05:00
aaea18c21a Merge pull request 'PEP-171: агенты на ChatGPT (Codex) снова запускаются — без удалённого флага --full-auto' (#162) from task/pep-171 into main 2026-11-16 19:23:41 +05:00
3e902aa38d Merge branch 'main' into task/pep-171 2026-11-16 19:12:02 +05:00
Асель
c36b351e93 PEP-172: deploys go through scripts/live-deploy.sh — clean main, green CI, migrations, build, health and page checks with rollback; no agent runs in Peppa's own live copy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:08:03 +05:00
Асель
8bf12f392e PEP-173: one reminder about an unanswered question, after 4 hours and only in working time; no escalation by default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:08:02 +05:00
cae9f381b3 Merge pull request 'PEP-169: вкладка «Gitea» для суперадмина' (#159) from task/pep-169 into main 2026-11-16 19:02:36 +05:00
Асель
22de2e1eba PEP-171: память в пределе 12 000 символов
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:55:02 +05:00
Асель
4c7f07e7a2 PEP-171: память проекта поверх свежего main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:54:57 +05:00
Асель
ce3d46e3db Merge remote-tracking branch 'origin/main' into HEAD 2026-11-16 18:54:39 +05:00
Асель
67b8f5d6b2 PEP-171: OpenSpec change (запуск Codex без --full-auto), память проекта ужата
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:54:34 +05:00
Асель
82fef6cc3b Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	apps/web/components/Sidebar.tsx
#	packages/shared/src/i18n/kk/admin.ts
2026-11-16 18:52:41 +05:00
6ba8285bd2 Merge pull request 'PEP-152: формат сообщения агента — суть, что нужно от вас, где посмотреть, подробности свёрнуты' (#153) from task/pep-152 into main 2026-11-16 18:49:47 +05:00
71d25cbb2d Merge branch 'main' into task/pep-152 2026-11-16 18:40:41 +05:00
Асель
bcecf9b334 PEP-171: Codex agents start without the removed --full-auto — no approvals, no sandbox by default (like bypassPermissions); mock-codex refuses --full-auto like Codex 0.169
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:27:30 +05:00
Асель
3cb3c46a6c PEP-150: merge main (PEP-149/151/154/166) — failures go to the superadmin as platform delays; «all tasks done» is not sent while a story is still in work; delay errors are awaited into Bugsink
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:24:57 +05:00
a05d163a14 Merge pull request 'PEP-170: простая ротация подписок' (#161) from task/pep-170 into main 2026-11-16 17:59:38 +05:00
5352b371c6 Merge pull request 'PEP-168: мониторинг проверяет порт веба' (#160) from task/pep-168 into main 2026-11-16 17:55:01 +05:00
209eafedd8 Merge branch 'main' into task/pep-168 2026-11-16 17:41:04 +05:00
Асель
51832ce6df PEP-170: простая ротация — кончилась подписка, агент на следующей; страница «Подписки» без пулов и займов
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:39:07 +05:00
Асель
094ab632cc PEP-152: формат сообщения агента — суть, что нужно от вас, где посмотреть, подробности под «Подробнее»
Сообщение агента пользователю собирается из полей summary / need / link / details
(core/agent-message.ts); основной текст проверяется при приёме (длина, словарь, файлы,
ветки, команды, номера PR, статусы из кода) — нарушение возвращается агенту, после трёх
отказов подряд сообщение уходит с нейтральной первой строкой. Разбор словаря — общий
модуль @peppa/shared/glossary. Сайт и Telegram показывают основной текст, details — под
«Подробнее». Карточка «готово» и реплика конца хода — в том же формате. Правила агентам,
переводы en/kk, тесты по сценариям, change pep-152-agent-message-format в архиве.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 17:38:04 +05:00
56a6b14f48 Merge pull request 'PEP-164: добавить ещё подписку Claude или ChatGPT в пул одной кнопкой' (#155) from task/pep-164 into main 2026-11-16 17:36:21 +05:00
Асель
d03586d2bc PEP-169: убрать задвоенные казахские ключи после слияния
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:31:38 +05:00
Асель
2f074deef6 Merge branch 'task/pep-169' of https://git.telecom.quest/peppa/peppa into task/pep-169 2026-11-16 17:31:21 +05:00
Асель
e4391c29cd PEP-168: мониторинг проверяет порт веба, а не только heartbeat; авто-перезапуск
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:29:29 +05:00
Асель
3d70d0e481 PEP-169: казахские переводы вкладки «Gitea»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:27:38 +05:00
Асель
cc7d2284e6 PEP-169: казахский перевод вкладки «Gitea»
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:27:17 +05:00
cc955436c9 Merge branch 'main' into task/pep-164 2026-11-16 17:17:15 +05:00
09f9381271 Merge pull request 'PEP-167: дашборд суперадмина — прогресс всех пользователей и проектов' (#158) from task/pep-167 into main 2026-11-16 17:15:01 +05:00
Асель
cf317bfeac PEP-169: вкладка «Gitea» для суперадмина — сервер и репозитории, связь с проектами
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:14:56 +05:00
Асель
436372625b PEP-164: archive the change, spec updated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:01:08 +05:00
Асель
c73e4464f0 PEP-164: no name clashes, hint for a pool without a spare, OpenSpec change archived
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:01:08 +05:00
Асель
7fc0b97342 PEP-164: «Добавить ещё Claude / ChatGPT» right in each pool card — the subscription joins the pool and its sign-in starts; the project page on the factory's pool links there
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:01:08 +05:00
2932c1ee28 Merge pull request 'PEP-161: «Написать аналитику» на карточках раздела «Проекты»' (#145) from task/pep-161 into main 2026-11-16 17:00:59 +05:00
Асель
5672532cbe PEP-161: leave AGENTS.md and the project memory as on main — every story edits them and the PR kept conflicting
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 16:50:26 +05:00
Асель
32f479a334 PEP-161: restore apps/web/AGENTS.md removed by mistake
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 16:50:26 +05:00
Асель
ad0ad1ab97 PEP-161: archive the change, AGENTS.md, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 16:50:26 +05:00
Асель
fc48b53945 PEP-161: «Написать аналитику» on the project cards of «Проекты»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 16:50:26 +05:00
1074d276b6 Merge pull request 'PEP-159: файлы в чате с аналитиком, в задаче и в форме «+ Задача»' (#144) from task/pep-159 into main 2026-11-16 16:47:02 +05:00
0ee3f5dc7c Merge branch 'main' into task/pep-159 2026-11-16 16:25:38 +05:00
5b686f98e4 Merge pull request 'PEP-162: конфиг раннера проверок не пропадает после обновления рабочей копии' (#148) from task/pep-162 into main 2026-11-16 16:19:29 +05:00
Асель
87502479a9 PEP-159: миграция вложений — 0021 после 0020 из main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +05:00
Асель
b20ee9ad9b PEP-159: rerun CI
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +05:00
Асель
2223a76834 PEP-159: архив change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +05:00
Асель
cdbab4466d PEP-159: вложения в чате с аналитиком, комментариях и новой задаче
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 16:03:45 +05:00
Асель
349baa3a6a PEP-162: перезапуск проверок
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 15:54:13 +05:00
Асель
c14b5ee281 PEP-162: память проекта
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 15:54:13 +05:00
Асель
584358795f PEP-162: монтировать каталог infra/act-runner, а не отдельные файлы
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 15:54:13 +05:00
a28faf3a07 Merge pull request 'PEP-166: лимиты подписок — новая фраза Claude о сбросе и баннер из истории разговора' (#157) from task/pep-166 into main 2026-11-16 15:53:28 +05:00
ada8e9c712 Merge pull request 'PEP-165: живой сайт в рабочем режиме (next start)' (#154) from task/pep-165 into main 2026-11-16 15:48:13 +05:00
Асель
ecb667c677 PEP-167: the superadmin's dashboard — totals, every user, every project and what needs attention
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:31:58 +05:00
ec5db836bc Merge branch 'main' into task/pep-165 2026-11-16 15:19:04 +05:00
Асель
bb9f75e817 PEP-166: archive the change — the phrase is in specs/limit-recovery; project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 15:15:29 +05:00
Асель
4d4fa005dc PEP-166: OpenSpec change and the test of the incident — the subscription stays limited until 18:00
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 15:15:29 +05:00
71a8636ab2 Merge pull request 'PEP-154: фильтр служебного текста — системные блоки и вывод терминала не попадают в переписку' (#152) from task/pep-154 into main 2026-11-16 15:11:02 +05:00
Асель
5a36687f42 PEP-166: a limit banner replayed by a resumed Claude conversation is history, not a new limit of the subscription it moved to
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:07:53 +05:00
Асель
b6220327cf PEP-166: the reset time is read from Claude Code's «continuing automatically at 6pm» banner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:01:59 +05:00
Асель
228b0fc758 PEP-163: test scenario typed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 15:00:58 +05:00
b30df53ad0 Merge branch 'main' into task/pep-150 2026-11-16 15:00:42 +05:00
Асель
b1c13e739e PEP-165: the live site runs next start; deploy builds before restarting web
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:50:47 +05:00
Асель
2f924ac6b3 PEP-163: удаление проекта — неделя у суперадмина, потом насовсем
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:38:43 +05:00
Асель
25c35fd6d0 Merge remote-tracking branch 'origin/main' into task/pep-154 2026-11-16 14:31:27 +05:00
0f4cadecf0 Merge branch 'main' into task/pep-155 2026-11-16 14:23:18 +05:00
bf170cc2e9 Merge pull request 'PEP-157: очередь проверок CI — четыре одновременно вместо двух' (#140) from task/pep-157 into main 2026-11-16 14:21:43 +05:00
Асель
b5c0e704a5 PEP-150: сбои не идут пользователю — задержка на стороне платформы, одно сообщение суперадмину
platformDelay/sessionDelay вместо attention владельцу: падения и зависания агентов, лимиты,
красные и зависшие проверки, запуск агента, обновление версии, приёмка; guard конвейера —
вопрос суперадмину в платформенном проекте; строка задержки в задаче и на карточке;
список задержек на Главной суперадмина.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 14:09:30 +05:00
8eb90052f1 Merge pull request 'PEP-140: названия задач и проектов в сообщениях фабрики доходят дословно на английском и казахском' (#136) from task/pep-140 into main 2026-11-16 14:03:56 +05:00
Асель
14d1dbb00f PEP-154: после PEP-149 — реплика в конце хода чистится в треде задачи; сбой запуска по багу — через platformFailure
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:48:36 +05:00
Асель
c1c94ec02a Merge remote-tracking branch 'origin/main' into task/pep-155
PEP-155: «Ждут вас» follows the message types of PEP-149.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:46:35 +05:00
Асель
8188a99272 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-16 13:45:45 +05:00
Асель
3accfe155d Merge remote-tracking branch 'origin/main' into task/pep-154 2026-11-16 13:36:44 +05:00
Асель
b7e1230dd9 PEP-154: архив change, спеки
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:36:04 +05:00
Асель
4b1170fdce PEP-140: archive the change — the requirement is in specs/interface-language; AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:48 +05:00
Асель
91e11a8ed4 PEP-140: tests that compare message texts read them without the marks
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:48 +05:00
Асель
35fa8d5a4f PEP-140: project memory, tasks done so far
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:48 +05:00
Асель
e0b86cf160 PEP-140: tests by the requirement's scenarios — review card, idle push, reviewer's summary, Kazakh, the factory's own reason
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:48 +05:00
Асель
2531e0ee7f PEP-140: foreign text put into the factory's messages is marked free text (titles, names, reviewer's and agent's words, outside reasons)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:48 +05:00
Асель
f3ab7ee6f2 PEP-140: proposal — foreign text inside the factory's messages is marked free text
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:41 +05:00
Асель
061bf62f62 PEP-139: test follows the factory question reworded in PEP-137
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:41 +05:00
Асель
6a94310568 PEP-139: archive the change, spec, project memory, test for the marked thread title
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:41 +05:00
Асель
27e24c592b PEP-139: free text of people and agents is marked and never rewritten by the translation of rendered messages
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:41 +05:00
Асель
873daa4fb4 PEP-138: archive the change, spec, project memory, AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:26 +05:00
Асель
e4f21a9a29 PEP-138: AI roles' chat messages go through the dictionary; strict line translation keeps the model's own words
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:30:26 +05:00
a780516770 Merge pull request 'PEP-149: четыре типа сообщений агента — вопрос, готово, ход работы, блокер' (#142) from task/pep-149 into main 2026-11-16 13:29:19 +05:00
Асель
2eebcb7f6c PEP-154: сообщение человека, которое Peppa донесла до терминала, остаётся его ответом
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:28:53 +05:00
Асель
60b831f33b PEP-154: память проекта и AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:25:16 +05:00
Асель
7a42453080 PEP-155: archive the change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:24:54 +05:00
Асель
2640786465 PEP-154: подпись без значения не остаётся в тексте; пункты tasks.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:24:46 +05:00
Асель
dc6eb424a9 PEP-155: plain last line, phone layout, AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:24:37 +05:00
Асель
c80a31f5cb PEP-154: фильтр служебного текста, ответ — только ввод человека, ошибки платформы — суперадмину
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:23:45 +05:00
Асель
ea3515d31c PEP-155: project chat list — groups, status, agent, unread, search
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:20:32 +05:00
Асель
a935a42528 PEP-154: план — фильтр служебного текста
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:17:36 +05:00
Асель
bfe722d941 PEP-155: proposal
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:16:49 +05:00
Асель
326e2c67e4 PEP-157: архив change, память проекта
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:15:56 +05:00
Асель
f05a5ee498 PEP-157: OpenSpec change, тест на capacity раннера проверок, AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:15:21 +05:00
Асель
4dec8247a2 PEP-149: «product released» and «backlog is empty» notices ask nothing — no answer form; test
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
165b486547 PEP-149: rebased on PEP-151 — the refreshed Telegram message has no «continue» button
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
2dd13261bc PEP-149: migration regenerated on top of main (0020)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
1353b358b8 PEP-149: archive the change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
5f738942e0 PEP-149: remaining old tests follow the new end-of-turn behaviour
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
0a5eff6485 PEP-149: old tests follow the new contract (no «agent ended its turn» message, ask_pm with options)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
11d6bbafdf PEP-149: project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
ceef0d7e2f PEP-149: story page shows only questions; AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:17 +05:00
Асель
4c0a08bef2 PEP-149: translations, help, agent rules, scenario tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:06:08 +05:00
Асель
45754f1f23 PEP-149: message types — end of turn is progress, ask_pm with options and default, report_blocker, no «continue» button
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:05:59 +05:00
Асель
54f242d0c5 PEP-149: proposal — four kinds of agent messages
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:05:59 +05:00
238a1b418d Merge pull request 'PEP-148: мастер подключения ChatGPT — понятно, куда вставлять код; страница сама видит вход' (#139) from task/pep-148 into main 2026-11-16 13:01:48 +05:00
feab7e8536 Merge pull request 'PEP-146: повторное нажатие кнопки не даёт ошибку' (#134) from task/pep-146 into main 2026-11-16 13:01:46 +05:00
8ef29af2a9 Merge pull request 'PEP-145: продукт проекта всегда открывается по ссылке — ссылка появляется сама' (#138) from task/pep-145 into main 2026-11-16 12:49:47 +05:00
Асель
e83ad9fd6e Merge remote-tracking branch 'origin/main' into task/pep-157 2026-11-16 12:38:09 +05:00
Асель
62b7877238 Merge remote-tracking branch 'origin/main' into task/pep-148 2026-11-16 12:38:09 +05:00
Асель
86365203d2 Merge remote-tracking branch 'origin/main' into task/pep-146 2026-11-16 12:38:09 +05:00
Асель
db6209bda1 PEP-145: archive the change — the requirements are in specs/product-link
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:01 +05:00
Асель
ef06c112f8 PEP-145: the card on a phone, plainer wording, product-mode texts listed in the i18n test, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:01 +05:00
Асель
56c9c4ff67 PEP-145: glossary row for the product link
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:01 +05:00
Асель
dc97e718aa PEP-145: help, glossary and AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:01 +05:00
Асель
81f62c9a69 PEP-145: the «Ваш продукт» card with one big button and an honest status, «Показывать всем» setting, links for accepted stories, translations, tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:00 +05:00
Асель
117dc6ea9c PEP-145: product placeholder in the template, first deploy of a new project, the system story and «Показывать всем: сам» in the watchdog
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:00 +05:00
Асель
4c8251d683 PEP-145: proposal — the product of a project always opens by a link
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:33:00 +05:00
5d241aa710 Merge pull request 'PEP-144: страницы не пересобираются по кругу — журнал разработки на живом сайте отключён' (#133) from task/pep-144 into main 2026-11-16 12:32:46 +05:00
0da378440f Merge branch 'main' into task/pep-144 2026-11-16 12:15:10 +05:00
1f5f7ed0cd Merge pull request 'PEP-151: без повторов — одно состояние задачи, одно сообщение' (#141) from task/pep-151 into main 2026-11-16 12:14:57 +05:00
Асель
33fa9a743c PEP-144: test teardown retries removing its temp dir — ENOTEMPTY on a busy CI runner failed a whole test file
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:06:08 +05:00
Асель
d0c3293246 PEP-144: rerun CI
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:06:08 +05:00
Асель
b09ecea7a4 PEP-144: test pins the dev-server settings that stop the refresh loop; spec live-updates, AGENTS.md, project memory, archived change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:06:08 +05:00
Асель
c8d3c0b935 PEP-144: no dev log file on the live site — it made every open tab rebuild the page in a loop
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 12:06:08 +05:00
Асель
72939267e1 PEP-151: archive the change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:59:07 +05:00
Асель
a3613b2c52 PEP-151: re-raised message counts from its latest time; project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:59:07 +05:00
Асель
5a37a75e4d PEP-151: AGENTS.md, tasks
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:59:07 +05:00
Асель
4bf482d79a PEP-151: one state — one message (fingerprint, chat, Telegram edit, card)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:59:07 +05:00
Асель
4b7c21342c PEP-151: proposal
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:59:07 +05:00
f4adff2a6c Merge pull request 'PEP-143: агент обратной связи — обращения со скриншотами, разбор с вариантами исправления для суперадмина' (#135) from task/pep-143 into main 2026-11-16 11:57:18 +05:00
Асель
517f65e1ec PEP-157: CI runner takes four jobs at once instead of two
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:25 +05:00
Асель
0f05c94e4b PEP-143: archive the change — the requirements are in specs/user-feedback
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
9f8e2a646b PEP-143: project memory, product-mode i18n lists
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
db8ee6163a PEP-143: AGENTS.md, button above the live indicator, tasks
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
2c396ff007 PEP-143: web form, «Обращения» page, Home card, translations, glossary, help
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
177039c5e1 PEP-143: feedback e2e tests, photos in mock-telegram
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
fec0a698e7 PEP-143: feedback table, core, feedback agent tick, bot mode and buttons
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
0a23035756 PEP-143: proposal, design, spec and tasks for the feedback agent
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:23:09 +05:00
Асель
bacbf97228 PEP-148: ChatGPT sign-in wizard — the page checks the sign-in by itself, says so when it is not confirmed yet, explains the «ordinary chat» detour; an extra subscription is not shown as «nothing connected»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 11:11:06 +05:00
d839b1e53e Merge pull request 'PEP-142: создание проекта — без ошибки «Slug уже занят» при повторном нажатии' (#131) from task/pep-142 into main 2026-11-16 10:55:34 +05:00
7c9481a51c Merge pull request 'PEP-141: плашка «Issue» инструментов разработки скрыта от пользователей; ошибки консоли браузера уходят в Bugsink' (#130) from task/pep-141 into main 2026-11-16 10:53:45 +05:00
Асель
1c1c2b20b1 PEP-146: a form button cannot be pressed twice while its action runs; a repeated «Показать всем» returns the running update instead of an error
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:52:56 +05:00
Асель
694cbb5543 PEP-142: archive the change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:23:36 +05:00
Асель
05444297a5 PEP-142: screen checked in a browser
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:23:36 +05:00
Асель
f29f0c3fe3 PEP-142: project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:23:36 +05:00
Асель
0dd12ea53c PEP-142: two submissions of the new-project form at once share one creation; OpenSpec change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:23:36 +05:00
Асель
0412716cb5 PEP-142: «Создать проект» is disabled while the project is being created; the same form sent twice opens the project instead of «slug is taken»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:23:36 +05:00
f0660d0c95 Merge pull request 'PEP-137: сообщения в Telegram и чатах — слова из словаря, долгов в сообщениях больше нет' (#129) from task/pep-137 into main 2026-11-16 10:14:19 +05:00
Асель
66fefa6664 PEP-141: the dev «Issue» pill and overlay are hidden from users; console errors of the browser go to Bugsink
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 10:07:26 +05:00
Асель
4e94166b09 PEP-137: archive the change — the requirement is in specs/peppa-ci
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:36 +05:00
Асель
73e7745d13 PEP-137: tests follow the reworded messages; project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
4b096b8c84 PEP-137: core and runner messages use glossary words (ru/en/kk); engineer-only texts are marked; no message debts in the baseline
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
300528bcc6 PEP-137: proposal — clean the glossary debts of core and runner messages
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
2677f1ad84 PEP-129: tests follow the reworded messages
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
7f28c29d10 PEP-129: archive the change — the requirement is in specs/peppa-ci
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
f0498437e3 PEP-129: docs — AGENTS.md, glossary note, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
e231f46944 PEP-129: the glossary check reads messages marked for a person in core, runner and mcp; product-facing messages reworded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:35 +05:00
Асель
68c9c2c000 PEP-129: proposal — the glossary check covers messages built in core
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:52:31 +05:00
45c9d0eddd Merge pull request 'PEP-135, PEP-136: инструкция подключения к своему Claude или ChatGPT; выбор языка в меню' (#124) from task/pep-135 into main 2026-11-16 09:51:56 +05:00
Асель
15bd5534a9 PEP-135: archive the change, project memory, glossary baseline
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:19:58 +05:00
Асель
262dbccbbe PEP-135, PEP-136: step-by-step guide to connect Peppa FACTORY to one's own Claude or ChatGPT; language switcher in the menu on every page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 09:04:45 +05:00
a8b7a67797 Merge pull request 'PEP-133: аудит безопасности платформы' (#123) from task/pep-133 into main 2026-11-16 08:43:43 +05:00
Асель
8d66251b42 PEP-133: rerun CI
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 08:33:03 +05:00
Асель
1ec5ade03d PEP-133: security audit — git relay refuses encoded dot segments, security headers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 08:29:01 +05:00
75ccc2637f Merge pull request 'PEP-125: тексты режима «Продакт» на русском, казахском и английском — проверка и требование' (#114) from task/pep-125 into main 2026-11-15 23:49:01 +05:00
Асель
16f408790e PEP-125: the «Продакт» view texts are tested in three languages; spec requirement; the «Kazakh is coming» note is gone
PEP-98 and PEP-99 landed on main separately, so the branch is rebuilt from main and carries only
what main lacks: the product-mode test, the requirement in interface-language, the archived change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 23:32:08 +05:00
828daa073f Merge pull request 'PEP-99: казахская версия интерфейса' (#122) from task/pep-99 into main 2026-11-15 23:29:11 +05:00
Асель
8d965486d8 PEP-99: archive change, project memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:08:31 +05:00
Асель
a5025639c9 PEP-99: Kazakh for voice input and the carried-through accept (PEP-108, PEP-127)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
6ec818bf84 PEP-99: Kazakh for the story page in «Продакт» (PEP-120)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
33d1f13b7a PEP-99: kk sync with PEP-98 (PEP-130)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
a7bf806955 PEP-99: Kazakh words of the views (nominative) and translations for PEP-112…124 texts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
15c5ee5585 PEP-99: Kazakh for the product/engineer view (PEP-119)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
7724f7f6f2 PEP-99: local CI green
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
5c0ad32679 PEP-99: Kazakh for the expired subscription login (PEP-128)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
be0fe44b54 PEP-99: Kazakh for story comments refined by the analyst (PEP-115)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
4f31cc811a PEP-99: Kazakh for the ChatGPT device-code steps (PEP-126)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
b1f27aad30 PEP-99: Kazakh for new-user notifications (PEP-113)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
2add2a85a8 PEP-99: one word for the analyst role in Kazakh — аналитик
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
bc37096e1b PEP-99: Kazakh for the shared subscription request and story events in chats (PEP-118 merge)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
03421a9310 PEP-99: kk test follows the PEP-105 keys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
96b0c89261 PEP-99: kk keys follow PEP-105 («Peppa FACTORY» in the Russian keys)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
b6d76a8094 PEP-99: Kazakh for Telegram group linking texts (PEP-109)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
10531e2ebf PEP-99: Kazakh for product release texts (PEP-111/114)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
7d0c056bc2 PEP-99: one word for superadmin in Kazakh — суперәкімші
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
93638c2fc4 PEP-99: Kazakh for subscription pool and loan texts (PEP-107)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
859a973919 PEP-99: test that the bot/push path (localizeText) renders every key in Kazakh; checked kk pages by HTTP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
84f7793b54 PEP-99: Kazakh for the analyst chat texts (PEP-110)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
6eea28d926 PEP-99: Kazakh for the project discussion texts (PEP-106)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
2526b6b59a PEP-99: localizeText picks the variant with the least Russian left untranslated, not the least Cyrillic — Kazakh is Cyrillic too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
fcdbb26f47 PEP-99: Kazakh for texts PEP-98 brought from main (plan, nicknames, bot setup, new project)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
c0a970caf2 PEP-99: interface-language delta spec for Kazakh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
fa6a28585d PEP-99: product name «Peppa FACTORY» with Kazakh case endings; i18n test expects Kazakh for kk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
38de88bf80 PEP-99: kk dictionary split by the en sections of PEP-98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
72d11d7392 PEP-99: Kazakh for the next 66 keys of PEP-98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
5ece5215b0 PEP-99: Kazakh for the next 146 keys of PEP-98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
24bef72857 PEP-99: name «Peppa FACTORY» in Kazakh too; translations for the next 1016 keys of PEP-98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
dcc6b5536c PEP-99: kk covers the current en dictionary too; test follows the neutral counter wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
bd77ad6e2c PEP-99: Kazakh translations for all keys marked so far by PEP-98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
d674f63567 PEP-99: WIP Kazakh dictionary skeleton on top of PEP-98 i18n (kk sections, coverage test)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
Асель
83488a16ec PEP-99: proposal and design for the Kazakh UI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:07:30 +05:00
bc8ed2dcfa Merge pull request 'PEP-98: Английская версия интерфейса' (#98) from task/pep-98 into main 2026-11-15 23:07:01 +05:00
Асель
fe751fb008 Merge main into task/pep-98: PEP-108 voice input and PEP-127 carried-through accept through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:49:13 +05:00
5febecae81 Merge pull request 'PEP-127: «Принять» при конфликте доводится до конца; задача уходит PM только когда её можно принять' (#118) from task/pep-127 into main 2026-11-15 22:40:44 +05:00
49f1a1d40b Merge pull request 'PEP-108: стори голосом — свой Telegram-бот и микрофон в вебе' (#103) from task/pep-108 into main 2026-11-15 22:40:17 +05:00
Асель
756fc7acc8 Merge main into task/pep-98: PEP-120 story page for «Продакт» through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:27:09 +05:00
Асель
c6a14a6dba PEP-127: страница задачи для продакта после «Принять» — без повторной кнопки, «изменения обновляются, закроется сама»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 22:21:35 +05:00
Асель
a99e6abe6d Merge remote-tracking branch 'origin/task/pep-108' into task/pep-127 2026-11-15 22:17:14 +05:00
Асель
a903dd2cf3 PEP-127: merge main (PEP-120, PEP-130)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 22:17:14 +05:00
Асель
e9769af04d Merge remote-tracking branch 'origin/main' into task/pep-108 2026-11-15 22:16:11 +05:00
Асель
dd255a2e4a Merge main into task/pep-98: PEP-130
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:15:37 +05:00
d9f22e2336 Merge pull request 'PEP-120: страница задачи в режиме «Продакт»' (#117) from task/pep-120 into main 2026-11-15 22:15:24 +05:00
b67fd4cc3d Merge pull request 'PEP-130: основная ветка снова зелёная — проверка словаря на странице проекта' (#121) from task/pep-130 into main 2026-11-15 22:13:36 +05:00
Асель
9052f3245f Merge main into task/pep-98: PEP-112…124 texts through the dictionary
Main's new wording (PEP-123 «Продакт» words) kept and wrapped in t()/m();
wording(mode, locale) gives English words for {task}/{runner} placeholders;
glossary check (pnpm lint) passes; English for all new keys (en/merge-*.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:04:39 +05:00
Асель
f246813e35 PEP-127: мерж только со свежим main внутри — Peppa сама обновляет отставшую ветку и ждёт проверок; «Принять» запоминается и при идущих проверках
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:54:50 +05:00
Асель
aa8b42041b PEP-108: own-bot test follows the product wording of the bot («Новая задача», «наговорите»)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:54:50 +05:00
Асель
24caa3dc5e PEP-108: glossary — «задача» in the bot steps; the developer-settings note without a forbidden word (main's lint was red on it)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:44:49 +05:00
Асель
6434f88ecb PEP-120: keep next-env.d.ts as on main; project settings hint without a forbidden word (main was red on lint)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:44:08 +05:00
Асель
ac3ef41d3d PEP-108: archive notes after rebase onto PEP-106
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:54 +05:00
Асель
f5037acb43 PEP-108: archive change, project memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:54 +05:00
Асель
b8c5817bf8 PEP-108: infra/whisper copy + README, OpenSpec artifacts for the PM's requirements
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:49 +05:00
Асель
027cd8b81a PEP-108: web dictation — microphone in story, comment, answer and chat fields via /api/transcribe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:49 +05:00
Асель
2d4e8e6119 PEP-108: voice and text stories from the user's own bot, transcribe timeout, «в проекте X»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:43 +05:00
Асель
a79d23eacc PEP-120: keep next-env.d.ts as on main
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:43:37 +05:00
Асель
3798f350c0 PEP-120: plain permission question, no status badge in «Продакт»; AGENTS.md, memory, archive the change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:43:37 +05:00
Асель
50b63cbafa PEP-120: story page in «Продакт» mode — plain card, «Подробнее», «Поправить»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:43:37 +05:00
Асель
a726553c7d PEP-120: proposal — story page in «Продакт» mode
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:43:29 +05:00
Асель
e1abca0be9 PEP-108: proposal — local speech recognition for voice stories
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:43:27 +05:00
Асель
e6d893998d PEP-130: main is green again — glossary check passes on the project page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:42:46 +05:00
Асель
9a310b29c1 PEP-127: слово из словаря в подсказке про вид «Инженер» (lint на main красный после PEP-119 + PEP-124)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:41:42 +05:00
Асель
ed3b4fefd4 PEP-127: keep shared docs lines out of the append spots (server-side merge has no union driver)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:21 +05:00
Асель
0c7990dd61 PEP-127: память проекта
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:21 +05:00
Асель
6de7c72752 PEP-127: «готова к ревью» уходит PM только когда задачу можно принять; гейт закрыт при ошибке Gitea
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:21 +05:00
Асель
4347477a69 PEP-127: archive the change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:14 +05:00
Асель
fc97c41629 PEP-127: «принято, закроется само» в боте, MCP, на странице задачи и доске; AGENTS.md, память
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:14 +05:00
Асель
a3d784b812 PEP-127: «Принять» при конфликте запоминается, вачдог доводит до мержа
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:14 +05:00
Асель
a5ba080fee PEP-127: proposal — «Принять» при конфликте доводится до конца
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:40:14 +05:00
a1fb29f0da Merge pull request 'PEP-123: слова режима «Продакт» — «вы», «задача», «агент», «Peppa FACTORY»' (#120) from task/pep-123 into main 2026-11-15 21:39:02 +05:00
a91e9a023b Merge pull request 'PEP-124: проверка словаря в CI — сборка падает на запрещённом слове' (#116) from task/pep-124 into main 2026-11-15 21:34:04 +05:00
Асель
01c8cf226e PEP-124: debt list on fresh main (texts of PEP-112 and PEP-121 written before the check)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
1385840509 PEP-124: the «Инженер» mode description without a forbidden word; debt list on fresh main
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
6776a9a99d PEP-124: debt list on fresh main; the quoted ChatGPT wording is marked glossary-ignore
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
253068e39c PEP-124: archive the change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
c47a26745d PEP-124: glossary check in CI — pnpm lint, checks.lint, the lint step of the workflow and ci.sh
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
e2d711c1fc PEP-124: glossary check — forbidden words of docs/glossary.md on the screens, list of old debts, test
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:18:44 +05:00
Асель
1b12ece0b1 Merge main into task/pep-123 (PEP-122): both requirements kept in web-workspace spec
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 21:13:44 +05:00
a72ebca22a Merge pull request 'PEP-122: «Помощь» в режиме «Продакт» — один экран' (#115) from task/pep-122 into main 2026-11-15 21:11:26 +05:00
Асель
d729995d24 Merge main into task/pep-123 (PEP-121, PEP-112): both sides kept, new texts in the words of «Продакт»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 20:54:48 +05:00
Асель
59c34256a4 PEP-122: archive the change, AGENTS.md, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 20:50:03 +05:00
Асель
39b8b58258 PEP-122: «Помощь» for the «Продакт» view — one screen, three answers; texts in ru/kk/en
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 20:50:03 +05:00
99e2a95b75 Merge pull request 'PEP-112: продакт-агент принимает работу — продукт работает для человека, а не в демо-режиме' (#108) from task/pep-112 into main 2026-11-15 20:48:25 +05:00
33a8b81235 Merge pull request 'PEP-121: полоса лимитов в режиме «Продакт» и скрытые имена подписок' (#119) from task/pep-121 into main 2026-11-15 20:48:02 +05:00
Асель
56ef392cfb Merge main into task/pep-123 (PEP-119 landed squashed): keep the wording of PEP-123
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 20:25:10 +05:00
Асель
6ff5c03bf9 PEP-112: keep the PEP-119 import on the project page after the rebase
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:57:59 +05:00
Асель
e6d5742b74 PEP-112: keep hot files out of other stories' way (own import line, export and memory lines moved)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:57:05 +05:00
Асель
77fd188775 PEP-112: archive change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:57:05 +05:00
Асель
a4474206b0 PEP-112: agent rules, docs, deploy script tests, card wording, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:57:05 +05:00
Асель
eb760d7a92 PEP-112: go-live needs, project secrets in deploys, restart on secret change, product agent accepts deploys
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:57:05 +05:00
Асель
05dfb08b67 Merge main into task/pep-98: PEP-119 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 19:56:56 +05:00
Асель
81f83fc37e PEP-112: proposal — product acceptance, go-live needs, project secrets in deploys
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:56:37 +05:00
600d7a69b7 Merge pull request 'PEP-119: режим «Продакт» по умолчанию и «Инженер» по выбору' (#111) from task/pep-119 into main 2026-11-15 19:53:45 +05:00
Асель
284f1757ff Merge main into task/pep-123 (PEP-115, PEP-128): conflicts resolved, new messages in the words of «Продакт»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:19:23 +05:00
Асель
4b5fee56af PEP-121: agent warning test expects the neutral subscription name
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:11:04 +05:00
Асель
c4f4d3cb6d PEP-121: archive the change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:11:04 +05:00
Асель
ca22e986d7 PEP-121: no doubled «Claude» in the pool row, AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:11:04 +05:00
Асель
b977e7b5b9 PEP-121: one-line agents strip for «Продакт»; subscription names only for a superadmin and the one who connected it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:11:04 +05:00
Асель
6f5aa007ac PEP-121: proposal — one-line limits strip for «Продакт», subscription names hidden
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:11:04 +05:00
Асель
43baa7ca4c Merge main into task/pep-98: PEP-128 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:53:49 +05:00
Асель
2dcd16da3a PEP-119: «Продакт» mode by default and «Инженер» by choice — project tabs, menu, no dev badges, 720 px; union merge for shared docs
One clean commit on top of main (the branch history had an intermediate commit with conflict markers).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:50:34 +05:00
e35763aeec Merge pull request 'PEP-128: повтор после неудачного входа в подписку' (#113) from task/pep-128 into main 2026-11-15 18:49:58 +05:00
Асель
8e9ee4d813 Merge main into task/pep-98: PEP-115 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:35:08 +05:00
8e44102fdc Merge pull request 'PEP-115: комментарий к стори без агента уточняет постановку' (#107) from task/pep-115 into main 2026-11-15 18:28:47 +05:00
Асель
20f3684466 PEP-123: tests follow the reworded rotation and channel messages
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:18:45 +05:00
Асель
4888b37d9b PEP-123: archive the change
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:15:56 +05:00
Асель
323cd0f422 Merge main into task/pep-123 2026-11-15 18:15:16 +05:00
Асель
915f62ffde PEP-123: drop files generated by next dev
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:14:44 +05:00
Асель
3635140503 PEP-123: tests follow the reworded messages
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:14:17 +05:00
Асель
ef846c51a6 PEP-123: project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:11:51 +05:00
Асель
e3abf5b43d PEP-123: release threads and notification names in plain words; tests follow the new wording; AGENTS.md
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:11:28 +05:00
Асель
b478390eb5 PEP-123: messages to the user in the words of «Продакт» — chats, questions, Telegram, push
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:08:26 +05:00
Асель
2c957631e8 PEP-123: wording by view — «задача»/«агент» for «Продакт», «вы» everywhere; engineer-only project settings
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:05:34 +05:00
Асель
40e5f6fdd3 PEP-128: after a failed subscription sign-in the wizard comes back with the reason; dead attempts are dropped on retry
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:04:52 +05:00
Асель
5bc11bc320 Merge main into task/pep-98: PEP-126 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:02:24 +05:00
8ef60fc521 Merge pull request 'PEP-126: подключение ChatGPT — подсказка про вход по коду устройства' (#112) from task/pep-126 into main 2026-11-15 17:59:14 +05:00
Асель
554eeef7c1 PEP-123: proposal — words of the «Продакт» mode
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:59:01 +05:00
Асель
258a605c16 PEP-119: archive the change
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 17:53:40 +05:00
Асель
23d6b6bee1 Merge main into task/pep-98: PEP-113 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 17:43:05 +05:00
Асель
61c21f9823 PEP-115: drop a duplicate memory line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:39:32 +05:00
Асель
7f8798d863 PEP-115: archive change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:39:11 +05:00
Асель
7ec9fe9bc5 PEP-115: comment on a backlog story goes to the analyst — description reworked, answer in the discussion
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:38:49 +05:00
Асель
7ad3d374c7 PEP-119: union merge for AGENTS.md, project memory and the glossary — parallel PRs stop conflicting on them
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:35:11 +05:00
Асель
61ed80f2f6 PEP-119: resolve the import conflict with main on the project page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:34:59 +05:00
Асель
805dd6020a PEP-119: «Продакт» mode by default and «Инженер» by choice — project tabs, menu, no dev badges, 720 px
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:34:59 +05:00
d3ae0642c6 Merge pull request 'PEP-113: сообщение суперадминам о новом пользователе' (#105) from task/pep-113 into main 2026-11-15 17:32:15 +05:00
Асель
bf22e9e0b1 Merge remote-tracking branch 'origin/main' into task/pep-98 2026-11-15 17:25:19 +05:00
Асель
ed62cdcd06 Merge main into task/pep-98: PEP-116/117 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 17:25:06 +05:00
9d9d21f715 Merge pull request 'PEP-118: словарь и правила текстов для пользователя' (#110) from task/pep-118 into main 2026-11-15 17:17:33 +05:00
Асель
1676e69b26 PEP-126: ChatGPT steps — the code first with a copy button; what «код из терминала» and the security warning mean
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:11:01 +05:00
abf35a4ca9 Merge pull request 'PEP-116: выбор подписки — своя или Peppa FACTORY' (#106) from task/pep-116 into main 2026-11-15 17:10:58 +05:00
Асель
bdae019820 PEP-126: ChatGPT connection — what to do when ChatGPT asks to enable device code login
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:05:22 +05:00
e47d41f273 Merge pull request 'PEP-117: чаты понятны продакту — обзор, что ждёт ответа и где писать' (#109) from task/pep-117 into main 2026-11-15 17:03:50 +05:00
Асель
decc9240eb PEP-98: PEP-109 test follows the PEP-105 name
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:56:27 +05:00
Асель
2df225d33f PEP-113: archive the change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:49:49 +05:00
Асель
cd2b4d4342 PEP-113: superadmins get a message about every new account (eGov, Google, created by an admin)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:49:43 +05:00
Асель
a2c1f7354f Merge PEP-105 (#97) into task/pep-98
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:47:44 +05:00
Асель
222d9e1f74 Merge main into task/pep-98: PEP-109 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:47:00 +05:00
54e7b79ca3 Merge pull request 'PEP-105: «Peppa FACTORY» вместо «Пеппа» в русских текстах' (#97) from task/pep-105 into task/pep-98 2026-11-15 16:46:26 +05:00
Асель
af8298ac2a PEP-118: glossary of user-facing words and the rules block «Тексты и экраны для пользователя»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:40:59 +05:00
Асель
3a0d5c464d PEP-116: the factory's subscription is granted by the superadmin — a request with buttons on Home and in Telegram
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:38:46 +05:00
Асель
8947fe4967 PEP-116: the owner chooses — own subscription or the one built into Peppa FACTORY
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:38:31 +05:00
Асель
81eab53459 PEP-117: chats a product manager understands — an overview of what waits and where to write, events in plain words
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:34:39 +05:00
Асель
8ff54d6363 Merge main into task/pep-98: PEP-111/114 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:32:40 +05:00
70eeaf2af5 Merge pull request 'PEP-109: Telegram-группы чатов — через свой бот пользователя' (#102) from task/pep-109 into main 2026-11-15 16:29:53 +05:00
83ad46cefc Merge pull request 'PEP-111: «Ваш продукт» — где результат и что дальше' (#101) from task/pep-111 into main 2026-11-15 16:22:22 +05:00
Асель
34a4024224 Merge main into task/pep-98: PEP-107 subscription texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:16:16 +05:00
24f6fa5e18 Merge pull request 'PEP-114: открытая страница просит обновиться после обновления сайта' (#104) from task/pep-114 into main 2026-11-15 16:15:12 +05:00
Асель
6d18a39acb PEP-111: «Ваш продукт» — where the result runs and what to do next; releases in plain words
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:03:05 +05:00
Асель
312c1365c8 PEP-109: archive change, project memory
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:01:21 +05:00
Асель
f9a4b3c56e PEP-109: a chat's Telegram group is linked through the user's own bot
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:01:10 +05:00
Асель
424ab65a95 PEP-109: proposal — chat Telegram groups through the user's own bot
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 16:01:00 +05:00
Асель
c739e877f5 PEP-114: a page opened before the site was updated asks to be reloaded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:58:52 +05:00
17f7b4e416 Merge pull request 'PEP-107: ротация подписок — разработка не останавливается на лимите' (#99) from task/pep-107 into main 2026-11-15 15:57:01 +05:00
Асель
96b5422a56 PEP-105: «Peppa FACTORY» instead of «Пеппа» in Russian UI texts; i18n-check guards Russian keys; archive change, memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:56:55 +05:00
Асель
f53e1a4164 Merge main into task/pep-98: PEP-110 analyst chat texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:48:18 +05:00
Асель
b479f23db4 PEP-98: people's and agents' text is never cut by loose templates; chat bodies translated only for system messages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:46:46 +05:00
e612f09b13 Merge pull request 'PEP-110: чат с аналитиком — ответы о проекте и новые стори на подписке проекта' (#100) from task/pep-110 into main 2026-11-15 15:46:35 +05:00
Асель
b3f3547241 PEP-107: archive change, memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:40:06 +05:00
Асель
ac57057079 PEP-107: project memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:40:06 +05:00
Асель
2ef05fac12 PEP-107: failover across providers, pool view, last-subscription warning, superadmin loans
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:40:06 +05:00
Асель
37d47ff49e PEP-107: proposal — subscription failover across providers, pool view, warnings, loans
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:39:56 +05:00
Асель
905aeb912d Merge main into task/pep-98: PEP-106 discussion texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:36:29 +05:00
Асель
e163086b01 PEP-110: the analyst answers in the project chat on the project's subscription and files stories on request
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:30:54 +05:00
91eca5ce23 Merge pull request 'PEP-106: обсуждение проекта — простой чат для людей' (#95) from task/pep-106 into main 2026-11-15 15:26:20 +05:00
Асель
860f908f82 Merge remote-tracking branch 'origin/main' into task/pep-98 2026-11-15 15:23:22 +05:00
Асель
f107929a14 PEP-98: relative times in the interface language everywhere
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:23:19 +05:00
Асель
fca28b8fec PEP-106: the platform's Telegram bot is never shown to users — group linking is superadmin-only
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:16:05 +05:00
Асель
6f1cec5bc1 PEP-106: project discussion — a plain chat of the project's people, with unread counts and notifications
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:12:02 +05:00
Асель
1b0f6063cb Merge main into task/pep-98: PEP-94/97/100/101/102 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:11:59 +05:00
0d269114f2 Merge pull request 'PEP-103: исправление ошибок в приоритете у агентов' (#94) from task/pep-103 into main 2026-11-15 14:59:57 +05:00
Асель
7674fa2e71 PEP-98: archive change, memory, docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:57:01 +05:00
045afa58ee Merge pull request 'PEP-97/100/102: «Пеппа ЗАВОД», свой бот по шагам, новый проект одним полем' (#93) from task/pep-97 into main 2026-11-15 14:51:52 +05:00
Асель
1f16286dca PEP-98: English for web, bot, notifications and runner messages; product name «Peppa FACTORY» everywhere
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:47:50 +05:00
Асель
242c5b59e9 PEP-103: bug stories first — the dispatcher takes fixes before features
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:40:34 +05:00
6c012bb43d Merge pull request 'PEP-101: «Принять» — сравнение по имени ветки (срочно)' (#92) from task/pep-101 into main 2026-11-15 14:37:30 +05:00
Асель
80a3bb79ad PEP-97: the name users see is «Peppa FACTORY» everywhere
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:34:03 +05:00
Асель
6d91a5473d PEP-102: a new project from the product's name only; PEP-100: own bot only, no shared-bot shortcut
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:12 +05:00
Асель
60fa861303 PEP-100: popups blocked — a new-tab link instead of leaving Peppa
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:12 +05:00
Асель
bb7b1b4158 PEP-100: opening the bot keeps Peppa open — new tab, the page refreshes until Start is pressed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:12 +05:00
Асель
7f9b697c62 PEP-100: own Telegram bot — the BotFather dialogue step by step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:12 +05:00
Асель
664f96a92e PEP-97: users see «Пеппа ЗАВОД» everywhere — logo, titles, app name, texts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:12 +05:00
Асель
355c5b19b2 PEP-98: i18n core — dictionaries, localizeText, user locale, web provider, bot and push localization, i18n-check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:03 +05:00
99a043d99c Merge pull request 'PEP-96: клички агентов и пометка «ИИ-агент»' (#90) from task/pep-96 into main 2026-11-15 14:24:15 +05:00
2a977bcc46 Merge pull request 'PEP-95: выкинуть всех пользователей из веба' (#89) from task/pep-95 into main 2026-11-15 14:24:09 +05:00
724031fc86 Merge pull request 'PEP-94: продакту — без технических вопросов и ожиданий; «План» вместо Proposal' (#88) from task/pep-94 into main 2026-11-15 14:23:49 +05:00
Асель
1c5a1b249b PEP-101: memory — Gitea compare takes branch names only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:23:17 +05:00
Асель
2fe9b34344 PEP-101: tests for compare by branch name and the failed-compare fallback; archive change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:23:08 +05:00
Асель
9611ab53ed PEP-101: Accept compares by branch name (Gitea 1.22 404s on a SHA) and never blocks on a failed compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:21:29 +05:00
Асель
ec79b0bfab PEP-98: proposal pep-98-english-ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:20:02 +05:00
Асель
b1fe8e9a84 PEP-95: claude-live Stop test waits for the prompt hook (race reset auto_nudges)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:12:52 +05:00
Асель
7dc6b0ce64 PEP-94: web test expects «Автомат» for a new project
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:04:28 +05:00
Асель
03cc2191fd PEP-96: agents get nicknames and are always shown as «ИИ-агент»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:03:45 +05:00
Асель
6fbf10e00e PEP-95: after logout-all everyone sees the welcome page once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:01:15 +05:00
Асель
feeeb908e5 PEP-95: peppa web logout-all — every web session issued before the cut-off ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:00:05 +05:00
Асель
664054c217 PEP-94: the PM is a product person — no technical questions, no waiting for approval; Proposal is «План» in the UI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:56:25 +05:00
51847e1ac1 Merge pull request 'PEP-93: «Принять» на пустом PR' (#87) from task/pep-93 into main 2026-11-15 13:40:55 +05:00
Асель
20031adc08 PEP-93: Accept closes a PR whose commits are already in main instead of failing with 405
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:33:41 +05:00
4581a9dac0 Merge pull request 'PEP-92: велком-страница' (#86) from task/pep-92 into main 2026-11-15 13:12:25 +05:00
Асель
02b045700d PEP-92: welcome page /welcome, opens once for new users
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 13:01:41 +05:00
073f6716f3 Merge pull request 'PEP-90: Вход и регистрация через Google-почту' (#84) from task/pep-90 into main 2026-11-15 12:47:40 +05:00
c501d4264b Merge pull request 'PEP-91: Пеппа ловит свои ошибки — Bugsink для фронта и бэка' (#85) from task/pep-91 into main 2026-11-15 12:46:49 +05:00
Асель
3159e888d2 PEP-90: sign in and register with Google (OAuth code + PKCE), link with eGov in Settings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 12:40:26 +05:00
Асель
6e54fc69a6 PEP-91: Peppa reports its own errors to Bugsink — backend to PEP-api, browser to PEP-web
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:39:46 +05:00
b86874e409 Merge pull request 'PEP-4: перенос репозиториев в организацию peppa в Gitea' (#82) from task/pep-4 into main 2026-11-15 00:41:26 +05:00
30e2897f93 Merge pull request 'PEP-89: «Агенты за работой» вместо раннеров' (#83) from task/pep-89 into main 2026-11-15 00:34:09 +05:00
Асель
36f67bc2f8 PEP-4: archive the OpenSpec change (project-provisioning: repo transfer; peppa-ci: peppa/peppa)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:33:03 +05:00
Асель
bc9f53fddc PEP-4: project memory and tasks after the live transfer to the peppa organization
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:26:03 +05:00
Асель
044d6b9bf6 PEP-89: «Агенты за работой» — the agent's name and story up front, run details folded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:13:03 +05:00
Асель
5af93d7438 PEP-4: platform repo address from GITEA_PLATFORM_REPO, template defaults to peppa/template
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:11:31 +05:00
1df43629e3 Merge pull request 'PEP-69: агенты не наследуют окружение чужого tmux-сервера' (#80) from task/pep-69 into main 2026-11-15 00:10:52 +05:00
Асель
748216eef2 PEP-4: peppa project transfer — move a project's repo to another Gitea namespace (origin, CI runner, secret, webhook)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:10:47 +05:00
6a0cb9c7c3 Merge pull request 'PEP-88: суперадмин управляет любым проектом как владелец' (#81) from task/pep-88 into main 2026-11-15 00:03:36 +05:00
Асель
03d358f9f2 PEP-69: scrub foreign env from the tmux server before starting runners; warn in peppa status
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:57:10 +05:00
52cb557a9c Merge pull request 'PEP-87: вопросы аналитика не напоминают и не эскалируют' (#79) from task/pep-87 into main 2026-11-14 23:50:53 +05:00
Асель
19f9577349 PEP-87: OpenSpec change — the watchdog skips the analyst's questions (archived into watchdog-recovery)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:50:13 +05:00
Асель
14177684d4 PEP-88: a superadmin manages any project like its owner
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:48:34 +05:00
Асель
b47d2e8022 PEP-87: drop another story's unfinished edits swept into this branch
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:43:58 +05:00
Асель
8c702b1d4e PEP-87: the watchdog does not remind or escalate the analyst's self-closing questions
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:42:15 +05:00
0157c74c94 Merge pull request 'PEP-86: подключение своего Telegram-бота — первым шагом на Главной' (#78) from task/pep-86 into main 2026-11-14 23:17:20 +05:00
Асель
aecd9363ad PEP-86: the Home page shows only the user's own projects
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:04:42 +05:00
Асель
54182d0637 PEP-86: connecting your own Telegram bot is the first step, right on the Home page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:04:25 +05:00
3abac8f316 Merge pull request 'PEP-85: свой Telegram-бот у каждого пользователя' (#77) from task/pep-85 into main 2026-11-14 23:03:42 +05:00
Асель
01d58973ab PEP-85: every user's own Telegram bot — token from BotFather, polled and answered through it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 22:57:07 +05:00
215a2a9be6 Merge pull request 'PEP-84: агенты «продакт» и «аналитик» — уточнение задачи перед работой' (#76) from task/pep-84 into main 2026-11-14 22:45:23 +05:00
Асель
ee4a313074 PEP-84: «продакт» and «аналитик» refine a story before any developer agent takes it
Also: a subscription the owner connected once is assigned to their new projects; claudePrint never
falls back to the machine login for a self-registered owner.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 22:39:07 +05:00
1f7194a635 Merge pull request 'PEP-83: вход и первый запуск для продактов' (#75) from task/pep-83 into main 2026-11-14 22:28:29 +05:00
Асель
27e43b1ea6 PEP-83: the login page says why the factory; first steps for a product manager
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 22:21:54 +05:00
9bd0bc61db Merge pull request 'PEP-81: эпики на виду — вкладка «Эпики» и подпись на карточках' (#74) from task/pep-81 into main 2026-11-14 21:29:05 +05:00
Асель
efe411f94e PEP-81: archive the change; epics tab verified in the browser
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 21:17:07 +05:00
Асель
9c03009f14 Merge branch 'main' into task/pep-81 2026-11-14 21:16:29 +05:00
5521a2d7be Merge pull request 'PEP-82: подключение своей подписки понятно непрограммисту' (#73) from task/pep-82 into main 2026-11-14 21:16:16 +05:00
Асель
1afc95117d PEP-82: connect your own Claude or ChatGPT on the project page — a link and a code, no terminal
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 21:09:42 +05:00
Асель
63576a9845 PEP-81: epics tab and the epic label on board cards (WIP, not verified in the browser)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 21:06:36 +05:00
42d34dc584 Merge pull request 'PEP-79, PEP-80: стори берутся сами; своя подписка Claude или ChatGPT' (#72) from task/pep-79 into main 2026-11-14 20:27:45 +05:00
3d190e60fd Merge pull request 'PEP-60: канал платформы и дайджест Пеппы в Telegram' (#67) from task/pep-60 into main 2026-11-14 20:24:10 +05:00
Асель
e9526c9329 PEP-79, PEP-80: new projects pick stories themselves; own subscription — Claude or ChatGPT
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 20:15:22 +05:00
accfe52ac6 Merge pull request 'PEP-78: ошибка действия видна при прокрутке' (#71) from task/pep-78 into main 2026-11-14 20:14:56 +05:00
Асель
6066ce8763 PEP-60: mock-telegram rejects posts only to channels added with addChannel (supergroups of PEP-62 keep working)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 20:14:40 +05:00
Асель
335b8b159e PEP-78: the action error stays in view while the page is scrolled
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 20:02:16 +05:00
5473470aa2 Merge pull request 'PEP-77: прогресс по всем проектам на Главной' (#70) from task/pep-77 into main 2026-11-14 20:01:56 +05:00
Асель
7c721db744 Merge main into task/pep-60: keep both sides (chats, shared pool, platform channel)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 19:52:53 +05:00
Асель
4729300a10 PEP-77: progress of all stories and projects on the Home page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 19:50:59 +05:00
6b31d75b9c Merge pull request 'PEP-76: выбор подписки для проекта — общая или своя' (#69) from task/pep-76 into main 2026-11-14 19:49:16 +05:00
Асель
01cd72c121 Merge main into task/pep-76
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 19:42:50 +05:00
Асель
f00076c575 PEP-76: the project owner picks the subscription — the shared pool or their own Claude token
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 19:35:52 +05:00
109c74d3bb Merge pull request 'PEP-62: чаты — мастер-чат и чат проекта с тредами, связка с Telegram-группой' (#68) from task/pep-62 into main 2026-11-14 19:30:11 +05:00
Асель
b4b31ea88c PEP-62: write chat cursors only when they move
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:23 +05:00
Асель
b13b87d38d PEP-60: archive change — platform-notifications spec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:04 +05:00
Асель
3b23bbad24 PEP-60: test scenario type
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:04 +05:00
Асель
fbe4336d20 PEP-60: docs — AGENTS.md, /help; project memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:04 +05:00
Асель
82c003e209 PEP-60: platform Telegram channel — check, releases, outages/restarts, platform digest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:21:04 +05:00
Асель
5cfc2cb269 PEP-62: archive change pep-62-chats, project memory
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:12:57 +05:00
Асель
c751291bb9 PEP-62: help and AGENTS.md for chats
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:11:16 +05:00
Асель
a0d1097e37 PEP-62: web «Чаты» (master + project chats, threads, composer, Telegram link), live scope, watchdog sync/TTL, e2e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:11:07 +05:00
Асель
46840ffef5 PEP-62: bot — link groups by code, mirror chat messages with reply threads, replies and buttons from groups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:10:49 +05:00
Асель
b3766d200d PEP-62: chats model, projection of events into project chats, master feed, post to chat
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:10:49 +05:00
781936478e Merge pull request 'PEP-75: команда агентов — казахские имена и характер' (#66) from task/pep-75 into main 2026-11-14 18:58:09 +05:00
Асель
5b41e7d779 PEP-75: a team of agents — Kazakh names on the board, a character in the prompt
Also: «Открыть терминал» on live session cards.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 18:49:34 +05:00
b48791dbde Merge pull request 'PEP-74: суперадмин видит все проекты' (#65) from task/pep-74 into main 2026-11-14 18:45:49 +05:00
Асель
d039a8ac79 PEP-74: a superadmin opens any project; «Проекты других» on the projects page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 18:39:36 +05:00
e7a58a6d36 Merge pull request 'PEP-73: вкладка AGENTS.md в проекте' (#64) from task/pep-73 into main 2026-11-14 18:37:50 +05:00
Асель
2939bad87f PEP-73: type the commit author in mock-gitea contents API
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:27:18 +05:00
Асель
cdc7e62bfc PEP-73: project tab AGENTS.md — read and edit the agents' prompt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:25:40 +05:00
7bef0d3401 Merge pull request 'PEP-72: вход eGov с телефона по диплинку' (#63) from task/pep-72 into main 2026-11-14 18:21:46 +05:00
Асель
a1b3760afd PEP-72: eGov sign-in on the phone itself through the deep link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:15:34 +05:00
62f2817a28 Merge pull request 'PEP-71: вход только через eGov с авторегистрацией' (#62) from task/pep-71 into main 2026-11-14 18:09:39 +05:00
Асель
bd931c1c02 PEP-71: archive openspec change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:03:27 +05:00
Асель
57d7857d94 PEP-71: login only through eGov, unknown IIN registers an account
Gitea and password login are gone from the web; the first eGov login creates a
Peppa account (login from the certificate name). Projects of self-registered
owners run agents only on a subscription pool, never on the machine login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:57:02 +05:00
b6355a7ab5 Merge pull request 'PEP-70: маскот-мопс у вопросов агентов' (#61) from task/pep-70 into main 2026-11-14 16:40:27 +05:00
Асель
7a4988ec89 PEP-70: pug face back, the terminal prompt glows on the belly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:30:46 +05:00
Асель
06b3501427 PEP-70: clay-style chibi pug with a terminal-screen face
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:29:34 +05:00
Асель
5f1b1b4212 PEP-70: pug mascot next to the agents' questions
Cartoon pug (inline SVG) on Home: sleeps when nothing waits, perks up with
a speech bubble and question count when agents ask. Motion only without
prefers-reduced-motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 16:27:14 +05:00
90c47b12fe Merge pull request 'PEP-3: хуки, statusLine и диалог разрешений сверены с живым Claude Code' (#60) from task/pep-3 into main 2026-11-14 12:41:07 +05:00
Асель
1e8d9e0327 PEP-3: hooks, statusLine and the permission dialog checked against live Claude Code 2.1.323
- permission dialog menus vary (3-4 items, "2" may be "switch to auto mode"): the late PM answer
  reads the key off the screen (permissionKey); after "No" Claude interrupts the turn without a
  Stop hook, so Peppa types PERMISSION_DENIED_NOTE
- statusLine total_*_tokens are the last request, not session totals: tokens only from transcript
- mcp__peppa allowed in run settings (connected repos have no template .claude/settings.json)
- peppa-hook: PEPPA_HOOK_CAPTURE_DIR saves raw payloads; live fixtures in testkit/fixtures/claude-live
- mock-claude follows the live contract (menu, interrupt on No, statusLine, transcript blocks, suggestions)
- peppa-dev: watchdog (runner service) on the stand, mock PEPPA_SECRET without .env
- e2e claude-live.test.ts: fixtures parsing, real peppa-hook on live payloads, terminal fallback keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:34:40 +05:00
18eadc4c3a Merge pull request 'PEP-17/40: песочница агента (контейнер на раннер, релей) и хосты раннеров по SSH' (#58) from task/pep-17 into main 2026-11-14 08:10:21 +05:00
Асель
ca57f9543b PEP-17/40: agent sandbox per runner (docker + agent relay) and runner hosts over SSH
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:57:28 +05:00
4094e846c6 Merge pull request 'PEP-30/41/31: память проекта, модель агента на стори с эскалацией, чек-лист первого запуска' (#55) from task/pep-30 into main 2026-11-14 07:51:57 +05:00
Асель
621aa0b5b3 PEP-41: escalation goes through the runner service in client processes (PEP-21)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:46:10 +05:00
Асель
12d8fea4c2 PEP-30/41/31: typecheck the e2e test's mock log access
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:44:24 +05:00
Асель
53ac7efdcc PEP-30/41/31: project memory, agent model per story with escalation, first-run checklist
- PEP-30: .peppa/memory.md in the project repo (core/memory.ts), agent MCP get_memory/remember
  (dedupe, 12k size limit, replace to compact), runner appends memory + last finished stories
  to the launch rules, RULES.md rule, memory on the project «Спеки» tab.
- PEP-41: agent settings platform → project → story (provider, model, effort, escalation model
  after N failures, fallback provider); Claude --effort / Codex model_reasoning_effort;
  sticky escalation relaunches a live runner on the stronger model (sendWithEscalation from
  CI feedback and the reviewer); fallback provider when the main one has no working
  subscription; web panels, MCP PM `agent`, CLI `peppa project agent`.
- PEP-31: first-run checklist on the home page (core/onboarding.ts), hide button,
  «Агенты не запустятся» warning on the project page when its pool has no working subscription.

No migrations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:44:24 +05:00
caf102bcb7 Merge pull request 'PEP-21/28: раннер-сервис (очередь команд в вачдоге), вачдог 2.0 — авто-восстановление и эскалация' (#57) from task/pep-21 into main 2026-11-14 07:40:36 +05:00
Асель
acf2bb9623 PEP-21/28: runner service (command queue in the watchdog), watchdog 2.0 auto-recovery and escalation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 07:34:09 +05:00
134c00ff18 Merge pull request 'PEP-19/54: секреты проекта для агентов, ревизия секретов и ротация PEPPA_SECRET' (#56) from task/pep-19 into main 2026-11-14 07:28:29 +05:00
1985 changed files with 242906 additions and 4393 deletions

View File

@ -3,10 +3,12 @@
# Old Postgres database: only the source of `peppa db migrate-to-sqlite` (PEP-36)
# DATABASE_URL=postgres://peppa:peppa@127.0.0.1:5433/peppa
# Gitea (git.telecom.quest) — token with repo + org scope
GITEA_URL=https://git.telecom.quest
# Gitea (git.vibe42.kz) — token of peppa-bot with repo scope
GITEA_URL=https://git.vibe42.kz
GITEA_TOKEN=
GITEA_TEMPLATE_REPO=peppa-bot/template
# Peppa's own repo (footer link, scripts/ci.sh --pr, scripts/peppa-release.sh)
# GITEA_PLATFORM_REPO=peppa-bot/peppa
# Where project repos are cloned and sessions run
PEPPA_WORKSPACES=~/peppa/workspaces
@ -26,3 +28,17 @@ PEPPA_ROOT=/Users/telecom/Dev/Peppa
# Gitea OAuth2 app for web login (scripts/create-oauth-app.sh)
GITEA_OAUTH_CLIENT_ID=
GITEA_OAUTH_CLIENT_SECRET=
# Вход через Google (PEP-90): OAuth-клиент из Google Cloud, redirect URI <PEPPA_WEB_URL>/auth/google/callback
# GOOGLE_CLIENT_ID=
# GOOGLE_CLIENT_SECRET=
# Распознавание речи (PEP-45/108): стори голосом в своём Telegram-боте и кнопка «Голосом» в вебе.
# Свой сервис Пеппы — infra/whisper (faster-whisper, 127.0.0.1:8178, без ключа); облако — OpenAI/Groq с ключом.
# PEPPA_TRANSCRIBE_URL=http://127.0.0.1:8178/v1
# Язык записи — язык интерфейса говорящего (kk / en, PEP-131); для русского интерфейса — этот.
# auto — язык не передаётся никому, сервис определяет сам.
# PEPPA_TRANSCRIBE_LANG=ru
# PEPPA_TRANSCRIBE_KEY=
# PEPPA_TRANSCRIBE_MODEL=whisper-1
# PEPPA_TRANSCRIBE_TIMEOUT_SEC=300

5
.gitattributes vendored Normal file
View File

@ -0,0 +1,5 @@
# При конфликте в этих файлах git оставляет строки обеих сторон: каждый PR дописывает в них
# по строке в одно и то же место, и без этого любой мерж в main ломал перенос остальным (PEP-119).
AGENTS.md merge=union
.peppa/memory.md merge=union
docs/glossary.md merge=union

View File

@ -1,4 +1,4 @@
# CI for Peppa itself (PEP-22): typecheck, web build and the e2e suite on mocks. Runs on Peppa's
# CI for Peppa itself (PEP-22): glossary check, typecheck, web build and the e2e suite on mocks. Runs on Peppa's
# act_runner (`peppa-trusted`, registered for peppa-bot's repos, PEP-57); tmux and the openspec
# CLI are installed in the job. Each check is a step of the factory's own pipeline (PEP-57):
# the commands are `checks` in .peppa/project.json, .gitea/peppa-check.sh (the template's) sets
@ -20,7 +20,7 @@ jobs:
# The runner has the host's docker.sock: only branches of this repository, never forks.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: peppa-trusted
timeout-minutes: 30
timeout-minutes: 45
env:
# Peppa's data is SQLite (a temp file per test file). Postgres on the host is only the source
# for the Postgres → SQLite migration test, which makes and drops its own database.
@ -34,7 +34,13 @@ jobs:
node-version: "26"
- name: tools
run: |
apt-get update -qq && apt-get install -y -qq tmux >/dev/null
# PEP-271: a mirror mid-sync fails `apt-get update`; with `&&` the install was skipped silently
# and every e2e test died later on «spawn tmux ENOENT». Retry, then fail here if tmux is missing.
for i in 1 2 3; do
{ apt-get update -qq && apt-get install -y -qq tmux >/dev/null; } && break
echo "apt: attempt $i failed, retrying"; sleep $((i * 15))
done
command -v tmux >/dev/null || { echo "::error::tmux was not installed (apt mirror unavailable)"; exit 1; }
# Job-local prefix: the node toolcache is shared between jobs running at the same time
# (PR + push of one commit), and two global installs into it collide (ENOTEMPTY/EEXIST).
npm install -g --prefix "$RUNNER_TEMP/tools" pnpm@12.18.0 @fission-ai/openspec@2.0.0 >/dev/null
@ -42,12 +48,21 @@ jobs:
- id: install
name: install
run: bash .gitea/peppa-check.sh install
# PEP-124: the glossary check — a word from the «Нельзя» column of docs/glossary.md on a screen.
- name: lint
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh lint
- name: typecheck
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh typecheck
- name: build
- id: build
name: build
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh build
# PEP-217: weight of the first-load JS of every route against docs/bundle-baseline.json (+10 % fails).
- name: bundle
if: (success() || failure()) && steps.install.outcome == 'success' && steps.build.outcome == 'success'
run: bash .gitea/peppa-check.sh bundle
- name: test
if: (success() || failure()) && steps.install.outcome == 'success'
run: bash .gitea/peppa-check.sh test

34
.peppa/memory/common.md Normal file
View File

@ -0,0 +1,34 @@
# Память проекта
Пишет агент через MCP `remember` (PEP-30); файл на задачу — `.peppa/memory/<ключ>.md` (PEP-306).
## Команды
- Тесты из шелла Claude: `env -u NODE_TEST_CONTEXT -u NODE_TEST_WORKER_ID node --test --test-reporter=spec test/<file>.test.ts` (иначе тесты молчат). В свежем worktree сначала `pnpm install --frozen-lockfile`.
- CLI против живой системы (сервер): `docker exec peppa-watchdog peppa …` (docs/SERVER.md).
- Экраны без живых данных: `PEPPA_HOME=<tmp> PEPPA_DB=<tmp>/peppa.db PEPPA_SECRET=x peppa db migrate` (Node < 26 — `node packages/cli/src/index.ts`), `DATABASE_URL=… node apps/web/scripts/mock-ui-seed.ts mock-pm`, в apps/web `node server.ts [--dev] -p <порт>` с тем же env + `PEPPA_WEB_URL=http://localhost:<порт> PEPPA_RUNNER_MODE=inline PEPPA_ROTATE=off`; вход — `peppa web login-link mock-pm`; «Инженер» — settings `ui.mode:<userId>` = `"engineer"`.
- Словарь: `pnpm lint`; почистил тексты экрана — `pnpm lint --update` (baseline только уменьшать); новое слово в «Нельзя» — сразу `pnpm lint`, оно может стоять в чужих текстах.
## Грабли
- `resumeSession` без `conversationId` пишет `started`, не `resumed`.
- `next dev` правит apps/web/AGENTS.md (`git checkout`, не `rm`) и next-env.d.ts — не коммитить; открывать `localhost`, не 127.0.0.1. В песочнице dev перезагружает страницы по кругу — экраны смотри на `next build` + `node server.ts -p`.
- Headless Chrome: playwright-core + `chrome-headless-shell` (песочница: `npx playwright-core install chromium-headless-shell`; библиотеки — .deb bookworm из Packages.gz → `dpkg-deb -x` + LD_LIBRARY_PATH, шрифты fonts-dejavu-core + FONTCONFIG_PATH); вход — `peppa web login-link`; обрыв канала — `globalThis.__peppaLive.ws.close()`.
- CLI из теста с моком в том же процессе — только async execFile. Тест не импортирует apps/web статически — `import(new URL(…).href)`.
- Шаблонная строка с t()/m() внутри (`` `<b>${t("…")}</b>` ``) i18n-check считает непереведённой — собирай конкатенацией. В apps/bot `m` импортирован как `tr`.
- localizeText выбирает вариант по числу НЕпереведённых русских букв, не по кириллице: казахский тоже кириллица.
- mock-gitea `POST /tags` ставит настоящий git-тег: нужны коммиты (`addRepo(…, { files })`) и существующий SHA (`gitea.sha(owner, repo, "main")`), иначе `deployProd`/`autoPublish` в тесте молча не срабатывают. Gitea «лежит» — `gitea.down = true`.
- git-прокси релея (allowedGitPath) отклоняет %2e/%2f/%5c/%25 и `\`: fetch сворачивает %2e%2e как dot-сегмент.
- Новая фраза Claude о лимите — в `parseResetTime` и limits.test.ts. Codex 0.169 без `--full-auto`: режим — `CODEX_DEFAULT_MODE` (providers.ts), срочно — `PEPPA_CODEX_MODE` в .env.
- Скорость: `apps/web/scripts/bench-pages.ts`, канал — `bench-live.ts`; правишь live.ts — перезапусти server.ts, не `pkill -f next-server`.
- Хук грузит только лёгкий `runner/limit-delay.ts`, не flow.ts. В тесте хука PEPPA_GENERATION = поколение сессии (вставленной руками — 0).
- Настройки по префиксу — `keyPrefix(settings.key, "x:")` из @peppa/db, не `like(…"x:%")` (LIKE без индекса). Индексы — тест db-indexes.
- Номер миграции занят соседом после мержа — взять meta из main, `pnpm db:generate`, переименовать.
- Нет глобального git в контейнере: автор — `gitRelayEnv`; иначе `git -c user.name=peppa-bot -c user.email=peppa-bot@telecom.quest commit`.
- Песочница раннера: нет tmux и Node 26 — `node-v26…-linux-x64.tar.gz` (не .xz) в /tmp; tmux — .deb (tmux_3.3a-3, libevent-core-2.1-7, libutempter0) → `dpkg-deb -x` + LD_LIBRARY_PATH. Падают и на main (среда): glossary-check.test, sandbox-hosts.test.ts (нет ssh).
- Пропал `.git/worktrees/s<id>`: создать с `HEAD`, `commondir` `../..`, `gitdir`, затем `git reset`.
- Зависимость с build-скриптом (ssh2, cpu-features) роняет `pnpm install --frozen-lockfile` (ERR_PNPM_IGNORED_BUILDS): реши в `allowBuilds` pnpm-workspace.yaml.
## Соглашения
- Тесты: места подписки занимай `core.createSession` с `subscriptionId`; очередь ёмкости чисти `moveTask(backlog)`. Конец хода вопроса не создаёт — жди `idle`. Суперадмин — `superadmin()`. Текст чатов — через `stripAsIs`.
## Решения
- Речь — свой faster-whisper (`<Dictate>`). Google: по почте учётки не склеиваем.

4
.peppa/memory/pep-129.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-129
## Соглашения
- Словарь в сообщениях ядра (PEP-129/137): `pnpm lint` проверяет литералы в `m()/tr()/t()` packages/core|runner|mcp; подсказку агенту в `m()` не оборачивать; запрещённое слово — переписать (ключ и в `i18n/en|kk`, тестах) или `glossary-ignore: <почему>` строкой выше; человеку мимо переводов — `glossary-user: <почему>`.

4
.peppa/memory/pep-135.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-135
## Соглашения
- Инструкция подключения к своему Claude/ChatGPT (PEP-135): `/help/connect`, тексты — `core/connect-texts.ts` (`CONNECT_HELP` ru/kk/en одной формы, тест `connect-help.test.ts`); изменились экраны подключения или инструменты удалённого MCP — править её; копирование — `<CopyText>`.

4
.peppa/memory/pep-154.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-154
## Соглашения
- Служебный текст (PEP-154): текст агента/терминала человеку — через `userText` (core/user-text.ts); исключение владельцу не слать — `platformFailure` (строка только для PeppaError).

4
.peppa/memory/pep-158.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-158
## Соглашения
- Неудачная версия (PEP-158): `rolled_back`/`failed` → агенту задачи, `returnFailedRelease` (runner/deploy-feedback.ts); счётчик — `attempts` задержки `deploy` (3 — суперадмину, 6 — стоп).

4
.peppa/memory/pep-183.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-183
## Соглашения
- Специалисты (PEP-183): агент с непустым character — специалист; подбор — `runner/team-match.ts` (haiku, `PEPPA_TEAM_BIN`), результат `team.match:<taskId>`, порог ожидания `platform.team.waitMin`; в `ensureSessionAgent` порядок: прежний → свободный специалист по профилю → универсал → специалист без очереди.

4
.peppa/memory/pep-195.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-195
## Решения
- Привязка Google к чужой Google-only учётке — `mergeUserInto`; с eGov/Gitea — отказ (PEP-195).

4
.peppa/memory/pep-198.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-198
## Соглашения
- Один голос (PEP-198): человеку пишет только Аналитик — вопрос агента через `relayAgentQuestion` (runner/question-relay.ts), задачи из чата — только оффер `stories` и кнопка; новая строка сообщения роли — в `ROLE_MESSAGE_KEYS` выше «Агент {name}», иначе он её съест.

4
.peppa/memory/pep-208.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-208
## Решения
- Сообщения людям — только через `telegram_outbox`/`push_outbox`: ночная тишина 23–08 (PEP-208) стоит на их выборке; тестам и стенду `PEPPA_NIGHT_QUIET=off`.

4
.peppa/memory/pep-209.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-209
## Решения
- Застрявшая задача (PEP-209): лечит `stuckTaskTick` — платформа сама на ревью/в «Готово», агенту — новый процесс (`restartAgent`: старый не вернёт MCP), не `sendToSession`. Новая причина задержки с повторами — `platformDelay` с `retryMin`/`retryAt`, суперадмину кнопки — `buttons: true`.

4
.peppa/memory/pep-212.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-212
## Грабли
- QuickJS (PEP-212): строки из хост-функции читай до await; все хэндлы и deferred dispose-ить.

4
.peppa/memory/pep-213.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-213
## Решения
- Медленные запросы (PEP-213): `core/request-timing.ts` (`http.Server` в instrumentation.ts, probe в db) → warning Bugsink; порог `PEPPA_SLOW_REQUEST_MS`.

4
.peppa/memory/pep-217.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-217
## Решения
- Вес JS: `bundle-check.mjs --update`.

4
.peppa/memory/pep-218.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-218
## Соглашения
- Bugsink API (PEP-218): схема — `GET /api/canonical/0/schema/` (2.6.3); `q` = текст + теги `key:value`; числа пользователей нет. Экран — `core/bugsink-errors.ts` (кэш 45 с), действия — `runner/bugsink-errors.ts`.

4
.peppa/memory/pep-221.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-221
## Решения
- История (PEP-221): журнал/статусы — `history.db` (core/history.ts), логи — `archive/<вид>/<день>.jsonl.gz`; из основной базы события удаляет только `runRetention` после переноса.

4
.peppa/memory/pep-222.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-222
## Решения
- Docker (PEP-222): раннеры по умолчанию `container` (тесты — `PEPPA_DEFAULT_ISOLATION=none`).

4
.peppa/memory/pep-223.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-223
## Грабли
- observe.db: схема — `MIGRATIONS` по `user_version` (core/observe.ts); напоминания (PEP-223) — `remindIncidents`; в тестах «бот днём» помечай outbox `sent`, иначе напоминание заменит прежнее.

4
.peppa/memory/pep-224.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-224
## Соглашения
- Узкие места: подписка — `pickSubscription`/`rotationCandidate`; агент — `startRunner`/`resumeSession`, модель — `claudePrint`, сообщение — `deliverToUser`; проекты — `listProjects`/`userProjectIds` (`from(projects)` — с `isNull(deletedAt)`); веб → runnerCall; функция от внешнего сервиса — `featureGateView` + `<FeatureGate>` (PEP-224).

7
.peppa/memory/pep-230.md Normal file
View File

@ -0,0 +1,7 @@
# Память: PEP-230
## Грабли
- Сервер (PEP-230): docs/SERVER.md. Docker-клиент образа 20.10 (PEP-287).
## Решения
- Живой сайт (с PEP-230 — сервер, контейнеры) — только `scripts/platform-deploy.sh` из `~/peppa/src` на main (docs/SERVER.md); launchd/live-deploy.sh — только откат на Mac.

5
.peppa/memory/pep-231.md Normal file
View File

@ -0,0 +1,5 @@
# Память: PEP-231
## Грабли
- Продукт на другой docker — только `scripts/server-move/products-move.sh` (PEP-231, с данными); `peppa deploy redeploy` поднимает с пустыми томами.
- Агент в контейнере не видит хост сервера, Mac и Cloudflare (PEP-231): инфраструктуру — скриптом в `scripts/server-move/` + шаги в docs/SERVER.md, выполнить просить суперадмина через `report_blocker`.

4
.peppa/memory/pep-233.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-233
## Соглашения
- act_runner (PEP-233/248): идут контейнеры `GITEA-ACTIONS-TASK-*` — не рестартовать; голова без ci.yml или >2 суток — `orphan`, не очередь; `not_taken` — pending, а другие проекты отчитываются.

4
.peppa/memory/pep-234.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-234
## Грабли
- SSRF-проверка в `lookup` — только с `agent: false` (keep-alive Node пропускает lookup, PEP-234).

4
.peppa/memory/pep-241.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-241
## Грабли
- Codex (PEP-241): доверие папке — по корню основного репо worktree; `-c` режет ключ по точкам — пишем в config.toml CODEX_HOME (`codex-trust.ts`).

4
.peppa/memory/pep-242.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-242
## Решения
- `template/` уходит в Gitea сам с выкаткой (PEP-242); старым проектам — `peppa ci connect <KEY> [--secrets-only]`.

4
.peppa/memory/pep-245.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-245
## Грабли
- 530 при живом сервере — обрыв Mac → сервер (PEP-245); лечит только перенос адресов (ключ Cloudflare).

4
.peppa/memory/pep-246.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-246
## Грабли
- Пути сессий с Mac (PEP-246): `runnerCwd` пересоздаёт копию сам; чистка — `peppa session paths --fix`.

4
.peppa/memory/pep-249.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-249
## Соглашения
- Access Hub (PEP-249): новый HTTP-сервис — карточка в `core/connection-catalog.ts` (тест сверяет каждую); меняет данные через GET (Slack) — чтение по методам. Новый не-HTTP вид (PEP-251) — операция в `PROTOCOL_OPERATIONS`, драйвер `GatewayDrivers` (берёт проверенный `address`, DNS не разрешает) и мок в testkit/mock-access.ts. Ответ сервиса агенту (PEP-258) — только через `connectionKeyForms`+`maskConnectionKey`; новый способ ключа — в тест-ловушку access-hub.test.ts.

4
.peppa/memory/pep-250.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-250
## Соглашения
- Access Hub (PEP-250): сервис агенту — `request_access`; форму отказа `callConnection` не менять, автозапрос — `refusedCallService`.

4
.peppa/memory/pep-252.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-252
## Грабли
- Шлюз Access Hub (PEP-252): `cleanPath` не пускает голое «:» в пути — Google-диапазоны и методы (`A1:B2`, `:batchUpdate`) агент шлёт как `%3A`. OAuth-тесты: `MockOAuthService` + `fetch`, переписывающий адрес сервиса на мок (`toMock`).

4
.peppa/memory/pep-253.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-253
## Решения
- Секреты (PEP-253): агенту — `agent_env` при `project.agent-secrets` (нет строки = вкл.); в тестах — `{ agent: true }`.

4
.peppa/memory/pep-254.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-254
## Решения
- Access Hub (PEP-254): журнал — только `appendJournal` (core/connection-journal.ts, цепочка хэшей; правка строки задним числом = нарушение), ключ подключения — `sealConnectionSecret`/`openConnectionSecret`, не `encrypt`/`decrypt`.

4
.peppa/memory/pep-255.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-255
## Грабли
- Очередь проверок (PEP-255): `checks.queue` — `projects` (своя зависшая голова) и `lanes` (`ciLane`); `requestRebase` → false = просьба не ушла.

4
.peppa/memory/pep-256.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-256
## Грабли
- tmux на сервере (PEP-256) — контейнер `peppa-tmux`, сервисы — клиенты (`PEPPA_TMUX_EXTERNAL`); его образ меняет только `platform-deploy.sh --tmux`. Нет docker — compose проверяй парсером `yaml` (`{merge:true}`).

4
.peppa/memory/pep-260.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-260
## Решения
- Access Hub (PEP-260): агенту — только текст (`isTextResponse`) + `TEXT_TYPES`.

4
.peppa/memory/pep-261.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-261
## Грабли
- Тесты с агентом-моком (access-requests, bot) в песочнице молча висят по 25 с на Node 22 — нужен Node 26 из tarball и tmux из .deb в PATH/LD_LIBRARY_PATH (PEP-261).

4
.peppa/memory/pep-265.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-265
## Грабли
- Состояние вачдога, которое пишет не вачдог (хук, launch), — только `markWatch` (json_set): `patchWatch` перезаписывает весь watch_state (PEP-265).

4
.peppa/memory/pep-266.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-266
## Решения
- Проверка запуска (PEP-266) идёт в платформенном проекте, не в отдельной строке проекта: тики обходят все проекты и шлют ложные сбои.

4
.peppa/memory/pep-267.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-267
## Грабли
- Версии CLI агентов (PEP-267) — только `scripts/runner-image.sh --try <cli> <версия>` (json + оба Dockerfile), откат `--rollback`.

4
.peppa/memory/pep-268.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-268
## Соглашения
- Сбой платформы — `planPlatformRetry` (PEP-268), `restarts` не трогать; мок `hangAtStart`.

4
.peppa/memory/pep-269.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-269
## Соглашения
- Конфликт PR с main (PEP-269) — только `conflictStep` (runner/conflict-step.ts), не `requestRebase` напрямую; сироты — `orphanConflictTick` (PEP-301).

4
.peppa/memory/pep-272.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-272
## Решения
- `/api/health` анониму — только `{ok}` (PEP-272); сводку читать с `healthHeaders()` / `scripts/lib/health-token.sh`.

4
.peppa/memory/pep-273.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-273
## Соглашения
- Ссылки веба — только `Link` из `@/components/Link` (предзагрузка выкл., PEP-273; тест no-prefetch); медленная страница из-за Gitea — кэш в globalThis, как `giteaServerOverview`.

4
.peppa/memory/pep-274.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-274
## Решения
- Заголовок вкладки (PEP-274) — `pageTitle`/`projectTitle`/`taskTitle` (apps/web/lib/title.ts); page.tsx без `generateMetadata` роняет page-titles.test.ts.

4
.peppa/memory/pep-278.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-278
## Соглашения
- «Готово» после выкатки (PEP-278): статус `done` не трогаем — поверх него отметка `rollout.wait:<taskId>` (core/rollout.ts), экран — псевдостатус `rollout` в `TASK_STATUS`; снимает `rolloutTick`.

4
.peppa/memory/pep-279.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-279
## Решения
- Старые вопросы (PEP-279) закрываются только `default_option`; без него — без выбора: варианты фабрики (бюджет, подписка) за человека не выбираем.

4
.peppa/memory/pep-281.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-281
## Грабли
- Git — только git.vibe42.kz; старый адрес в репо ловит old-git-cleanup.test.ts (PEP-281).

4
.peppa/memory/pep-282.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-282
## Грабли
- Таймаут запроса в процессе с моком-сервером: синхронная пауза дольше таймаута обрывает готовый ответ (таймеры libuv раньше сокетов) — `responsiveTimeout` (core, PEP-282), не `AbortSignal.timeout`.

4
.peppa/memory/pep-283.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-283
## Решения
- Стек новых проектов — docs/standards/default-stack.md (PEP-283).

4
.peppa/memory/pep-284.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-284
## Соглашения
- Стандарт стека в шаблоне (PEP-284): template/docs/standards/default-stack.md — побайтная копия docs/standards/default-stack.md (тест template-default-stack); правишь стандарт — копируй в template/.

4
.peppa/memory/pep-285.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-285
## Решения
- Аудит стека (PEP-285): docs/standards/forge-stack-audit.md — основа FORGE (TS/Node 26, Next.js, SQLite, Drizzle, целые id) сохраняется как обоснованное отклонение; условия пересмотра PostgreSQL — там же. Новый слой в default-stack.md = строка и раздел в аудите (тест stack-audit-doc).

4
.peppa/memory/pep-291.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-291
## Грабли
- Песочница раннера: Node 22.23 тянет одиночные тесты (PEP-291).

4
.peppa/memory/pep-292.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-292
## Грабли
- В образе платформы нет `.git` (PEP-292): `git` в коде службы не звать; коммит — `PEPPA_COMMIT`, история main — Gitea API.

4
.peppa/memory/pep-294.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-294
## Решения
- Суперадмины (PEP-294): `platform.admins` — id учёток (строка = логин без учётки, привязывается при чтении); проверка — `superadminIds`/`platformAdminUsers`, не сравнение логинов.

4
.peppa/memory/pep-295.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-295
## Соглашения
- Задача не от человека — `createTask` с origin сама в «Предложено» (PEP-295), путь — проверить `proposalRoom` до создания; новый вызов `createTask` — в список `proposals-only.test.ts`; автомерж — autonomy.acceptOwn.

4
.peppa/memory/pep-298.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-298
## Соглашения
- Конфликт PR с main: первая просьба — после второго наблюдения через 2 мин (PEP-298, в тестах `PEPPA_CONFLICT_SETTLE_MIN=0`).

4
.peppa/memory/pep-299.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-299
## Грабли
- `stopSession` закрывает все вопросы сессии, и карточку «готово» с «Принять» — освобождать место без неё: `releaseReviewSession` (PEP-299).

4
.peppa/memory/pep-302.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-302
## Грабли
- mock-intake `dedup` считает похожие названия («Идея 1»/«Идея 2») повтором — в тестах приёмки бери разные слова.

4
.peppa/memory/pep-303.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-303
## Грабли
- Сторож экрана (PEP-303): строки — через `screen-lines.ts` (`isQuotedLine`/`ownLines`), фразу CLI якорить к началу строки, нажимать только на неизменном экране (`still`). Мок `say` печатает «⏺ » перед текстом.

4
.peppa/memory/pep-304.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-304
## Соглашения
- Время людям (PEP-304) — только `platformTime`/`platformDayTime`/`platformZone` из `@peppa/shared/time`; `toLocale*String` для дат без `timeZone` не писать. Лимит в `claudePrint` — `limited`/`limitedUntil`, не «нет подписки».

4
.peppa/memory/pep-306.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-306
## Грабли
- Память (PEP-306): пункт — только в `.peppa/memory/<ключ задачи>.md` своей задачи; MCP `remember` до выкатки PEP-306 пишет в старый `.peppa/memory.md` — тогда правь файл задачи руками (тест project-memory-size запрещает старый файл).

7
.peppa/memory/pep-314.md Normal file
View File

@ -0,0 +1,7 @@
# Память: PEP-314
## Соглашения
- Go/PostgreSQL проектов (PEP-314): в проверках — только `source .gitea/peppa-tools.sh go postgres` шаблона (образ задания общий с платформой, не трогать); база стенда — `deploy.database` + `deploy/compose.postgres.yml`, пароль в томе базы, без `deploy.database` `peppa-deploy.sh` обязан вести себя как раньше (тест «Проект без базы — как раньше»).
## Грабли
- Агент в контейнере идёт от --user <uid> без записи в /etc/passwd: initdb и всё, что ищет пользователя, падает — нужен libnss-wrapper (LD_PRELOAD + NSS_WRAPPER_PASSWD). Файл шаблона *.go, который не код Go, ломает go vet/build у проекта — заготовка называется Dockerfile.golang (тест в stack-tools).

4
.peppa/memory/pep-315.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-315
## Грабли
- Строка `connection_grants` остаётся после конца срока и после снятия «без дела»: читая «прошлую выдачу», проверяй `grantState(row, now) === "active"`, иначе вернёшь права, которых уже нет (PEP-315: «Дать: чтение» возвращало запись).

5
.peppa/memory/pep-316.md Normal file
View File

@ -0,0 +1,5 @@
# Память: PEP-316
## Грабли
- Гонку двух процессов за базу тест в одном процессе не ловит: `node:sqlite` синхронный, два вызова идут по очереди. Нужен настоящий второй процесс — `packages/testkit/src/mock-db-writer.ts` держит блокировку записи (PEP-313 «починил» гонку тестом в одном процессе, на проде она осталась).
- Транзакция, начатая как читающая (`BEGIN`), получает «database is locked» на первой записи сразу, без ожидания `busy_timeout`. Поэтому `db.transaction` всегда `BEGIN IMMEDIATE` (PEP-316).

4
.peppa/memory/pep-317.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-317
## Соглашения
- Список «Gitea» (PEP-317): отдаётся сразу при любом возрасте, хранится в `settings` `gitea.overview`, прогрев — `warmGiteaOverview` в instrumentation.ts; ждёт Gitea только `fresh`. В тестах — `giteaOverviewSettled()`, медленная Gitea — `MockGitea.searchDelayMs`.

7
.peppa/memory/pep-318.md Normal file
View File

@ -0,0 +1,7 @@
# Память: PEP-318
## Соглашения
- «Принять всё» (PEP-318) — только очередь: `startAcceptAll` + `processAcceptQueue` (runner/accept-queue.ts; `accept.queue:<taskId>`, ход `accept.run:<projectId>`, аренда `accept.worker:<projectId>` 3 мин), веб — через `after()`, вачдог — `acceptQueueTick`. Синхронный `acceptAll` в вебе не звать. Медленный Gitea в тесте — `MockGitea.delayMs`.
## Грабли
- В песочнице без tmux тесты приёмки падают «spawn tmux ENOENT», а на Node 22 висят по 25 с: нужны оба — tmux из .deb bookworm и Node 26 (`nodejs.org/dist/index.json` → tarball в /tmp).

7
.peppa/memory/pep-319.md Normal file
View File

@ -0,0 +1,7 @@
# Память: PEP-319
## Соглашения
- Состав задач в сообщении о версии (`storiesIn`, runner/platform-build.ts) — только ключ в начале заголовка коммита («PEP-318: …», «PEP-284, PEP-285: …») или названия слитого PR. Упоминание другой задачи в тексте коммита версию не «выпускает».
## Грабли
- 27.11.2026 канал дважды назвал задачи, вышедшие раньше: PEP-281 и PEP-282 (утро), PEP-127 (вечер) — их ключи стояли в тексте коммитов других задач. Сообщение из канала не отозвать.

4
.peppa/memory/pep-320.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-320
## Грабли
- Сценарии infra/act-runner — busybox ash (в песочнице только dash): проверять тест act-runner-supervise с PATH на каталог апплетов статического busybox (busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl). Новый supervise.sh действует только после `docker restart peppa-act-runner`.

4
.peppa/memory/pep-321.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-321
## Соглашения
- Упавшее задание проверок (PEP-321): `checksQueueTick` до порога очереди через 2 мин (`EARLY_JOB_MS`) переоткрывает PR (`reopenFailedJob`, общий счётчик `reopened` с поздним путём, ≤2 на коммит, пауза 10 мин) — без `stuck`, задержки, сообщения суперадмину и агенту; `pending` до порога не трогается.

4
.peppa/memory/pep-98.md Normal file
View File

@ -0,0 +1,4 @@
# Память: PEP-98
## Соглашения
- i18n (PEP-98): текст пользователю — ключ = русская строка в `t()`/`m()` + перевод в `i18n/en|kk/<раздел>.ts` (иначе падают i18n-check/i18n-kk). «Peppa FACTORY» не склоняется (kk: Peppa FACTORY-нің); к {плейсхолдеру} kk-окончание не клеить. Тексты агентам говорят «Пеппа» — не трогаем.

View File

@ -5,8 +5,10 @@
"peppaUrl": "https://peppa.telecom.quest",
"checks": {
"install": "pnpm install --frozen-lockfile",
"lint": "pnpm lint",
"typecheck": "pnpm -r typecheck",
"build": "pnpm --filter @peppa/web build",
"bundle": "node scripts/bundle-check.mjs",
"test": "pnpm --filter @peppa/testkit test"
}
}

143
AGENTS.md

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"type": "module",
"exports": { ".": "./src/bot.ts", "./telegram": "./src/telegram.ts" },
"exports": { ".": "./src/bot.ts", "./telegram": "./src/telegram.ts", "./render": "./src/render.ts" },
"bin": { "peppa-bot": "./bin/peppa-bot" },
"scripts": { "start": "node src/index.ts", "typecheck": "tsc -p ." },
"dependencies": {

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,11 @@
// Stories from a message to the bot (PEP-45): a draft waits for the project/epic buttons, so
// a stray message never creates a story by itself. Drafts live in `settings` for a day.
import { deleteSetting, getSetting, setSetting, type Project } from "@peppa/core";
export { splitStory, TITLE_MAX } from "@peppa/core";
import type { Db } from "@peppa/db";
export const DRAFT_TTL_MS = 24 * 3600_000;
export const TITLE_MAX = 120;
export interface Draft {
id: number;
@ -13,6 +14,12 @@ export interface Draft {
text: string;
projectId: number | null;
voice: boolean;
/** PEP-153: not a story yet — a message the bot answered or asked about («Завести как задачу»). */
offer?: boolean;
/** PEP-153: the bot asked «Ответить или завести задачу?» and the person has not picked yet. */
asked?: boolean;
/** PEP-153: the answer at hand for «Ответить» (null — answer from the platform's data). */
answer?: string | null;
createdAt: number;
}
@ -46,29 +53,16 @@ export async function dropDraft(db: Db, id: number): Promise<void> {
}
/**
* "в PAY: экспорт в CSV", "PAY: …", "PAY — …", or (voice, no punctuation) "в PAY экспорт…".
* "в PAY: экспорт в CSV", "PAY: …", "PAY — …", or (voice, no punctuation) "в PAY экспорт…" and
* "в проекте Pay экспорт…" (how whisper writes it down, PEP-108).
* The key counts only if it is one of the user's projects; otherwise the whole text is the story.
*/
export function parseStoryText(text: string, projects: Project[]): { project: Project | null; body: string } {
const t = text.trim();
const byKey = (k: string) => projects.find((p) => p.key.toLowerCase() === k.toLowerCase()) ?? null;
const withSep = /^(?:(?:в|во|для|in|to)\s+)?([A-Za-z][A-Za-z0-9]{1,9})\s*[::—–-]\s*([\s\S]+)$/i.exec(t);
const withSep = /^(?:(?:в|во|для|in|to)\s+(?:проекте?\s+|project\s+)?)?([A-Za-z][A-Za-z0-9]{1,9})\s*[::—–-]\s*([\s\S]+)$/i.exec(t);
if (withSep && byKey(withSep[1]!)) return { project: byKey(withSep[1]!), body: withSep[2]!.trim() };
const spoken = /^(?:в|во|для|in|to)\s+([A-Za-z][A-Za-z0-9]{1,9})[,.]?\s+([\s\S]+)$/i.exec(t);
const spoken = /^(?:в|во|для|in|to)\s+(?:проекте?\s+|project\s+)?([A-Za-z][A-Za-z0-9]{1,9})[,.]?\s+([\s\S]+)$/i.exec(t);
if (spoken && byKey(spoken[1]!)) return { project: byKey(spoken[1]!), body: spoken[2]!.trim() };
return { project: null, body: t };
}
/** Title (first line, at most TITLE_MAX chars, cut at a word) and the rest as description. */
export function splitStory(body: string): { title: string; rest: string } {
const [first = "", ...lines] = body.trim().split("\n");
let title = first.trim();
let rest = lines.join("\n").trim();
if (title.length > TITLE_MAX) {
const cut = title.lastIndexOf(" ", TITLE_MAX - 1);
const at = cut > TITLE_MAX / 2 ? cut : TITLE_MAX - 1;
rest = `${title}${rest ? `\n\n${rest}` : ""}`;
title = `${title.slice(0, at).trim()}…`;
}
return { title, rest };
}

44
apps/bot/src/feedback.ts Normal file
View File

@ -0,0 +1,44 @@
// PEP-143: «Сообщить о проблеме» in the bot. `/problem` opens a short window in which the next
// message (text, a photo with a caption, a voice note) becomes a report; photos sent right after
// it join the same report. A superadmin's «Не исправлять» waits for the reason the same way.
import { deleteSetting, getSetting, setSetting } from "@peppa/core";
import type { Db } from "@peppa/db";
/** How long `/problem` waits for the message. */
export const FEEDBACK_MODE_TTL_MS = 15 * 60_000;
/** How long after the report more photos still join it (an album arrives message by message). */
export const FEEDBACK_MORE_TTL_MS = 2 * 60_000;
/** How long «Не исправлять» waits for the reason. */
export const REJECT_TTL_MS = 10 * 60_000;
export interface FeedbackMode {
/** Set once the report exists: further photos are attached to it. */
feedbackId?: number;
until: number;
}
const modeKey = (userId: number) => `bot.feedback:${userId}`;
const rejectKey = (userId: number) => `bot.feedback.reject:${userId}`;
export async function feedbackMode(db: Db, userId: number, now = Date.now()): Promise<FeedbackMode | null> {
const m = await getSetting<FeedbackMode>(db, modeKey(userId));
if (!m) return null;
if (m.until > now) return m;
await deleteSetting(db, modeKey(userId));
return null;
}
export const openFeedbackMode = (db: Db, userId: number, now = Date.now()) => setSetting(db, modeKey(userId), { until: now + FEEDBACK_MODE_TTL_MS } satisfies FeedbackMode);
export const keepFeedbackMode = (db: Db, userId: number, feedbackId: number, now = Date.now()) => setSetting(db, modeKey(userId), { feedbackId, until: now + FEEDBACK_MORE_TTL_MS } satisfies FeedbackMode);
export const closeFeedbackMode = (db: Db, userId: number) => deleteSetting(db, modeKey(userId));
/** The report a superadmin is about to decline: the next message is the reason. */
export async function pendingReject(db: Db, userId: number, now = Date.now()): Promise<number | null> {
const r = await getSetting<{ feedbackId: number; until: number }>(db, rejectKey(userId));
if (!r) return null;
if (r.until > now) return r.feedbackId;
await deleteSetting(db, rejectKey(userId));
return null;
}
export const askRejectReason = (db: Db, userId: number, feedbackId: number, now = Date.now()) => setSetting(db, rejectKey(userId), { feedbackId, until: now + REJECT_TTL_MS });
export const clearReject = (db: Db, userId: number) => deleteSetting(db, rejectKey(userId));

View File

@ -1,6 +1,8 @@
// Entry point: `peppa-bot` (launchd agent quest.telecom.peppa.bot).
import { createDb } from "@peppa/db";
import { loadEnv } from "@peppa/shared";
import { setRunnerClient } from "@peppa/runner";
import { installCrashReporting, installServiceLog } from "@peppa/core";
import { createBot } from "./bot.ts";
import { TelegramApi } from "./telegram.ts";
@ -9,8 +11,15 @@ if (!env.TELEGRAM_BOT_TOKEN) {
console.error("TELEGRAM_BOT_TOKEN is not set");
process.exit(1);
}
const db = createDb(env.PEPPA_DB);
// PEP-21: the bot only enqueues runner commands; the runner service (watchdog) runs them.
setRunnerClient(true, db);
// PEP-91: a crash of the bot goes to Bugsink before launchd restarts it.
installCrashReporting(db, "bot");
// PEP-291: the log also goes to $PEPPA_HOME/logs/bot.log — it survives a redeploy.
installServiceLog("bot");
const bot = createBot({
db: createDb(env.PEPPA_DB),
db,
api: new TelegramApi(env.TELEGRAM_BOT_TOKEN, process.env.TELEGRAM_API_URL),
secret: env.TELEGRAM_BOT_TOKEN,
webUrl: env.PEPPA_WEB_URL,

View File

@ -1,79 +1,104 @@
// Telegram message texts and buttons for PM questions. HTML parse mode.
import type { Question, SessionView } from "@peppa/core";
import { agentSignature, questionIsFreeText, questionText, questionType, splitForDisplay, stripServiceBlocks, userText, type Question, type SessionView } from "@peppa/core";
import type { InlineButton } from "./telegram.ts";
import { asIs, m as tr } from "@peppa/shared/i18n";
export const esc = (s: string) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
const italic = (s: string) => `<i>${s}</i>`;
const clip = (s: string, n: number) => (s.length > n ? `${s.slice(0, n)}…` : s);
const KIND: Record<Question["kind"], string> = {
approval: "📝 Нужно одобрение proposal",
question: "❓ Вопрос",
permission: "🔐 Нужно разрешение",
attention: "👀 Сессия ждёт тебя",
approval: tr("📝 Нужно одобрение плана"),
question: tr("❓ Вопрос"),
permission: tr("🔐 Нужно разрешение"),
attention: tr("👀 Сообщение"),
};
/** PEP-198: the name the owner sees on every message of the factory. */
export const VOICE = tr("🔎 Аналитик");
export interface Rendered {
text: string;
buttons: InlineButton[][];
}
// callback_data (≤64 bytes): "q:<questionId>:<choice>", "s:<sessionId>:<action>" or "i:<incidentId>:<decision>" (core/incidents.ts)
// callback_data (≤64 bytes): "q:<questionId>:<choice>", "s:<sessionId>:<action>" (resume|stop|ask) or "i:<incidentId>:<decision>" (core/incidents.ts)
export function renderQuestion(
q: Question,
ctx: { taskKey: string | null; taskTitle: string | null; taskStatus?: string | null; session: SessionView | null; webUrl: string },
ctx: { taskKey: string | null; taskTitle: string | null; taskStatus?: string | null; session: SessionView | null; webUrl: string; /** PEP-154: the reader's view is «Инженер» — the terminal command is shown. */ engineer?: boolean; /** PEP-152: the message has technical details (kept on the site). */ details?: boolean; /** PEP-156: nickname of the agent whose own words these are. */ agent?: string | null },
): Rendered {
const head = [`<b>${esc(ctx.taskKey ?? (q.sessionId ? `Сессия ${q.sessionId}` : "Релизы проекта"))}</b>`, ctx.taskTitle ? `<i>${esc(clip(ctx.taskTitle, 80))}</i>` : null]
const head = ["<b>" + esc(ctx.taskKey ?? (q.sessionId ? tr("Агент №{id}", { id: q.sessionId }) : tr("Обновления продукта"))) + "</b>", ctx.taskTitle ? `<i>${asIs(esc(clip(ctx.taskTitle, 80)))}</i>` : null]
.filter(Boolean)
.join(" · ");
const body = esc(clip(q.text, 3300));
const lines = [head, KIND[q.kind], "", body];
// PEP-154: no service text in the message (a permission request keeps its command, whole).
// PEP-152: the main text only — at most five lines; the rest and the details open on the site.
// PEP-139: what the agent wrote itself is free text (marked) — only the factory's phrases are translated.
const free = questionIsFreeText(q);
const shown = q.kind === "permission" ? { main: q.text, more: null } : splitForDisplay(questionText({ ...q, text: userText(q.text) || q.text }));
const text = esc(clip(shown.main, 3300));
const said = free ? asIs(text) : text;
// PEP-156: «🤖 Шустрик: …» — the agent's own words; the factory's messages carry no name.
const body = `${ctx.agent ? `<b>${asIs(esc(agentSignature(ctx.agent)))}</b>: ` : ""}${said}`;
const lines = [head, q.kind === "attention" && ctx.agent ? tr("💬 Сообщение агента") : KIND[q.kind], "", body];
const buttons: InlineButton[][] = [];
const type = questionType(q, ctx.taskStatus);
if (q.kind === "approval") {
buttons.push([{ text: "✅ Одобрить", callback_data: `q:${q.id}:approve` }]);
lines.push("", "<i>Чтобы вернуть на доработку — ответь на это сообщение комментарием.</i>");
buttons.push([{ text: tr("✅ Одобрить"), callback_data: `q:${q.id}:approve` }]);
lines.push("", italic(tr("Чтобы вернуть на доработку — ответьте на это сообщение комментарием.")));
} else if (q.kind === "permission") {
buttons.push([
{ text: "✅ Разрешить", callback_data: `q:${q.id}:allow` },
{ text: "♾ Всегда", callback_data: `q:${q.id}:always` },
{ text: "⛔ Запретить", callback_data: `q:${q.id}:deny` },
{ text: tr("✅ Разрешить"), callback_data: `q:${q.id}:allow` },
{ text: tr("♾ Всегда"), callback_data: `q:${q.id}:always` },
{ text: tr("⛔ Запретить"), callback_data: `q:${q.id}:deny` },
]);
} else if (q.kind === "question") {
(q.options ?? []).slice(0, 6).forEach((o, i) => buttons.push([{ text: clip(o, 60), callback_data: `q:${q.id}:o${i}` }]));
lines.push("", "<i>Выбери вариант или ответь на это сообщение своим текстом.</i>");
} else if (ctx.taskStatus === "review") {
lines[1] = "✅ Готово к ревью";
buttons.push([{ text: "✅ Принять", callback_data: `q:${q.id}:accept` }]);
lines.push("", "<i>Есть замечания — ответь на это сообщение, агент доработает.</i>");
} else if (type === "question") {
// PEP-149: a question always comes with answers to tap; the default goes first.
(q.options ?? []).slice(0, 6).forEach((o, i) => buttons.push([{ text: free ? asIs(clip(o, 60)) : clip(o, 60), callback_data: `q:${q.id}:o${i}` }]));
if (q.kind === "attention") lines[1] = KIND.question;
lines.push("", italic(tr("Выберите вариант или ответьте на это сообщение своим текстом.")));
if (q.defaultOption) lines.push(italic(esc(tr("Если не ответите, агент продолжит по варианту «{option}».", { option: q.defaultOption }))));
} else if (type === "done") {
lines[1] = tr("✅ Готово к ревью");
buttons.push([{ text: tr("✅ Принять"), callback_data: `q:${q.id}:accept` }]);
lines.push("", italic(tr("Есть замечания — ответьте на это сообщение, агент доработает.")));
} else {
// A message of the factory itself (a failure, a limit): nothing to choose — no «continue» button.
const s = ctx.session;
if (s && ["failed", "rate_limited", "stalled"].includes(s.status)) {
buttons.push([
{ text: "🔁 Перезапустить", callback_data: `s:${s.id}:resume` },
{ text: "⏹ Остановить", callback_data: `s:${s.id}:stop` },
{ text: tr("🔁 Перезапустить"), callback_data: `s:${s.id}:resume` },
{ text: tr("⏹ Остановить"), callback_data: `s:${s.id}:stop` },
]);
} else {
buttons.push([{ text: "▶️ Продолжай", callback_data: `q:${q.id}:cont` }]);
lines.push("", "<i>Или ответь на это сообщение — текст уйдёт в сессию.</i>");
// PEP-186: agents stand on a limit of their subscription — ask the superadmin for one.
if (s.status === "rate_limited" && s.subscriptionId != null) buttons.push([{ text: tr("🙋 Попросить подписку у администратора"), callback_data: `s:${s.id}:ask` }]);
}
}
if (ctx.session) lines.push(`<code>tmux attach -t ${esc(ctx.session.tmuxName)}</code>`);
lines[1] = `${VOICE} · ${lines[1]}`;
if (ctx.session && ctx.engineer) lines.push(`<code>tmux attach -t ${esc(ctx.session.tmuxName)}</code>`);
const web = ctx.webUrl.replace(/\/$/, "");
if ((ctx.details || shown.more) && ctx.taskKey && /^https?:\/\//.test(web)) buttons.push([{ text: tr("Подробнее"), url: `${web}/t/${ctx.taskKey}?more=1` }]);
return { text: lines.join("\n"), buttons };
}
/** Text after the question is closed: original + who answered what, no buttons. */
export function renderAnswered(original: string, q: Question): string {
const mark = q.answeredVia === "system" ? "⌛" : "✅";
const via = { telegram: "в Telegram", web: "в вебе", terminal: "в терминале", system: "" }[q.answeredVia ?? "telegram"];
return `${original}\n\n${mark} ${q.answeredVia === "system" ? esc(q.answer ?? "") : `Ответ ${via}: <b>${esc(clip(q.answer ?? "", 500))}</b>`}`;
const via = { telegram: tr("в Telegram"), web: tr("в вебе"), terminal: tr("в терминале"), system: "" }[q.answeredVia ?? "telegram"];
// PEP-154: service blocks are nobody's answer.
const answer = stripServiceBlocks(q.answer ?? "");
// A person's answer is free text; a button of a factory question (and a system answer) is a phrase.
const own = q.answeredVia !== "system" && !(q.options ?? []).includes(q.answer ?? "") ? asIs : (x: string) => x;
const said = q.answeredVia === "system" ? esc(answer) : tr("Ответ {via}: <b>{answer}</b>", { via, answer: own(esc(clip(answer, 500))) });
return `${original}\n\n${mark} ${said}`;
}
/** The answer text a button stands for. */
export function choiceToAnswer(q: Question, choice: string): string | null {
if (q.kind === "approval" && choice === "approve") return "ок";
if (q.kind === "approval" && choice === "approve") return "ок"; // i18n-ignore: the answer goes to the agent
if (q.kind === "permission" && ["allow", "always", "deny"].includes(choice)) return choice;
if (q.kind === "attention" && choice === "cont") return "Продолжай.";
// PEP-149: the «continue» button is gone — an old one on an earlier message answers nothing.
const m = /^o(\d+)$/.exec(choice);
if (q.kind === "question" && m) return q.options?.[Number(m[1])] ?? null;
if (m) return q.options?.[Number(m[1])] ?? null;
return null;
}

View File

@ -1,3 +1,4 @@
import { m as tr } from "@peppa/shared/i18n";
// Minimal Telegram Bot API client. The base URL is configurable so tests can point it at
// mock-telegram (packages/testkit).
@ -8,13 +9,22 @@ export interface TgUser {
}
export interface TgMessage {
message_id: number;
chat: { id: number; type: string };
chat: { id: number; type: string; title?: string };
from?: TgUser;
text?: string;
/** PEP-62: a group became a supergroup (new chat id). */
migrate_to_chat_id?: number;
reply_to_message?: TgMessage;
/** PEP-45: voice notes and audio files become stories after transcription. */
voice?: TgFileRef;
audio?: TgFileRef;
/** PEP-143: a photo comes as several sizes (the last is the largest); its text is the caption. */
photo?: TgFileRef[];
/** An image sent «as a file». */
document?: TgFileRef & { file_name?: string };
caption?: string;
/** Messages of one album share it. */
media_group_id?: string;
}
export interface TgFileRef {
file_id: string;
@ -39,6 +49,18 @@ export interface InlineButton {
url?: string;
}
const TG_TEXT_MAX = 4096;
const TG_CLIP_NOTE_TEXT = tr("(полностью — на сайте FORGE)");
const TG_CLIP_NOTE = "\n\n… " + TG_CLIP_NOTE_TEXT;
/** PEP-180: a text that fits Telegram — cut at the last line break before the limit. */
export function clipForTelegram(text: string): string {
if (text.length <= TG_TEXT_MAX) return text;
const room = TG_TEXT_MAX - TG_CLIP_NOTE.length;
const cut = text.lastIndexOf("\n", room);
return `${text.slice(0, cut > room / 2 ? cut : room)}${TG_CLIP_NOTE}`;
}
export class TelegramError extends Error {
readonly method: string;
readonly code: number;
@ -62,6 +84,11 @@ export class TelegramApi {
}
async call<T>(method: string, params: Record<string, unknown> = {}, timeoutMs = 15_000): Promise<T> {
// PEP-180: Telegram refuses texts over 4096 characters — a long message goes shortened (cut at a
// line break, so no HTML tag is left open), with a note that the whole text is on the site.
if ((method === "sendMessage" || method === "editMessageText") && typeof params.text === "string" && params.text.length > TG_TEXT_MAX) {
params = { ...params, text: clipForTelegram(params.text) };
}
let res: Response;
try {
res = await fetch(`${this.baseUrl}/bot${this.token}/${method}`, {
@ -116,6 +143,23 @@ export class TelegramApi {
return Buffer.from(await res.arrayBuffer());
}
/** PEP-143: a photo uploaded from memory (multipart/form-data, as the Bot API wants for new files). */
async sendPhoto(chatId: number, photo: { data: Uint8Array; filename: string; mime: string }, extra: Record<string, unknown> = {}): Promise<TgMessage> {
const form = new FormData();
form.set("chat_id", String(chatId));
for (const [k, v] of Object.entries(extra)) if (v != null && k !== "chat_id") form.set(k, typeof v === "string" ? v : JSON.stringify(v));
form.set("photo", new Blob([photo.data as BlobPart], { type: photo.mime }), photo.filename);
let res: Response;
try {
res = await fetch(`${this.baseUrl}/bot${this.token}/sendPhoto`, { method: "POST", body: form, signal: AbortSignal.timeout(60_000) });
} catch (e) {
throw new TelegramError("sendPhoto", 0, (e as Error).message);
}
const body = (await res.json().catch(() => ({}))) as { ok?: boolean; result?: TgMessage; description?: string; error_code?: number; parameters?: { retry_after?: number } };
if (!body.ok) throw new TelegramError("sendPhoto", body.error_code ?? res.status, body.description ?? res.statusText, body.parameters?.retry_after);
return body.result as TgMessage;
}
sendMessage(chatId: number, text: string, extra: Record<string, unknown> = {}) {
return this.call<TgMessage>("sendMessage", { chat_id: chatId, text, parse_mode: "HTML", ...extra });
}

View File

@ -1,52 +0,0 @@
// Speech to text for voice notes (PEP-45): any OpenAI-compatible audio API —
// POST $PEPPA_TRANSCRIBE_URL/audio/transcriptions (multipart: file, model, language,
// response_format=json) with "Authorization: Bearer $PEPPA_TRANSCRIBE_KEY" → {"text": "…"}.
// OpenAI (https://api.openai.com/v1, whisper-1), Groq (https://api.groq.com/openai/v1,
// whisper-large-v3), a local faster-whisper/speaches server — all speak this. Tests use
// mock-transcribe (packages/testkit).
export interface TranscribeConfig {
url: string;
key: string | null;
model: string;
language: string | null;
}
/** From env; null when voice is not set up (the bot asks for text then). */
export function transcribeConfig(env: NodeJS.ProcessEnv = process.env): TranscribeConfig | null {
const url = env.PEPPA_TRANSCRIBE_URL?.trim();
if (!url) return null;
return {
url: url.replace(/\/$/, ""),
key: env.PEPPA_TRANSCRIBE_KEY?.trim() || null,
model: env.PEPPA_TRANSCRIBE_MODEL?.trim() || "whisper-1",
language: env.PEPPA_TRANSCRIBE_LANG === "" ? null : (env.PEPPA_TRANSCRIBE_LANG?.trim() || "ru"),
};
}
export class TranscribeError extends Error {}
export async function transcribe(cfg: TranscribeConfig, audio: Buffer, filename = "voice.ogg", mime = "audio/ogg"): Promise<string> {
const form = new FormData();
form.set("file", new Blob([new Uint8Array(audio)], { type: mime }), filename);
form.set("model", cfg.model);
form.set("response_format", "json");
if (cfg.language) form.set("language", cfg.language);
let res: Response;
try {
res = await fetch(`${cfg.url}/audio/transcriptions`, {
method: "POST",
headers: cfg.key ? { Authorization: `Bearer ${cfg.key}` } : {},
body: form,
signal: AbortSignal.timeout(120_000),
});
} catch (e) {
throw new TranscribeError(`сервис расшифровки недоступен: ${(e as Error).message}`);
}
const body = (await res.json().catch(() => ({}))) as { text?: string; error?: { message?: string } | string };
if (!res.ok) {
const msg = typeof body.error === "string" ? body.error : body.error?.message;
throw new TranscribeError(`расшифровка не удалась: ${res.status}${msg ? ` ${msg}` : ""}`);
}
return (body.text ?? "").trim();
}

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Logical root (PEP-18): only the bin's own symlink (~/.local/bin) is followed, so a launch
# through ~/peppa/current keeps that path in hooks and git config instead of the release dir.
_b="$0"; [ -L "$_b" ] && { _l="$(readlink "$_b")"; if [ "${_l#/}" != "$_l" ]; then _b="$_l"; else _b="$(dirname "$_b")/$_l"; fi; }
PEPPA_ROOT="$(cd "$(dirname "$_b")/../../.." && pwd)"; unset _b _l
. "$PEPPA_ROOT/scripts/lib/load-env.sh"
exec "${PEPPA_NODE:-node}" --import "$PEPPA_ROOT/scripts/lib/require-node.mjs" "$PEPPA_ROOT/apps/observer/src/index.ts" "$@"

View File

@ -0,0 +1,14 @@
{
"name": "@peppa/observer",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": { ".": "./src/observer.ts" },
"bin": { "peppa-observer": "./bin/peppa-observer" },
"scripts": { "start": "node src/index.ts", "typecheck": "tsc -p ." },
"dependencies": {
"@peppa/core": "workspace:*",
"@peppa/db": "workspace:*",
"@peppa/shared": "workspace:*"
}
}

View File

@ -0,0 +1,15 @@
// Entry point: `peppa-observer` (launchd agent quest.telecom.peppa.observer), PEP-202.
import { createDb } from "@peppa/db";
import { loadEnv } from "@peppa/shared";
import { installCrashReporting, installServiceLog, setDefaultActor } from "@peppa/core";
import { runObserver } from "./observer.ts";
const env = loadEnv();
const db = createDb(env.PEPPA_DB);
setDefaultActor({ kind: "system" });
installCrashReporting(db, "observer");
// PEP-291: the log also goes to $PEPPA_HOME/logs/observer.log — it survives a redeploy.
installServiceLog("observer");
const ac = new AbortController();
for (const sig of ["SIGINT", "SIGTERM"] as const) process.on(sig, () => (ac.abort(), setTimeout(() => process.exit(0), 200)));
await runObserver(db, { log: (m) => console.log(`${new Date().toISOString()} ${m}`) }, ac.signal);

View File

@ -0,0 +1,59 @@
// PEP-202: the `peppa-observer` service — runs the monitors of Observability. Every second it
// starts the checks that are due (they run in the background, each with its own timeout), every
// 30 s it writes its heartbeat (the watchdog watches it like the bot and the web), every hour it
// deletes checks older than the retention (7 days). Monitors are rows in observe.db: the web and
// MCP change them, the service picks the change up on its next pass — no restart.
import { beat, featureTick, observeTick, pruneObserve, seedFeatureMonitors, seedMonitors, vitalsAlertTick, type ObserveProbes } from "@peppa/core";
import { loadEnv } from "@peppa/shared";
import type { Db } from "@peppa/db";
export interface ObserverOptions {
log?: (m: string) => void;
tickMs?: number;
probes?: ObserveProbes;
}
export async function runObserver(db: Db, o: ObserverOptions = {}, signal?: AbortSignal): Promise<void> {
const log = o.log ?? (() => {});
const made = seedMonitors();
if (made.length) log(`observer: built-in monitors created: ${made.map((m) => m.name).join(", ")}`);
// PEP-224: MCP monitors switch the «mcp» feature off; created once, when the web has a public address.
const mcp = seedFeatureMonitors(loadEnv().PEPPA_WEB_URL);
if (mcp.length) log(`observer: built-in monitors created: ${mcp.map((m) => m.name).join(", ")}`);
let featuresBusy = false;
log("observer started");
let lastBeat = 0;
let lastPrune = 0;
let lastVitals = 0;
while (!signal?.aborted) {
const now = Date.now();
if (now - lastBeat >= 30_000) {
lastBeat = now;
await beat(db, "observer").catch((e: Error) => log(`observer: heartbeat failed: ${e.message}`));
}
if (now - lastPrune >= 3_600_000) {
lastPrune = now;
try {
const n = pruneObserve();
if (n) log(`observer: ${n} old checks deleted`);
} catch (e) {
log(`observer: prune failed: ${(e as Error).message}`);
}
}
// PEP-217: slow pages (p75 of real users) → one warning per route and day in Bugsink.
if (now - lastVitals >= 600_000) {
lastVitals = now;
void vitalsAlertTick(db).catch((e: Error) => log(`observer: vitals failed: ${e.message}`));
}
// Not awaited: a slow check must not hold the others or the heartbeat.
void observeTick(db, { log, probes: o.probes }).catch((e: Error) => log(`observer: tick failed: ${e.message}`));
// PEP-224: features follow their monitors — announce a change (journal, channel, live pages).
if (!featuresBusy) {
featuresBusy = true;
void featureTick(db, { log })
.catch((e: Error) => log(`observer: features failed: ${e.message}`))
.finally(() => (featuresBusy = false));
}
await new Promise((r) => setTimeout(r, o.tickMs ?? 1_000));
}
}

View File

@ -0,0 +1 @@
{ "extends": "../../tsconfig.base.json", "compilerOptions": { "allowImportingTsExtensions": true }, "include": ["src"] }

9
apps/web/AGENTS.md Normal file
View File

@ -0,0 +1,9 @@
<!-- BEGIN:nextjs-agent-rules -->
## This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
<!-- END:nextjs-agent-rules -->

View File

@ -4,31 +4,33 @@ import {
setAutonomy,
type AutonomyLevel,
type AutonomySettings,
linkEgovIin,
createEpic,
createTask,
updateEpic,
getQuestion,
getSession,
PeppaError,
unlinkGoogle,
projectForUser,
resolveTask,
revokeApp,
createPairingCode,
getSetting,
unpairTelegram,
getIncident,
getProject as getProjectByKey,
updateIncidentSettings,
setReviewSettings,
setIntakeSettings,
setUserBot,
clearUserBot,
type IncidentPolicy,
changeOwnPassword,
createLocalUser,
getUser,
isLocalUser,
isSuperadmin,
getDirectOrigins,
setDirectOrigins,
setUserDisabled,
setUserPassword,
setSuperadmin,
mergeAccounts,
NOTIFY_EVENTS,
defaultPrefs,
deletePushSubscription,
@ -43,25 +45,43 @@ import {
listSessions,
setProjectRunnerSettings,
setTaskRunnerSettings,
dismissOnboarding,
AGENT_FIELDS,
setProjectAgentSettings,
setTaskAgentSettings,
cleanBudget,
logEvent,
setPublishMode,
type PublishMode,
setProjectBudget,
setTaskBudget,
type Budget,
setProjectSecret,
setSecretAudience,
secretToConnection,
setAgentSecretsEnabled,
setNeedDone,
removeNeed,
deleteProjectSecret,
reencryptAll,
markSecretRotated,
revokeClientTokens,
checkGiteaBotToken,
setUiMode,
} from "@peppa/core";
import { checkConnection, createConnection, decideIdleGrant, deleteConnection, DEFAULT_GRANT_TERM, extendGrant, grantConnection, isGatewayProtocol, isGrantTerm, replaceConnectionSecret, resetHostKey, revokeConnection, revokeGrant, setConnectionIdleHours, type CatalogAuth, type ConnectionCheckResult, type GrantMode, type GrantTerm } from "@peppa/core";
import { attachmentLabel, fixFeedback, linkAttachments, linkFeedback, parseAttachmentIds, rejectFeedback, restoreProject } from "@peppa/core";
import { deleteProject, decideProposals, mergeProposals, connectAndGrantAccessRequest, denyAccessRequestAndTell, grantAccessRequestByButton, grantAccessRequestFromExisting, decideDeferred } from "@peppa/runner";
import { bugsinkFromEnv } from "@peppa/bugsink";
import { loadEnv } from "@peppa/shared";
import { acceptStory, budgetChanged, resolveTaskById, deployProd, bugsinkWebhookBase, connectErrorTracking, decideIncident, resolveIncident, acceptTask, answerAndDeliver, grantRepoAccess, moveTask, provisionProject, projectNamespace, setProjectVisibility, shareProject, unshareProject, type BoardColumn, resumeSession, sendToSession, startSession, stopSession, type Provider, startFreeRunner, renameRunner, promoteRunner, queueTaskOnRunner } from "@peppa/runner";
import { pauseProject, resumeProject, startAcceptAll, processAcceptQueue, acceptStory, autoPublish, fixStory, confirmTaskDecision, changeTaskDecision, undoSplit, budgetChanged, resolveTaskById, deployProd, bugsinkWebhookBase, connectErrorTracking, decideIncident, resolveIncident, acceptTask, answerAndDeliver, grantRepoAccess, moveTask, provisionProjectOnce, projectNamespace, setProjectVisibility, shareProject, unshareProject, type BoardColumn, resumeSession, sendToSession, syncSessionAttachments, startSession, stopSession, type Provider, startFreeRunner, renameRunner, promoteRunner, queueTaskOnRunner, managesProject, saveAgentsMd, cancelOwnLogin, finishOwnClaudeLogin, connectOwnSubscription, removeOwnSubscription, type OwnSubscriptionKind, chooseSharedSubscription, requestSubscription } from "@peppa/runner";
import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";
import { asWebActor, requireUser } from "@/lib/auth";
import { after } from "next/server";
import { asWebActor, requireUser, words } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
import { m, PRODUCT_NAME } from "@peppa/shared/i18n";
const str = (f: FormData, k: string) => String(f.get(k) ?? "").trim();
const back = (f: FormData) => str(f, "back") || "/";
@ -72,7 +92,9 @@ async function attempt(f: FormData, fn: () => Promise<string | void>): Promise<n
try {
target = (await fn()) || target;
} catch (e) {
const msg = e instanceof PeppaError ? e.message : `Ошибка: ${(e as Error).message}`;
const t = await getT();
// PEP-98: core errors are rendered Russian text — translate them for the reader.
const msg = e instanceof PeppaError ? t.text(e.message) : t("Ошибка: {message}", { message: (e as Error).message });
const [path, query] = target.split("?");
const params = new URLSearchParams(query);
params.set("error", msg.slice(0, 300));
@ -88,14 +110,20 @@ async function ownedSession(userId: number, sessionId: number) {
return s;
}
/** PEP-31: hide the first-run checklist on the home page. */
export async function dismissOnboardingAction(f: FormData) {
const user = await requireUser();
await attempt(f, () => dismissOnboarding(db, user.id));
}
export async function answerQuestion(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const q = await getQuestion(db, Number(str(f, "questionId")));
await projectForUser(db, user.id, q.projectId);
const answer = str(f, "choice") || str(f, "answer");
if (!answer) throw new PeppaError("Пустой ответ");
if (q.answeredAt) throw new PeppaError(`Уже отвечено${q.answeredVia === "system" ? "" : ` (${q.answeredVia})`}: ${q.answer}`);
if (!answer) throw new PeppaError(m("Пустой ответ"));
if (q.answeredAt) throw new PeppaError(q.answeredVia === "system" ? m("Уже отвечено: {answer}", { answer: q.answer }) : m("Уже отвечено ({via}): {answer}", { via: q.answeredVia, answer: q.answer }));
if (answer === "__accept") {
await acceptTask(db, q.id, "web");
return;
@ -108,9 +136,11 @@ export async function addTask(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
if (!str(f, "title")) throw new PeppaError("Нужно название стори");
if (!str(f, "title")) throw new PeppaError(m("Нужно название задачи"));
const epic = Number(str(f, "epicId")) || undefined;
const ids = parseAttachmentIds(f.getAll("attachment"));
const ref = await createTask(db, { projectId: p.id, title: str(f, "title"), description: str(f, "description") || undefined, goalId: epic });
await linkAttachments(db, user, p.id, ids, { taskId: ref.task.id });
return `/t/${ref.key}`;
});
}
@ -120,7 +150,7 @@ export async function addEpic(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
if (str(f, "title").length < 2) throw new PeppaError("Нужно название эпика");
if (str(f, "title").length < 2) throw new PeppaError(m("Нужно название эпика"));
await createEpic(db, p.id, str(f, "title"), str(f, "description") || undefined);
});
}
@ -134,7 +164,7 @@ export async function editEpic(f: FormData) {
await updateEpic(db, p.id, id, { status: "archived" });
return;
}
if (str(f, "title").length < 2) throw new PeppaError("Нужно название эпика");
if (str(f, "title").length < 2) throw new PeppaError(m("Нужно название эпика"));
await updateEpic(db, p.id, id, { title: str(f, "title"), description: str(f, "description") || null });
});
}
@ -146,7 +176,7 @@ export async function editStoryAction(f: FormData) {
const ref = await resolveTask(db, str(f, "taskKey"));
await projectForUser(db, user.id, ref.project.id);
const title = str(f, "title");
if (title.length < 2) throw new PeppaError("Нужно название стори");
if (title.length < 2) throw new PeppaError(m("Нужно название задачи"));
const epic = str(f, "epicId");
await updateTask(db, ref, { title, description: String(f.get("description") ?? "").trim(), goalId: epic ? Number(epic) : null }, undefined, user.login);
});
@ -158,11 +188,15 @@ export async function commentStoryAction(f: FormData) {
await attempt(f, async () => {
const ref = await resolveTask(db, str(f, "taskKey"));
await projectForUser(db, user.id, ref.project.id);
const c = await addStoryComment(db, ref, user, String(f.get("text") ?? ""));
const ids = parseAttachmentIds(f.getAll("attachment"));
const body = String(f.get("text") ?? "").trim() || (await attachmentLabel(db, ids));
const c = await addStoryComment(db, ref, user, body);
await linkAttachments(db, user, ref.project.id, ids, { taskId: ref.task.id, eventId: c.id });
if (str(f, "toAgent")) {
const [live] = await listSessions(db, { active: true, taskId: ref.task.id });
if (!live) throw new PeppaError("Комментарий сохранён, но живой сессии нет — агент увидит его в get_task");
await sendToSession(db, live.id, `Комментарий PM (${user.login}) к ${ref.key}:\n${c.text}`);
if (!live) throw new PeppaError(m("Комментарий сохранён, но агент сейчас не работает — увидит его, когда вернётся к задаче"));
// i18n-ignore — text for the agent
await sendToSession(db, live.id, `Комментарий PM (${user.login}) к ${ref.key}:\n${c.text}${await syncSessionAttachments(db, live.id)}`, { person: true });
}
});
}
@ -177,11 +211,61 @@ export async function acceptStoryAction(f: FormData) {
});
}
/**
* PEP-209: «Принять» / «Принять всё» on the acceptance page. PEP-318: the decision is queued and
* the page answers at once; the stories are accepted one by one in the background (after the
* answer here, else by the watchdog), the page shows the progress and the result.
*/
export async function acceptAllAction(f: FormData) {
const user = asWebActor(await requireUser());
const key = str(f, "project");
const base = `/p/${encodeURIComponent(key)}/accept`;
await attempt(f, async () => {
const refs = [];
for (const k of f.getAll("taskKey").map(String)) {
const ref = await resolveTask(db, k).catch(() => null);
if (!ref || ref.project.key !== key) continue;
await projectForUser(db, user.id, ref.project.id);
if (ref.task.status === "review") refs.push(ref);
}
if (!refs.length) throw new PeppaError(m("Принимать нечего: задачи уже приняты или вернулись в работу"));
startAcceptAll(db, refs, user.id, "web");
const projectId = refs[0]!.project.id;
after(() => processAcceptQueue(db, projectId).catch(() => 0));
return base;
});
}
/** «Поправить» on the story page in «Продакт» mode (PEP-120): the remark goes to the agent, the story — back to work. */
export async function fixStoryAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const ref = await resolveTask(db, str(f, "taskKey"));
await projectForUser(db, user.id, ref.project.id);
await fixStory(db, ref, user, String(f.get("text") ?? ""));
});
}
/** PEP-198: «Подходит» / «Нужно иначе» / «Не делить» on a decision of «Фабрика решила за вас». */
export async function decisionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const ref = await resolveTask(db, str(f, "taskKey"));
await projectForUser(db, user.id, ref.project.id);
const id = Number(str(f, "id"));
const choice = str(f, "choice");
if (choice === "confirm") await confirmTaskDecision(db, ref, id, user);
else if (choice === "unsplit") await undoSplit(db, ref, id, user);
else if (choice === "change") await changeTaskDecision(db, ref, id, String(f.get("how") ?? ""), user);
else throw new PeppaError(m("Эта кнопка уже не работает. Обновите страницу."));
});
}
/** PEP-67: a superadmin may pick a pool or tick subscriptions; otherwise the project's pool. */
async function launchChoice(f: FormData, user: Awaited<ReturnType<typeof requireUser>>) {
const choice = (await isSuperadmin(db, user)) ? str(f, "choice") : "";
const subscriptionIds = choice === "pick" ? f.getAll("subscription").map(Number).filter((n) => n > 0) : undefined;
if (choice === "pick" && !subscriptionIds?.length) throw new PeppaError("Отметьте хотя бы одну подписку");
if (choice === "pick" && !subscriptionIds?.length) throw new PeppaError(m("Отметьте хотя бы одну подписку"));
const poolId = choice.startsWith("pool:") ? Number(choice.slice(5)) : undefined;
const provider = str(f, "provider") as Provider | "";
return { provider: provider || undefined, subscriptionIds, poolId };
@ -251,11 +335,32 @@ export async function setRunnerSettingsAction(f: FormData) {
mode: pick("mode"),
context: pick("context"),
workspace: pick("workspace"),
isolation: pick("isolation"),
...(max === "" ? {} : { maxRunners: max === "0" ? null : Number(max) }),
// PEP-40: "" inherit, local — Peppa's machine, list — the ticked hosts.
...(str(f, "hostsMode") === "local" ? { hosts: [] } : str(f, "hostsMode") === "list" ? { hosts: f.getAll("hosts").map(Number).filter((n) => n > 0) } : {}),
});
});
}
/** PEP-41: agent provider/model/effort of a project (all fields) or a story ("" = inherit). */
export async function setAgentSettingsAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const patch: Record<string, unknown> = {};
for (const k of AGENT_FIELDS) if (f.has(k)) patch[k] = str(f, k);
if (patch.escalateAfter === "0") patch.escalateAfter = null;
if (str(f, "taskKey")) {
const ref = await resolveTask(db, str(f, "taskKey"));
await projectForUser(db, user.id, ref.project.id);
await setTaskAgentSettings(db, ref.task.id, patch);
return;
}
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await setProjectAgentSettings(db, p.id, patch);
});
}
export async function stopTaskSession(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
@ -276,21 +381,22 @@ export async function messageSession(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const s = await ownedSession(user.id, Number(str(f, "sessionId")));
if (!str(f, "text")) throw new PeppaError("Пустое сообщение");
await sendToSession(db, s.id, str(f, "text"));
if (!str(f, "text")) throw new PeppaError(m("Пустое сообщение"));
await sendToSession(db, s.id, str(f, "text"), { person: true });
});
}
export async function createProjectAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await provisionProject(db, {
// PEP-142: the same form sent twice (a second click, another tab) opens the one project.
const p = await provisionProjectOnce(db, {
...(await projectNamespace(db, user, str(f, "owner"))), // PEP-68: local user → peppa-bot
slug: str(f, "slug").toLowerCase(),
key: str(f, "key"),
name: str(f, "name"),
existing: str(f, "mode") === "existing",
visibility: str(f, "visibility") === "private" ? "private" : "public",
visibility: str(f, "visibility") === "public" ? "public" : "private", // PEP-280: closed unless chosen
ownerId: user.id,
});
return `/p/${p.key}?created=1`;
@ -305,13 +411,43 @@ export async function deployProdAction(f: FormData) {
});
}
/** PEP-145: «Показывать всем: сам / по кнопке» (owner or member). */
export async function setPublishModeAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
const mode = await setPublishMode(db, p.id, str(f, "mode") as PublishMode);
await logEvent(db, { projectId: p.id, type: "publish_mode_set", payload: { mode, login: user.login } });
// «Сам» chosen with an accepted version waiting: it goes to everyone right away.
if (mode === "auto") await autoPublish(db, p).catch(() => false);
});
}
/** PEP-174: «Поставить на паузу» — owner, member or superadmin. Agents stop, nothing is sent. */
export async function pauseProjectAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await pauseProject(db, p.id, user.id);
});
}
/** PEP-174: «Продолжить» — the agents stopped by the pause continue, the dispatcher takes stories again. */
export async function resumeProjectAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await resumeProject(db, p.id);
});
}
export async function moveTaskCard(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const ref = await resolveTask(db, str(f, "taskKey"));
await projectForUser(db, user.id, ref.project.id);
const to = str(f, "to") as BoardColumn;
if (!["backlog", "in_progress", "review", "done"].includes(to)) throw new PeppaError("Неизвестная колонка");
if (!["backlog", "in_progress", "review", "done"].includes(to)) throw new PeppaError(m("Неизвестная колонка"));
await moveTask(db, ref, to);
});
}
@ -323,19 +459,13 @@ export async function revokeConnectedApp(f: FormData) {
});
}
export async function unlinkEgov(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await linkEgovIin(db, user.id, null);
});
}
export async function addProjectMember(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
const r = await shareProject(db, user, p, str(f, "login"));
if (!r.repoAccess) throw new PeppaError(`${r.login} добавлен, но доступ к репозиторию в Gitea выдать не удалось — добавьте соавтора в Gitea вручную`);
if (!r.repoAccess) throw new PeppaError((await words()).engineer ? m("{login} добавлен, но доступ к репозиторию в Gitea выдать не удалось — добавьте соавтора в Gitea вручную", { login: r.login }) : m("{login} добавлен, но доступ к коду проекта выдать не удалось. Напишите в поддержку FORGE.", { login: r.login }));
});
}
@ -344,7 +474,24 @@ export async function grantRepoAccessToMembers(f: FormData) {
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
const r = await grantRepoAccess(db, user, p);
if (r.failed.length) throw new PeppaError(`Не удалось выдать доступ к репозиторию: ${r.failed.join(", ")} — нет прав администратора в Gitea, добавьте соавторов вручную`);
if (r.failed.length) throw new PeppaError(m("Не удалось выдать доступ к репозиторию: {logins} — нет прав администратора в Gitea, добавьте соавторов вручную", { logins: r.failed.join(", ") }));
});
}
/** PEP-163: the owner deletes the project; it stays with the superadmin for a week. */
export async function deleteProjectAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
if (str(f, "confirm") !== "yes") throw new PeppaError(m("Отметьте, что хотите удалить проект"));
await deleteProject(db, user.id, Number(str(f, "projectId")));
return "/projects";
});
}
export async function restoreProjectAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await restoreProject(db, Number(str(f, "projectId")), user.id);
});
}
@ -375,6 +522,7 @@ export async function setAutonomyAction(f: FormData) {
merge: str(f, "merge") as AutonomySettings["merge"],
close: str(f, "close") as AutonomySettings["close"],
closeAfterHours: Number(str(f, "closeAfterHours")),
acceptOwn: (str(f, "acceptOwn") || undefined) as AutonomySettings["acceptOwn"],
idlePush: f.get("idlePush") === "on",
idlePushHours: Number(str(f, "idlePushHours")),
quietFrom: quiet ? hour("quietFrom") : null,
@ -383,6 +531,41 @@ export async function setAutonomyAction(f: FormData) {
});
}
/** PEP-197: «Делать» / «Не надо» on a suggested story (board, chat). */
export async function proposalAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const choice = str(f, "choice");
// PEP-209: «Объединить в одну» — the ticked proposals become one story.
if (choice === "merge") {
await mergeProposals(db, user, f.getAll("pick").map(Number).filter((n) => Number.isInteger(n) && n > 0));
return;
}
if (choice !== "do" && choice !== "no" && choice !== "important" && choice !== "none") throw new PeppaError(m("Эта кнопка уже не работает."));
const ids = str(f, "ids").split(",").map(Number).filter((n) => Number.isInteger(n) && n > 0);
await decideProposals(db, user, ids, choice);
});
}
/** PEP-302: «Делать» / «Не надо» at a finding put aside until the weekly digest. */
export async function deferredAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const choice = str(f, "choice");
if (choice !== "do" && choice !== "no") throw new PeppaError(m("Эта кнопка уже не работает."));
await decideDeferred(db, user, Number(str(f, "projectId")), str(f, "title"), choice);
});
}
/** PEP-197: «Принимать сами» — whose stories are accepted without the owner. */
export async function setAcceptOwnAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await setAutonomy(db, p.id, { acceptOwn: str(f, "acceptOwn") as AutonomySettings["acceptOwn"] });
});
}
export async function removeProjectMember(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
@ -394,13 +577,34 @@ export async function removeProjectMember(f: FormData) {
});
}
/** PEP-100: the pairing link for the client to open in a new tab — Peppa stays where it is. */
export async function pairingLinkAction(): Promise<{ url?: string; error?: string }> {
const user = asWebActor(await requireUser());
const token = loadEnv().TELEGRAM_BOT_TOKEN;
// Every user has their own bot: no pairing link through the shared one.
const username = user.telegramBotUsername;
const t = await getT();
if (!username) return { error: t("Сначала подключите своего бота (шаги 1–2)") };
if (!token) return { error: t("Telegram сейчас недоступен. Попробуйте через минуту.") };
return { url: `https://t.me/${username}?start=${await createPairingCode(db, token, user.id)}` };
}
export async function pairTelegram(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const token = loadEnv().TELEGRAM_BOT_TOKEN;
const bot = await getSetting<{ username: string }>(db, "telegram.bot");
if (!token || !bot) throw new PeppaError("Telegram-бот Пеппы не запущен");
return `https://t.me/${bot.username}?start=${await createPairingCode(db, token, user.id)}`;
// Every user has their own bot (PEP-85/100): the platform's bot is never offered to users.
const username = user.telegramBotUsername;
if (!username) throw new PeppaError(m("Сначала подключите своего Telegram-бота"));
if (!token) throw new PeppaError(m("Telegram сейчас недоступен. Попробуйте через минуту."));
return `https://t.me/${username}?start=${await createPairingCode(db, token, user.id)}`;
});
}
export async function unlinkGoogleAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await unlinkGoogle(db, user.id);
});
}
@ -413,6 +617,15 @@ export async function unpairTelegramAction(f: FormData) {
// ── notifications (PEP-35, PEP-55) ──────────────────────────────────────────────
/** PEP-119: «Продакт» or «Инженер» — what this user sees. */
export async function setUiModeAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await setUiMode(db, user.id, str(f, "mode"));
return "/settings?mode=saved";
});
}
/** «Настройки → Уведомления»: events × channels, quiet hours, timezone, digest, sound, projects. */
export async function saveNotifyPrefsAction(f: FormData) {
const user = asWebActor(await requireUser());
@ -422,7 +635,7 @@ export async function saveNotifyPrefsAction(f: FormData) {
const events = { ...d.events };
for (const e of NOTIFY_EVENTS) events[e] = { telegram: f.get(`${e}.telegram`) === "on", push: f.get(`${e}.push`) === "on" };
const tz = str(f, "timezone") || cur.timezone;
if (!isValidTimezone(tz)) throw new PeppaError(`Неизвестная таймзона: ${tz}`);
if (!isValidTimezone(tz)) throw new PeppaError(m("Неизвестная таймзона: {tz}", { tz }));
const shown = f.getAll("projectShown").map(Number);
const enabled = new Set(f.getAll("project").map(Number));
// Projects not on the form (no access any more) keep their old state.
@ -462,9 +675,10 @@ export async function deletePushSubscriptionAction(endpoint: string) {
export async function testPushAction(endpoint: string): Promise<{ ok: boolean; error?: string }> {
const user = asWebActor(await requireUser());
const sub = (await userPushSubscriptions(db, user.id)).find((s) => s.endpoint === endpoint);
if (!sub) return { ok: false, error: "Этот браузер не подписан" };
const t = await getT();
if (!sub) return { ok: false, error: t("Этот браузер не подписан") };
const prefs = await getNotifyPrefs(db, user.id);
const r = await sendWebPush(db, sub, { title: "Пеппа", body: "Уведомления в этом браузере работают ✅", url: "/settings#notifications", tag: "test", sound: prefs.sound });
const r = await sendWebPush(db, sub, { title: PRODUCT_NAME, body: t("Уведомления в этом браузере работают ✅"), url: "/settings#notifications", tag: "test", sound: prefs.sound });
if (r.ok) return { ok: true };
if (r.gone) await deletePushSubscription(db, user.id, endpoint);
return { ok: false, error: r.error };
@ -475,7 +689,7 @@ export async function testPushAction(endpoint: string): Promise<{ ok: boolean; e
async function incidentInProject(userId: number, f: FormData) {
const p = await projectForUser(db, userId, Number(str(f, "projectId")));
const i = await getIncident(db, Number(str(f, "incidentId")));
if (i.projectId !== p.id) throw new PeppaError("Не найдено");
if (i.projectId !== p.id) throw new PeppaError(m("Не найдено"));
return i;
}
@ -483,11 +697,22 @@ export async function connectErrorTrackingAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
if (p.ownerId !== user.id) throw new PeppaError("Подключает владелец проекта");
if (!(await managesProject(db, user, p))) throw new PeppaError(m("Подключает владелец проекта"));
await connectErrorTracking(db, p, bugsinkFromEnv(), bugsinkWebhookBase());
});
}
/** PEP-295: the owner's exception — errors of the product go to work without «Делать». */
export async function setDirectIncidentsAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
if (p.ownerId !== user.id && !(await isSuperadmin(db, user))) throw new PeppaError(m("Это решает владелец проекта."));
const rest = (await getDirectOrigins(db, p.id)).filter((o) => o !== "incident");
await setDirectOrigins(db, p.id, str(f, "on") === "yes" ? [...rest, "incident"] : rest);
});
}
export async function saveIncidentSettings(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
@ -521,7 +746,7 @@ export async function decideIncidentAction(f: FormData) {
await attempt(f, async () => {
const i = await incidentInProject(user.id, f);
const action = str(f, "action");
if (action !== "backlog" && action !== "start" && action !== "ignore") throw new PeppaError("Неизвестное решение");
if (action !== "backlog" && action !== "start" && action !== "ignore") throw new PeppaError(m("Неизвестное решение"));
await decideIncident(db, i.id, action, user.login);
});
}
@ -539,49 +764,41 @@ export async function resolveIncidentAction(f: FormData) {
/** Superadmin-only actions: everybody else gets "not found", nothing changes. */
async function requireSuperadmin() {
const user = asWebActor(await requireUser());
if (!(await isSuperadmin(db, user))) throw new PeppaError("Не найдено");
if (!(await isSuperadmin(db, user))) throw new PeppaError(m("Не найдено"));
return user;
}
export async function createLocalUserAction(f: FormData) {
await attempt(f, async () => {
await requireSuperadmin();
const u = await createLocalUser(db, { login: str(f, "login"), name: str(f, "name"), password: String(f.get("password") ?? "") });
return `/users?created=${encodeURIComponent(u.login)}`;
});
}
export async function resetUserPasswordAction(f: FormData) {
await attempt(f, async () => {
await requireSuperadmin();
const u = await getUser(db, Number(str(f, "userId")));
if (!u || !isLocalUser(u)) throw new PeppaError("Пароль задаётся только локальным пользователям");
await setUserPassword(db, u.id, String(f.get("password") ?? ""));
return `/users?reset=${encodeURIComponent(u.login)}`;
});
}
export async function setUserDisabledAction(f: FormData) {
await attempt(f, async () => {
const admin = await requireSuperadmin();
const u = await getUser(db, Number(str(f, "userId")));
if (!u) throw new PeppaError("Не найдено");
if (u.id === admin.id) throw new PeppaError("Нельзя отключить самого себя");
if (!u) throw new PeppaError(m("Не найдено"));
if (u.id === admin.id) throw new PeppaError(m("Нельзя отключить самого себя"));
await setUserDisabled(db, u.id, str(f, "disabled") === "1");
});
}
export async function changePasswordAction(f: FormData) {
const user = asWebActor(await requireUser());
/** PEP-226: appoint or remove a superadmin from «Пользователи». */
export async function setSuperadminAction(f: FormData) {
await attempt(f, async () => {
if (!isLocalUser(user)) throw new PeppaError("Вы входите через Gitea — пароль меняется там");
const next = String(f.get("newPassword") ?? "");
if (next !== String(f.get("confirm") ?? "")) throw new PeppaError("Новый пароль и повтор не совпадают");
await changeOwnPassword(db, user, String(f.get("current") ?? ""), next);
return "/settings?password=changed";
const admin = asWebActor(await requireSuperadmin());
await setSuperadmin(db, admin, Number(str(f, "userId")), str(f, "on") === "1");
});
}
/** PEP-204: merge an old account into the person's main one, after the confirmation screen. */
export async function mergeAccountsAction(f: FormData) {
await attempt(f, async () => {
// The actor is set in this frame: set inside requireSuperadmin it would not reach the journal entry.
const admin = asWebActor(await requireSuperadmin());
await mergeAccounts(db, admin, Number(str(f, "from")), Number(str(f, "to")), { confirm: str(f, "confirm") === "1", confirmAdmin: str(f, "confirmAdmin") === "1" });
return "/users";
});
}
// ── PEP-43: budgets ────────────────────────────────────────────────────────────────
const budgetFrom = (f: FormData): Budget => cleanBudget(Object.fromEntries(["minutes", "tokens", "restarts", "costUsd"].map((k) => [k, Number(str(f, k)) || null])));
@ -593,7 +810,7 @@ export async function saveTaskBudgetAction(f: FormData) {
const mode = str(f, "mode");
const budget = mode === "inherit" ? null : mode === "unlimited" ? {} : budgetFrom(f);
await setTaskBudget(db, ref.task.id, budget);
await logEvent(db, { projectId: ref.project.id, taskId: ref.task.id, type: "budget_changed", payload: { budget: budget ?? "проекта" } });
await logEvent(db, { projectId: ref.project.id, taskId: ref.task.id, type: "budget_changed", payload: { budget: budget ?? "проекта" } }); // i18n-ignore — stored value
await budgetChanged(db, ref.task.id);
});
}
@ -614,7 +831,49 @@ export async function saveProjectSecretAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
// The value is taken as is (no trim): keys may legitimately end with spaces/newlines.
await setProjectSecret(db, user.id, Number(str(f, "projectId")), str(f, "name"), String(f.get("value") ?? ""));
// PEP-253: «Кому» — only the product by default.
await setProjectSecret(db, user.id, Number(str(f, "projectId")), str(f, "name"), String(f.get("value") ?? ""), { agent: str(f, "audience") === "agent" });
});
}
// PEP-253: «только продукту» ⇄ «агенту и продукту».
export async function setSecretAudienceAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await setSecretAudience(db, user.id, Number(str(f, "projectId")), str(f, "name"), str(f, "audience") === "agent");
});
}
// PEP-253: «Сделать подключением» — a catalog connection with the secret's key, granted to the project.
export async function secretToConnectionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await secretToConnection(db, user.id, Number(str(f, "projectId")), str(f, "name"));
});
}
// PEP-253: «Агенты получают секреты в окружение».
export async function setAgentSecretsAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await setAgentSecretsEnabled(db, user.id, Number(str(f, "projectId")), str(f, "on") === "1");
});
}
// PEP-112: «чтобы заработало по-настоящему» on the «Ваш продукт» card.
export async function setNeedDoneAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const project = await projectForUser(db, user.id, Number(str(f, "projectId")));
await setNeedDone(db, project.id, str(f, "id"), str(f, "done") !== "0");
});
}
export async function removeNeedAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const project = await projectForUser(db, user.id, Number(str(f, "projectId")));
await removeNeed(db, project.id, str(f, "id"));
});
}
@ -656,3 +915,291 @@ export async function checkGiteaTokenAction(f: FormData) {
return `/secrets?gitea=${encodeURIComponent(r.ok ? `ok:${r.login}` : r.problems.join("; "))}`;
});
}
// ── PEP-73: the project's AGENTS.md ──────────────────────────────────────────────
export async function saveAgentsMdAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await saveAgentsMd(db, user, p, String(f.get("text") ?? ""), str(f, "sha") || null);
return `/p/${p.key}?tab=agents&saved=1`;
});
}
// ── PEP-76: what the project's agents run on ───────────────────────────────────────
export async function chooseSharedSubscriptionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await chooseSharedSubscription(db, user, await projectForUser(db, user.id, Number(str(f, "projectId"))));
});
}
/** PEP-186: «Попросить подписку у администратора». */
export async function requestSubscriptionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await requestSubscription(db, user, await projectForUser(db, user.id, Number(str(f, "projectId"))), new Date(), { ahead: str(f, "ahead") === "1" });
});
}
export async function connectOwnSubscriptionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const kind = str(f, "kind") as OwnSubscriptionKind;
if (!["claude_login", "claude", "codex_login", "codex_key", "existing"].includes(kind)) throw new PeppaError(m("Выберите, что подключить"));
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await connectOwnSubscription(db, user, p, kind, String(f.get("secret") ?? ""));
});
}
/** PEP-82: step 3 of the Claude sign-in on the project page. */
export async function finishOwnClaudeLoginAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await finishOwnClaudeLogin(db, user, p, Number(str(f, "subscriptionId")), str(f, "code"), str(f, "account"));
});
}
export async function cancelOwnLoginAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await cancelOwnLogin(db, user, p, Number(str(f, "subscriptionId")));
});
}
/** PEP-107: «Убрать» one of the user's own subscriptions from the project's pool. */
export async function removeOwnSubscriptionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await removeOwnSubscription(db, user, p, Number(str(f, "subscriptionId")));
});
}
// ── PEP-84: «продакт» and «аналитик» ───────────────────────────────────────────────
export async function saveIntakeSettingsAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
await setIntakeSettings(db, p.id, { enabled: f.get("enabled") === "on" });
});
}
// ── PEP-85: the user's own Telegram bot ────────────────────────────────────────────
export async function connectOwnBotAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await setUserBot(db, user.id, String(f.get("token") ?? ""));
// On the Home page the next step (Start) shows right there.
return str(f, "back") === "/" ? "/" : "/settings?bot=connected#telegram";
});
}
export async function disconnectOwnBotAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await clearUserBot(db, user.id);
return str(f, "back") === "/" ? "/" : "/settings#telegram";
});
}
// ── PEP-143: users' reports about Peppa — the superadmin decides ─────────────────────
export async function fixFeedbackAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await fixFeedback(db, user, Number(str(f, "feedbackId")), Number(str(f, "option")));
});
}
export async function linkFeedbackAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await linkFeedback(db, user, Number(str(f, "feedbackId")), str(f, "task") || null);
});
}
export async function rejectFeedbackAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await rejectFeedback(db, user, Number(str(f, "feedbackId")), str(f, "reason") || null);
});
}
// PEP-234 Access Hub: the user's own connections. Every core function checks the owner itself.
// PEP-249: catalog cards, a key check right after saving, read / write modes.
const checkWord = (r: ConnectionCheckResult | null) => (!r ? "down" : r.reachableOnly ? "reachable" : r.status);
const AUTH_KINDS: CatalogAuth[] = ["bearer", "header", "query", "basic"];
// PEP-251: the form fields of a database / server / storage / mailbox (never the secret).
const PROTOCOL_FIELDS = ["host", "port", "database", "user", "tls", "root", "hostKey", "endpoint", "region", "bucket", "prefix", "accessKeyId", "imapHost", "imapPort", "smtpHost", "smtpPort", "from"];
export async function createConnectionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const protocol = str(f, "protocol");
if (isGatewayProtocol(protocol)) {
const config = Object.fromEntries(PROTOCOL_FIELDS.filter((k) => f.has(k)).map((k) => [k, str(f, k)]));
// An SSH key keeps its line breaks; a password is one line.
const raw = String(f.get("secret") ?? "");
const secret = protocol === "ssh" && raw.includes("-----BEGIN") ? `${raw.replace(/\r\n/g, "\n").trim()}\n` : raw.trim();
const c = await createConnection(db, user.id, { protocol, name: str(f, "name"), config, secret });
const r = await checkConnection(db, user.id, c.id).catch(() => null);
return `/connections?created=${c.id}&check=${checkWord(r)}#c${c.id}`;
}
const kind = str(f, "authKind") as CatalogAuth;
const c = await createConnection(db, user.id, {
catalogId: str(f, "catalogId") || null,
name: str(f, "name"),
baseUrl: str(f, "baseUrl"),
secret: String(f.get("secret") ?? "").trim(),
authKind: AUTH_KINDS.includes(kind) ? kind : "bearer",
authHeader: str(f, "authHeader") || null,
});
const r = await checkConnection(db, user.id, c.id).catch(() => null);
return `/connections?created=${c.id}&check=${checkWord(r)}#c${c.id}`;
});
}
export async function checkConnectionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "connectionId"));
const r = await checkConnection(db, user.id, id);
return `/connections?checked=${id}&check=${checkWord(r)}#c${id}`;
});
}
export async function replaceConnectionSecretAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "connectionId"));
const raw = String(f.get("secret") ?? "");
await replaceConnectionSecret(db, user.id, id, raw.includes("-----BEGIN") ? `${raw.replace(/\r\n/g, "\n").trim()}\n` : raw.trim());
const r = await checkConnection(db, user.id, id).catch(() => null);
return `/connections?checked=${id}&check=${checkWord(r)}#c${id}`;
});
}
export async function resetHostKeyAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "connectionId"));
await resetHostKey(db, user.id, id);
const r = await checkConnection(db, user.id, id).catch(() => null);
return `/connections?checked=${id}&check=${checkWord(r)}#c${id}`;
});
}
export async function revokeConnectionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "connectionId"));
const r = await revokeConnection(db, user.id, id);
// PEP-252: the service didn't confirm the revoke of a sign-in — tell the owner to do it there too.
if (r.remote === "failed") return `/connections?revoked=${id}&remote=failed#c${id}`;
});
}
export async function deleteConnectionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await deleteConnection(db, user.id, Number(str(f, "connectionId")));
return "/connections";
});
}
export async function grantConnectionAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const agent = str(f, "agentId");
const mode = (k: string): GrantMode => (["auto", "ask"].includes(str(f, k)) ? (str(f, k) as GrantMode) : "off");
await grantConnection(db, user.id, Number(str(f, "connectionId")), { projectId: Number(str(f, "projectId")), agentId: agent ? Number(agent) : null, readMode: mode("readMode"), writeMode: mode("writeMode"), operations: String(f.get("operations") ?? ""), term: isGrantTerm(str(f, "term")) ? (str(f, "term") as GrantTerm) : DEFAULT_GRANT_TERM });
});
}
/** PEP-259 «Продлить»: the same term again from now. */
export async function extendGrantAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await extendGrant(db, user.id, Number(str(f, "grantId")));
});
}
/** PEP-259: the owner's answer to «агенты давно не пользуются — снять?»: «Снять» / «Оставить». */
export async function decideIdleGrantAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await decideIdleGrant(db, user.id, Number(str(f, "grantId")), str(f, "decision") === "revoke" ? "revoke" : "keep");
});
}
/** PEP-259: «Спрашивать о разрешении без дела через …» of one connection ("" — platform default). */
export async function setConnectionIdleAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const v = str(f, "idleHours");
await setConnectionIdleHours(db, user.id, Number(str(f, "connectionId")), v === "" ? null : Number(v));
});
}
// PEP-261: rights and term chosen by the owner («Дать: чтение / полные права», срок — 1 день по умолчанию).
function grantChoice(f: FormData): { rights?: "read" | "full"; term: GrantTerm } {
const rights = str(f, "rights");
return { rights: rights === "full" || rights === "read" ? rights : undefined, term: isGrantTerm(str(f, "term")) ? (str(f, "term") as GrantTerm) : DEFAULT_GRANT_TERM };
}
// PEP-250: an agent's access request — only its project's owner decides (core checks).
export async function connectAccessRequestAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "requestId"));
const kind = str(f, "authKind") as CatalogAuth;
const { connection } = await connectAndGrantAccessRequest(db, user.id, id, {
name: str(f, "name"),
baseUrl: str(f, "baseUrl") || undefined,
secret: String(f.get("secret") ?? "").trim(),
authKind: AUTH_KINDS.includes(kind) ? kind : "bearer",
authHeader: str(f, "authHeader") || null,
}, grantChoice(f));
const r = await checkConnection(db, user.id, connection.id).catch(() => null);
return `/connections/requests/${id}?done=granted&check=${checkWord(r)}`;
});
}
export async function grantAccessRequestAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "requestId"));
await grantAccessRequestFromExisting(db, user.id, id, Number(str(f, "connectionId")), grantChoice(f));
return `/connections/requests/${id}?done=granted`;
});
}
/** PEP-261: «Дать: чтение / полные права» with a term in «Агенты просят доступ». */
export async function grantAccessButtonAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "requestId"));
await grantAccessRequestByButton(db, user.id, id, grantChoice(f));
return `/connections/requests/${id}?done=granted`;
});
}
export async function denyAccessRequestAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const id = Number(str(f, "requestId"));
await denyAccessRequestAndTell(db, user.id, id, str(f, "reason") || null);
return `/connections/requests/${id}?done=denied`;
});
}
export async function revokeGrantAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
await revokeGrant(db, user.id, Number(str(f, "grantId")));
});
}

View File

@ -8,6 +8,7 @@ import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { m } from "@peppa/shared/i18n";
const str = (f: FormData, k: string) => String(f.get(k) ?? "").trim();
@ -16,7 +17,7 @@ async function attempt(f: FormData, fn: () => Promise<string | void>): Promise<n
try {
target = (await fn()) || target;
} catch (e) {
const msg = e instanceof PeppaError ? e.message : `Ошибка: ${(e as Error).message}`;
const msg = e instanceof PeppaError ? e.message : m("Ошибка: {message}", { message: (e as Error).message });
const [path, query] = target.split("?");
const params = new URLSearchParams(query);
params.set("error", msg.slice(0, 300));
@ -40,7 +41,7 @@ export async function reorderTaskCard(f: FormData) {
const to = str(f, "to");
if (to === "top" || to === "bottom") await reorderBoardTask(db, ref, { to });
else if (to === "before" || to === "after") await reorderBoardTask(db, ref, { to, other: await ownedTask(user.id, str(f, "other")) });
else throw new PeppaError("Неизвестное место");
else throw new PeppaError(m("Неизвестное место"));
});
}
@ -84,7 +85,7 @@ export async function planEpicAction(f: FormData) {
const p = await projectForUser(db, user.id, Number(str(f, "projectId")));
const epic = await getEpic(db, p.id, Number(str(f, "epicId")));
const r = await planEpic(db, p, epic.id, { wishes: str(f, "wishes") || null, by: user.login });
if (!r.ok) throw new PeppaError(`Планировщик: ${r.error}`);
if (!r.ok) throw new PeppaError(m("Планировщик: {error}", { error: r.error }));
});
}
@ -97,12 +98,12 @@ export async function applyPlanAction(f: FormData) {
// Plan numbers in the form refer to the full draft; renumber them for the kept stories.
const kept: number[] = [];
for (let i = 1; i <= n; i++) if (f.get(`keep_${i}`)) kept.push(i);
if (!kept.length) throw new PeppaError("Не выбрано ни одной стори");
if (!kept.length) throw new PeppaError(m("Не выбрано ни одной задачи. Отметьте хотя бы одну."));
const renum = new Map(kept.map((orig, i) => [orig, i + 1]));
const stories: PlannedStory[] = kept.map((i) => {
const deps = parseDepsInput(str(f, `deps_${i}`)).map((d): PlanDep => {
if (typeof d !== "number") return d;
if (!renum.has(d)) throw new PeppaError(`Стори ${i} зависит от №${d}, которую вы сняли — уберите зависимость или оставьте стори`);
if (!renum.has(d)) throw new PeppaError(m("Задача {i} зависит от №{d}, которую вы сняли. Уберите зависимость или оставьте задачу.", { i, d }));
return renum.get(d)!;
});
return { title: str(f, `title_${i}`), description: str(f, `description_${i}`), dependsOn: deps };

View File

@ -0,0 +1,544 @@
import Link from "@/components/Link";
import { notFound } from "next/navigation";
import { ArrowLeft, Bot, Link2, MessagesSquare, Send, Unlink, User as UserIcon } from "lucide-react";
import { ANALYST_NAME, analystPending, attachmentsByMessage, chatStatusLine, isSuperadmin, chatGroupBotName, chatMessagesView, chatTtlMs, discussionMessages, discussionUnread, getSetting, listChats, markDiscussionRead, markThreadRead, masterFeed, projectThreadList, splitForDisplay, syncChats, threadTitle, THREAD_KEY, type AttachmentView, type ChatMessageView, type Question } from "@peppa/core";
import { projects, questions, tasks } from "@peppa/db";
import { formatTaskKey } from "@peppa/shared";
import { PRODUCT_NAME, stripAsIs } from "@peppa/shared/i18n";
import { eq, inArray } from "drizzle-orm";
import { LiveRefresh } from "@/components/LiveRefresh";
import { AgentBadge } from "@/components/AgentBadge";
import { ChatThreadList } from "@/components/ChatThreadList";
import { ChatScroll } from "@/components/ChatScroll";
import { ChatLiveFeed } from "@/components/ChatLiveFeed";
import { ChatSwitch } from "@/components/ChatSwitch";
import { ago, Empty, Flash, linkify, StatusBadge } from "@/components/common";
import { Hidden, QuestionCard } from "@/components/cards";
import { ProposalList } from "@/components/ProposalList";
import { Dictate } from "@/components/Dictate";
import { Attachments } from "@/components/Attachments";
import { AttachField } from "@/components/AttachField";
import { Workspace } from "@/components/Workspace";
import { Button } from "@/components/ui/button";
import { Textarea } from "@/components/ui/input";
import { currentUser, requireUser, words } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
import { cn } from "@/lib/utils";
import { cleanText, messageLink, STUCK_NOTICE } from "@/lib/chat-text";
import { chatOfferAction, linkChatAction, postChatAction, unlinkChatAction } from "../actions";
import { pageTitle } from "@/lib/title";
type Params = { error?: string; thread?: string; link?: string; q?: string; list?: string };
const CHANNEL = "channel";
/** PEP-106: `?thread=feed` — the agents' events; no `thread` — the people's discussion. */
const FEED = "feed";
// PEP-274: «Чат KEY — FORGE» (the chat list of the viewer — no names of chats they cannot see).
export async function generateMetadata({ params }: { params: Promise<{ chat: string }> }) {
const t = await getT();
const user = await currentUser();
const slug = (await params).chat;
const chat = user ? (await listChats(db, user)).find((c) => c.slug.toLowerCase() === slug.toLowerCase()) : null;
if (!chat) return pageTitle(t, t("Чаты"));
return pageTitle(t, chat.kind === "master" ? t("Все события") : t("Чат {key}", { key: chat.slug.toUpperCase() }));
}
/** «Чаты» (PEP-62): the master chat and project chats with threads; a linked Telegram group mirrors them. */
export default async function ChatPage({ params, searchParams }: { params: Promise<{ chat: string }>; searchParams: Promise<Params> }) {
const user = await requireUser();
const t = await getT();
const w = await words();
const { chat: slug } = await params;
const { error, thread: rawThread, link, q, list: rawList } = await searchParams;
// Whoever renders first moves fresh events into the chats (the bot and the watchdog do it too).
await syncChats(db).catch((e) => console.error("syncChats", e));
const list = await listChats(db, user);
const chat = list.find((c) => c.slug.toLowerCase() === slug.toLowerCase());
if (!chat) notFound();
const master = chat.kind === "master";
const thread = rawThread === CHANNEL ? null : rawThread && THREAD_KEY.test(rawThread) ? rawThread : undefined;
// A project chat opens on the discussion: people talking to each other, no agents or events.
const discussion = !master && rawThread === undefined;
const unread = await discussionUnread(db, user.id);
// PEP-155: on a phone it is either the list (`?list=1`) or the open conversation, full screen.
const showList = rawList === "1";
// PEP-207: what was unread before this look — the conversation opens there.
const unreadBefore = discussion ? (unread.get(chat.id) ?? 0) : null;
const threads = master ? null : await projectThreadList(db, user, chat, { q });
if (discussion && !showList) await markDiscussionRead(db, user.id, chat.id);
if (thread && !master && !showList) await markThreadRead(db, user.id, chat.id, thread);
// PEP-110: a person's message the analyst has not answered yet — «печатает…».
const typing = discussion && (await analystPending(db, chat.id));
const rows = threads ? [...threads.waiting, ...threads.working, ...threads.done] : [];
const messages = master
? await masterFeed(db, user, { limit: 150 })
: discussion
? await discussionMessages(db, chat.id)
: await chatMessagesView(db, chat.id, { threadKey: thread, limit: 150 });
const files = await attachmentsByMessage(db, messages.map((m) => m.id));
const current = thread ? ((await threadTitle(db, thread)) ?? thread) : null;
// Live state of the questions in view (answer buttons, «отвечено» marks).
const qIds = messages.map((m) => m.question?.id).filter((x): x is number => x != null);
const qs = qIds.length
? await db.select({ q: questions, status: tasks.status, key: projects.key, number: tasks.number }).from(questions).innerJoin(projects, eq(questions.projectId, projects.id)).leftJoin(tasks, eq(questions.taskId, tasks.id)).where(inArray(questions.id, qIds))
: [];
const qById = new Map(qs.map((r) => [r.q.id, { q: r.q as Question, taskStatus: r.status, taskKey: r.number != null ? formatTaskKey(r.key, r.number) : null }]));
const base = `/chats/${chat.slug}`;
const url = (p: { thread?: string | null; list?: boolean }) => {
const params = new URLSearchParams();
if (p.thread) params.set("thread", p.thread);
if (threads?.q) params.set("q", threads.q);
if (p.list) params.set("list", "1");
return params.size ? `${base}?${params}` : base;
};
const openRow = thread ? rows.find((r) => r.key === thread) : undefined;
const here = discussion ? url({}) : url({ thread: thread === null ? CHANNEL : (thread ?? FEED) });
// PEP-109: a group is linked through the user's own bot. The platform's bot is the superadmin's
// (users never see it) and links groups only for a superadmin without a bot of their own.
const superadmin = await isSuperadmin(db, user);
const bot = user.telegramBotUsername ?? (superadmin ? ((await getSetting<{ username: string }>(db, "telegram.bot"))?.username ?? null) : null);
const mayLink = !!user.telegramBotUsername || superadmin;
const groupBot = chat.tgTitle ? await chatGroupBotName(db, chat.id) : null;
const ttlDays = Math.round(chatTtlMs() / 86_400_000);
const taskThread = thread?.startsWith("task:");
const placeholder = master
? w.engineer ? "/status, /task KEY-N, /move KEY-N in_progress, /help" : t("Заметка для себя")
: discussion
? t("Спросите аналитика, что с проектом, или опишите идею — он поможет сформулировать {task}…", { task: w.task("acc") })
: taskThread
? t("Напишите агенту этой {task} — ответ на его вопрос или замечание, он увидит сразу", { task: w.task("gen") })
: thread
? w.engineer ? t("Заметка в тред или команда /help") : t("Заметка к этой переписке")
: w.engineer ? t("Заметка в канал или команда: /status, /task KEY-N, /move KEY-N in_progress") : t("Заметка для себя и участников проекта");
const aside = (
<div className="flex flex-col gap-5 text-sm">
<section className="flex flex-col gap-2">
<h2 className="m-0 text-[15px] font-semibold">Telegram</h2>
<p className="m-0 text-muted-foreground">
{user.telegramBotUsername ? (
<>
{t("Новые сообщения обсуждения и вопросы агентов приходят в ваш бот")} <span className="font-mono text-foreground">@{user.telegramBotUsername}</span>.
</>
) : (
<>
{t("Чтобы новые сообщения приходили в Telegram, подключите своего бота:")} <Link href="/settings#telegram">{t("Настройки → Telegram")}</Link>.
</>
)}
</p>
</section>
<section className="flex flex-col gap-2">
<h2 className="m-0 text-[15px] font-semibold">{t("Telegram-группа")}</h2>
{chat.tgTitle ? (
<>
<p className="m-0 text-muted-foreground">
{t("Связан с группой")} <b className="text-foreground">{chat.tgTitle}</b>
{groupBot && (
<>
{" "}
{t("через бота")} <span className="font-mono text-foreground">@{groupBot}</span>
</>
)}
.{" "}
{master
? t("Сообщения чата приходят туда, треды — цепочками ответов; ответ реплаем уходит в тред.")
: t("Сообщения чата приходят туда, треды — цепочками ответов; ответ реплаем уходит в тред (в переписке по {task} — агенту).", { task: w.task("dat") })}
</p>
<form action={unlinkChatAction}>
<Hidden fields={{ chatId: chat.id, back: here }} />
<Button size="sm" variant="outline">
<Unlink />
{t("Отвязать группу")}
</Button>
</form>
</>
) : !mayLink ? (
<p className="m-0 text-muted-foreground">
{master ? t("Мастер-чат можно связать с группой Telegram — туда пойдёт всё важное по вашим проектам.") : t("Чат проекта можно связать с группой команды в Telegram.")}{" "}
{t("Группа подключается через вашего собственного бота — сначала подключите его:")} <Link href="/settings#telegram">{t("Настройки → Telegram")}</Link>.
</p>
) : link ? (
<div className="flex flex-col gap-2 rounded-lg border bg-card p-3">
<p className="m-0">{t("Код действует 10 минут.")}</p>
{bot && (
<a href={`https://t.me/${bot}?startgroup=${encodeURIComponent(link)}`} target="_blank" rel="noreferrer" className="font-medium">
{t("Добавить @{bot} в группу →", { bot })}
</a>
)}
<p className="m-0 text-muted-foreground">{t("Или добавьте {bot} в группу сами и отправьте там:", { bot: bot ? `@${bot}` : t("бота") })}</p>
<code className="rounded bg-muted px-2 py-1 font-mono text-xs break-all select-all">/link{bot ? `@${bot}` : ""} {link}</code>
</div>
) : (
<>
<p className="m-0 text-muted-foreground">
{master ? t("Свяжите мастер-чат с группой — туда пойдёт всё важное по вашим проектам.") : t("Свяжите чат проекта с группой команды — по ней сразу видно, к какому проекту сообщение.")}
{bot && (
<>
{" "}
{t("В группу добавится ваш бот")} <span className="font-mono text-foreground">@{bot}</span>.
</>
)}
</p>
<form action={linkChatAction}>
<Hidden fields={{ chatId: chat.id, back: here }} />
<Button size="sm" variant="outline">
<Link2 />
{t("Связать с Telegram")}
</Button>
</form>
</>
)}
<p className="m-0 text-xs text-muted-foreground">{t("Отвечать из группы могут те, кто привязал Telegram в «Настройках» и имеет доступ к {target}.", { target: master ? t("мастер-чату (только вы)") : t("проекту") })}</p>
</section>
<section className="flex flex-col gap-1.5 text-xs text-muted-foreground">
<h2 className="m-0 text-[15px] font-semibold text-foreground">{t("Как это устроено")}</h2>
<p className="m-0">
{master
? t("Журнал: готовые {tasks}, вопросы, обновления продукта и сбои по всем вашим проектам. Отвечать удобнее в «Обзоре» или в чате проекта.", { tasks: w.task("pl") })
: t("Слева: чат с аналитиком — для вопросов и новых задач; «События агентов» — журнал; ниже — переписка по каждой {task} с её агентом.", { task: w.task("dat") })}
</p>
<p className="m-0">{t("Журнал событий хранится {n} дн.; ваша переписка с аналитиком не удаляется.", { n: ttlDays })}</p>
</section>
</div>
);
// PEP-207: the chat with the analyst holds people and the analyst; the factory's service notices
// («задерживается на нашей стороне») are the status line on top, not messages — old ones included.
const shownMessages = discussion ? messages.filter((m) => !(m.authorKind !== "user" && STUCK_NOTICE.test(stripAsIs(m.text)))) : messages;
const status = discussion && chat.projectId ? await chatStatusLine(db, chat.projectId) : null;
// PEP-207: oldest first, newest at the bottom — the first unread message is where the reader lands.
const ordered = [...shownMessages];
const unreadCount = discussion ? (unreadBefore ?? 0) : (openRow?.unread ?? 0);
const counted = (m: ChatMessageView) => (discussion ? m.authorUserId !== user.id : m.kind === "question" || (m.kind === "user" && m.authorKind !== "user"));
let firstUnreadId: number | null = null;
if (unreadCount > 0) {
let left = unreadCount;
for (let i = ordered.length - 1; i >= 0 && left > 0; i--) {
if (!counted(ordered[i]!)) continue;
firstUnreadId = ordered[i]!.id;
left--;
}
}
const groups = groupMessages(ordered, !discussion && !master);
const taskStatus = openRow?.status ?? null;
const writable = !(master || (!discussion && thread === undefined));
// PEP-207: superadmins see the raw journal on its own page; this view is cleaned for everybody.
const gitea = (process.env.GITEA_URL ?? "").replace(/\/+$/, "");
const options = [...list.filter((c) => c.kind === "project"), ...list.filter((c) => c.kind === "master")].map((c) => {
const name = c.kind === "master" ? t("Все события") : c.title.includes(" · ") ? c.title.split(" · ").slice(1).join(" · ") : c.slug;
const marks = [(unread.get(c.id) ?? 0) > 0 && c.id !== chat.id ? t("{n} нов.", { n: unread.get(c.id) ?? 0 }) : null, c.open > 0 ? `${c.open} ?` : null].filter(Boolean).join(" · ");
return { slug: c.slug, label: marks ? `${c.kind === "master" ? name : `${c.slug} · ${name}`} (${marks})` : c.kind === "master" ? name : `${c.slug} · ${name}` };
});
const feed = ordered.length === 0 ? (
<Empty>{discussion ? t("Напишите, что хотите узнать или сделать, — аналитик ответит здесь же. Например: «Что сейчас в работе?» или «Хочу страницу с отзывами клиентов».") : master ? t("Пока тихо: здесь появятся вопросы агентов, сбои и обновления ваших проектов.") : thread === undefined ? t("Сообщений пока нет: они появятся, когда агенты возьмутся за {tasks}.", { tasks: w.task("accPl") }) : t("В этом треде пока пусто.")}</Empty>
) : (
<ol data-chat-messages className="m-0 flex list-none flex-col gap-2 p-0 pr-12 md:pr-14">
{groups.map((g) =>
g.kind === "events" ? (
<li key={`e${g.items[0]!.id}`}>
<EventLines items={g.items} firstUnreadId={firstUnreadId} taskStatus={taskStatus} agentName={openRow?.agentName ?? null} masterView={master} showThread={!discussion && thread === undefined} superadmin={superadmin} gitea={gitea} />
</li>
) : (
<li key={g.m.id} data-first-unread={g.m.id === firstUnreadId ? "" : undefined} className={cn("flex", discussion && g.m.authorUserId === user.id && g.m.kind === "user" ? "justify-end" : "justify-start")}>
<div className={cn("min-w-0", g.m.question ? "w-full" : "max-w-[85%]")}>
<MessageItem files={files.get(g.m.id)} m={g.m} q={g.m.question ? qById.get(g.m.question.id) : undefined} back={here} showThread={!discussion && thread === undefined} masterView={master} mine={discussion && g.m.authorUserId === user.id} agentName={openRow?.agentName ?? null} superadmin={superadmin} gitea={gitea} />
</div>
</li>
),
)}
</ol>
);
return (
<Workspace aside={null} wide>
{/* PEP-228: a project chat draws its new messages in place (ChatLiveFeed) and re-renders only for
what it can't draw; the master feed gathers every project and re-renders. */}
<LiveRefresh scope={master ? "chats" : `chat:${chat.id}`} indicator={false} />
<Flash error={error} />
<h1 className="sr-only">{t("Чаты")}</h1>
<div className="grid gap-4 lg:grid-cols-[300px_minmax(0,1fr)]">
<div className={cn("flex min-w-0 flex-col gap-2 lg:sticky lg:top-4 lg:max-h-[calc(100dvh-2rem)] lg:self-start lg:overflow-y-auto", !showList && "max-lg:hidden")}>
<Link href="/chats" className="text-sm text-muted-foreground hover:text-foreground">{t("Все чаты")}</Link>
<ChatSwitch current={chat.slug} options={options} />
{threads ? (
<ChatThreadList base={base} list={threads} active={thread ?? null} discussion={discussion} feed={!discussion && thread === undefined} raw={rawThread ?? null} />
) : (
<p className="m-0 rounded-lg border bg-card/50 p-3 text-sm text-muted-foreground">{t("Все события по вашим проектам — справочно. Чтобы ответить или написать, выберите проект.")}</p>
)}
{master && superadmin && (
<Link href="/journal" className="text-sm">{t("Полный журнал платформы →")}</Link>
)}
<details className="rounded-lg border bg-card/50 p-3 text-sm">
<summary className="cursor-pointer text-muted-foreground">Telegram</summary>
<div className="mt-3">{aside}</div>
</details>
</div>
<section className={cn("flex min-w-0 flex-col gap-3", showList && "max-lg:hidden")} aria-label={t("Сообщения")}>
<div className="flex flex-wrap items-center gap-2 text-sm">
<Link href={master ? "/chats" : url({ thread: rawThread, list: true })} aria-label={t("Назад")} title={t("Назад")} className="grid size-9 shrink-0 place-items-center rounded-md border bg-card text-muted-foreground hover:text-foreground hover:no-underline lg:hidden">
<ArrowLeft className="size-4" />
</Link>
<span className="min-w-0 truncate font-medium">{current ? t.text(current) : master ? t("Все события") : discussion ? t("Чат с аналитиком") : t("События агентов")}</span>
{openRow?.status && <StatusBadge status={openRow.status} />}
{openRow?.agentName && <AgentBadge name={openRow.agentName} />}
{taskThread && <TaskLink messages={messages} label={t("открыть {task} →", { task: w.task("acc") })} />}
</div>
{status && status.working.length + status.delayed.length > 0 && (
<details data-chat-status className="rounded-lg border bg-card/50 px-3 py-2 text-sm">
<summary className="cursor-pointer text-muted-foreground">
{status.delayed.length
? t("Сейчас: делается {n}, задерживаются на нашей стороне {m}", { n: status.working.length, m: status.delayed.length })
: t("Сейчас: делается {n}", { n: status.working.length })}
</summary>
<ul className="m-0 mt-2 flex list-none flex-col gap-1 p-0">
{[...status.delayed.map((r) => ({ ...r, delayed: true })), ...status.working.map((r) => ({ ...r, delayed: false }))].map((r) => (
<li key={r.key} className="flex gap-2">
<Link href={`/t/${r.key}`} className="font-mono text-xs">{r.key}</Link>
<span className="min-w-0 truncate">{r.title}</span>
{r.delayed && <span className="shrink-0 text-xs text-warn">{t("небольшая задержка на нашей стороне")}</span>}
</li>
))}
</ul>
</details>
)}
{!writable && (
<p className="m-0 rounded-lg border border-dashed px-3 py-2 text-sm text-muted-foreground">
{t("Это журнал событий — писать сюда не нужно.")}{" "}
{master ? <Link href="/chats">{t("Выберите проект")}</Link> : <Link href={url({})}>{t("Откройте чат с аналитиком")}</Link>}{t(", чтобы задать вопрос или описать задачу.")}
</p>
)}
{master ? (
<>
{feed}
<div data-chat-end />
<ChatScroll lastId={ordered.at(-1)?.id ?? 0} />
</>
) : (
<ChatLiveFeed
chatId={chat.id}
lastId={messages.at(-1)?.id ?? 0}
view={discussion ? { kind: "discussion" } : thread === undefined ? { kind: "feed" } : thread === null ? { kind: "channel" } : { kind: "thread", key: thread }}
userId={user.id}
compact={!discussion}
showThread={!discussion && thread === undefined}
agentName={openRow?.agentName ?? null}
empty={ordered.length === 0}
typing={
typing ? (
<p className="m-0 flex items-center gap-2 text-sm text-muted-foreground" aria-live="polite">
<AgentBadge name={ANALYST_NAME} role /> <span className="animate-pulse">{t("печатает…")}</span>
</p>
) : null
}
>
{feed}
</ChatLiveFeed>
)}
{writable && (
<form action={postChatAction} data-chat-composer className="sticky bottom-[calc(4rem+env(safe-area-inset-bottom))] z-20 -mx-1 flex flex-col gap-1 rounded-lg border bg-card p-2 shadow-md md:bottom-3">
<Hidden fields={{ chatId: chat.id, thread: thread ?? "", back: here }} />
{/* PEP-274 (F-12): on a phone the field takes the whole row (the hint is not cut), the buttons go below, each ≥ 44 px. */}
<div className="flex flex-wrap items-end gap-1.5 md:flex-nowrap">
<Textarea id="chat-text" name="text" rows={1} maxLength={60000} placeholder={placeholder} aria-label={t("Сообщение")} className="max-h-40 min-h-[4.25rem] flex-1 basis-full resize-y py-1.5 [field-sizing:content] md:min-h-9 md:basis-0" data-chat-text />
{chat.projectId && <AttachField projectId={chat.projectId} target="chat-text" className="shrink-0" touch />}
<Dictate target="chat-text" compact touch />
<Button size="sm" aria-label={t("Отправить")} title={t("Отправить")} className="ml-auto size-11 md:ml-0 md:h-9 md:w-auto" data-chat-send>
<Send />
</Button>
</div>
<span className="px-1 text-[11px] text-muted-foreground">
{discussion ? t("Переписку видят участники проекта") : thread ? t("Сообщение увидят агент и участники проекта") : t("Заметку видят участники проекта")}
{chat.tgTitle ? " · " + t("и в Telegram «{title}»", { title: chat.tgTitle }) : ""}
</span>
</form>
)}
</section>
</div>
</Workspace>
);
}
type Group = { kind: "events"; items: ChatMessageView[] } | { kind: "message"; m: ChatMessageView };
/** PEP-207: events in a row become one compact block; questions and people's / agents' words stay messages. */
function groupMessages(ordered: ChatMessageView[], compact: boolean): Group[] {
const out: Group[] = [];
for (const m of ordered) {
const event = compact && (m.kind === "event" || m.kind === "system") && !m.question;
const last = out.at(-1);
if (event && last?.kind === "events") last.items.push(m);
else out.push(event ? { kind: "events", items: [m] } : { kind: "message", m });
}
return out;
}
/** An event asks the person to do something («посмотрите и примите») — stale once the story moved on. */
const ASKS_TO_ACCEPT = /посмотрите результат и примите|check the result and accept/i;
async function EventLines({ items, firstUnreadId, taskStatus, agentName, masterView, showThread, superadmin, gitea }: { items: ChatMessageView[]; firstUnreadId: number | null; taskStatus: string | null; agentName: string | null; masterView: boolean; showThread: boolean; superadmin: boolean; gitea: string }) {
const t = await getT();
const line = (m: ChatMessageView, i: number) => {
const text = cleanText(t.text(m.text), superadmin, gitea);
const stale = ASKS_TO_ACCEPT.test(stripAsIs(m.text)) && (taskStatus !== "review" || items.slice(i + 1).length > 0);
const who = m.authorKind === "agent" ? (m.authorLogin ? t.role(m.authorLogin) : agentName) : null;
const link = messageLink(m.url, superadmin, gitea);
return (
<div key={m.id} data-event-line data-first-unread={m.id === firstUnreadId ? "" : undefined} className={cn("flex items-baseline gap-2 px-1 text-xs text-muted-foreground", stale && "opacity-60")}>
<span className="min-w-0 flex-1 break-words">
{who && <span className="mr-1.5 text-foreground/80">{who}:</span>}
<span className={cn(stale && "line-through")}>{text.split("\n")[0]}</span>
{stale && <span className="ml-1.5 no-underline">({t("уже не актуально")})</span>}
{link && (
<a href={link} className="ml-1.5">{t("открыть")}</a>
)}
</span>
{m.repeats > 0 && <span className="shrink-0 font-mono">×{m.repeats + 1}</span>}
<span className="shrink-0 font-mono">{ago(m.updatedAt ?? m.createdAt, t)}</span>
</div>
);
};
if (items.length === 1) return <div className="border-y border-dashed py-1">{line(items[0]!, 0)}</div>;
return (
<details data-event-group className="border-y border-dashed py-1" open={items.some((m) => m.id === firstUnreadId)}>
<summary className="cursor-pointer px-1 text-xs text-muted-foreground">
{t("{n} событий", { n: items.length })} · {cleanText(t.text(items.at(-1)!.text), superadmin, gitea).split("\n")[0]}
</summary>
<div className="mt-1 flex flex-col gap-1">{items.map(line)}</div>
</details>
);
}
function TaskLink({ messages, label }: { messages: ChatMessageView[]; label: string }) {
const key = messages.find((m) => m.threadTitle)?.threadTitle?.split(" · ")[0];
return key ? <Link href={`/t/${key}`} className="text-xs">{label}</Link> : null;
}
/** URLs in a message become links (the analyst points at the board, a story, a stand). */
function threadHref(m: ChatMessageView) {
return m.projectKey && m.threadKey ? `/chats/${m.projectKey}?thread=${encodeURIComponent(m.threadKey)}` : m.projectKey ? `/chats/${m.projectKey}` : null;
}
async function MessageItem({ m, q, back, showThread, masterView, mine = false, files, agentName, superadmin, gitea }: { files?: AttachmentView[]; m: ChatMessageView; q?: { q: Question; taskStatus: string | null; taskKey: string | null }; back: string; showThread: boolean; masterView: boolean; mine?: boolean; agentName: string | null; superadmin: boolean; gitea: string }) {
const t = await getT();
const where = (showThread || masterView) && (m.threadTitle || (masterView && m.projectKey));
// An event is the factory's doing even when a person's press caused it (the event's actor).
const person = m.authorKind === "user" && m.kind === "user";
const agentLabel = m.authorKind === "agent" ? (m.authorLogin ? t.role(m.authorLogin) : agentName) : null;
const link = messageLink(m.url, superadmin, gitea);
const href = threadHref(m);
const label = [masterView && m.projectKey ? m.projectKey : null, m.threadTitle ? t.text(m.threadTitle) : null].filter(Boolean).join(" · ");
const head = (
<div className="flex flex-wrap items-center gap-x-2 gap-y-0.5 text-xs text-muted-foreground">
{/* PEP-207: who speaks — a person by login, an agent by its name and icon; events always come from the factory. */}
{person ? <UserIcon className="size-3.5" /> : agentLabel ? null : m.authorKind === "agent" ? <Bot className="size-3.5" /> : <MessagesSquare className="size-3.5" />}
{agentLabel ? (
<AgentBadge name={agentLabel} className="text-foreground" />
) : (
<span className="font-medium text-foreground">{person ? (mine ? t("вы") : (m.authorLogin ?? "?")) : m.authorKind === "agent" ? t("агент") : PRODUCT_NAME}</span>
)}
{m.via === "telegram" && <span title={t("из Telegram")}>· Telegram</span>}
{where && href && (
<Link href={href} className="max-w-full truncate">
🧵 {label}
</Link>
)}
{/* PEP-151: the same event in a row is one line with a counter and the time of the last one. */}
{!q && m.repeats > 0 && <span className="rounded-full border px-1.5 font-mono tabular-nums" title={t("Повторов: {n}", { n: m.repeats })}>×{m.repeats + 1}</span>}
<span className="ml-auto font-mono">{q ? ago(m.createdAt, t) : ago(m.updatedAt ?? m.createdAt, t)}</span>
</div>
);
if (q) {
return (
<div className="flex flex-col gap-1">
{head}
<QuestionCard q={q.q} taskKey={q.taskKey} taskStatus={q.taskStatus} back={back} compact clean={!superadmin} />
</div>
);
}
// PEP-152: a message of an agent or of the factory takes at most five lines; the rest and the
// technical details open under «Подробнее». People's messages are shown whole.
// PEP-139: free text inside is marked — `t.text` translates only the factory's phrases around it.
const shown = m.kind === "user" ? { main: m.authorKind === "agent" ? cleanText(t.role(m.text), superadmin, gitea) : m.text, more: null } : splitForDisplay(cleanText(t.text(m.text), superadmin, gitea), m.details ? t.text(m.details) : null);
return (
<article className={cn("flex flex-col gap-1 rounded-lg border bg-card px-3 py-2", mine && "border-primary/30 bg-primary/10", m.kind === "system" && "border-dashed bg-transparent")}>
{head}
<p data-message-main className="m-0 text-sm break-words whitespace-pre-wrap">{linkify(shown.main)}</p>
{shown.more && (
<details data-message-details className="text-xs text-muted-foreground">
<summary className="cursor-pointer">{t("Подробнее")}</summary>
<p className="m-0 mt-1 max-h-72 overflow-auto break-words whitespace-pre-wrap">{linkify(shown.more)}</p>
</details>
)}
<Attachments files={files} />
{link && (
<a href={link} target={link.startsWith("/") ? undefined : "_blank"} rel="noreferrer" className="truncate text-xs">
{link.startsWith("/") ? t("Открыть") : link}
</a>
)}
{/* PEP-153: a question is answered, not filed — the task is one press away. */}
{m.offer?.kind === "proposals" && <ProposalList items={m.offer.items ?? []} back={back} />}
{m.offer && m.offer.kind !== "proposals" && (
<form action={chatOfferAction} className="mt-1 flex flex-wrap gap-2">
<Hidden fields={{ messageId: m.id, back }} />
{m.offer.kind === "task" && (
<Button size="sm" variant="outline" name="choice" value="task">
{t("📝 Завести как задачу")}
</Button>
)}
{m.offer.kind === "choice" && (
<>
<Button size="sm" variant="outline" name="choice" value="answer">
{t("💬 Ответить")}
</Button>
<Button size="sm" variant="outline" name="choice" value="task">
{t("📝 Завести задачу")}
</Button>
</>
)}
{/* PEP-198: the analyst's suggestions are filed only by this press. */}
{m.offer.kind === "stories" && (
<div data-suggested-stories className="flex w-full flex-col gap-2">
{(m.offer.stories ?? []).map((s, i) => (
<div key={i} className="flex flex-col gap-1 rounded-md border bg-card p-2 text-sm">
<span className="font-medium break-words">{s.title}</span>
{s.description && <span className="line-clamp-4 text-xs break-words whitespace-pre-wrap text-muted-foreground">{s.description}</span>}
</div>
))}
<div className="flex flex-wrap gap-2">
<Button size="sm" name="choice" value="stories" className="min-h-11">
{t("Завести задачи")}
</Button>
<Button size="sm" variant="outline" name="choice" value="cancel" className="min-h-11">
{t("Не надо")}
</Button>
</div>
</div>
)}
{m.offer.kind === "draft" && (
<>
<Button size="sm" name="choice" value="create">
{t("✅ Создать")}
</Button>
<Button size="sm" variant="outline" name="choice" value="cancel">
{t("✖️ Отмена")}
</Button>
</>
)}
</form>
)}
</article>
);
}

View File

@ -0,0 +1,79 @@
"use server";
// «Чаты» (PEP-62): a message into a chat/thread, Telegram group link/unlink. Access — chatForUser.
import { parseAttachmentIds, chatForUser, createChatLinkCode, isSuperadmin, markDiscussionRead, markThreadRead, PeppaError, THREAD_KEY, unlinkChat } from "@peppa/core";
import { postToChat, resolveChatOffer, type ChatOfferChoice } from "@peppa/runner";
import { loadEnv } from "@peppa/shared";
import { m } from "@peppa/shared/i18n";
import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";
import { asWebActor, requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
const str = (f: FormData, k: string) => String(f.get(k) ?? "").trim();
/** Runs an action; errors come back as ?error=… (redirect stays outside try). */
async function attempt(f: FormData, fn: () => Promise<string | void>): Promise<never> {
let target = str(f, "back") || "/chats";
try {
target = (await fn()) || target;
} catch (e) {
const msg = e instanceof PeppaError ? e.message : m("Ошибка: {message}", { message: (e as Error).message });
const [path, query] = target.split("?");
const params = new URLSearchParams(query);
params.set("error", msg.slice(0, 300));
target = `${path}?${params}`;
}
revalidatePath("/chats", "layout");
redirect(target);
}
export async function postChatAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const thread = str(f, "thread");
await postToChat(db, user, { chatId: Number(str(f, "chatId")), threadKey: thread || null, text: String(f.get("text") ?? ""), via: "web", attachmentIds: parseAttachmentIds(f.getAll("attachment")) });
});
}
/**
* PEP-228: messages drawn in place on an open chat page are read — the discussion (thread null)
* or one thread. No redirect: the page stays as it is.
*/
export async function markChatReadAction(chatId: number, thread: string | null): Promise<void> {
const user = await requireUser();
const chat = await chatForUser(db, user, Number(chatId)).catch(() => null);
if (!chat || chat.kind !== "project") return;
if (thread == null) await markDiscussionRead(db, user.id, chat.id);
else if (typeof thread === "string" && THREAD_KEY.test(thread)) await markThreadRead(db, user.id, chat.id, thread);
}
/** PEP-153: a button under a chat message — «Завести как задачу», «Ответить», «Создать», «Отмена». */
export async function chatOfferAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const choice = str(f, "choice");
if (!["task", "answer", "create", "cancel", "stories"].includes(choice)) throw new PeppaError(m("Эта кнопка уже не работает. Напишите сообщение ещё раз."));
await resolveChatOffer(db, user, Number(str(f, "messageId")), choice as ChatOfferChoice);
});
}
/** A one-time code (10 min) for `/link <код>` in a group, or the startgroup link of the user's bot that sends it. */
export async function linkChatAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, async () => {
const token = loadEnv().TELEGRAM_BOT_TOKEN;
if (!token) throw new PeppaError(m("Telegram пока не настроен. Напишите в поддержку FORGE."));
const chat = await chatForUser(db, user, Number(str(f, "chatId")));
// PEP-109: the group is linked through the user's own bot; the platform's bot is the
// superadmin's (PEP-106) and serves only a superadmin who has no bot of their own.
const code = await createChatLinkCode(db, token, user, chat.id, { sharedBot: await isSuperadmin(db, user) });
const back = str(f, "back") || "/chats";
return `${back}${back.includes("?") ? "&" : "?"}link=${encodeURIComponent(code)}`;
});
}
export async function unlinkChatAction(f: FormData) {
const user = asWebActor(await requireUser());
await attempt(f, () => unlinkChat(db, user, Number(str(f, "chatId"))));
}

View File

@ -0,0 +1,86 @@
import Link from "@/components/Link";
import { ArrowRight, MessagesSquare } from "lucide-react";
import { chatOverview, isRoleName, syncChats } from "@peppa/core";
import { LiveRefresh } from "@/components/LiveRefresh";
import { AgentBadge } from "@/components/AgentBadge";
import { QuestionCard } from "@/components/cards";
import { ago, Empty, Flash, PageHeader, Section } from "@/components/common";
import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { inbox } from "@/lib/queries";
import { getT } from "@/lib/i18n";
export async function generateMetadata() {
const t = await getT();
return { title: t("Чаты — FORGE") };
}
/**
* «Чаты» (PEP-117): the overview a product manager lands on — what waits for their answer and
* where to write to the analyst of each project. The raw feed of events lives at /chats/master.
*/
export default async function Chats({ searchParams }: { searchParams: Promise<{ error?: string }> }) {
const user = await requireUser();
const t = await getT();
const { error } = await searchParams;
await syncChats(db).catch((e) => console.error("syncChats", e));
const [cards, waiting] = await Promise.all([chatOverview(db, user), inbox(user.id)]);
return (
<Workspace>
<LiveRefresh scope="chats" />
<Flash error={error} />
<PageHeader title={t("Чаты")}>{t("Здесь вы разговариваете с фабрикой: отвечаете агентам и пишете аналитику своего проекта — что узнать или что сделать.")}</PageHeader>
<Section title={t("Ждут вашего ответа")} count={waiting.length}>
{waiting.length === 0 ? (
<Empty>{t("Сейчас от вас ничего не нужно — агенты работают сами.")}</Empty>
) : (
waiting.map((q) => <QuestionCard key={q.id} q={q} taskKey={q.taskKey} taskStatus={q.taskStatus} back="/chats" />)
)}
</Section>
<Section title={t("Ваши проекты")} count={cards.length}>
{cards.length === 0 ? (
<Empty>
{t("Проектов пока нет.")} <Link href="/projects/new">{t("Создайте проект")}</Link> {t("— и у него появится чат с аналитиком.")}
</Empty>
) : (
<ul className="m-0 grid list-none gap-3 p-0 md:grid-cols-2">
{cards.map((c) => (
<li key={c.chatId}>
<Link href={`/chats/${c.key}`} className="flex h-full flex-col gap-2 rounded-xl border bg-card p-4 text-foreground hover:border-primary/60 hover:no-underline">
<span className="flex items-center gap-2">
<span className="rounded bg-muted px-1.5 font-mono text-xs text-primary">{c.key}</span>
<span className="min-w-0 flex-1 truncate font-medium">{c.name}</span>
{c.unread > 0 && <span className="rounded-full bg-info px-2 text-xs font-semibold text-background" title={t("новые сообщения")}>{t("{n} нов.", { n: c.unread })}</span>}
{c.open > 0 && <span className="rounded-full bg-primary px-2 text-xs font-semibold text-primary-foreground" title={t("агенты ждут вашего ответа")}>{t("ждут ответа: {n}", { n: c.open })}</span>}
</span>
{c.last ? (
<span className="flex min-w-0 flex-col gap-0.5 text-sm">
<span className="flex items-center gap-1.5 text-xs text-muted-foreground">
{c.last.agent ? <AgentBadge name={c.last.who} role={isRoleName(c.last.who)} /> : <span>{c.last.mine ? t("вы") : c.last.who}</span>}
<span>· {ago(c.last.at, t)}</span>
</span>
<span className="line-clamp-2 text-muted-foreground">{c.last.system ? t.text(c.last.text) : c.last.agent ? t.role(c.last.text) : c.last.text}</span>
</span>
) : (
<span className="text-sm text-muted-foreground">{t("Здесь пока тихо. Спросите аналитика, что с проектом, или опишите новую задачу.")}</span>
)}
<span className="mt-auto inline-flex items-center gap-1.5 text-sm font-medium text-primary">
<MessagesSquare className="size-4" /> {t("Написать аналитику")} <ArrowRight className="size-3.5" />
</span>
</Link>
</li>
))}
</ul>
)}
</Section>
<p className="mt-6 text-sm text-muted-foreground">
{t("Нужна история?")} <Link href="/chats/master">{t("Все события по вашим проектам")}</Link> {t("— что делали агенты, обновления продукта и сбои, справочно.")}
</p>
</Workspace>
);
}

View File

@ -0,0 +1,36 @@
import { checkConnection, completeConnectionOAuth, CONNECTION_OAUTH_COOKIE, OAUTH_ERROR_TEXT, PeppaError } from "@peppa/core";
import { cookies } from "next/headers";
import { NextResponse, type NextRequest } from "next/server";
import { connOAuthCookieOptions, currentUser, publicOrigin } from "@/lib/auth";
import { db } from "@/lib/db";
import { m } from "@peppa/shared/i18n";
/**
* PEP-252: the service sends the browser back here with code and state. The state must equal this
* browser's cookie and the flow must belong to the person signed in now; then the code is
* exchanged and the connection checked. Code and state never stay in the address: 303 to
* /connections without them.
*/
export async function GET(req: NextRequest) {
const origin = await publicOrigin();
const jar = await cookies();
const cookieState = jar.get(CONNECTION_OAUTH_COOKIE)?.value ?? "";
const q = req.nextUrl.searchParams;
const go = (path: string) => {
const res = NextResponse.redirect(`${origin}${path}`, 303);
res.cookies.set(CONNECTION_OAUTH_COOKIE, "", connOAuthCookieOptions(0));
return res;
};
const fail = (msg: string) => go(`/connections?error=${encodeURIComponent(msg)}`);
const user = await currentUser();
if (!user) return go("/login");
if (q.get("error")) return fail(q.get("error") === "access_denied" ? OAUTH_ERROR_TEXT.denied : OAUTH_ERROR_TEXT.failed);
try {
const r = await completeConnectionOAuth(db, user.id, { state: q.get("state") ?? "", code: q.get("code") ?? "", cookieState });
const chk = await checkConnection(db, user.id, r.connectionId).catch(() => null);
const word = !chk ? "down" : chk.status;
return go(`/connections?${r.created ? "created" : "checked"}=${r.connectionId}&check=${word}&signed=1#c${r.connectionId}`);
} catch (e) {
return fail(e instanceof PeppaError ? e.message : m("Не удалось войти в сервис"));
}
}

View File

@ -0,0 +1,32 @@
import { CONNECTION_OAUTH_COOKIE, PeppaError, startConnectionOAuth } from "@peppa/core";
import { NextResponse, type NextRequest } from "next/server";
import { connOAuthCookieOptions, currentUser, publicOrigin } from "@/lib/auth";
import { db } from "@/lib/db";
import { m } from "@peppa/shared/i18n";
/**
* PEP-252: «Войти через Google / GitHub» in «Подключения» (POST form: catalogId + level, or
* connectionId for «Войти заново») → 303 to the service's sign-in page. The state goes into an
* httpOnly cookie of this browser; the callback must bring the same state back.
*/
export async function POST(req: NextRequest) {
const origin = await publicOrigin();
const form = await req.formData().catch(() => null);
const fail = (msg: string) => NextResponse.redirect(`${origin}/connections?error=${encodeURIComponent(msg)}#add`, 303);
const user = await currentUser();
if (!user) return NextResponse.redirect(`${origin}/login`, 303);
try {
const connectionId = Number(form?.get("connectionId") ?? "");
const flow = await startConnectionOAuth(db, user.id, {
catalogId: String(form?.get("catalogId") ?? "") || null,
connectionId: Number.isInteger(connectionId) && connectionId > 0 ? connectionId : null,
level: String(form?.get("level") ?? "") || null,
redirectUri: `${origin}/connections/oauth/callback`,
});
const res = NextResponse.redirect(flow.url, 303);
res.cookies.set(CONNECTION_OAUTH_COOKIE, flow.state, connOAuthCookieOptions(600));
return res;
} catch (e) {
return fail(e instanceof PeppaError ? e.message : m("Не удалось начать вход в сервис"));
}
}

View File

@ -0,0 +1,737 @@
import Link from "@/components/Link";
import { ExternalLink, PlugZap, Search } from "lucide-react";
import {
CATALOG_KIND_TEXT,
CATALOG_KINDS,
catalogService,
CONNECTION_CHECK_TEXT,
CONNECTION_REASON_TEXT,
connectionJournal,
DEFAULT_GRANT_TERM,
defaultIdleRevokeHours,
GRANT_TERM_TEXT,
GRANT_TERMS,
IDLE_HOURS_CHOICES,
serverTimezone,
JOURNAL_VERIFY_SCRIPT,
grantableAgents,
listConnections,
listUserProjects,
ownerAccessRequests,
connectionsForRequest,
oauthOffer,
scopeLabel,
searchCatalog,
type CatalogKind,
type CatalogService,
type ConnectionGrantView,
type ConnectionLogView,
type ConnectionReason,
type ConnectionView,
type GrantMode,
type GatewayProtocol,
GATEWAY_PROTOCOLS,
} from "@peppa/core";
import { AccessRequestList } from "@/components/AccessRequests";
import { Hidden } from "@/components/cards";
import { intlLocale } from "@peppa/shared/i18n";
import { ago, Empty, Flash, Notice, PageHeader, Section } from "@/components/common";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card } from "@/components/ui/card";
import { Input, Textarea } from "@/components/ui/input";
import { Workspace } from "@/components/Workspace";
import { requireUser, uiMode } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
import { m, type Translator } from "@peppa/shared/i18n";
import { checkConnectionAction, createConnectionAction, decideIdleGrantAction, deleteConnectionAction, extendGrantAction, grantConnectionAction, replaceConnectionSecretAction, resetHostKeyAction, revokeConnectionAction, revokeGrantAction, setConnectionIdleAction } from "../actions";
export async function generateMetadata() {
const t = await getT();
return { title: t("Подключения — FORGE") };
}
type Params = { error?: string; created?: string; checked?: string; check?: string; signed?: string; revoked?: string; remote?: string; service?: string; q?: string; kind?: string };
const SELECT = "h-9 rounded-md border border-input bg-background px-2 text-sm";
const BACK = "/connections";
function Decision({ row, t }: { row: ConnectionLogView; t: Translator }) {
// PEP-254: the call is written before the service answers; no result after a while — a crash in the middle.
if (row.state === "running") return <Badge variant="outline">{t("выполняется")}</Badge>;
if (row.state === "unfinished") return <Badge variant="warn">{t("начато, итога нет")}</Badge>;
if (row.decision === "allowed") return <Badge variant="ok">{t("разрешено")}</Badge>;
if (row.decision === "denied") return <Badge variant="danger">{t("запрещено")}</Badge>;
return <Badge variant="warn">{t("не выполнено")}</Badge>;
}
const reasonText = (r: string | null, t: Translator) => (r && r in CONNECTION_REASON_TEXT ? t.text(CONNECTION_REASON_TEXT[r as ConnectionReason]) : "");
const kindText = (k: CatalogKind, t: Translator) => t.text(CATALOG_KIND_TEXT[k]);
/** «ключ работает» / «ключ не подходит» / «сервис не отвечает» / «ещё не проверялся». */
function KeyState({ c, t }: { c: ConnectionView; t: Translator }) {
if (c.status === "relogin") return <Badge variant="danger">{t("нужно войти заново")}</Badge>;
if (c.status !== "active") return <Badge variant="danger">{t("доступ отозван")}</Badge>;
// PEP-252: a sign-in connection has no key to speak of.
if (c.authKind === "oauth") {
if (!c.checkStatus) return <Badge variant="outline">{t("вход ещё не проверялся")}</Badge>;
return c.checkStatus === "ok" ? <Badge variant="ok">{t("вход работает")}</Badge> : c.checkStatus === "bad_key" ? <Badge variant="danger">{t("сервис не пускает FORGE")}</Badge> : <Badge variant="warn">{t.text(CONNECTION_CHECK_TEXT.down)}</Badge>;
}
if (!c.checkStatus) return <Badge variant="outline">{t("ключ ещё не проверялся")}</Badge>;
const text = t.text(CONNECTION_CHECK_TEXT[c.checkStatus]);
return <Badge variant={c.checkStatus === "ok" ? "ok" : c.checkStatus === "bad_key" || c.checkStatus === "host_key" ? "danger" : "warn"}>{text}</Badge>;
}
function modeText(m: GrantMode, t: Translator): string {
return m === "auto" ? t("сразу") : m === "ask" ? t("спрашивать меня") : t("нет");
}
/** «14:05 25.11» in the platform's time zone. */
function when(d: Date, t: Translator): string {
const loc = intlLocale(t.locale);
const tz = serverTimezone();
return `${d.toLocaleTimeString(loc, { hour: "2-digit", minute: "2-digit", timeZone: tz })} ${d.toLocaleDateString(loc, { day: "2-digit", month: "2-digit", timeZone: tz })}`;
}
/** «5 ч» / «2 дн» — how soon the owner is asked about a grant without calls. */
function hoursLeft(d: Date, t: Translator): string {
const h = Math.max(0, Math.ceil((d.getTime() - Date.now()) / 3600_000));
return h < 48 ? t("{n} ч", { n: h }) : t("{n} дн", { n: Math.round(h / 24) });
}
function GrantLine({ g, engineer, t }: { g: ConnectionGrantView; engineer: boolean; t: Translator }) {
const ended = g.state !== "active";
return (
<li className="flex flex-col gap-1 rounded-md border bg-background/40 px-2.5 py-1.5">
<div className="flex flex-wrap items-center gap-2">
<span className="font-medium">{g.projectKey}</span>
<span>· {g.agentName ? t("агент {name}", { name: g.agentName }) : t("любой агент проекта")}</span>
<span className="text-muted-foreground">
· {t("чтение: {mode}", { mode: modeText(g.readMode, t) })} · {t("запись: {mode}", { mode: modeText(g.writeMode, t) })}
</span>
{g.state === "expired" && <Badge variant="warn">{t("срок истёк")}</Badge>}
{g.state === "idle" && <Badge variant="warn">{t("снято: {n} ч без дела", { n: g.idleHours })}</Badge>}
{g.idleAskedAt && <Badge variant="warn">{t("не используется {n} ч — снять?", { n: g.idleHours })}</Badge>}
{engineer && g.operations.length > 0 && <span className="font-mono text-xs text-muted-foreground">{g.operations.join(", ")}</span>}
<div className="ml-auto flex gap-1">
{g.idleAskedAt && (
<>
<form action={decideIdleGrantAction}>
<Hidden fields={{ grantId: g.id, decision: "revoke", back: BACK }} />
<Button variant="default" size="sm">{t("Снять")}</Button>
</form>
<form action={decideIdleGrantAction}>
<Hidden fields={{ grantId: g.id, decision: "keep", back: BACK }} />
<Button variant="ghost" size="sm">{t("Оставить")}</Button>
</form>
</>
)}
{(ended || g.term !== "forever") && (
<form action={extendGrantAction}>
<Hidden fields={{ grantId: g.id, back: BACK }} />
<Button variant={ended ? "default" : "ghost"} size="sm">
{g.term === "forever" ? t("Вернуть") : t("Продлить на {term}", { term: t.text(GRANT_TERM_TEXT[g.term]) })}
</Button>
</form>
)}
<form action={revokeGrantAction}>
<Hidden fields={{ grantId: g.id, back: BACK }} />
<Button variant="ghost" size="sm">{t("Убрать")}</Button>
</form>
</div>
</div>
<div className="flex flex-wrap gap-x-3 text-xs text-muted-foreground">
{!ended && <span>{g.expiresAt ? t("до {when}", { when: when(g.expiresAt, t) }) : t("до отзыва")}</span>}
{g.state === "expired" && g.expiresAt && <span>{t("действовало до {when}", { when: when(g.expiresAt, t) })}</span>}
{g.state === "idle" && g.endedAt && <span>{t("снято {ago}", { ago: ago(g.endedAt, t) })}</span>}
<span>{g.lastUsedAt ? t("последний вызов {ago}", { ago: ago(g.lastUsedAt, t) }) : t("вызовов ещё не было")}</span>
{g.idleAskAt && <span>{t("спросим вас о снятии через {left} без дела", { left: hoursLeft(g.idleAskAt, t) })}</span>}
</div>
</li>
);
}
function TermSelect({ t }: { t: Translator }) {
return (
<label className="flex flex-col gap-1 text-sm">
<span className="text-muted-foreground">{t("Срок")}</span>
<select name="term" defaultValue={DEFAULT_GRANT_TERM} className={SELECT}>
{GRANT_TERMS.map((term) => (
<option key={term} value={term}>
{t.text(GRANT_TERM_TEXT[term])}
</option>
))}
</select>
</label>
);
}
function idleText(h: number, t: Translator): string {
return h === 0 ? t("не спрашивать") : h % 24 === 0 && h >= 48 ? t("{n} дн без дела", { n: h / 24 }) : t("{n} ч без дела", { n: h });
}
/** PEP-259: «Спрашивать, снять ли разрешение без дела, через …» of one connection. */
function IdleForm({ c, t }: { c: ConnectionView; t: Translator }) {
const def = defaultIdleRevokeHours();
return (
<form action={setConnectionIdleAction} className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">
<Hidden fields={{ connectionId: c.id, back: BACK }} />
<span>{t("Спрашивать, снять ли разрешение, которым не пользуются:")}</span>
<select name="idleHours" defaultValue={c.idleRevokeHours == null ? "" : String(c.idleRevokeHours)} className="h-7 rounded-md border border-input bg-background px-1.5 text-xs" aria-label={t("Спрашивать о разрешении без дела")}>
<option value="">{t("как обычно — {text}", { text: idleText(def, t) })}</option>
{IDLE_HOURS_CHOICES.filter((h) => h !== def).map((h) => (
<option key={h} value={h}>
{idleText(h, t)}
</option>
))}
</select>
<Button variant="ghost" size="sm">{t("Сохранить")}</Button>
</form>
);
}
function ModeSelect({ name, label, def, t }: { name: string; label: string; def: GrantMode; t: Translator }) {
return (
<label className="flex flex-col gap-1 text-sm">
<span className="text-muted-foreground">{label}</span>
<select name={name} defaultValue={def} className={SELECT}>
<option value="auto">{t("Выполнять сразу")}</option>
<option value="ask">{t("Спрашивать меня")}</option>
<option value="off">{t("Не разрешать")}</option>
</select>
</label>
);
}
function GrantForm({ c, projects, agents, engineer, t }: { c: ConnectionView; projects: Array<{ id: number; key: string; name: string }>; agents: Array<{ id: number; name: string }>; engineer: boolean; t: Translator }) {
return (
<form action={grantConnectionAction} className="flex flex-col gap-3 rounded-md border border-dashed p-3">
<Hidden fields={{ connectionId: c.id, back: BACK }} />
<div className="flex flex-wrap gap-2">
<label className="flex flex-col gap-1 text-sm">
<span className="text-muted-foreground">{t("Проект")}</span>
<select name="projectId" required className={SELECT}>
{projects.map((p) => (
<option key={p.id} value={p.id}>
{p.key} — {p.name}
</option>
))}
</select>
</label>
<label className="flex flex-col gap-1 text-sm">
<span className="text-muted-foreground">{t("Агент")}</span>
<select name="agentId" className={SELECT} defaultValue="">
<option value="">{t("Любой агент проекта")}</option>
{agents.map((a) => (
<option key={a.id} value={a.id}>
{a.name}
</option>
))}
</select>
</label>
<ModeSelect name="readMode" label={t("Чтение")} def="auto" t={t} />
{/* PEP-251: changing a database and sending letters ask the owner by default. */}
<ModeSelect name="writeMode" label={t("Запись")} def={c.protocol === "postgres" || c.protocol === "mysql" || c.protocol === "mail" ? "ask" : "off"} t={t} />
<TermSelect t={t} />
</div>
<p className="m-0 text-xs text-muted-foreground">
{c.protocol === "http" ? t("Чтение — смотреть данные, ничего не меняя. Запись — создавать, менять, удалять и отправлять. «Спрашивать меня» пока означает отказ: подтверждение запросов появится позже.") : t.text(PROTOCOL_TEXT[c.protocol as GatewayProtocol].modes)}
{c.protocol !== "http" && <> {t("«Спрашивать меня» пока означает отказ: подтверждение запросов появится позже.")}</>}
</p>
{/* PEP-260: an «echo» operation can hand the key back in a form masking doesn't know. */}
{c.protocol === "http" && <p className="m-0 text-xs text-muted-foreground">{t("Не разрешайте агенту действия, которые возвращают присланное обратно: проверку, отладку, «кто я» с ключом. Через них сервис может показать агенту ключ.")}</p>}
{engineer && c.protocol === "http" && (
<details className="text-sm">
<summary className="cursor-pointer text-muted-foreground">{t("Тонкая настройка")}</summary>
<div className="mt-2 flex flex-col gap-1">
<Textarea name="operations" rows={2} placeholder={"GET /items\nPOST /orders"} aria-label={t("Разрешённые операции")} className="font-mono" spellCheck={false} />
<p className="m-0 text-xs text-muted-foreground">{t("По одной операции в строке: действие (GET — читать, POST — создавать, PUT и PATCH — менять, DELETE — удалять) и начало пути. «GET /items» разрешает читать /items и всё внутри, остальное запрещено.")}</p>
</div>
</details>
)}
<Button size="sm" className="self-start">{t("Разрешить")}</Button>
</form>
);
}
function ConnectionCard({ c, projects, agents, engineer, t }: { c: ConnectionView; projects: Array<{ id: number; key: string; name: string }>; agents: Array<{ id: number; name: string }>; engineer: boolean; t: Translator }) {
const active = c.status === "active";
const card = catalogService(c.catalogId);
// PEP-252: connected by signing in to the service — «Войти заново» instead of a new key.
const signIn = c.authKind === "oauth";
const provider = signIn ? oauthOffer(c.catalogId)?.providerName ?? null : null;
return (
<Card id={`c${c.id}`} className="flex flex-col gap-4 p-4">
<div className="flex flex-wrap items-center gap-2">
<span className="text-base font-medium">{c.name}</span>
{card && card.name !== c.name && <Badge variant="outline">{card.name}</Badge>}
<KeyState c={c} t={t} />
{c.checkedAt && <span className="text-xs text-muted-foreground">{t("проверено {ago}", { ago: ago(c.checkedAt, t) })}</span>}
<span className="ml-auto text-xs text-muted-foreground">{c.lastUsedAt ? t("последний запрос {ago}", { ago: ago(c.lastUsedAt, t) }) : t("запросов ещё не было")}</span>
</div>
<div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
<span className="truncate font-mono">{c.baseUrl}</span>
{engineer && <span>{t("имя для агентов: {slug}", { slug: c.slug })}</span>}
{signIn && c.oauthScopes.length > 0 && <span>{t("права: {scopes}", { scopes: c.oauthScopes.map(scopeLabel).join(", ") })}</span>}
{card && (
<a href={card.docsUrl} target="_blank" rel="noreferrer noopener" className="inline-flex items-center gap-1 underline-offset-2 hover:underline">
{t("Документация сервиса")} <ExternalLink className="size-3" />
</a>
)}
{engineer && typeof c.config?.hostKey === "string" && <span className="font-mono">{t("ключ сервера: {key}", { key: c.config.hostKey })}</span>}
{active && c.checkStatus === "host_key" && (
<form action={resetHostKeyAction}>
<Hidden fields={{ connectionId: c.id, back: BACK }} />
<Button size="sm" variant="destructive">{t("Принять новый ключ сервера")}</Button>
</form>
)}
{active && c.hasKey && (
<form action={checkConnectionAction} className="ml-auto">
<Hidden fields={{ connectionId: c.id, back: BACK }} />
<Button size="sm" variant="secondary">{t("Проверить")}</Button>
</form>
)}
</div>
<div className="flex flex-col gap-2">
<span className="text-sm font-medium">{t("Кому разрешено")}</span>
{c.grants.length === 0 ? (
<p className="m-0 text-sm text-muted-foreground">{t("Пока никому: агенты не могут пользоваться этим подключением.")}</p>
) : (
<ul className="m-0 flex list-none flex-col gap-1 p-0 text-sm">
{c.grants.map((g) => (
<GrantLine key={g.id} g={g} engineer={engineer} t={t} />
))}
</ul>
)}
{c.grants.length > 0 && <IdleForm c={c} t={t} />}
{active && projects.length > 0 && <GrantForm c={c} projects={projects} agents={agents} engineer={engineer} t={t} />}
</div>
<div className="flex flex-wrap items-end gap-2 border-t pt-3">
{signIn ? (
<form action="/connections/oauth/start" method="post" className="flex flex-1 flex-wrap items-center gap-2">
<input type="hidden" name="connectionId" value={c.id} />
{provider ? (
<Button size="sm" variant={active ? "secondary" : "default"}>{t("Войти заново через {service}", { service: provider })}</Button>
) : (
<span className="text-xs text-muted-foreground">{t("Вход через этот сервис сейчас выключен в FORGE.")}</span>
)}
</form>
) : (
<form action={replaceConnectionSecretAction} className="flex flex-1 flex-wrap items-center gap-2" autoComplete="off">
<Hidden fields={{ connectionId: c.id, back: BACK }} />
{c.protocol === "ssh" ? (
<Textarea name="secret" required rows={1} placeholder={t("Новый пароль или ключ входа на сервер")} aria-label={t("Новый пароль или ключ")} className="max-w-xs font-mono" spellCheck={false} />
) : (
<Input name="secret" type="password" required placeholder={c.protocol !== "http" ? t("Новый пароль") : active ? t("Новый ключ доступа") : t("Новый ключ доступа, чтобы включить снова")} aria-label={t("Новый ключ доступа")} className="max-w-xs" autoComplete="new-password" />
)}
<Button size="sm" variant="secondary">{active ? t("Заменить ключ") : t("Включить снова")}</Button>
</form>
)}
{(active || c.status === "relogin") && (
<form action={revokeConnectionAction}>
<Hidden fields={{ connectionId: c.id, back: BACK }} />
<Button size="sm" variant="destructive">{t("Отозвать доступ")}</Button>
</form>
)}
<form action={deleteConnectionAction}>
<Hidden fields={{ connectionId: c.id, back: BACK }} />
<Button size="sm" variant="ghost">{t("Удалить")}</Button>
</form>
</div>
</Card>
);
}
function CheckNotice({ check, created, signed, t }: { check?: string; created: boolean; signed: boolean; t: Translator }) {
if (signed) {
// PEP-252: after signing in to the service.
const head = created ? t("Подключение сохранено. Доступ хранится зашифрованным: агенты и другие люди его не видят.") : t("Вы вошли заново, разрешения остались прежними.");
const tail = check === "ok" ? t("Вход работает. Теперь решите, кому из агентов его разрешить.") : check === "bad_key" ? t("Сервис не пустил FORGE: войдите заново и разрешите доступ.") : t("Сервис сейчас не отвечает. Подключение сохранено — проверьте позже кнопкой «Проверить».");
return (
<Notice>
{head} {tail}
</Notice>
);
}
const head = created ? t("Подключение сохранено. Ключ доступа больше не показывается никому.") : "";
const tail =
check === "ok"
? t("Ключ работает. Теперь решите, кому из агентов его разрешить.")
: check === "reachable"
? t("Сервис отвечает. Ключ проверится при первом запросе агента.")
: check === "bad_key"
? t("Сервис не принял ключ: проверьте, что скопировали его целиком, и замените ключ.")
: check === "down"
? t("Сервис сейчас не отвечает. Ключ сохранён — проверьте позже кнопкой «Проверить».")
: check === "host_key"
? t("Ключ сервера изменился. Если сервер не переустанавливали, не принимайте новый ключ и сообщите тому, кто его обслуживает.")
: "";
if (!head && !tail) return null;
return (
<Notice>
{head} {tail}
</Notice>
);
}
/** PEP-251: databases, servers, storages and mailboxes — words for people (translated with t.text). */
const PROTOCOL_TEXT: Record<GatewayProtocol, { name: string; hint: string; modes: string; secret: string }> = {
postgres: { name: "PostgreSQL", hint: m("База данных"), modes: m("Чтение — смотреть таблицы, ничего не меняя. Запись — добавлять, менять и удалять данные."), secret: m("Пароль пользователя базы данных") },
mysql: { name: "MySQL / MariaDB", hint: m("База данных"), modes: m("Чтение — смотреть таблицы, ничего не меняя. Запись — добавлять, менять и удалять данные."), secret: m("Пароль пользователя базы данных") },
ssh: { name: m("Сервер (SSH)"), hint: m("Сервер и файлы на нём"), modes: m("Чтение — смотреть файлы в разрешённой папке. Запись — менять файлы и выполнять действия на сервере."), secret: m("Пароль или ключ входа на сервер") },
s3: { name: m("Хранилище S3"), hint: m("Файлы в облаке"), modes: m("Чтение — смотреть и скачивать файлы в разрешённой папке. Запись — загружать и удалять файлы."), secret: m("Секретный ключ доступа к хранилищу") },
mail: { name: m("Почтовый ящик"), hint: m("Чтение и отправка писем"), modes: m("Чтение — смотреть письма. Запись — отмечать, переносить и отправлять письма."), secret: m("Пароль почтового ящика (лучше — пароль приложения)") },
};
const PROTOCOL_KIND: Record<GatewayProtocol, CatalogKind> = { postgres: "data", mysql: "data", ssh: "cloud", s3: "cloud", mail: "mail" };
function Field({ name, label, placeholder, def, type, mono, required = true }: { name: string; label: string; placeholder?: string; def?: string; type?: string; mono?: boolean; required?: boolean }) {
return (
<label className="flex flex-col gap-1 text-sm">
<span className="text-muted-foreground">{label}</span>
<Input name={name} required={required} type={type} placeholder={placeholder} defaultValue={def} className={mono ? "font-mono" : undefined} spellCheck={false} autoComplete="off" />
</label>
);
}
/** PEP-251: the form of a database, a server, a storage or a mailbox. */
function ProtocolSteps({ p, t }: { p: GatewayProtocol; t: Translator }) {
const txt = PROTOCOL_TEXT[p];
const back = `/connections?service=proto:${p}#add`;
const sql = p === "postgres" || p === "mysql";
return (
<Card className="flex flex-col gap-4 p-4">
<div className="flex flex-wrap items-center gap-2">
<span className="text-base font-medium">{t.text(txt.name)}</span>
<Badge variant="outline">{t.text(txt.hint)}</Badge>
<Link href="/connections#add" className="ml-auto text-sm text-muted-foreground underline-offset-2 hover:underline">
{t("← Другой сервис")}
</Link>
</div>
<p className="m-0 text-sm text-muted-foreground">
{sql
? t("Лучше заведите для агентов отдельного пользователя базы данных только с нужными правами: так даже ошибка агента ничего лишнего не изменит.")
: p === "ssh"
? t("Лучше заведите для агентов отдельного пользователя на сервере. Файлы агенты видят только в папке, которую вы укажете.")
: p === "s3"
? t("Лучше создайте отдельный ключ доступа только к этому бакету. Агенты видят файлы только в папке, которую вы укажете.")
: t("Для почты Google, Яндекса и Mail.ru нужен пароль приложения: его создают в настройках безопасности почты.")}
</p>
<form action={createConnectionAction} className="flex max-w-xl flex-col gap-3" autoComplete="off">
<Hidden fields={{ back, protocol: p }} />
<Field name="name" label={t("Название")} placeholder={t("Название, например «Магазин»")} />
{sql && (
<div className="grid gap-2 sm:grid-cols-[1fr_7rem]">
<Field name="host" label={t("Адрес сервера")} placeholder="db.example.com" mono />
<Field name="port" label={t("Порт")} placeholder={p === "postgres" ? "5432" : "3306"} required={false} mono />
<Field name="database" label={t("Название базы данных")} placeholder="shop" mono />
<span />
<Field name="user" label={t("Пользователь")} placeholder="reader" mono />
<span />
<label className="flex flex-col gap-1 text-sm">
<span className="text-muted-foreground">{t("Защита соединения")}</span>
<select name="tls" defaultValue="verify" className={SELECT}>
<option value="verify">{t("Шифровать и проверять сертификат")}</option>
<option value="encrypt">{t("Шифровать без проверки сертификата")}</option>
<option value="off">{t("Без шифрования")}</option>
</select>
</label>
</div>
)}
{p === "ssh" && (
<div className="grid gap-2 sm:grid-cols-[1fr_7rem]">
<Field name="host" label={t("Адрес сервера")} placeholder="srv.example.com" mono />
<Field name="port" label={t("Порт")} placeholder="22" required={false} mono />
<Field name="user" label={t("Пользователь")} placeholder="agent" mono />
<span />
<Field name="root" label={t("Папка, в которой агенты работают с файлами")} placeholder="/var/www" required={false} mono />
<span />
<Field name="hostKey" label={t("Ключ сервера, если знаете (иначе запомним при первом подключении)")} placeholder="SHA256:…" required={false} mono />
</div>
)}
{p === "s3" && (
<div className="grid gap-2 sm:grid-cols-2">
<Field name="endpoint" label={t("Адрес хранилища")} placeholder="https://s3.eu-central-1.amazonaws.com" type="url" mono />
<Field name="region" label={t("Регион")} placeholder="eu-central-1" required={false} mono />
<Field name="bucket" label={t("Бакет")} placeholder="shop-files" mono />
<Field name="prefix" label={t("Папка в бакете (пусто — весь бакет)")} placeholder="reports/" required={false} mono />
<Field name="accessKeyId" label={t("Идентификатор ключа доступа")} placeholder="AKIA…" mono />
</div>
)}
{p === "mail" && (
<div className="grid gap-2 sm:grid-cols-[1fr_7rem]">
<Field name="user" label={t("Логин почтового ящика")} placeholder="shop@example.com" mono />
<span />
<Field name="imapHost" label={t("Сервер входящей почты")} placeholder="imap.example.com" mono />
<Field name="imapPort" label={t("Порт")} placeholder="993" required={false} mono />
<Field name="smtpHost" label={t("Сервер исходящей почты")} placeholder="smtp.example.com" mono />
<Field name="smtpPort" label={t("Порт")} placeholder="465" required={false} mono />
<Field name="from" label={t("Адрес отправителя (пусто — логин)")} placeholder="shop@example.com" required={false} mono />
</div>
)}
{p === "ssh" ? (
<Textarea name="secret" required rows={3} placeholder={t.text(txt.secret)} aria-label={t.text(txt.secret)} className="font-mono" spellCheck={false} />
) : (
<Input name="secret" required type="password" placeholder={t.text(txt.secret)} aria-label={t.text(txt.secret)} autoComplete="new-password" />
)}
<p className="m-0 text-xs text-muted-foreground">{t("После сохранения пароль и ключ не увидит никто: ни агенты, ни администраторы FORGE.")}</p>
<Button size="sm" className="self-start">{t("Подключить и проверить")}</Button>
</form>
</Card>
);
}
/** Step 1–2 for a chosen service (catalog card or own). */
/** PEP-252: «Войти через Google / GitHub» — the level and exactly which rights FORGE asks for. */
function SignInStep({ s, t }: { s: CatalogService; t: Translator }) {
const offer = oauthOffer(s.id);
if (!offer) return null;
const level = (value: "read" | "write", title: string, scopes: string[], checked: boolean) => (
<label className="flex items-start gap-2 rounded-md border bg-background/40 px-3 py-2">
<input type="radio" name="level" value={value} defaultChecked={checked} className="mt-1" />
<span className="flex flex-col gap-0.5">
<span className="font-medium">{title}</span>
<span className="text-xs text-muted-foreground">{t("FORGE попросит: {scopes}", { scopes: scopes.map(scopeLabel).join(", ") })}</span>
</span>
</label>
);
return (
<form action="/connections/oauth/start" method="post" className="flex max-w-xl flex-col gap-2 rounded-md border border-primary/40 p-3 text-sm">
<input type="hidden" name="catalogId" value={s.id} />
<span className="font-medium">{t("Проще всего — войти через {service}", { service: offer.providerName })}</span>
<span className="text-muted-foreground">{t("Ключ не нужен: вы войдёте на странице сервиса и подтвердите доступ. FORGE сам продлевает доступ, а «Отозвать доступ» закрывает его и в сервисе.")}</span>
{level("read", t("Только чтение"), offer.read, true)}
{level("write", t("Чтение и запись"), offer.write, false)}
{offer.note && <span className="text-xs text-muted-foreground">{t.text(offer.note)}</span>}
<Button size="sm" className="self-start">{t("Войти через {service}", { service: offer.providerName })}</Button>
</form>
);
}
function AddSteps({ s, t }: { s: CatalogService | null; t: Translator }) {
const back = `/connections?service=${s?.id ?? "custom"}#add`;
return (
<Card className="flex flex-col gap-4 p-4">
<div className="flex flex-wrap items-center gap-2">
<span className="text-base font-medium">{s ? s.name : t("Свой сервис")}</span>
{s && <Badge variant="outline">{kindText(s.kind, t)}</Badge>}
<Link href="/connections#add" className="ml-auto text-sm text-muted-foreground underline-offset-2 hover:underline">
{t("← Другой сервис")}
</Link>
</div>
{s && <SignInStep s={s} t={t} />}
{s && oauthOffer(s.id) && <span className="text-sm text-muted-foreground">{t("Или подключите ключом доступа:")}</span>}
<ol className="m-0 flex list-decimal flex-col gap-4 pl-5 text-sm">
{s ? (
<li className="flex flex-col gap-1">
<span className="font-medium">{t("Возьмите ключ доступа")}</span>
<span className="text-muted-foreground">{t.text(s.keyHint)}</span>
<a href={s.keyUrl} target="_blank" rel="noreferrer noopener" className="inline-flex items-center gap-1 self-start text-primary underline-offset-2 hover:underline">
{t("Открыть страницу, где берут ключ")} <ExternalLink className="size-3" />
</a>
</li>
) : (
<li className="flex flex-col gap-1">
<span className="font-medium">{t("Возьмите адрес сервиса и ключ доступа")}</span>
<span className="text-muted-foreground">{t("Они есть в описании сервиса для разработчиков или у того, кто его сделал.")}</span>
</li>
)}
<li className="flex flex-col gap-2">
<span className="font-medium">{t("Вставьте его сюда")}</span>
<form action={createConnectionAction} className="flex max-w-xl flex-col gap-2" autoComplete="off">
<Hidden fields={{ back, catalogId: s?.id ?? "" }} />
<Input name="name" maxLength={60} defaultValue={s?.name ?? ""} required={!s} placeholder={t("Название, например «Магазин»")} aria-label={t("Название")} />
{(!s || s.baseEditable) && <Input name="baseUrl" required type="url" placeholder={s?.baseUrl ?? "https://api.example.com/v1"} aria-label={t("Адрес сервиса")} className="font-mono" spellCheck={false} />}
<Input name="secret" required type="password" placeholder={s?.auth === "basic" ? t("логин:пароль — после сохранения их не увидит никто") : t("Ключ доступа — после сохранения его не увидит никто")} aria-label={t("Ключ доступа")} autoComplete="new-password" />
{!s && (
<div className="flex flex-wrap items-center gap-2 text-sm">
<select name="authKind" aria-label={t("Как передавать ключ")} className={SELECT} defaultValue="bearer">
<option value="bearer">{t("Как «Authorization: Bearer …»")}</option>
<option value="header">{t("В своём заголовке")}</option>
<option value="query">{t("В адресе запроса (параметр)")}</option>
<option value="basic">{t("Логин и пароль")}</option>
</select>
<Input name="authHeader" placeholder="X-Api-Key" aria-label={t("Имя заголовка или параметра")} className="max-w-48 font-mono" spellCheck={false} />
</div>
)}
{!s && <p className="m-0 text-xs text-muted-foreground">{t("Не разрешайте агенту действия, которые возвращают присланное обратно: проверку, отладку, «кто я» с ключом. Через них сервис может показать агенту ключ.")}</p>}
<Button size="sm" className="self-start">{t("Подключить и проверить")}</Button>
</form>
</li>
<li className="flex flex-col gap-1 text-muted-foreground">
<span className="font-medium text-foreground">{t("Проверим ключ и решите, кому разрешить")}</span>
<span>{t("После сохранения FORGE сам сделает проверочный запрос, а вы выберете проект, агента и что можно: читать или менять.")}</span>
</li>
</ol>
</Card>
);
}
function Catalog({ q, kind, t }: { q: string; kind: string | null; t: Translator }) {
const list = searchCatalog(q, { kind, kindText: (k) => kindText(k, t) });
const protocols = GATEWAY_PROTOCOLS.filter((p) => (!kind || PROTOCOL_KIND[p] === kind) && (!q || `${PROTOCOL_TEXT[p].name} ${t.text(PROTOCOL_TEXT[p].name)} ${t.text(PROTOCOL_TEXT[p].hint)}`.toLowerCase().includes(q.toLowerCase())));
const chip = (active: boolean) => `rounded-full border px-3 py-1 text-xs ${active ? "border-primary bg-primary/10 text-foreground" : "text-muted-foreground hover:text-foreground"}`;
const href = (k: string | null) => `/connections?${new URLSearchParams({ ...(q ? { q } : {}), ...(k ? { kind: k } : {}) })}#add`;
return (
<Card className="flex flex-col gap-3 p-4">
<form action="/connections#add" className="flex flex-wrap gap-2" role="search">
{kind && <input type="hidden" name="kind" value={kind} />}
<div className="relative max-w-sm flex-1">
<Search className="pointer-events-none absolute top-2.5 left-2.5 size-4 text-muted-foreground" />
<Input name="q" defaultValue={q} placeholder={t("Найти сервис: почта, платежи, Stripe…")} aria-label={t("Найти сервис")} className="pl-8" />
</div>
<Button size="sm" variant="secondary">{t("Найти")}</Button>
</form>
<div className="flex flex-wrap gap-1.5">
<Link href={href(null)} className={chip(!kind)}>
{t("Все")}
</Link>
{CATALOG_KINDS.map((k) => (
<Link key={k} href={href(k)} className={chip(kind === k)}>
{kindText(k, t)}
</Link>
))}
</div>
<div className="grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-4">
{list.map((s) => (
<Link key={s.id} href={`/connections?service=${s.id}#add`} className="flex flex-col gap-0.5 rounded-md border bg-background/40 px-3 py-2 hover:border-primary">
<span className="text-sm font-medium">{s.name}</span>
<span className="text-xs text-muted-foreground">{kindText(s.kind, t)}</span>
</Link>
))}
{protocols.map((p) => (
<Link key={p} href={`/connections?service=proto:${p}#add`} className="flex flex-col gap-0.5 rounded-md border bg-background/40 px-3 py-2 hover:border-primary">
<span className="text-sm font-medium">{t.text(PROTOCOL_TEXT[p].name)}</span>
<span className="text-xs text-muted-foreground">{t.text(PROTOCOL_TEXT[p].hint)}</span>
</Link>
))}
<Link href="/connections?service=custom#add" className="flex flex-col gap-0.5 rounded-md border border-dashed px-3 py-2 hover:border-primary">
<span className="text-sm font-medium">{t("Свой сервис")}</span>
<span className="text-xs text-muted-foreground">{t("Адрес и ключ вручную")}</span>
</Link>
</div>
{list.length === 0 && !protocols.length && <p className="m-0 text-sm text-muted-foreground">{t("Такого сервиса в списке нет — подключите его как «Свой сервис».")}</p>}
</Card>
);
}
/** PEP-254: download the journal with hashes and how to check it yourself. */
function JournalExport({ t, engineer }: { t: Translator; engineer: boolean }) {
return (
<div className="mt-3 space-y-2 text-sm">
<p className="m-0 text-muted-foreground">
{t("Журнал нельзя незаметно изменить: каждая запись связана с предыдущей, и раз в сутки FORGE сохраняет отметку журнала отдельно. Если запись изменят, вы и администратор получите сообщение.")}
</p>
<div className="flex flex-wrap gap-2">
<Button asChild size="sm" variant="outline">
<a href="/api/connections/journal?format=csv" download>{t("Скачать журнал (таблица)")}</a>
</Button>
<Button asChild size="sm" variant="outline">
<a href="/api/connections/journal?format=jsonl" download>{t("Скачать журнал для проверки")}</a>
</Button>
</div>
<details open={engineer}>
<summary className="cursor-pointer text-muted-foreground">{t("Как проверить журнал самому")}</summary>
<div className="mt-2 space-y-2">
<p className="m-0">
{t("Скачайте журнал для проверки и сохраните программу ниже рядом с ним. Запустите её так, как написано в её первой строке. Ответ «ok» значит, что журнал не меняли; иначе программа назовёт первую изменённую запись.")}
</p>
<pre className="overflow-x-auto rounded-md bg-muted p-2 text-xs">{JOURNAL_VERIFY_SCRIPT}</pre>
</div>
</details>
</div>
);
}
/** PEP-234/249 Access Hub: «Подключения» — the user's own external services and who may use them. */
export default async function ConnectionsPage({ searchParams }: { searchParams: Promise<Params> }) {
const q = await searchParams;
const user = await requireUser();
const t = await getT();
const engineer = (await uiMode()) === "engineer";
const [list, journal, projects, agents, requests] = await Promise.all([listConnections(db, user.id), connectionJournal(db, user.id, { limit: 50 }), listUserProjects(db, user.id), grantableAgents(db), ownerAccessRequests(db, user.id)]);
// PEP-261: «Дать» right in the list — only where a fitting connection exists.
const grantable = new Set((await Promise.all(requests.map(async (r) => ((await connectionsForRequest(db, user.id, r)).fit.length ? r.id : 0)))).filter(Boolean));
const proto = q.service?.startsWith("proto:") ? (GATEWAY_PROTOCOLS as string[]).find((p) => `proto:${p}` === q.service) as GatewayProtocol | undefined : undefined;
const chosen = q.service === "custom" ? "custom" : catalogService(q.service);
const kind = q.kind && (CATALOG_KINDS as string[]).includes(q.kind) ? q.kind : null;
return (
<Workspace>
<Flash error={q.error} />
{(q.created || q.checked) && <CheckNotice check={q.check} created={!!q.created} signed={!!q.signed} t={t} />}
{q.revoked && q.remote === "failed" && <Notice>{t("Доступ в FORGE отозван, но сервис не ответил. Чтобы закрыть доступ и там, удалите FORGE в настройках доступа самого сервиса.")}</Notice>}
<PageHeader title={<><PlugZap className="mr-1 inline size-5 text-primary" />{t("Подключения")}</>}>
<p className="m-0 text-sm text-muted-foreground">
{t("Подключите свои сервисы и решите, какие агенты и что в них могут делать. Агенты не видят ключ доступа: запросы выполняет FORGE и записывает их в журнал. Без вашего разрешения агент ничего не сделает, а «Отозвать доступ» действует сразу.")}
</p>
</PageHeader>
{requests.length > 0 && (
<Section id="requests" title={t("Агенты просят доступ")} count={requests.length}>
<AccessRequestList list={requests} grantable={grantable} t={t} />
</Section>
)}
{list.length > 0 && (
<Section title={t("Ваши подключения")} count={list.length}>
{list.map((c) => (
<ConnectionCard key={c.id} c={c} projects={projects} agents={agents} engineer={engineer} t={t} />
))}
</Section>
)}
<Section id="add" title={t("Подключить сервис")}>
{proto ? <ProtocolSteps p={proto} t={t} /> : chosen ? <AddSteps s={chosen === "custom" ? null : chosen} t={t} /> : <Catalog q={(q.q ?? "").slice(0, 80)} kind={kind} t={t} />}
</Section>
<Section title={t("Журнал запросов")} count={journal.length}>
{journal.length === 0 ? (
<Empty>{t("Агенты ещё не обращались к вашим подключениям.")}</Empty>
) : (
<div className="overflow-x-auto">
<table className="w-full text-sm">
<thead className="text-left text-xs text-muted-foreground">
<tr>
<th className="py-1 pr-3 font-normal">{t("Когда")}</th>
<th className="py-1 pr-3 font-normal">{t("Подключение")}</th>
<th className="py-1 pr-3 font-normal">{t("Проект и агент")}</th>
<th className="py-1 pr-3 font-normal">{t("Операция")}</th>
<th className="py-1 font-normal">{t("Решение")}</th>
</tr>
</thead>
<tbody>
{journal.map((r) => (
<tr key={r.id} className="border-t align-top">
<td className="py-1.5 pr-3 whitespace-nowrap text-muted-foreground">{ago(r.createdAt, t)}</td>
<td className="py-1.5 pr-3">{r.connectionName}</td>
<td className="py-1.5 pr-3">
{r.projectKey ?? "—"}
{r.agentName ? ` · ${r.agentName}` : ""}
</td>
{r.method === "REVOKE" ? (
<td className="py-1.5 pr-3 text-xs">{t("разрешение снято")}</td>
) : (
<td className="py-1.5 pr-3 font-mono text-xs">
{r.method} {r.path}
</td>
)}
<td className="py-1.5">
<span className="flex flex-wrap items-center gap-1.5">
<Decision row={r} t={t} />
<span className="text-xs text-muted-foreground">{reasonText(r.reason, t)}</span>
</span>
</td>
</tr>
))}
</tbody>
</table>
</div>
)}
<JournalExport t={t} engineer={engineer} />
</Section>
</Workspace>
);
}

View File

@ -0,0 +1,195 @@
import Link from "@/components/Link";
import { notFound } from "next/navigation";
import { ExternalLink, KeyRound } from "lucide-react";
import { accessRequestForUser, catalogService, connectionsForRequest, type AccessRequestView, type CatalogService, type ConnectionView } from "@peppa/core";
import type { Translator } from "@peppa/shared/i18n";
import { AccessStatus, accessModeText, GrantRightsSelect, GrantTermSelect } from "@/components/AccessRequests";
import { Hidden } from "@/components/cards";
import { Flash, Notice, PageHeader, Section } from "@/components/common";
import { Button } from "@/components/ui/button";
import { Card } from "@/components/ui/card";
import { Input, Textarea } from "@/components/ui/input";
import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
import { connectAccessRequestAction, denyAccessRequestAction, grantAccessRequestAction } from "../../../actions";
export async function generateMetadata() {
const t = await getT();
return { title: t("Запрос доступа — FORGE") };
}
const SELECT = "h-9 rounded-md border border-input bg-background px-2 text-sm";
function Fact({ label, children }: { label: string; children: React.ReactNode }) {
return (
<div className="flex flex-col gap-0.5 sm:flex-row sm:gap-3">
<span className="w-32 shrink-0 text-muted-foreground">{label}</span>
<span className="min-w-0 break-words">{children}</span>
</div>
);
}
function DoneNotice({ done, check, t }: { done?: string; check?: string; t: Translator }) {
if (done === "denied") return <Notice>{t("Отказано. Агент получит вашу причину и продолжит без этого сервиса.")}</Notice>;
if (done !== "granted") return null;
const tail = check === "bad_key" ? t("Но сервис не принял ключ: замените его в разделе «Подключения».") : check === "down" ? t("Сервис сейчас не отвечает — ключ проверится при первом запросе агента.") : "";
return (
<Notice>
{t("Доступ выдан. Агент получил сообщение и продолжит работу; ключ доступа он не видит.")} {tail}
</Notice>
);
}
/** PEP-261: rights and term of the grant (1 day by default). */
function GrantFields({ r, t }: { r: AccessRequestView; t: Translator }) {
return (
<div className="flex flex-wrap items-center gap-2 text-sm">
<GrantRightsSelect r={r} t={t} />
<span className="text-muted-foreground">{t("на срок")}</span>
<GrantTermSelect t={t} />
</div>
);
}
function ConnectForm({ r, card, t }: { r: AccessRequestView; card: CatalogService | null; t: Translator }) {
const back = `/connections/requests/${r.id}`;
return (
<ol className="m-0 flex list-decimal flex-col gap-4 pl-5 text-sm">
<li className="flex flex-col gap-1">
<span className="font-medium">{t("Возьмите ключ доступа")}</span>
{card ? (
<>
<span className="text-muted-foreground">{t.text(card.keyHint)}</span>
<a href={card.keyUrl} target="_blank" rel="noreferrer noopener" className="inline-flex items-center gap-1 self-start text-primary underline-offset-2 hover:underline">
{t("Открыть страницу, где берут ключ")} <ExternalLink className="size-3" />
</a>
</>
) : (
<span className="text-muted-foreground">{t("Он есть в описании сервиса для разработчиков или у того, кто его сделал.")}</span>
)}
</li>
<li className="flex flex-col gap-2">
<span className="font-medium">{t("Вставьте его сюда")}</span>
<form action={connectAccessRequestAction} className="flex max-w-xl flex-col gap-2" autoComplete="off">
<Hidden fields={{ back, requestId: r.id }} />
{(!card || card.baseEditable) && <Input name="baseUrl" required type="url" defaultValue={r.host ?? ""} placeholder={card?.baseUrl ?? "https://api.example.com/v1"} aria-label={t("Адрес сервиса")} className="font-mono" spellCheck={false} />}
<Input name="secret" required type="password" placeholder={card?.auth === "basic" ? t("логин:пароль — после сохранения их не увидит никто") : t("Ключ доступа — после сохранения его не увидит никто")} aria-label={t("Ключ доступа")} autoComplete="new-password" />
{!card && (
<div className="flex flex-wrap items-center gap-2">
<select name="authKind" aria-label={t("Как передавать ключ")} className={SELECT} defaultValue="bearer">
<option value="bearer">{t("Как «Authorization: Bearer …»")}</option>
<option value="header">{t("В своём заголовке")}</option>
<option value="query">{t("В адресе запроса (параметр)")}</option>
<option value="basic">{t("Логин и пароль")}</option>
</select>
<Input name="authHeader" placeholder="X-Api-Key" aria-label={t("Имя заголовка или параметра")} className="max-w-48 font-mono" spellCheck={false} />
</div>
)}
<GrantFields r={r} t={t} />
<Button size="sm" className="self-start">{t("Подключить и разрешить")}</Button>
</form>
</li>
</ol>
);
}
function ExistingForm({ r, fit, other, t }: { r: AccessRequestView; fit: ConnectionView[]; other: ConnectionView[]; t: Translator }) {
const all = [...fit, ...other];
if (!all.length) return null;
return (
<form action={grantAccessRequestAction} className="flex flex-wrap items-center gap-2 text-sm">
<Hidden fields={{ back: `/connections/requests/${r.id}`, requestId: r.id }} />
<select name="connectionId" required aria-label={t("Подключение")} className={SELECT} defaultValue={fit[0]?.id ?? ""}>
{!fit.length && <option value="">{t("Выберите подключение")}</option>}
{all.map((c) => (
<option key={c.id} value={c.id}>
{c.name}
</option>
))}
</select>
<GrantFields r={r} t={t} />
<Button size="sm" variant="secondary">{t("Разрешить из уже подключённого")}</Button>
</form>
);
}
/** PEP-250: the card of an agent's access request — its project's owner only (others: 404). */
export default async function AccessRequestPage({ params, searchParams }: { params: Promise<{ id: string }>; searchParams: Promise<{ error?: string; done?: string; check?: string }> }) {
const [{ id }, q] = await Promise.all([params, searchParams]);
const user = await requireUser();
const t = await getT();
const r = /^\d+$/.test(id) ? await accessRequestForUser(db, user.id, Number(id)) : null;
if (!r) notFound();
const card = catalogService(r.catalogId);
const { fit, other } = r.status === "open" ? await connectionsForRequest(db, user.id, r) : { fit: [], other: [] };
return (
<Workspace>
<Flash error={q.error} />
<DoneNotice done={q.done} check={q.check} t={t} />
<PageHeader
title={<><KeyRound className="mr-1 inline size-5 text-primary" />{t("Агент просит доступ к {service}", { service: r.service })}</>}
crumbs={<Link href="/connections" className="hover:underline">{t("Подключения")}</Link>}
>
<p className="m-0 text-sm text-muted-foreground">
{r.status === "open"
? t("Агенту нужен этот сервис для работы над задачей. Ключ доступа вы вводите один раз, агент его не увидит: запросы выполняет FORGE и записывает их в журнал. Можно и отказать — агент продолжит без сервиса.")
: t("По этому запросу уже есть решение.")}
</p>
</PageHeader>
<Card className="flex flex-col gap-2 p-4 text-sm">
<div className="mb-1 flex flex-wrap items-center gap-2">
<AccessStatus r={r} t={t} />
{r.repeats > 0 && <span className="text-xs text-muted-foreground">{t("агент просил ещё раз: {n}", { n: r.repeats })}</span>}
</div>
<Fact label={t("Агент")}>{r.agentName ?? "—"}</Fact>
<Fact label={t("Задача")}>{r.taskKey ? <Link href={`/t/${r.taskKey}`} className="text-primary hover:underline">{r.taskKey}{r.taskTitle ? ` — ${r.taskTitle}` : ""}</Link> : "—"}</Fact>
<Fact label={t("Проект")}>{r.projectName}</Fact>
<Fact label={t("Сервис")}>
{r.service}
{card && (
<a href={card.docsUrl} target="_blank" rel="noreferrer noopener" className="ml-2 inline-flex items-center gap-1 text-xs text-muted-foreground hover:underline">
{t("Документация сервиса")} <ExternalLink className="size-3" />
</a>
)}
{!card && r.host && <span className="ml-2 font-mono text-xs text-muted-foreground">{r.host}</span>}
</Fact>
<Fact label={t("Что можно")}>{accessModeText(r.mode, t)}</Fact>
{/* The agent's own words: shown as is, never as instructions. */}
<Fact label={t("Зачем")}>{r.purpose}</Fact>
{r.status === "denied" && <Fact label={t("Причина отказа")}>{r.reason ?? t("без причины")}</Fact>}
</Card>
{r.status === "open" && (
<>
<Section title={t("Подключить и разрешить")}>
<Card className="p-4">
<ConnectForm r={r} card={card} t={t} />
<p className="m-0 mt-3 text-xs text-muted-foreground">
{t("Агенты проекта получат выбранный доступ на выбранный срок. Изменить, продлить или отозвать доступ можно в разделе «Подключения».")}
</p>
</Card>
</Section>
{fit.length + other.length > 0 && (
<Section title={t("Или разрешить из уже подключённого")}>
<Card className="p-4">
<ExistingForm r={r} fit={fit} other={other} t={t} />
</Card>
</Section>
)}
<Section title={t("Отказать")}>
<Card className="p-4">
<form action={denyAccessRequestAction} className="flex max-w-xl flex-col gap-2">
<Hidden fields={{ back: `/connections/requests/${r.id}`, requestId: r.id }} />
<Textarea name="reason" rows={2} maxLength={500} placeholder={t("Причина — агент её получит, например «используйте тестовые данные»")} aria-label={t("Причина отказа")} />
<Button size="sm" variant="destructive" className="self-start">{t("Отказать")}</Button>
</form>
</Card>
</Section>
</>
)}
</Workspace>
);
}

View File

@ -0,0 +1,49 @@
"use server";
// PEP-209: the superadmin's buttons on a delay card («Дашборд → Задержки»); PEP-279: old questions.
import { DELAY_REASON_NAMES, PeppaError, requireSuperadmin, type DelayAction, type DelayReason } from "@peppa/core";
import { closeStaleQuestions, delayAction } from "@peppa/runner";
import { revalidatePath } from "next/cache";
import { redirect } from "next/navigation";
import { asWebActor, requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
const BASE = "/dashboard/delays";
const str = (f: FormData, k: string) => String(f.get(k) ?? "").trim();
export async function delayActionForm(f: FormData) {
const user = asWebActor(await requireUser());
const params = new URLSearchParams();
try {
await requireSuperadmin(db, user);
const reason = str(f, "reason") as DelayReason;
const action = str(f, "action") as DelayAction;
const projectId = Number(str(f, "project"));
const taskId = str(f, "task") ? Number(str(f, "task")) : null;
if (!(reason in DELAY_REASON_NAMES) || !["restart", "review", "close"].includes(action) || !Number.isInteger(projectId)) throw new PeppaError("?");
const t = await getT();
params.set("ok", t.text(await delayAction(db, { projectId, taskId }, reason, action)).slice(0, 300));
} catch (e) {
const t = await getT();
params.set("error", (e instanceof PeppaError ? t.text(e.message) : t("Ошибка: {message}", { message: (e as Error).message })).slice(0, 300));
}
revalidatePath("/", "layout");
redirect(`${BASE}?${params}`);
}
/** PEP-279: «Закрыть все» on the old questions page — their default option, one summary per person. */
export async function closeStaleQuestionsAction() {
const user = asWebActor(await requireUser());
const params = new URLSearchParams();
const t = await getT();
try {
await requireSuperadmin(db, user);
const r = await closeStaleQuestions(db);
params.set("ok", t("Закрыто вопросов: {n}. Итоговое сообщение получили людей: {m}.", { n: r.closed.length, m: r.told }) + (r.failed ? " " + t("Не удалось закрыть: {n}.", { n: r.failed }) : ""));
} catch (e) {
params.set("error", (e instanceof PeppaError ? t.text(e.message) : t("Ошибка: {message}", { message: (e as Error).message })).slice(0, 300));
}
revalidatePath("/", "layout");
redirect(`/dashboard/questions?${params}`);
}

View File

@ -0,0 +1,49 @@
import Link from "@/components/Link";
import { notFound } from "next/navigation";
import { Hourglass } from "lucide-react";
import { isSuperadmin, platformDelayOverview } from "@peppa/core";
import { Empty, Flash, Notice, PageHeader, Section } from "@/components/common";
import { LiveRefresh } from "@/components/LiveRefresh";
import { PlatformDelays } from "@/components/PlatformDelays";
import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
export async function generateMetadata() {
const t = await getT();
return { title: t("Задержки — FORGE") };
}
/** PEP-209: every delay on the platform's side with the superadmin's buttons; «нужен администратор» first. */
export default async function Delays({ searchParams }: { searchParams: Promise<{ error?: string; ok?: string }> }) {
const user = await requireUser();
if (!(await isSuperadmin(db, user))) notFound();
const { error, ok } = await searchParams;
const t = await getT();
const all = await platformDelayOverview(db);
const admin = all.filter((d) => d.exhausted);
const trying = all.filter((d) => !d.exhausted);
return (
<Workspace>
<LiveRefresh scope="home" />
<Flash error={error} />
{ok && <Notice>{t.text(ok)}</Notice>}
<PageHeader title={<><Hourglass className="mr-1 inline size-5 text-primary" />{t("Задержки на стороне FORGE")}</>}>
{t("Что сейчас задерживается у пользователей и почему. Владельцы видят только строку ожидания на задаче.")}{" "}
<Link href="/dashboard" className="text-primary">{t("← Дашборд")}</Link>
</PageHeader>
{all.length === 0 && <Empty>{t("Задержек нет.")}</Empty>}
{admin.length > 0 && (
<Section title={t("Нужен администратор")} count={admin.length} id="admin">
<PlatformDelays delays={admin} actions />
</Section>
)}
{trying.length > 0 && (
<Section title={t("FORGE пробует сама")} count={trying.length} id="trying">
<PlatformDelays delays={trying} actions />
</Section>
)}
</Workspace>
);
}

View File

@ -0,0 +1,205 @@
import Link from "@/components/Link";
import { notFound } from "next/navigation";
import { Gauge } from "lucide-react";
import { isSuperadmin, platformDashboard, platformDelayCounts, type DashboardCounts } from "@peppa/core";
import { ago, Empty, PageHeader, Section } from "@/components/common";
import { LiveRefresh } from "@/components/LiveRefresh";
import { Badge } from "@/components/ui/badge";
import { Card } from "@/components/ui/card";
import { Workspace } from "@/components/Workspace";
import { requireUser } from "@/lib/auth";
import { db } from "@/lib/db";
import { getT } from "@/lib/i18n";
import { m } from "@peppa/shared/i18n";
import { STALE_DAYS, staleQuestions } from "@peppa/runner";
export async function generateMetadata() {
const t = await getT();
return { title: t("Дашборд — FORGE") };
}
const SIGN_IN: Record<string, string> = { egov: "eGov", google: "Google", gitea: "Gitea", local: m("пароль") };
/** «сделано / всего» with a thin bar. */
function Done({ c }: { c: DashboardCounts }) {
const pct = c.total ? Math.round((c.done / c.total) * 100) : 0;
return (
<span className="flex min-w-24 items-center gap-2">
<span className="h-1.5 w-14 overflow-hidden rounded-full bg-muted">
<span className="block h-full rounded-full bg-ok" style={{ width: `${pct}%` }} />
</span>
<span className="tabular-nums">
{c.done}/{c.total}
</span>
</span>
);
}
function Stat({ label, value, hint }: { label: string; value: number | string; hint?: string }) {
return (
<Card className="gap-0.5 px-4 py-3">
<span className="text-xs text-muted-foreground">{label}</span>
<span className="text-2xl font-semibold tabular-nums">{value}</span>
{hint && <span className="text-xs text-muted-foreground">{hint}</span>}
</Card>
);
}
const th = "px-2 py-1.5 text-left text-xs font-medium whitespace-nowrap text-muted-foreground";
const td = "px-2 py-1.5 align-top whitespace-nowrap";
/** PEP-167: the superadmin's view of every user and project of the platform. */
export default async function Dashboard() {
const user = await requireUser();
if (!(await isSuperadmin(db, user))) notFound();
const t = await getT();
const d = await platformDashboard(db);
const x = d.totals;
const delays = await platformDelayCounts(db);
const stale = (await staleQuestions(db)).length;
return (
<Workspace>
<LiveRefresh scope="home" />
<PageHeader title={<><Gauge className="mr-1 inline size-5 text-primary" />{t("Дашборд платформы")}</>}>
{t("Как идут дела у всех пользователей и во всех проектах. Видит только суперадмин.")}
</PageHeader>
<div className="mb-6 grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6" data-dashboard-totals>
<Stat label={t("Пользователи")} value={x.users} hint={t("новых за неделю: {n} · активны за сутки: {m}", { n: x.newUsers7d, m: x.activeUsers24h })} />
<Stat label={t("Проекты")} value={x.projects} />
<Stat label={t("Задачи готово")} value={`${x.done}/${x.total}`} hint={t("в работе {a} · ждут «Принять» {b} · бэклог {c}", { a: x.inProgress, b: x.review, c: x.backlog })} />
<Stat label={t("Принято")} value={x.acceptedLast24h} hint={t("за сутки · за неделю: {n}", { n: x.acceptedLast7d })} />
<Stat label={t("Агенты работают")} value={x.agentsNow} />
<Stat label={t("Ждут ответа людей")} value={x.openQuestions} />
</div>
<p className="mb-4 text-sm" data-dashboard-delays>
<Link href="/dashboard/delays" className="text-primary">
{delays.total ? t("Задержки на платформе: {n}, требуют вас: {m}", { n: delays.total, m: delays.admin }) : t("Задержек на платформе нет")} →
</Link>
</p>
{stale > 0 && (
<p className="mb-4 text-sm" data-dashboard-stale>
<Link href="/dashboard/questions" className="text-primary">
{t("Вопросы без ответа дольше {days} дней: {n} — закрыть вариантом по умолчанию", { days: STALE_DAYS, n: stale })} →
</Link>
</p>
)}
<Section title={t("Требует внимания")} count={d.attention.length} id="attention">
{d.attention.length === 0 ? (
<Empty>{t("Всё в порядке: ничего не зависло.")}</Empty>
) : (
<ul className="m-0 flex list-none flex-col gap-1.5 p-0">
{d.attention.map((a, i) => (
<li key={i} className="flex flex-wrap items-baseline gap-2 rounded-md border bg-card px-3 py-2 text-sm" data-attention={a.kind}>
<Badge variant={a.kind === "subscription" || a.kind === "question" ? "warn" : "muted"}>{a.who}</Badge>
<Link href={a.href} className="text-foreground hover:text-primary">{t.text(a.text)}</Link>
</li>
))}
</ul>
)}
</Section>
<Section title={t("Пользователи")} count={d.users.length} id="users">
<div className="overflow-x-auto rounded-lg border bg-card">
<table className="w-full border-collapse text-sm" data-dashboard-users>
<thead className="border-b">
<tr>
<th className={th}>{t("Пользователь")}</th>
<th className={th}>{t("Вход")}</th>
<th className={th}>{t("Проекты")}</th>
<th className={th}>{t("Готово")}</th>
<th className={th}>{t("В работе")}</th>
<th className={th}>{t("Ждут «Принять»")}</th>
<th className={th}>{t("Агенты")}</th>
<th className={th}>{t("Вопросы")}</th>
<th className={th}>{t("Принято за неделю")}</th>
<th className={th}>{t("Активность")}</th>
</tr>
</thead>
<tbody>
{d.users.map((u) => (
<tr key={u.id} className="border-b last:border-0">
<td className={td}>
<span className="font-medium">{u.name || u.login}</span>
{u.name && <span className="ml-1 text-xs text-muted-foreground">{u.login}</span>}
<div className="text-xs text-muted-foreground">{t("с {date}", { date: u.createdAt.toLocaleDateString("ru-RU") })}</div>
</td>
<td className={td}>
{t.text(SIGN_IN[u.signIn] ?? u.signIn)}
{u.telegram && <Badge variant="muted" className="ml-1">Telegram</Badge>}
</td>
<td className={td}>
{u.projects.length ? (
<span className="flex flex-wrap gap-1">
{u.projects.map((k) => (
<Link key={k} href={`/p/${k}`} className="font-mono text-xs text-primary">{k}</Link>
))}
</span>
) : (
<span className="text-muted-foreground">{t("нет")}</span>
)}
</td>
<td className={td}><Done c={u} /></td>
<td className={`${td} tabular-nums`}>{u.inProgress}</td>
<td className={`${td} tabular-nums`}>{u.review}</td>
<td className={`${td} tabular-nums`}>{u.agentsNow}</td>
<td className={`${td} tabular-nums`}>{u.openQuestions}</td>
<td className={`${td} tabular-nums`}>{u.acceptedLast7d}</td>
<td className={`${td} text-muted-foreground`}>{ago(u.lastActiveAt, t)}</td>
</tr>
))}
</tbody>
</table>
</div>
</Section>
<Section title={t("Проекты")} count={d.projects.length} id="projects">
<div className="overflow-x-auto rounded-lg border bg-card">
<table className="w-full border-collapse text-sm" data-dashboard-projects>
<thead className="border-b">
<tr>
<th className={th}>{t("Проект")}</th>
<th className={th}>{t("Владелец")}</th>
<th className={th}>{t("Готово")}</th>
<th className={th}>{t("Бэклог")}</th>
<th className={th}>{t("В работе")}</th>
<th className={th}>{t("Ждут «Принять»")}</th>
<th className={th}>{t("Агенты")}</th>
<th className={th}>{t("Вопросы")}</th>
<th className={th}>{t("Продукт")}</th>
<th className={th}>{t("Активность")}</th>
</tr>
</thead>
<tbody>
{d.projects.map((p) => (
<tr key={p.id} className="border-b last:border-0">
<td className={td}>
<Link href={`/p/${p.key}`} className="font-mono text-primary">{p.key}</Link> <span>{p.name}</span>
{p.warning && <div className="max-w-xs text-xs whitespace-normal text-warn">{t("Агенты не запустятся")}</div>}
</td>
<td className={`${td} text-muted-foreground`}>{p.ownerLogin ?? "—"}</td>
<td className={td}><Done c={p} /></td>
<td className={`${td} tabular-nums`}>{p.backlog}</td>
<td className={`${td} tabular-nums`}>{p.inProgress}</td>
<td className={`${td} tabular-nums`}>{p.review}</td>
<td className={`${td} tabular-nums`}>{p.agentsNow}</td>
<td className={`${td} tabular-nums`}>{p.openQuestions}</td>
<td className={td}>
{p.productUrl ? (
<a href={p.productUrl} target="_blank" rel="noreferrer" className="text-primary">{t("открыть")}</a>
) : (
<span className="text-muted-foreground">—</span>
)}
</td>
<td className={`${td} text-muted-foreground`}>{ago(p.lastActiveAt, t)}</td>
</tr>
))}
</tbody>
</table>
</div>
</Section>
</Workspace>
);
}

Some files were not shown because too many files have changed in this diff Show More