/** * brain-memory — Reflection store * * Stores reflection insights as graph nodes with: * - Appropriate type/category mapping based on insight kind * - Edge connections to related nodes * - Importance boosting for validated insights * - Safety filtering to prevent prompt injection * * Design: reflection results are graph nodes (not flat text), * so they participate in PPR ranking, community detection, and decay. */ import { type DatabaseSyncInstance } from "@photostructure/sqlite"; import type { BmConfig, ReflectionInsight } from "../types"; /** Map reflection insight kind to graph node type + memory category */ export declare function mapInsightToNode(insight: ReflectionInsight): { type: "TASK" | "SKILL" | "EVENT"; category: string; prefix: string; }; export declare function storeReflectionInsights(db: DatabaseSyncInstance, insights: ReflectionInsight[], sessionId: string, cfg: BmConfig): { stored: number; boosted: number; }; export declare function applyTurnBoosts(db: DatabaseSyncInstance, boosts: Array<{ name: string; reason: string; importanceDelta: number; }>, maxBoost?: number): number; //# sourceMappingURL=store.d.ts.map