/** * Session Tools Service * * Handles session querying operations for the LLM tool system. * Extracted from ToolExecutionService to follow Single Responsibility Principle. * * Operations: * - List recent sessions * - Search sessions for content * - Get session details */ import type { getLogger } from '../../output/logger.js'; type Logger = ReturnType; /** * Service for session query operations */ export declare class SessionToolsService { private readonly workingDir; constructor(workingDir?: string, _logger?: Logger); /** * Execute query session tool */ executeQuerySession(args: Record): Promise; /** * List recent sessions with metadata */ private listSessions; /** * Parse session files into summaries */ private parseSessionFiles; /** * Parse a single session file into a summary */ private parseSessionFile; /** * Search sessions for matching content */ private searchSessions; /** * Search a single session file for matching content */ private searchSessionFile; /** * Extract a snippet around a match with context */ private extractMatchSnippet; /** * Get details of a specific session */ private getSessionDetails; /** * Format command details for output */ private formatCommandDetails; /** * Format a single output value with truncation */ private formatOutputValue; /** * Resolve a path relative to the working directory */ private resolvePath; } /** * Get the singleton SessionToolsService instance */ export declare function getSessionToolsService(workingDir?: string): SessionToolsService; /** * Reset the singleton instance (for testing) */ export declare function resetSessionToolsService(): void; export {}; //# sourceMappingURL=session-tools.service.d.ts.map