setMemoryEntitiesOp()
setMemoryEntitiesOp(
ctx:VaultMemoryOperationsContext,memoryId:string,entities: readonlyEntityInput[]):Promise<StoredVaultMemory|null>
Defined in: src/lib/db/memoryVault/operations.ts:1309
Replace a memory’s topic (entity) links with a user-chosen set and mark the
memory topics_user_managed so auto-extraction stops touching its links.
Replace semantics: the given entities become the memory’s complete topic
set (pass [] to clear all topics — the memory stays user-managed and
unclustered). Requires ctx.entityCtx. Preserves updated_at so a topic
edit doesn’t inflate the recency multiplier — topics_updated_at is what
carries the edit to the user’s other devices.
Parameters
| Parameter | Type |
|---|---|
|
| |
|
|
|
|
|
readonly |
Returns
Promise<StoredVaultMemory | null>
Deprecated
App code: use MemoryStore.setTopics (createLocalMemoryStore).