claude-historian
Version:
an MCP server for Claude Code conversation history
22 lines • 1.06 kB
TypeScript
import { CompactMessage, SearchResult, FileContext, ErrorSolution, ToolPattern } from './types.js';
export declare class HistorySearchEngine {
private parser;
private messageCache;
constructor();
searchConversations(query: string, projectFilter?: string, timeframe?: string, limit?: number): Promise<SearchResult>;
private streamingSearch;
private isSummaryMessage;
private isHighValueMessage;
private prioritizeResultsForClaudeCode;
private classifyQueryType;
private getOptimalLimit;
private enhanceQueryIntelligently;
private calculateRelevanceScore;
private matchesTimeframe;
findFileContext(filePath: string, limit?: number): Promise<FileContext[]>;
findSimilarQueries(targetQuery: string, limit?: number): Promise<CompactMessage[]>;
getErrorSolutions(errorPattern: string, limit?: number): Promise<ErrorSolution[]>;
getToolPatterns(toolName?: string, limit?: number): Promise<ToolPattern[]>;
getRecentSessions(limit?: number): Promise<any[]>;
}
//# sourceMappingURL=search.d.ts.map