agentic-flow 1.8.3 → 1.8.4

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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-flow",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
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",
@@ -258,7 +258,7 @@ export function log(message) {
258
258
  wasm.log(ptr0, len0);
259
259
  }
260
260
 
261
- function __wbg_adapter_6(arg0, arg1, arg2) {
261
+ function __wbg_adapter_4(arg0, arg1, arg2) {
262
262
  wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
263
263
  }
264
264
 
@@ -540,7 +540,7 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
540
540
 
541
541
  export function __wbindgen_cast_8eb6fd44e7238d11(arg0, arg1) {
542
542
  // Cast intrinsic for `Closure(Closure { dtor_idx: 62, function: Function { arguments: [Externref], shim_idx: 63, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
543
- const ret = makeMutClosure(arg0, arg1, 62, __wbg_adapter_6);
543
+ const ret = makeMutClosure(arg0, arg1, 62, __wbg_adapter_4);
544
544
  return addHeapObject(ret);
545
545
  };
546
546