Промты согласованы и установлены всем менеджерам: recap, Control todo (миграция 023, ControlWatcher), fallback на английском; tasks.md очищен
All checks were successful
ci / test (push) Successful in 25s
ci / deploy (push) Successful in 2m7s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 08:28:06 +03:00
parent 4f287519cc
commit 7c26b38a49
34 changed files with 449 additions and 36 deletions

View File

@@ -16,6 +16,7 @@ import { createTokenProvider, parseServiceAccountKey } from "./gdrive/service-ac
import { createGoogleDrive } from "./slack/drive.js";
import { DriveInbox } from "./slack/drive-inbox.js";
import { SlackIntake, rowToManager } from "./slack/intake.js";
import { ControlWatcher } from "./slack/control.js";
import { createGoogleTts } from "./slack/tts.js";
const { common, service } = loadServiceSettings("khbuild_assistant_prep", assistantPrepSchema);
@@ -107,6 +108,8 @@ log.info({ port: service.http.port }, "khbuild_assistant_prep запущен");
if (service.slack && chatDeps) {
const intake = new SlackIntake(chatDeps, { channelIds: service.slack.channelIds, debounceMs: service.slack.debounceSeconds * 1000, followupMs: service.slack.followupMinutes * 60_000, recapSilenceMs: service.slack.recapSilenceMinutes * 60_000, recapFromHour: service.slack.recapFromHour, recapToHour: service.slack.recapToHour });
if (service.slack.controlCheckMinutes > 0)
new ControlWatcher(chatDeps, { loadManager: (id) => intake.findManagerByPerson(id), intervalMs: service.slack.controlCheckMinutes * 60_000, fromHour: service.slack.recapFromHour, toHour: service.slack.recapToHour }).start();
void intake.restoreRecapTimers().catch((e) => log.error({ err: String(e) }, "восстановление таймеров recap не удалось"));
startSocketMode({ appToken: service.slack.appToken, log, onEvent: (ev) => void intake.onEvent(ev).catch((e) => log.error({ err: String(e) }, "ошибка приёма события Slack")) });
if (service.drive && driveClient && service.drive.inboxScanSeconds > 0) {