/** * [INPUT]: extracted items, existing entries * [OUTPUT]: entries mutated via Mem0 four-operation pipeline (ADD/UPDATE/DELETE/NOOP) * [POS]: Implements Mem0 update semantics — slot-based, tag-overlap, and retract * * Key improvements over basic approach: * - UPDATE generalized: any entry type, tag overlap > 0.7 triggers content replacement * - DELETE: retract-type extractions find and remove matching entries */ import type { NanomemConfig } from "./config.js"; import type { ExtractedItem, MemoryEntry } from "./types.js"; /** Process a single extracted item through the Mem0 pipeline */ export declare function applyExtraction(entries: MemoryEntry[], item: ExtractedItem, project: string, cfg: NanomemConfig): void;