Rebuild graph edges on changes
All checks were successful
Publish Library / Build NPM Project (push) Successful in 46s
Publish Library / Tag Version (push) Successful in 19s

This commit is contained in:
2026-08-04 17:05:58 -04:00
parent 3f1289d993
commit 878a8794ee
3 changed files with 6 additions and 6 deletions

View File

@@ -43,6 +43,7 @@ export class MemoryCache {
add(memory: Memory): void {
this.memories.push(memory);
rebuildGraph(this.memories);
this.rebuild();
}
@@ -53,6 +54,7 @@ export class MemoryCache {
} else {
this.memories.push(memory);
}
rebuildGraph(this.memories);
this.rebuild();
}
@@ -60,6 +62,7 @@ export class MemoryCache {
const idx = this.memories.findIndex(m => m.name === name);
if (idx !== -1) {
this.memories.splice(idx, 1);
rebuildGraph(this.memories);
this.rebuild();
}
}