claude-flow 2.0.0-alpha.82 → 2.0.0-alpha.83

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.
Files changed (79) hide show
  1. package/.claude/agents/analysis/code-analyzer.md +209 -0
  2. package/.claude/checkpoints/1754066715.json +1 -0
  3. package/.claude/checkpoints/1754066716.json +1 -0
  4. package/.claude/checkpoints/1754066724.json +1 -0
  5. package/.claude/checkpoints/1754066726.json +1 -0
  6. package/.claude/checkpoints/1754066740.json +1 -0
  7. package/.claude/checkpoints/1754066741.json +1 -0
  8. package/.claude/checkpoints/1754066750.json +1 -0
  9. package/.claude/checkpoints/1754066751.json +1 -0
  10. package/.claude/checkpoints/1754066761.json +1 -0
  11. package/.claude/checkpoints/1754066762.json +1 -0
  12. package/.claude/checkpoints/1754066775.json +1 -0
  13. package/.claude/checkpoints/1754066777.json +1 -0
  14. package/.claude/checkpoints/1754066783.json +1 -0
  15. package/.claude/checkpoints/1754066785.json +1 -0
  16. package/.claude/checkpoints/1754066815.json +1 -0
  17. package/.claude/checkpoints/1754066817.json +1 -0
  18. package/.claude/checkpoints/1754066900.json +1 -0
  19. package/.claude/checkpoints/1754066904.json +1 -0
  20. package/.claude/checkpoints/1754066974.json +1 -0
  21. package/.claude/checkpoints/1754066976.json +1 -0
  22. package/.claude/checkpoints/1754070695.json +1 -0
  23. package/.claude/checkpoints/1754070697.json +1 -0
  24. package/.claude/checkpoints/1754070704.json +1 -0
  25. package/.claude/checkpoints/1754070706.json +1 -0
  26. package/.claude/checkpoints/1754070716.json +1 -0
  27. package/.claude/checkpoints/1754070718.json +1 -0
  28. package/.claude/checkpoints/1754070730.json +1 -0
  29. package/.claude/checkpoints/1754070732.json +1 -0
  30. package/.claude/checkpoints/1754070738.json +1 -0
  31. package/.claude/checkpoints/1754070740.json +1 -0
  32. package/.claude/checkpoints/summary-session-20250731-195358.md +137 -0
  33. package/.claude/checkpoints/summary-session-20250731-201542.md +143 -0
  34. package/.claude/checkpoints/summary-session-20250731-201737.md +148 -0
  35. package/.claude/checkpoints/summary-session-20250731-202811.md +135 -0
  36. package/.claude/checkpoints/summary-session-20250731-204824.md +114 -0
  37. package/.claude/checkpoints/summary-session-20250801-165013.md +114 -0
  38. package/.claude/checkpoints/summary-session-20250801-165902.md +118 -0
  39. package/.claude/checkpoints/summary-session-20250801-170008.md +121 -0
  40. package/.claude/checkpoints/summary-session-20250801-170732.md +124 -0
  41. package/.claude/checkpoints/summary-session-20250801-172331.md +127 -0
  42. package/.claude/checkpoints/summary-session-20250801-174746.md +113 -0
  43. package/.claude/checkpoints/summary-session-20250801-175251.md +129 -0
  44. package/.claude/checkpoints/summary-session-20250801-180233.md +130 -0
  45. package/.claude/checkpoints/summary-session-20250801-182959.md +254 -0
  46. package/.claude/checkpoints/task-1753992757.json +7 -0
  47. package/.claude/checkpoints/task-1753992828.json +7 -0
  48. package/.claude/checkpoints/task-1753992996.json +7 -0
  49. package/.claude/checkpoints/task-1753993542.json +7 -0
  50. package/.claude/checkpoints/task-1753994277.json +7 -0
  51. package/.claude/checkpoints/task-1754066681.json +1 -0
  52. package/.claude/checkpoints/task-1754067528.json +1 -0
  53. package/.claude/checkpoints/task-1754067561.json +1 -0
  54. package/.claude/checkpoints/task-1754067770.json +1 -0
  55. package/.claude/checkpoints/task-1754068093.json +1 -0
  56. package/.claude/checkpoints/task-1754070418.json +1 -0
  57. package/.claude/checkpoints/task-1754070494.json +1 -0
  58. package/.claude/checkpoints/task-1754071234.json +1 -0
  59. package/.claude/checkpoints/task-1754072242.json +1 -0
  60. package/.claude/checkpoints/task-1754073057.json +1 -0
  61. package/.claude/settings-backup-1753992809.json +158 -0
  62. package/.claude/settings-backup-1753992929.json +158 -0
  63. package/.claude/settings-github-npx.json +158 -0
  64. package/.claude/settings-npx-hooks.json +158 -0
  65. package/.claude/settings.json +4 -4
  66. package/bin/claude-flow +1 -1
  67. package/bin/claude-flow.js +1 -1
  68. package/package.json +1 -1
  69. package/src/agents/agent-loader.ts +32 -4
  70. package/src/cli/help-text.js +2 -2
  71. package/src/cli/index-remote.ts +1 -1
  72. package/src/cli/index.ts +1 -1
  73. package/src/cli/simple-cli.js +23 -5
  74. package/src/cli/simple-cli.ts +1 -1
  75. package/src/cli/simple-commands/init/templates/CLAUDE.md +19 -19
  76. package/src/cli/simple-commands/process-ui-enhanced.js +1 -1
  77. package/src/cli/simple-commands/status.js +1 -1
  78. package/src/constants/agent-types.ts +9 -15
  79. package/.claude/checkpoints/1753906298.json +0 -12
