feat: Discord-based agent wakeup replacing spawn

New wakeup flow:
1. Create private Discord channel for the agent
2. Send wakeup message with slot context + workflow reference
3. If Dirigent detected (globalThis.__dirigent), create work-type channel
4. Fallback to api.spawn if Discord not configured

New config fields: discordBotToken, discordGuildId
New file: plugin/calendar/discord-wakeup.ts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
operator
2026-04-18 20:28:59 +00:00
parent 7e4750fcc4
commit be30b4b3f4
4 changed files with 209 additions and 29 deletions

View File

@@ -32,3 +32,4 @@ export * from './types';
export * from './calendar-bridge';
export * from './scheduler';
export * from './schedule-cache';
export * from './discord-wakeup';