/** * Core poll-loop orchestrator for remote_copilot_wait_for_instructions. * * This is the main long-polling loop that: * - Polls the dispatcher for new operator messages every 2s * - Processes all media types: text, photo, document, voice, video_note * - Runs voice analysis (transcription + emotion via VANPY) * - Auto-saves episodes to memory * - Injects relevant memory context via GPT-4o-mini smart filter * - Checks scheduled tasks during idle polling * - Triggers auto-consolidation (idle, episode-count, time-based) * - Sends SSE keepalive pings every 30s * - Detects maintenance flags and instructs agent to wait externally * - Activates the Dispatcher drive after extended operator silence */ import type { ToolResult } from "../../lib/types.js"; import type { WaitToolContext, WaitToolExtra } from "./context.js"; export declare function handleWaitForInstructions(args: Record, ctx: WaitToolContext, extra: WaitToolExtra): Promise; //# sourceMappingURL=poll-loop.d.ts.map