@@ -27,7 +27,23 @@ import process from 'process';
27
27
  import readline from 'readline';
28
28
  import { getMainHelp, getCommandHelp, getStandardizedCommandHelp } from './help-text.js';
29
29
 
30
- const VERSION = '2.0.0-alpha.81';
30
+ const VERSION = '2.0.0-alpha.83';
31
+
32
+ // Legacy agent type mapping for backward compatibility
33
+ const LEGACY_AGENT_MAPPING = {
34
+ analyst: 'code-analyzer',
35
+ coordinator: 'task-orchestrator',
36
+ optimizer: 'perf-analyzer',
37
+ documenter: 'api-docs',
38
+ monitor: 'performance-benchmarker',
39
+ specialist: 'system-architect',
40
+ architect: 'system-architect',
41
+ };
42
+
43
+ // Resolve legacy agent types to current equivalents
44
+ function resolveLegacyAgentType(legacyType) {
45
+ return LEGACY_AGENT_MAPPING[legacyType] || legacyType;
46
+ }
31
47
 
32
48
  function printHelp(plain = false) {
33
49
  console.log(getMainHelp(plain));
@@ -51,7 +67,7 @@ function printLegacyHelp() {
51
67
  🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
52
68
 
53
69
  🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 90+ MCP tools, neural networking, and production-ready infrastructure
54
- ⚡ ALPHA 81: Optimized for Claude Code 1.0.51+ with enhanced batch processing and concurrent execution
70
+ ⚡ ALPHA 83: Enhanced GitHub hooks with npx commands, improved checkpoint reliability, seamless CI/CD integration
55
71
 
56
72
  USAGE:
57
73
  claude-flow <command> [options]
@@ -331,12 +347,13 @@ async function main() {
331
347
 
332
348
  case 'spawn':
333
349
  // Convenience alias for agent spawn
334
- const spawnType = subArgs[0] || 'general';
350
+ const rawSpawnType = subArgs[0] || 'general';
351
+ const spawnType = resolveLegacyAgentType(rawSpawnType);
335
352
  const spawnName = flags.name || `agent-${Date.now()}`;
336
353
 
337
354
  printSuccess(`Spawning ${spawnType} agent: ${spawnName}`);
338
355
  console.log('🤖 Agent would be created with the following configuration:');
339
- console.log(` Type: ${spawnType}`);
356
+ console.log(` Type: ${spawnType}${rawSpawnType !== spawnType ? ` (resolved from: ${rawSpawnType})` : ''}`);
340
357
  console.log(` Name: ${spawnName}`);
341
358
  console.log(' Capabilities: Research, Analysis, Code Generation');
342
359
  console.log(' Status: Ready');
@@ -2349,7 +2366,8 @@ Shortcuts:
2349
2366
  const subCmd = args[0];
2350
2367
  switch (subCmd) {
2351
2368
  case 'spawn':
2352
- const type = args[1] || 'researcher';
2369
+ const rawType = args[1] || 'researcher';
2370
+ const type = resolveLegacyAgentType(rawType);
2353
2371
  const name = args[2] || `agent-${Date.now()}`;
2354
2372
  const agent = {
2355
2373
  id: `agent-${Date.now()}`,
@@ -14,7 +14,7 @@ import {
14
14
  } from './command-registry.js';
15
15
  import { parseFlags } from './utils.js';
16
16
 
17
- const VERSION = '2.0.0-alpha.81';
17
+ const VERSION = '2.0.0-alpha.83';
18
18
 
19
19
  function printHelp() {
20
20
  console.log(`
@@ -458,14 +458,14 @@ If you need to do X operations, they should be in 1 message, not X messages
458
458
  mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 6 }
459
459
  mcp__claude-flow__agent_spawn { type: "researcher" }
460
460
  mcp__claude-flow__agent_spawn { type: "coder" }
461
- mcp__claude-flow__agent_spawn { type: "analyst" }
461
+ mcp__claude-flow__agent_spawn { type: "code-analyzer" }
462
462
  mcp__claude-flow__agent_spawn { type: "tester" }
463
- mcp__claude-flow__agent_spawn { type: "coordinator" }
463
+ mcp__claude-flow__agent_spawn { type: "task-orchestrator" }
464
464
 
465
465
  // Claude Code execution - ALL in parallel
466
466
  Task("You are researcher agent. MUST coordinate via hooks...")
467
467
  Task("You are coder agent. MUST coordinate via hooks...")
468
- Task("You are analyst agent. MUST coordinate via hooks...")
468
+ Task("You are code-analyzer agent. MUST coordinate via hooks...")
469
469
  Task("You are tester agent. MUST coordinate via hooks...")
470
470
  TodoWrite { todos: [5-10 todos with all priorities and statuses] }
471
471
 
@@ -601,7 +601,7 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
601
601
  - Tool: `mcp__claude-flow__agent_spawn`
602
602
  - Parameters: `{"type": "researcher", "name": "Literature Review"}`
603
603
  - Tool: `mcp__claude-flow__agent_spawn`
604
- - Parameters: `{"type": "analyst", "name": "Data Analysis"}`
604
+ - Parameters: `{"type": "code-analyzer", "name": "Data Analysis"}`
605
605
  - Result: Different cognitive patterns for Claude Code to use
606
606
 
607
607
  **Step 3:** Coordinate research execution
@@ -634,7 +634,7 @@ Once configured, Claude Flow MCP tools enhance Claude Code's coordination:
634
634
  **Step 2:** Define development perspectives
635
635
 
636
636
  - Tool: `mcp__claude-flow__agent_spawn`
637
- - Parameters: `{"type": "architect", "name": "System Design"}`
637
+ - Parameters: `{"type": "system-architect", "name": "System Design"}`
638
638
  - Result: Architectural thinking pattern for Claude Code
639
639
 
640
640
  **Step 3:** Coordinate implementation
@@ -802,9 +802,9 @@ See `.claude/commands/` for detailed documentation on all features.
802
802
  - Medium tasks (4-6 components): 5-7 agents
803
803
  - Complex tasks (7+ components): 8-12 agents
804
804
  3. **Agent Type Distribution**: Balance agent types based on task:
805
- - Always include 1 coordinator
805
+ - Always include 1 task-orchestrator
806
806
  - For code-heavy tasks: more coders
807
- - For design tasks: more architects/analysts
807
+ - For design tasks: more system-architects/code-analyzers
808
808
  - For quality tasks: more testers/reviewers
809
809
 
810
810
  **Example Auto-Decision Logic:**
@@ -896,15 +896,15 @@ Message 1: [BatchTool]
896
896
  - mcp__claude-flow__swarm_init
897
897
  - mcp__claude-flow__agent_spawn (researcher)
898
898
  - mcp__claude-flow__agent_spawn (coder)
899
- - mcp__claude-flow__agent_spawn (analyst)
899
+ - mcp__claude-flow__agent_spawn (code-analyzer)
900
900
  - mcp__claude-flow__agent_spawn (tester)
901
- - mcp__claude-flow__agent_spawn (coordinator)
901
+ - mcp__claude-flow__agent_spawn (task-orchestrator)
902
902
 
903
903
  Message 2: [BatchTool - Claude Code execution]
904
904
  // Task agents with full coordination instructions
905
905
  - Task("You are researcher agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Research API patterns")
906
906
  - Task("You are coder agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Implement REST endpoints")
907
- - Task("You are analyst agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Analyze performance")
907
+ - Task("You are code-analyzer agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Analyze performance")
908
908
  - Task("You are tester agent. MANDATORY: Run hooks pre-task, post-edit, post-task. Task: Write comprehensive tests")
909
909
 
910
910
  // TodoWrite with ALL todos batched
@@ -940,13 +940,13 @@ STEP 1: IMMEDIATE PARALLEL SPAWN (Single Message!)
940
940
 
941
941
  // Spawn agents based on maxAgents count and task requirements
942
942
  // If CLI specifies 3 agents, spawn 3. If no args, auto-decide optimal count (3-12)
943
- - mcp__claude-flow__agent_spawn { type: "architect", name: "System Designer" }
943
+ - mcp__claude-flow__agent_spawn { type: "system-architect", name: "System Designer" }
944
944
  - mcp__claude-flow__agent_spawn { type: "coder", name: "API Developer" }
945
945
  - mcp__claude-flow__agent_spawn { type: "coder", name: "Frontend Dev" }
946
- - mcp__claude-flow__agent_spawn { type: "analyst", name: "DB Designer" }
946
+ - mcp__claude-flow__agent_spawn { type: "code-analyzer", name: "DB Designer" }
947
947
  - mcp__claude-flow__agent_spawn { type: "tester", name: "QA Engineer" }
948
948
  - mcp__claude-flow__agent_spawn { type: "researcher", name: "Tech Lead" }
949
- - mcp__claude-flow__agent_spawn { type: "coordinator", name: "PM" }
949
+ - mcp__claude-flow__agent_spawn { type: "task-orchestrator", name: "PM" }
950
950
  - TodoWrite { todos: [multiple todos at once] }
951
951
 
952
952
  STEP 2: PARALLEL TASK EXECUTION (Single Message!)
@@ -998,12 +998,12 @@ Dependencies: ↳ X deps | Actionable: ▶
998
998
  [BatchTool - Message 1]:
999
999
  // Initialize and spawn ALL agents at once
1000
1000
  mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 8, strategy: "parallel" }
1001
- mcp__claude-flow__agent_spawn { type: "architect", name: "System Designer" }
1001
+ mcp__claude-flow__agent_spawn { type: "system-architect", name: "System Designer" }
1002
1002
  mcp__claude-flow__agent_spawn { type: "coder", name: "API Developer" }
1003
1003
  mcp__claude-flow__agent_spawn { type: "coder", name: "Auth Expert" }
1004
- mcp__claude-flow__agent_spawn { type: "analyst", name: "DB Designer" }
1004
+ mcp__claude-flow__agent_spawn { type: "code-analyzer", name: "DB Designer" }
1005
1005
  mcp__claude-flow__agent_spawn { type: "tester", name: "Test Engineer" }
1006
- mcp__claude-flow__agent_spawn { type: "coordinator", name: "Lead" }
1006
+ mcp__claude-flow__agent_spawn { type: "task-orchestrator", name: "Lead" }
1007
1007
 
1008
1008
  // Update ALL todos at once - NEVER split todos!
1009
1009
  TodoWrite { todos: [
@@ -1109,12 +1109,12 @@ When showing swarm status, use this format:
1109
1109
  └── 🧠 Memory: 15 coordination points stored
1110
1110
 
1111
1111
  Agent Activity:
1112
- ├── 🟢 architect: Designing database schema...
1112
+ ├── 🟢 system-architect: Designing database schema...
1113
1113
  ├── 🟢 coder-1: Implementing auth endpoints...
1114
1114
  ├── 🟢 coder-2: Building user CRUD operations...
1115
- ├── 🟢 analyst: Optimizing query performance...
1115
+ ├── 🟢 code-analyzer: Optimizing query performance...
1116
1116
  ├── 🟡 tester: Waiting for auth completion...
1117
- └── 🟢 coordinator: Monitoring progress...
1117
+ └── 🟢 task-orchestrator: Monitoring progress...
1118
1118
  ```
1119
1119
 
1120
1120
  ## 📝 CRITICAL: TODOWRITE AND TASK TOOL BATCHING
@@ -1,4 +1,4 @@
1
- // process-ui-enhanced.js - Enhanced process management UI with multiple views - v2.0.0-alpha.81
1
+ // process-ui-enhanced.js - Enhanced process management UI with multiple views - v2.0.0-alpha.83
2
2
  import { printSuccess, printError, printWarning, printInfo } from '../utils.js';
3
3
  import { compat } from '../runtime-detector.js';
4
4
  import SwarmWebUIIntegration from './swarm-webui-integration.js';
@@ -19,7 +19,7 @@ export async function statusCommand(subArgs, flags) {
19
19
  async function getSystemStatus(verbose = false) {
20
20
  const status = {
21
21
  timestamp: Date.now(),
22
- version: '2.0.0-alpha.81',
22
+ version: '2.0.0-alpha.83',
23
23
  orchestrator: {
24
24
  running: false,
25
25
  uptime: 0,
@@ -3,21 +3,18 @@
3
3
  * This file provides type-safe access to dynamically loaded agent definitions
4
4
  */
5
5
 
6
- import { getAvailableAgentTypes, isValidAgentType as validateAgentType } from '../agents/agent-loader.js';
6
+ import {
7
+ getAvailableAgentTypes,
8
+ isValidAgentType as validateAgentType,
9
+ resolveLegacyAgentType as resolveLegacy,
10
+ LEGACY_AGENT_MAPPING as LEGACY_MAPPING
11
+ } from '../agents/agent-loader.js';
7
12
 
8
13
  // Dynamic agent type - will be a string that matches available agents
9
14
  export type AgentType = string;
10
15
 
11
- // Legacy agent type mapping for backward compatibility
12
- export const LEGACY_AGENT_MAPPING = {
13
- analyst: 'code-analyzer',
14
- coordinator: 'task-orchestrator',
15
- optimizer: 'perf-analyzer',
16
- documenter: 'api-docs',
17
- monitor: 'performance-benchmarker',
18
- specialist: 'system-architect',
19
- architect: 'system-architect',
20
- } as const;
16
+ // Re-export legacy mapping from agent-loader
17
+ export const LEGACY_AGENT_MAPPING = LEGACY_MAPPING;
21
18
 
22
19
  /**
23
20
  * Get all valid agent types dynamically
@@ -36,10 +33,7 @@ export async function isValidAgentType(type: string): Promise<boolean> {
36
33
  /**
37
34
  * Resolve legacy agent types to current equivalents
38
35
  */
39
- export function resolveLegacyAgentType(legacyType: string): string {
40
- const mapped = LEGACY_AGENT_MAPPING[legacyType as keyof typeof LEGACY_AGENT_MAPPING];
41
- return mapped || legacyType;
42
- }
36
+ export const resolveLegacyAgentType = resolveLegacy;
43
37
 
44
38
  /**
45
39
  * Create JSON Schema for agent type validation (async)
@@ -1,12 +0,0 @@
1
- {
2
- "tag": "checkpoint-20250730-201138",
3
- "file": "demo.txt",
4
- "timestamp": "2025-07-30T20:11:38Z",
5
- "type": "post-edit",
6
- "branch": "alpha-80",
7
- "diff_summary": " .gitignore | 1 +
8
- README.md | 20 ++++++++++++++++++++
9
- claude-flow-wiki | 0
10
- demo.txt | 1 +
11
- 4 files changed, 22 insertions(+)"
12
- }