TeamMemoryService class

Service for managing team and project memory files.

Constructors

TeamMemoryService({required String projectRoot})

Properties

events Stream<MemoryEvent>
Event stream.
no setter
files List<MemoryFile>
All tracked memory files.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptMemory(ExtractedMemory memory, {String? targetPath, String? heading}) Future<MemoryFile>
Accept an extracted memory and add it to a memory file.
addSection(String path, {required String heading, required String content, int level = 2}) Future<MemoryFile>
Add a section to a memory file.
buildContext({bool includeLocal = true, bool includeTeam = true, bool includeRules = true, int? maxTokens}) String
Build the combined memory context for the system prompt.
dispose() → void
Dispose resources.
extractFromMessage(String message, {String? sessionId}) List<ExtractedMemory>
Extract potential memories from a conversation message.
getExtractedMemories({MemoryCategory? category, double minConfidence = 0.0}) List<ExtractedMemory>
Get all extracted memories, optionally filtered.
load(String path) Future<MemoryFile?>
Load a specific memory file.
loadAll() Future<List<MemoryFile>>
Scan and load all memory files in the project.
mergeContent(String local, String remote, {String? base}) String
Merge two versions of a memory file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSection(String path, String heading) Future<MemoryFile?>
Remove a section from a memory file by heading.
save(String path, String content) Future<MemoryFile>
Save content to a memory file.
startWatching({Duration interval = const Duration(seconds: 5)}) → void
Start watching memory files for external changes.
stopWatching() → void
Stop watching.
toString() String
A string representation of this object.
inherited
updateSection(String path, {required String heading, required String newContent}) Future<MemoryFile?>
Update a section's content in a memory file.

Operators

operator ==(Object other) bool
The equality operator.
inherited