claude-flow-novice 1.3.4 → 1.3.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.
@@ -8,7 +8,7 @@
8
8
  "name": "Research Best Practices",
9
9
  "type": "research",
10
10
  "description": "Research current best practices for authentication systems and security patterns",
11
- "tools": ["WebFetchTool", "View", "Edit", "GrepTool"],
11
+ "tools": ["WebFetch", "Read", "Edit", "Grep"],
12
12
  "skipPermissions": true,
13
13
  "config": ".roo/mcp.json"
14
14
  },
@@ -17,7 +17,7 @@
17
17
  "name": "Implement Backend API",
18
18
  "type": "implementation",
19
19
  "description": "Implement user authentication backend with JWT tokens and secure password hashing",
20
- "tools": ["View", "Edit", "Replace", "GlobTool", "GrepTool", "LS", "Bash"],
20
+ "tools": ["Read", "Write", "Edit", "MultiEdit", "Glob", "Grep", "Bash"],
21
21
  "skipPermissions": true,
22
22
  "mode": "backend-only",
23
23
  "coverage": 90
@@ -27,7 +27,7 @@
27
27
  "name": "Build Frontend Components",
28
28
  "type": "implementation",
29
29
  "description": "Create React components for login, registration, and password reset flows",
30
- "tools": ["View", "Edit", "Replace", "GlobTool", "GrepTool", "LS", "Bash"],
30
+ "tools": ["Read", "Write", "Edit", "MultiEdit", "Glob", "Grep", "Bash"],
31
31
  "skipPermissions": true,
32
32
  "mode": "frontend-only"
33
33
  },
@@ -36,7 +36,7 @@
36
36
  "name": "Write Comprehensive Tests",
37
37
  "type": "testing",
38
38
  "description": "Write unit and integration tests for authentication system with 95% coverage",
39
- "tools": ["View", "Edit", "Replace", "GlobTool", "GrepTool", "LS", "Bash", "BatchTool"],
39
+ "tools": ["Read", "Write", "Edit", "MultiEdit", "Glob", "Grep", "Bash"],
40
40
  "skipPermissions": true,
41
41
  "coverage": 95
42
42
  }
@@ -45,7 +45,7 @@
45
45
  {
46
46
  "id": "research-agent",
47
47
  "type": "researcher",
48
- "capabilities": ["web-search", "information-gathering", "analysis"],
48
+ "capabilities": ["WebSearch", "WebFetch", "information-gathering", "analysis"],
49
49
  "assignedTasks": ["research-task"]
50
50
  },
51
51
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow-novice",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Standalone Claude Flow for beginners - AI agent orchestration made easy. Enhanced init command creates complete agent system, MCP configuration with 30 essential tools, and automated hooks. Fully standalone with zero external dependencies, all memory leaks eliminated, complete project setup in one command.",
5
5
  "mcpName": "io.github.ruvnet/claude-flow",
6
6
  "main": ".claude-flow-novice/dist/index.js",
@@ -228,6 +228,7 @@
228
228
  "compression": "^1.7.4",
229
229
  "cors": "^2.8.5",
230
230
  "fs-extra": "^11.2.0",
231
+ "glob": "^11.0.0",
231
232
  "helmet": "^7.0.0",
232
233
  "inquirer": "^12.9.6",
233
234
  "ora": "^8.2.0",
@@ -8,6 +8,7 @@
8
8
  */
9
9
 
10
10
  import { NpxClaudeMdProtection } from '../src/npx/claude-md-protection.js';
11
+ import { execSync } from 'child_process';
11
12
  import path from 'path';
12
13
 
13
14
  async function postInstall() {
@@ -35,6 +36,9 @@ async function postInstall() {
35
36
  console.warn('⚠️ CLAUDE.md setup encountered issues:', result.error);
36
37
  }
37
38
 
39
+ // Auto-setup MCP server if Claude Code is installed
40
+ await setupMcpIfAvailable();
41
+
38
42
  } catch (error) {
39
43
  console.error('❌ Post-install failed:', error.message);
40
44
  // Don't fail the entire install if this fails
@@ -42,6 +46,30 @@ async function postInstall() {
42
46
  }
43
47
  }
