/** * Memory Controller * * Orchestration layer for memory operations. * Composes MemoryRepository, MemoryService, MemoryGraphService, * and the consolidation job. * * Tools (store_memory, search_memories) delegate here. * This is the single entry point for all memory use cases. */ import { MemoryType, MemoryLevel } from "@massa-th0th/shared"; import type { MemoryRow } from "../data/memory/memory-repository.js"; import { type ScoredMemory } from "../services/memory/memory-service.js"; export interface StoreMemoryInput { content: string; type: MemoryType; userId?: string; sessionId?: string; projectId?: string; agentId?: string; importance?: number; tags?: string[]; linkTo?: string[]; } export interface StoreMemoryResult { memoryId: string; stored: "local"; level: MemoryLevel; type: MemoryType; } export interface SearchMemoryInput { query: string; userId?: string; sessionId?: string; projectId?: string; agentId?: string; types?: MemoryType[]; minImportance?: number; limit?: number; includePersistent?: boolean; includeRelated?: boolean; } export interface SearchMemoryResult { memories: ScoredMemory[]; relatedSummaries: Record; query: string; total: number; } export interface UpdateMemoryInput { id: string; content?: string; importance?: number; tags?: string[]; /** When true, union `tags` with existing tags instead of replacing. */ mergeTags?: boolean; } export interface UpdateMemoryResult { id: string; updated: boolean; memory?: Omit; } export interface DeleteMemoryResult { id: string; deleted: boolean; } export declare class MemoryController { private static instance; private readonly repo; private readonly service; private readonly graph; private constructor(); static getInstance(): MemoryController; store(input: StoreMemoryInput): Promise; update(input: UpdateMemoryInput): Promise; delete(id: string): Promise; search(input: SearchMemoryInput): Promise; } //# sourceMappingURL=memory-controller.d.ts.map