claude-flow 2.0.0-alpha.59 ā 2.0.0-alpha.60
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
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Provides clear, actionable command documentation
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export const VERSION = '2.0.0-alpha.
|
|
6
|
+
export const VERSION = '2.0.0-alpha.60';
|
|
7
7
|
|
|
8
8
|
export const MAIN_HELP = `
|
|
9
9
|
š Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
|
|
10
10
|
|
|
11
11
|
šÆ ENTERPRISE FEATURES: Complete ruv-swarm integration with 87 MCP tools, neural networking, and production-ready infrastructure
|
|
12
12
|
š NEW: Advanced Hive Mind System with Queen-led coordination, collective intelligence, and unlimited scaling
|
|
13
|
-
ā” ALPHA
|
|
13
|
+
ā” ALPHA 60: Fixed Claude Code integration with hive-mind spawn, proper session directory management, and improved coordination
|
|
14
14
|
|
|
15
15
|
USAGE:
|
|
16
16
|
claude-flow <command> [options]
|
|
@@ -1685,7 +1685,11 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
|
|
|
1685
1685
|
|
|
1686
1686
|
try {
|
|
1687
1687
|
// ALWAYS save the prompt file first (fix for issue #330)
|
|
1688
|
-
|
|
1688
|
+
// Ensure sessions directory exists
|
|
1689
|
+
const sessionsDir = path.join('.hive-mind', 'sessions');
|
|
1690
|
+
await mkdirAsync(sessionsDir, { recursive: true });
|
|
1691
|
+
|
|
1692
|
+
const promptFile = path.join(sessionsDir, `hive-mind-prompt-${swarmId}.txt`);
|
|
1689
1693
|
await writeFile(promptFile, hiveMindPrompt, 'utf8');
|
|
1690
1694
|
console.log(chalk.green(`\nā Hive Mind prompt saved to: ${promptFile}`));
|
|
1691
1695
|
|
|
@@ -1705,8 +1709,8 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
|
|
|
1705
1709
|
|
|
1706
1710
|
if (claudeAvailable && !flags.dryRun) {
|
|
1707
1711
|
// Pass the prompt directly as an argument to claude
|
|
1708
|
-
//
|
|
1709
|
-
const claudeArgs = [hiveMindPrompt
|
|
1712
|
+
// Remove --print to allow interactive session
|
|
1713
|
+
const claudeArgs = [hiveMindPrompt];
|
|
1710
1714
|
|
|
1711
1715
|
// Add auto-permission flag by default for hive-mind mode (unless explicitly disabled)
|
|
1712
1716
|
if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
|
|
@@ -1715,9 +1719,9 @@ async function spawnClaudeCodeInstances(swarmId, swarmName, objective, workers,
|
|
|
1715
1719
|
}
|
|
1716
1720
|
|
|
1717
1721
|
// Spawn claude with the prompt as the first argument
|
|
1718
|
-
// Use '
|
|
1722
|
+
// Use 'inherit' to allow interactive session
|
|
1719
1723
|
const claudeProcess = childSpawn('claude', claudeArgs, {
|
|
1720
|
-
stdio: '
|
|
1724
|
+
stdio: 'inherit',
|
|
1721
1725
|
shell: false
|
|
1722
1726
|
});
|
|
1723
1727
|
|
|
@@ -2391,7 +2395,7 @@ async function launchClaudeWithContext(prompt, flags) {
|
|
|
2391
2395
|
}
|
|
2392
2396
|
|
|
2393
2397
|
if (claudeAvailable && !flags.dryRun) {
|
|
2394
|
-
const claudeArgs = [prompt, '--
|
|
2398
|
+
const claudeArgs = [prompt, '--print'];
|
|
2395
2399
|
|
|
2396
2400
|
if (flags['dangerously-skip-permissions'] !== false && !flags['no-auto-permissions']) {
|
|
2397
2401
|
claudeArgs.push('--dangerously-skip-permissions');
|