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 edits

rUv26eb3da05d61
diff --git a/v3/@claude-flow/cli/src/memory/memory-initializer.ts b/v3/@claude-flow/cli/src/memory/memory-initializer.ts
index 3f508594a6..548f3828b8 100644
--- a/v3/@claude-flow/cli/src/memory/memory-initializer.ts
+++ b/v3/@claude-flow/cli/src/memory/memory-initializer.ts
@@ -1874,14 +1874,20 @@ export async function storeEntry(options: {
embeddingModel = embResult.model;
}
- // Insert entry
- db.run(`
- INSERT INTO memory_entries (
- id, key, namespace, content, type,
- embedding, embedding_dimensions, embedding_model,
- tags, metadata, created_at, updated_at, expires_at, status
- ) VALUES (?, ?, ?, ?, 'semantic', ?, ?, ?, ?, ?, ?, ?, ?, 'active')
- `, [
+ // Insert or update entry (upsert mode uses REPLACE)
+ const insertSql = upsert
+ ? `INSERT OR REPLACE INTO memory_entries (
+ id, key, namespace, content, type,
+ embedding, embedding_dimensions, embedding_model,
+ tags, metadata, created_at, updated_at, expires_at, status
+ ) VALUES (?, ?, ?, ?, 'semantic', ?, ?, ?, ?, ?, ?, ?, ?, 'active')`
+ : `INSERT INTO memory_entries (
+ id, key, namespace, content, type,
+ embedding, embedding_dimensions, embedding_model,
+ tags, metadata, created_at, updated_at, expires_at, status
+ ) VALUES (?, ?, ?, ?, 'semantic', ?, ?, ?, ?, ?, ?, ?, ?, 'active')`;
+
+ db.run(insertSql, [
id,
key,
namespace,