/** * Thread management tools: start_thread and send_message_to_thread. * * Refactored from the original delegate_to_thread — the delegation workflow * is now: start_thread(name) → send_message_to_thread(threadId, task). * * start_thread: ensures an agent session is running on a named thread. * send_message_to_thread: queues a message for the target thread's agent. * * Process lifecycle code (spawning, PID tracking, cleanup) lives in * thread-lifecycle.ts. */ import type { TelegramClient } from "../services/telegram.js"; import type { ToolResult } from "../lib/types.js"; import { initMemoryDb } from "../data/memory/schema.js"; import type { ThreadLifecycleService } from "../services/thread-lifecycle.service.js"; export interface DelegateToolContext { telegram: TelegramClient; telegramChatId: string; getMemoryDb: () => ReturnType; threadLifecycle: ThreadLifecycleService; } export declare function handleStartThread(args: Record, ctx: DelegateToolContext): Promise; export declare function handleSendMessageToThread(args: Record): Promise; //# sourceMappingURL=delegate-tool.d.ts.map