Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

checkpoint: File edit:

rUvd9b50b551c3b
diff --git a/v3/@claude-flow/memory/src/agentdb-backend.ts b/v3/@claude-flow/memory/src/agentdb-backend.ts
index 23a12c8213..cbcde17379 100644
--- a/v3/@claude-flow/memory/src/agentdb-backend.ts
+++ b/v3/@claude-flow/memory/src/agentdb-backend.ts
@@ -717,10 +717,23 @@ export class AgentDBBackend extends EventEmitter implements IMemoryBackend {
* Delete entry from AgentDB
*/
private async deleteFromAgentDB(id: string): Promise<void> {
- if (!this.agentdb?.database) return;
+ if (!this.agentdb) return;
- const db = this.agentdb.database;
- await db.run('DELETE FROM memory_entries WHERE id = ?', [id]);
+ try {
+ // Try native delete method first
+ if (typeof this.agentdb.delete === 'function') {
+ await this.agentdb.delete(id);
+ return;
+ }
+
+ // Fallback to database
+ const db = this.agentdb.database;
+ if (!db || typeof db.run !== 'function') return;
+
+ await db.run('DELETE FROM memory_entries WHERE id = ?', [id]);
+ } catch {
+ // Delete failed - entry removed from in-memory
+ }
}
/**