/** * Observe Step — ported from KB sleep/steps/observe.ts. * * Extracts structured facts from recent chat memories and stores them. * This is the sleep-path version of ingest.extractFacts: * - Finds recently ingested chat memories that haven't been fact-extracted yet * - LLM extracts facts (content, category, confidence, entities) * - Each valid fact is stored via deps.structured.storeFact * * Adapter note: KB's observe step targets the facts table via ensureFactsTable * and storeFact from fact-store.ts. Arcana uses deps.structured.storeFact. * The extraction prompt is ported verbatim from KB fact-extractor.ts:20-31 * (FACT_EXTRACTION_PROMPT, also used in Arcana's ingest.extractFacts). */ import type { MaintainDeps } from '../index.js'; import type { SleepConfig } from '../config.js'; export interface ObserveResult { count: number; processed: number; errors?: string[]; } export declare function runObserveConversations(deps: MaintainDeps, config: SleepConfig): Promise; //# sourceMappingURL=observe-conversations.d.ts.map