claude-flow 2.0.0-alpha.4 → 2.0.0-alpha.6
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/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
5
|
[](https://github.com/ruvnet/claude-code-flow)
|
|
6
|
-
[](https://www.npmjs.com/package/claude-flow)
|
|
7
7
|
[](https://github.com/ruvnet/claude-code-flow)
|
|
8
8
|
[](https://github.com/ruvnet/ruv-FANN)
|
|
9
9
|
[](https://github.com/ruvnet/claude-code-flow)
|
|
@@ -50,7 +50,7 @@ Instead of promising "AI magic," Claude Flow delivers practical improvements:
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
-
## 🚀 **What's New in v2.0.0-alpha.
|
|
53
|
+
## 🚀 **What's New in v2.0.0-alpha.5**
|
|
54
54
|
|
|
55
55
|
### 🔌 **Automatic MCP Setup (NEW!)**
|
|
56
56
|
- **Smart Detection** - Automatically detects Claude Code CLI installation
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import { createSparcStructureManually } from './sparc-structure.js';
|
|
|
7
7
|
import { createClaudeSlashCommands } from './claude-commands/slash-commands.js';
|
|
8
8
|
import { createOptimizedClaudeSlashCommands } from './claude-commands/optimized-slash-commands.js';
|
|
9
9
|
import { execSync } from 'child_process';
|
|
10
|
+
import { promises as fs } from 'fs';
|
|
10
11
|
import {
|
|
11
12
|
createSparcClaudeMd,
|
|
12
13
|
createFullClaudeMd,
|
|
@@ -1036,7 +1037,7 @@ ${commands.map(cmd => `- [${cmd}](./${cmd}.md)`).join('\n')}
|
|
|
1036
1037
|
// Unix wrapper
|
|
1037
1038
|
const unixWrapper = createWrapperScript('unix');
|
|
1038
1039
|
await Deno.writeTextFile(`${workingDir}/claude-flow`, unixWrapper);
|
|
1039
|
-
await
|
|
1040
|
+
await fs.chmod(`${workingDir}/claude-flow`, 0o755);
|
|
1040
1041
|
|
|
1041
1042
|
// Windows wrapper
|
|
1042
1043
|
await Deno.writeTextFile(`${workingDir}/claude-flow.bat`, createWrapperScript('windows'));
|
|
@@ -1056,7 +1057,7 @@ ${commands.map(cmd => `- [${cmd}](./${cmd}.md)`).join('\n')}
|
|
|
1056
1057
|
const content = createHelperScript(helper);
|
|
1057
1058
|
if (content) {
|
|
1058
1059
|
await Deno.writeTextFile(`${claudeDir}/helpers/${helper}`, content);
|
|
1059
|
-
await
|
|
1060
|
+
await fs.chmod(`${claudeDir}/helpers/${helper}`, 0o755);
|
|
1060
1061
|
}
|
|
1061
1062
|
}
|
|
1062
1063
|
}
|
|
@@ -10,7 +10,8 @@ const loadTemplate = (filename) => {
|
|
|
10
10
|
try {
|
|
11
11
|
return readFileSync(join(__dirname, filename), 'utf8');
|
|
12
12
|
} catch (error) {
|
|
13
|
-
|
|
13
|
+
// Silently fall back to hardcoded templates if files not found
|
|
14
|
+
// This handles npm packaging scenarios where template files may not be included
|
|
14
15
|
return null;
|
|
15
16
|
}
|
|
16
17
|
};
|
|
@@ -47,6 +48,7 @@ export function createWrapperScript(type = 'unix') {
|
|
|
47
48
|
export function createCommandDoc(category, command) {
|
|
48
49
|
const template = loadTemplate(`commands/${category}/${command}.md`);
|
|
49
50
|
if (!template) {
|
|
51
|
+
// Silently fall back to generated documentation
|
|
50
52
|
return createCommandDocFallback(category, command);
|
|
51
53
|
}
|
|
52
54
|
return template;
|