claude-flow 2.0.0-alpha.40 → 2.0.0-alpha.41
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.
package/bin/claude-flow
CHANGED
package/package.json
CHANGED
package/src/mcp/mcp-server.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { promises as fs } from 'fs';
|
|
9
9
|
import path from 'path';
|
|
10
10
|
import { fileURLToPath } from 'url';
|
|
11
|
-
import {
|
|
11
|
+
import { EnhancedMemory } from '../memory/enhanced-memory.js';
|
|
12
12
|
|
|
13
13
|
const __filename = fileURLToPath(import.meta.url);
|
|
14
14
|
const __dirname = path.dirname(__filename);
|
|
@@ -16,7 +16,7 @@ const __dirname = path.dirname(__filename);
|
|
|
16
16
|
class ClaudeFlowMCPServer {
|
|
17
17
|
constructor() {
|
|
18
18
|
this.version = '2.0.0';
|
|
19
|
-
this.memoryStore =
|
|
19
|
+
this.memoryStore = new EnhancedMemory();
|
|
20
20
|
this.capabilities = {
|
|
21
21
|
tools: {
|
|
22
22
|
listChanged: true
|
|
@@ -12,10 +12,15 @@ export class EnhancedMemory extends SqliteMemoryStore {
|
|
|
12
12
|
async initialize() {
|
|
13
13
|
await super.initialize();
|
|
14
14
|
// Apply enhanced schema
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
try {
|
|
16
|
+
const { readFileSync } = await import('fs');
|
|
17
|
+
const schemaPath = new URL('./enhanced-schema.sql', import.meta.url);
|
|
18
|
+
const schema = readFileSync(schemaPath, 'utf-8');
|
|
19
|
+
this.db.exec(schema);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
console.error(`[${new Date().toISOString()}] ERROR [enhanced-memory] Failed to apply enhanced schema:`, error);
|
|
22
|
+
// Continue with basic schema only
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
// === SESSION MANAGEMENT ===
|