/** * Context Injector * * Intelligently selects and formats context for injection into new conversations. * Combines working memory, handoffs, decisions, and file history. */ import type { Database } from "better-sqlite3"; import type { InjectedContext, ContextInjectionOptions } from "../memory/types.js"; export declare class ContextInjector { private memoryStore; private handoffStore; constructor(db: Database); /** * Get relevant context for a new conversation */ getRelevantContext(options: ContextInjectionOptions): Promise; /** * Format context for direct injection into conversation */ formatForInjection(context: InjectedContext): string; /** * Get priority for a memory item based on tags and recency */ private getMemoryPriority; /** * Estimate token count for a string (rough approximation) */ private estimateTokens; /** * Select items within token budget, prioritizing by importance */ private selectWithinBudget; /** * Generate a summary of the injected context */ private generateSummary; } //# sourceMappingURL=ContextInjector.d.ts.map