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
package/package.json
CHANGED
package/src/cli/help-text.js
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
import { HelpFormatter } from './help-formatter.js';
|
|
7
7
|
|
|
8
|
-
export const VERSION = '2.0.0-alpha.
|
|
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
|
|
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
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
|
36
|
-
Database =
|
|
30
|
+
const module = await import('better-sqlite3');
|
|
31
|
+
Database = module.default;
|
|
37
32
|
sqliteAvailable = true;
|
|
38
|
-
return
|
|
39
|
-
} catch (
|
|
40
|
-
loadError =
|
|
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
|
|
70
|
+
return false;
|
|
76
71
|
}
|
|
77
72
|
}
|
|
78
73
|
}
|