/** * Live Extractor * * Extracts decisions, file operations, and errors from parsed messages * in real-time and stores them in working memory. */ import type { Database } from "better-sqlite3"; import type { ParsedMessage } from "./IncrementalParser.js"; import type { RealtimeConfig } from "../memory/types.js"; import { WorkingMemoryStore } from "../memory/WorkingMemoryStore.js"; /** * Result of extraction processing */ export interface ExtractionResult { messagesProcessed: number; decisionsExtracted: number; filesTracked: number; errorsDetected: number; memoryItemsCreated: number; } export declare class LiveExtractor { private memoryStore; private config; private decisionPatterns; private errorPatterns; constructor(db: Database, config?: Partial); /** * Process a batch of messages and extract relevant information */ processMessages(filePath: string, messages: ParsedMessage[]): Promise; /** * Extract project path from file path */ private extractProjectPath; /** * Extract decisions from message content */ private extractDecisions; /** * Calculate confidence score for a decision */ private calculateDecisionConfidence; /** * Deduplicate similar decisions */ private deduplicateDecisions; /** * Extract file operation from tool use */ private extractFileOperation; /** * Extract errors from content */ private extractErrors; /** * Store a detected decision in working memory */ private storeDecision; /** * Store a file operation in working memory */ private storeFileOperation; /** * Store an error in working memory */ private storeError; /** * Get the working memory store for direct access */ getMemoryStore(): WorkingMemoryStore; } //# sourceMappingURL=LiveExtractor.d.ts.map