/**
 * Hooks adapter — memory namespace.
 *
 * Thin wrapper over the shared MemoryEngine. Exposes the four operations
 * hosts need for local-loop memory work: store, recall, stats, hygiene.
 * Everything else remains MCP-only.
 */
export function createMemoryHooks(memory) {
    return {
        store(content, options = {}) {
            return memory.store(content, options.priority ?? 1.0, options.tags ?? [], options.parentId, options.depth ?? 0);
        },
        recall(query, options = {}) {
            return memory.recall(query, options.k ?? 5, options.filters ?? {});
        },
        stats() {
            return memory.getStats();
        },
        hygiene(options = {}) {
            return memory.runHygiene(options);
        },
    };
}
