feat: add outbound attachment support with media.send tool

Introduces OutboundAttachment type on OutboundMessage, an
OutboundAttachmentCollector (push/drain pattern), and a media.send
tool that queues files for outbound delivery. Each channel adapter
(Telegram, Discord, Slack, WhatsApp) sends attachments after the
text reply. Includes 15 tests for collector and tool.
This commit is contained in:
William Valentin
2026-02-07 09:09:00 -08:00
parent 1e6f6bb5a4
commit b9bfee9c5b
15 changed files with 576 additions and 21 deletions
+1
View File
@@ -1,4 +1,5 @@
export { NativeAgent, type NativeAgentConfig, type ToolUseEvent } from './agent.js';
export { OutboundAttachmentCollector } from './attachments.js';
export {
AgentOrchestrator,
type OrchestratorConfig,