import { getDriver } from "../lib/neo4j.js";
import { expungeConversationMemory } from "../lib/graph-prune.js";
import { withWriteEvent } from "../lib/log-ingest.js";
export async function conversationMemoryExpunge(params) {
    return withWriteEvent({
        tool: "conversation-memory-expunge",
        accountId: params.accountId,
        session: params.sessionId,
        name: params.pattern,
    }, () => {
        const driver = getDriver();
        return expungeConversationMemory(driver, params.accountId, params.sessionId, params.pattern);
    });
}
//# sourceMappingURL=conversation-memory-expunge.js.map