44
48
 
49
+ async function setupMcpIfAvailable() {
50
+ try {
51
+ // Check if Claude Code CLI is available
52
+ execSync('which claude', { stdio: 'ignore' });
53
+
54
+ console.log('\n🔧 Claude Code detected - setting up MCP server...');
55
+
56
+ // Add claude-flow-novice MCP server
57
+ execSync('claude mcp add claude-flow-novice npx claude-flow-novice mcp start', {
58
+ stdio: 'inherit'
59
+ });
60
+
61
+ console.log('✅ MCP server added successfully!');
62
+ console.log('🎯 You can now use claude-flow-novice tools in Claude Code');
63
+
64
+ } catch (error) {
65
+ // Claude Code not installed or MCP add failed - that's fine
66
+ console.log('\n💡 To use claude-flow-novice with Claude Code:');
67
+ console.log(' 1. Install Claude Code if you haven\'t: npm install -g @anthropic-ai/claude-code');
68
+ console.log(' 2. Add MCP server: claude mcp add claude-flow-novice npx claude-flow-novice mcp start');
69
+ console.log(' 3. Or run: npx claude-flow-novice init');
70
+ }
71
+ }
72
+
45
73
  // Execute if called directly
46
74
  if (import.meta.url === `file://${process.argv[1]}`) {
47
75
  postInstall();
@@ -579,7 +579,7 @@ export async function initCommand(subArgs, flags) {
579
579
 
580
580
  if (hiveMindResult.success) {
581
581
  console.log(' ✅ Basic hive-mind system initialized');
582
- console.log(' 💡 Use "npx claude-flow@alpha hive-mind" for advanced features');
582
+ console.log(' 💡 Use "npx claude-flow-novice hive-mind" for advanced features');
583
583
  } else {
584
584
  console.log(` ⚠️ Hive-mind setup skipped: ${hiveMindResult.error}`);
585
585
  }
@@ -1213,7 +1213,7 @@ async function setupMonitoring(workingDir) {
1213
1213
 
1214
1214
  // Add token tracking hook
1215
1215
  const tokenTrackingHook =
1216
- 'npx claude-flow@alpha internal track-tokens --session-id {{session_id}} --tokens {{token_usage}}';
1216
+ 'npx claude-flow-novice internal track-tokens --session-id {{session_id}} --tokens {{token_usage}}';
1217
1217
  if (!settings.hooks['post-task'].includes(tokenTrackingHook)) {
1218
1218
  settings.hooks['post-task'].push(tokenTrackingHook);
1219
1219
  }
@@ -1692,7 +1692,7 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1692
1692
  } else {
1693
1693
  console.log(' ℹ️ Skipping MCP setup (--skip-mcp flag used)');
1694
1694
  console.log('\n 📋 To add MCP servers manually:');
1695
- console.log(' claude mcp add claude-flow-novice npx claude-flow@alpha mcp start');
1695
+ console.log(' claude mcp add claude-flow-novice npx claude-flow-novice mcp start');
1696
1696
  console.log(' claude mcp add ruv-swarm npx ruv-swarm@latest mcp start');
1697
1697
  console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
1698
1698
  console.log('\n 💡 MCP servers are defined in .mcp.json (project scope)');
@@ -1702,7 +1702,7 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1702
1702
  console.log('\n 📥 To install Claude Code:');
1703
1703
  console.log(' npm install -g @anthropic-ai/claude-code');
1704
1704
  console.log('\n 📋 After installing, add MCP servers:');
1705
- console.log(' claude mcp add claude-flow-novice npx claude-flow@alpha mcp start');
1705
+ console.log(' claude mcp add claude-flow-novice npx claude-flow-novice mcp start');
1706
1706
  console.log(' claude mcp add ruv-swarm npx ruv-swarm@latest mcp start');
1707
1707
  console.log(' claude mcp add flow-nexus npx flow-nexus@latest mcp start');
1708
1708
  console.log('\n 💡 MCP servers are defined in .mcp.json (project scope)');
@@ -1744,17 +1744,17 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1744
1744
  hooks: {
1745
1745
  pre_task: {
1746
1746
  enabled: true,
1747
- command: "npx claude-flow@alpha hooks pre-task --description \"$TASK_DESCRIPTION\"",
1747
+ command: "npx claude-flow-novice hooks pre-task --description \"$TASK_DESCRIPTION\"",
1748
1748
  description: "Pre-task coordination hook"
1749
1749
  },
1750
1750
  post_edit: {
1751
1751
  enabled: true,
1752
- command: "npx claude-flow@alpha hooks post-edit --file \"$FILE_PATH\" --memory-key \"swarm/$AGENT_ID/$STEP\"",
1752
+ command: "npx claude-flow-novice hooks post-edit --file \"$FILE_PATH\" --memory-key \"swarm/$AGENT_ID/$STEP\"",
1753
1753
  description: "Post-edit memory storage hook"
1754
1754
  },
1755
1755
  post_task: {
1756
1756
  enabled: true,
1757
- command: "npx claude-flow@alpha hooks post-task --task-id \"$TASK_ID\"",
1757
+ command: "npx claude-flow-novice hooks post-task --task-id \"$TASK_ID\"",
1758
1758
  description: "Post-task completion hook"
1759
1759
  }
1760
1760
  },
@@ -1812,20 +1812,20 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
1812
1812
  if (isClaudeCodeInstalled()) {
1813
1813
  console.log('1. Verify MCP setup: claude mcp list');
1814
1814
  console.log('2. View available commands: ls .claude/commands/');
1815
- console.log('3. Start a swarm: npx claude-flow@alpha swarm "your objective" --claude');
1816
- console.log('4. Use hive-mind: npx claude-flow@alpha hive-mind spawn "command" --claude');
1815
+ console.log('3. Start a swarm: npx claude-flow-novice swarm "your objective" --claude');
1816
+ console.log('4. Use hive-mind: npx claude-flow-novice hive-mind spawn "command" --claude');
1817
1817
  console.log('5. Use enhanced MCP tools in Claude Code for bulletproof coordination');
1818
1818
  if (hiveMindStatus.configured) {
1819
- console.log('5. Initialize first swarm: npx claude-flow@alpha hive-mind init');
1819
+ console.log('5. Initialize first swarm: npx claude-flow-novice hive-mind init');
1820
1820
  }
1821
1821
  } else {
1822
1822
  console.log('1. Install Claude Code: npm install -g @anthropic-ai/claude-code');
1823
1823
  console.log('2. Add MCP servers (see instructions above)');
1824
1824
  console.log('3. View available commands: ls .claude/commands/');
1825
- console.log('4. Start a swarm: npx claude-flow@alpha swarm "your objective" --claude');
1826
- console.log('5. Use hive-mind: npx claude-flow@alpha hive-mind spawn "command" --claude');
1825
+ console.log('4. Start a swarm: npx claude-flow-novice swarm "your objective" --claude');
1826
+ console.log('5. Use hive-mind: npx claude-flow-novice hive-mind spawn "command" --claude');
1827
1827
  if (hiveMindStatus.configured) {
1828
- console.log('6. Initialize first swarm: npx claude-flow@alpha hive-mind init');
1828
+ console.log('6. Initialize first swarm: npx claude-flow-novice hive-mind init');
1829
1829
  }
1830
1830
  }
1831
1831
  console.log('\n💡 Tips:');
@@ -1,7 +1,6 @@
1
1
  import fs from 'fs/promises';
2
2
  import path from 'path';
3
- import pkg from 'glob';
4
- const { glob } = pkg;
3
+ import { glob } from 'glob';
5
4
 
6
5
  /**
7
6
  * Language Detection System