agentic-flow 1.8.3 → 1.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  * Database queries for ReasoningBank
3
3
  * Operates on Claude Flow's memory.db at .swarm/memory.db
4
4
  */
5
- const BetterSqlite3 = null; // Not used
5
+ import Database from 'better-sqlite3';
6
6
  import { existsSync, mkdirSync } from 'fs';
7
7
  import { join, dirname } from 'path';
8
8
  // Simple logger for database operations
@@ -23,7 +23,7 @@ export async function runMigrations() {
23
23
  logger.info('Created database directory', { path: dbDir });
24
24
  }
25
25
  // Create database file
26
- const db = new BetterSqlite3(dbPath);
26
+ const db = new Database(dbPath);
27
27
  db.pragma('journal_mode = WAL');
28
28
  db.pragma('foreign_keys = ON');
29
29
  // Create tables
@@ -119,7 +119,7 @@ export function getDb() {
119
119
  if (!existsSync(dbPath)) {
120
120
  throw new Error(`Database not found at ${dbPath}. Run migrations first.`);
121
121
  }
122
- dbInstance = new BetterSqlite3(dbPath);
122
+ dbInstance = new Database(dbPath);
123
123
  dbInstance.pragma('journal_mode = WAL');
124
124
  dbInstance.pragma('foreign_keys = ON');
125
125
  logger.info('Connected to ReasoningBank database', { path: dbPath });
@@ -36,7 +36,7 @@ import { shouldConsolidate as shouldCons, consolidate as cons } from './core/con
36
36
  export async function initialize() {
37
37
  const config = loadConfig();
38
38
  console.log('[ReasoningBank] Initializing...');
39
- console.log(`[ReasoningBank] Enabled: ${!!process.env.REASONINGBANK_ENABLED}`);
39
+ console.log('[ReasoningBank] Enabled: true (initializing...)');
40
40
  console.log(`[ReasoningBank] Database: ${process.env.CLAUDE_FLOW_DB_PATH || '.swarm/memory.db'}`);
41
41
  console.log(`[ReasoningBank] Embeddings: ${config.embeddings.provider}`);
42
42
  console.log(`[ReasoningBank] Retrieval k: ${config.retrieve.k}`);
@@ -38,7 +38,7 @@ import { shouldConsolidate as shouldCons, consolidate as cons } from './core/con
38
38
  export async function initialize() {
39
39
  const config = loadConfig();
40
40
  console.log('[ReasoningBank] Initializing...');
41
- console.log(`[ReasoningBank] Enabled: ${!!process.env.REASONINGBANK_ENABLED}`);
41
+ console.log('[ReasoningBank] Enabled: true (initializing...)');
42
42
  console.log(`[ReasoningBank] Database: ${process.env.CLAUDE_FLOW_DB_PATH || '.swarm/memory.db'}`);
43
43
  console.log(`[ReasoningBank] Embeddings: ${config.embeddings.provider}`);
44
44
  console.log(`[ReasoningBank] Retrieval k: ${config.retrieve.k}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-flow",
3
- "version": "1.8.3",
3
+ "version": "1.8.5",
4
4
  "description": "Production-ready AI agent orchestration platform with 66 specialized agents, 213 MCP tools, ReasoningBank learning memory, and autonomous multi-agent swarms. Built by @ruvnet with Claude Agent SDK, neural networks, memory persistence, GitHub integration, and distributed consensus protocols.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -145,6 +145,7 @@
145
145
  "@google/genai": "^1.22.0",
146
146
  "agentdb": "^1.4.3",
147
147
  "axios": "^1.12.2",
148
+ "better-sqlite3": "^11.10.0",
148
149
  "dotenv": "^16.4.5",
149
150
  "express": "^5.1.0",
150
151
  "fastmcp": "^3.19.0",
@@ -155,6 +156,7 @@
155
156
  "zod": "^3.25.76"
156
157
  },
157
158
  "devDependencies": {
159
+ "@types/better-sqlite3": "^7.6.13",
158
160
  "@types/express": "^5.0.3",
159
161
  "@types/node": "^20.19.19",
160
162
  "tsx": "^4.19.0",