Implements IPersistMemoryInstance
Default file-based implementation of IPersistMemoryInstance.
Features:
removed: true flagconstructor(signalId: string, bucketName: string);
signalId: string
bucketName: string
_storage: any
Underlying file-based storage scoped to this context
waitForInit(initial: boolean): Promise<void>;
Initializes the underlying PersistBase storage.
readMemoryData(memoryId: string): Promise<MemoryData | null>;
Reads a memory entry by id. Returns null if entry is missing or soft-deleted.
hasMemoryData(memoryId: string): Promise<boolean>;
Checks whether a memory entry exists on disk (regardless of removed flag).
writeMemoryData(data: MemoryData, memoryId: string, _when: Date): Promise<void>;
Writes a memory entry under the given id.
removeMemoryData(memoryId: string): Promise<void>;
Soft-deletes a memory entry by writing removed: true flag.
listMemoryData(): AsyncGenerator<{
memoryId: string;
data: MemoryData;
}>;
Iterates all memory entries in the bucket, yielding id + data tuples for non-removed entries only.
dispose(): void;
No-op for the default file-based implementation. Resource cleanup (memo cache invalidation) is handled by PersistMemoryUtils.dispose().