/** * Tool Bridge Logging Utilities * * Purpose: * Shared LLM↔tool debug logging helpers used by both orchestrator and * memory-manager to trace request/result/error handoff payloads. * * Key Features: * - Structured bridge logs through the core logger (`llm.tool.bridge`) for realtime log streaming * - LOG_LLM_TOOL_BRIDGE supports explicit levels (`trace|debug|info|warn|error`) and boolean aliases (`1|true|on` => debug) * - Simplified output showing only type, tool name, and truncated content (100-200 chars) * - Safe JSON serialization with fallback to `String()` * * Implementation Notes: * - Extracted from orchestrator.ts and memory-manager.ts to eliminate duplication * - Filters verbose metadata, keeps only essential debugging fields * * Changes: * - 2026-02-28: Added canonical feature-path category emission (`tool.call.*`, `tool.continuation`) while preserving legacy bridge logging behavior. * - 2026-02-27: Replaced ad-hoc `[LLM↔TOOLS]` console logging with structured category logger events. * - 2026-02-16: Extracted shared tool-bridge logging utilities from orchestrator * and memory-manager into a dedicated module. * - 2026-02-17: Simplified logToolBridge to show only type, tool name, and truncated * content/args/result (100-300 chars max) for better debugging ergonomics. Removed * worldId, agentId, chatId, hopCount, retryCount and other verbose metadata. */ export declare function safeSerializeForConsole(value: unknown): string; export declare function isToolBridgeLoggingEnabled(): boolean; export declare function logToolBridge(direction: string, payload: unknown): void; export declare function getToolResultPreview(value: unknown): string;