claude-flow 2.0.0-alpha.73 → 2.0.0-alpha.74

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.73"
4
+ VERSION="2.0.0-alpha.74"
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.73",
3
+ "version": "2.0.0-alpha.74",
4
4
  "description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
5
5
  "main": "cli.mjs",
6
6
  "bin": {
@@ -5,14 +5,14 @@
5
5
 
6
6
  import { HelpFormatter } from './help-formatter.js';
7
7
 
8
- export const VERSION = '2.0.0-alpha.73';
8
+ export const VERSION = '2.0.0-alpha.74';
9
9
 
10
10
  export const MAIN_HELP = `
11
11
  🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
12
12
 
13
13
  🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 87 MCP tools, neural networking, and production-ready infrastructure
14
14
  🐝 NEW: Advanced Hive Mind System with Queen-led coordination, collective intelligence, and unlimited scaling
15
- ⚡ ALPHA 73: Complete 64-agent system with swarm coordination, enhanced CLAUDE.md integration, and optimized init system
15
+ ⚡ ALPHA 74: Fixed SQLite loading & hive-mind sessions, async/await corrections for better reliability
16
16
 
17
17
  USAGE:
18
18
  claude-flow <command> [options]
@@ -925,8 +925,8 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
925
925
  /**
926
926
  * Get active sessions with process information
927
927
  */
928
- getActiveSessionsWithProcessInfo() {
929
- const sessions = this.getActiveSessions();
928
+ async getActiveSessionsWithProcessInfo() {
929
+ const sessions = await this.getActiveSessions();
930
930
 
931
931
  // Add process info to each session
932
932
  return sessions.map((session) => {
@@ -2420,7 +2420,7 @@ function getWorkerTypeInstructions(workerType) {
2420
2420
  async function showSessions(flags) {
2421
2421
  try {
2422
2422
  const sessionManager = new HiveMindSessionManager();
2423
- const sessions = sessionManager.getActiveSessions();
2423
+ const sessions = await sessionManager.getActiveSessions();
2424
2424
 
2425
2425
  if (sessions.length === 0) {
2426
2426
  console.log(chalk.gray('No active or paused sessions found'));
@@ -17,27 +17,22 @@ let loadError = null;
17
17
  /**
18
18
  * Try to load better-sqlite3 with comprehensive error handling
19
19
  */
20
- function tryLoadSQLite() {
20
+ async function tryLoadSQLite() {
21
21
  try {
22
- // Try ES module import
23
- const module = import('better-sqlite3');
24
- return module.then(m => {
25
- Database = m.default;
26
- sqliteAvailable = true;
27
- return true;
28
- }).catch(err => {
29
- loadError = err;
30
- return false;
31
- });
32
- } catch (err) {
33
- // Fallback to CommonJS require
22
+ // Try CommonJS require first (more reliable in Node.js)
23
+ const require = createRequire(import.meta.url);
24
+ Database = require('better-sqlite3');
25
+ sqliteAvailable = true;
26
+ return true;
27
+ } catch (requireErr) {
28
+ // Fallback to ES module import
34
29
  try {
35
- const require = createRequire(import.meta.url);
36
- Database = require('better-sqlite3');
30
+ const module = await import('better-sqlite3');
31
+ Database = module.default;
37
32
  sqliteAvailable = true;
38
- return Promise.resolve(true);
39
- } catch (requireErr) {
40
- loadError = requireErr;
33
+ return true;
34
+ } catch (importErr) {
35
+ loadError = importErr;
41
36
 
42
37
  // Check for specific Windows errors
43
38
  if (requireErr.message.includes('was compiled against a different Node.js version') ||
@@ -72,7 +67,7 @@ function tryLoadSQLite() {
72
67
  `);
73
68
  }
74
69
 
75
- return Promise.resolve(false);
70
+ return false;
76
71
  }
77
72
  }
78
73
  }