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

fix: add missing database tables to hive-mind spawn command

rUv31a02ffa7b02
diff --git a/.hive-mind/config.json b/.hive-mind/config.json
index a432850048..8d69d2c1c8 100644
--- a/.hive-mind/config.json
+++ b/.hive-mind/config.json
@@ -1,6 +1,6 @@
{
"version": "2.0.0",
- "initialized": "2025-07-08T12:02:59.951Z",
+ "initialized": "2025-07-09T20:16:20.811Z",
"defaults": {
"queenType": "strategic",
"maxWorkers": 8,
diff --git a/.hive-mind/hive.db b/.hive-mind/hive.db
deleted file mode 100644
index 6269bec467..0000000000
Binary files a/.hive-mind/hive.db and /dev/null differ
diff --git a/.hive-mind/hive.db-shm b/.hive-mind/hive.db-shm
deleted file mode 100644
index 462d7091e3..0000000000
Binary files a/.hive-mind/hive.db-shm and /dev/null differ
diff --git a/.hive-mind/hive.db-wal b/.hive-mind/hive.db-wal
deleted file mode 100644
index a19265862c..0000000000
Binary files a/.hive-mind/hive.db-wal and /dev/null differ
diff --git a/src/cli/simple-commands/hive-mind.js b/src/cli/simple-commands/hive-mind.js
index 09d2dc835d..058d3bccf8 100644
--- a/src/cli/simple-commands/hive-mind.js
+++ b/src/cli/simple-commands/hive-mind.js
@@ -498,6 +498,34 @@ async function spawnSwarm(args, flags) {
FOREIGN KEY (swarm_id) REFERENCES swarms(id),
FOREIGN KEY (agent_id) REFERENCES agents(id)
);
+
+ CREATE TABLE IF NOT EXISTS collective_memory (
+ id TEXT PRIMARY KEY,
+ swarm_id TEXT,
+ key TEXT NOT NULL,
+ value TEXT,
+ type TEXT DEFAULT 'knowledge',
+ confidence REAL DEFAULT 1.0,
+ created_by TEXT,
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
+ accessed_at DATETIME,
+ access_count INTEGER DEFAULT 0,
+ compressed INTEGER DEFAULT 0,
+ size INTEGER DEFAULT 0,
+ FOREIGN KEY (swarm_id) REFERENCES swarms(id)
+ );
+
+ CREATE TABLE IF NOT EXISTS consensus_decisions (
+ id TEXT PRIMARY KEY,
+ swarm_id TEXT,
+ topic TEXT NOT NULL,
+ decision TEXT,
+ votes TEXT,
+ algorithm TEXT DEFAULT 'majority',
+ confidence REAL,
+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
+ FOREIGN KEY (swarm_id) REFERENCES swarms(id)
+ );
`);
spinner.text = 'Database schema created successfully';
} catch (error) {