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
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
3
3
 
4
- VERSION="2.0.0-alpha.40"
4
+ VERSION="2.0.0-alpha.41"
5
5
 
6
6
  # Determine the correct path based on how the script is invoked
7
7
  if [ -L "$0" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "2.0.0-alpha.40",
3
+ "version": "2.0.0-alpha.41",
4
4
  "description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
5
5
  "main": "cli.mjs",
6
6
  "bin": {
@@ -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 { memoryStore } from '../memory/sqlite-store.js';
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 = 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
- const schema = await import('fs').then(fs =>
16
- fs.promises.readFile(new URL('./enhanced-schema.sql', import.meta.url), 'utf-8')
17
- );
18
- this.db.exec(schema);
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 ===