UpdateVaultMemoryOptions
Defined in: src/lib/db/memoryVault/types.ts:56
Properties
content
content:
string
Defined in: src/lib/db/memoryVault/types.ts:57
embedding?
optionalembedding:string|null
Defined in: src/lib/db/memoryVault/types.ts:63
JSON-stringified embedding vector to persist, or null to clear stale embedding
eventTime?
optionaleventTime:object
Defined in: src/lib/db/memoryVault/types.ts:83
W6 temporal lane — write the event-time fields on update. Use during auto-merge to preserve (or refine) the original event-time signal when a new observation lands on an existing fact. Omit to leave the existing values untouched.
end
end:
number|null
kind
kind:
"point"|"range"|"ongoing"|null
start
start:
number|null
folderId?
optionalfolderId:string|null
Defined in: src/lib/db/memoryVault/types.ts:61
If provided, moves the memory to this folder.
preserveUpdatedAt?
optionalpreserveUpdatedAt:boolean
Defined in: src/lib/db/memoryVault/types.ts:94
When true, restore the existing updated_at after the write so the
recency multiplier doesn’t see a re-observation as a brand-new fact.
Set by auto-merge/consolidate paths — they want proof_count to bump
without inflating recency on top.
proofCount?
optionalproofCount:number
Defined in: src/lib/db/memoryVault/types.ts:69
Set an absolute proof count. Prefer proofCountIncrement for re-observation paths so the read+write happens inside the writer and concurrent retains can’t lose updates.
proofCountIncrement?
optionalproofCountIncrement:number
Defined in: src/lib/db/memoryVault/types.ts:74
Atomically bump proof_count by this delta inside the write block.
Reads the current value from the in-memory record at write time, so
two parallel retain() calls observe each other’s commits and neither
loses its increment. Wins over proofCount when both are set.
scope?
optionalscope:string
Defined in: src/lib/db/memoryVault/types.ts:59
If provided, updates the memory’s scope.
source?
optionalsource:string
Defined in: src/lib/db/memoryVault/types.ts:76
Set source (“manual” | “auto-extracted” | “capsule”).
sourceChunkIds?
optionalsourceChunkIds:string[]
Defined in: src/lib/db/memoryVault/types.ts:65
Replace source-chunk-ids list (used during merge to accumulate provenance).