Отключение агента менеджера: на время и до команды владельца (миграция 017, API pause/resume, события, шаг 2 и приём сообщений); тесты; docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
8
packages/khb_common/migrations/017_agent_pause.sql
Normal file
8
packages/khb_common/migrations/017_agent_pause.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Отключение агента у менеджера: на время (paused_until) или до команды владельца (agent_paused).
|
||||
-- Отключённому агенту ассистент ничего не пишет и не обрабатывает его сообщения (события, шаг 2, ответы в чате).
|
||||
alter table construction_manager
|
||||
alter column paused_until type timestamptz using ((paused_until + 1)::timestamp at time zone 'UTC'),
|
||||
add column agent_paused boolean not null default false,
|
||||
add column pause_reason text,
|
||||
add column paused_by text,
|
||||
add column paused_at timestamptz;
|
||||
Reference in New Issue
Block a user