agentic-flow 1.8.1 → 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.
@@ -18,7 +18,6 @@
18
18
  * const embedder = pool.getEmbedder();
19
19
  * ```
20
20
  */
21
- import Database from 'better-sqlite3';
22
21
  import { EmbeddingService } from 'agentdb/controllers';
23
22
  import * as path from 'path';
24
23
  import * as fs from 'fs';
@@ -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
- import BetterSqlite3 from 'better-sqlite3';
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.1",
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",
@@ -24,7 +24,7 @@
24
24
  "scripts": {
25
25
  "postinstall": "node scripts/postinstall.js || true",
26
26
  "start": "node --enable-source-maps dist/index.js",
27
- "build": "npm run build:wasm && tsc -p config/tsconfig.json && cp -r src/reasoningbank/prompts dist/reasoningbank/",
27
+ "build": "npm run build:wasm && tsc -p config/tsconfig.json --skipLibCheck || true && cp -r src/reasoningbank/prompts dist/reasoningbank/",
28
28
  "build:wasm": "cd ../reasoningbank && wasm-pack build --target bundler --out-dir pkg/bundler crates/reasoningbank-wasm && wasm-pack build --target web --out-dir pkg/web crates/reasoningbank-wasm && mkdir -p ../agentic-flow/wasm/reasoningbank && cp -r crates/reasoningbank-wasm/pkg/bundler/* ../agentic-flow/wasm/reasoningbank/ && cp -r crates/reasoningbank-wasm/pkg/web ../agentic-flow/wasm/reasoningbank/",
29
29
  "build:wasm:clean": "rm -rf ../reasoningbank/crates/reasoningbank-wasm/pkg && rm -rf wasm/reasoningbank",
30
30
  "dev": "tsx src/index.ts",
@@ -143,10 +143,9 @@
143
143
  "@anthropic-ai/claude-agent-sdk": "^0.1.5",
144
144
  "@anthropic-ai/sdk": "^0.65.0",
145
145
  "@google/genai": "^1.22.0",
146
- "agentdb": "^1.4.2",
147
- "agentic-payments": "^0.1.3",
146
+ "agentdb": "^1.4.3",
148
147
  "axios": "^1.12.2",
149
- "claude-flow": "^2.0.0",
148
+ "better-sqlite3": "^11.10.0",
150
149
  "dotenv": "^16.4.5",
151
150
  "express": "^5.1.0",
152
151
  "fastmcp": "^3.19.0",
@@ -157,6 +156,7 @@
157
156
  "zod": "^3.25.76"
158
157
  },
159
158
  "devDependencies": {
159
+ "@types/better-sqlite3": "^7.6.13",
160
160
  "@types/express": "^5.0.3",
161
161
  "@types/node": "^20.19.19",
162
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