Чат руководителя (chat_kind = ceo, промт p-ceo-assistant, ответ в разделе «Ответ Arthur»); блоки входа и правило про todo - всем версиям, необязательные фрагменты; тесты; docs
All checks were successful
ci / test (push) Successful in 24s
ci / deploy (push) Successful in 1m26s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 18:22:10 +03:00
parent 059ece8578
commit 77b6e4ae3b
11 changed files with 82 additions and 28 deletions

View File

@@ -11,7 +11,7 @@ export async function listManagers(pool: Pool, modes: string[], opts: { includeP
// в пассивное окно календаря (например, вторник) системные события не идут никому
if (!opts.includePaused && (await activeWindow(pool, opts.now))) return [];
const { rows } = await pool.query(
`select distinct cm.person_id, p.display_name, cm.slack_user_id, cm.slack_channel_id, cm.reply_mode, cm.tts_voice
`select distinct cm.person_id, p.display_name, cm.slack_user_id, cm.slack_channel_id, cm.reply_mode, cm.tts_voice, cm.chat_kind
from construction_manager cm join person p on p.id = cm.person_id
join assistant_project ap on ap.manager_person_id = cm.person_id and ap.is_enabled and ap.mode = any($1)
where cm.is_active and p.is_active${opts.includePaused ? "" : ` and ${NOT_PAUSED_SQL("cm")}`}`,