claude-flow 2.0.0-alpha.81 → 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.
- package/.claude/agents/analysis/code-analyzer.md +209 -0
- package/.claude/checkpoints/1754066715.json +1 -0
- package/.claude/checkpoints/1754066716.json +1 -0
- package/.claude/checkpoints/1754066724.json +1 -0
- package/.claude/checkpoints/1754066726.json +1 -0
- package/.claude/checkpoints/1754066740.json +1 -0
- package/.claude/checkpoints/1754066741.json +1 -0
- package/.claude/checkpoints/1754066750.json +1 -0
- package/.claude/checkpoints/1754066751.json +1 -0
- package/.claude/checkpoints/1754066761.json +1 -0
- package/.claude/checkpoints/1754066762.json +1 -0
- package/.claude/checkpoints/1754066775.json +1 -0
- package/.claude/checkpoints/1754066777.json +1 -0
- package/.claude/checkpoints/1754066783.json +1 -0
- package/.claude/checkpoints/1754066785.json +1 -0
- package/.claude/checkpoints/1754066815.json +1 -0
- package/.claude/checkpoints/1754066817.json +1 -0
- package/.claude/checkpoints/1754066900.json +1 -0
- package/.claude/checkpoints/1754066904.json +1 -0
- package/.claude/checkpoints/1754066974.json +1 -0
- package/.claude/checkpoints/1754066976.json +1 -0
- package/.claude/checkpoints/1754070695.json +1 -0
- package/.claude/checkpoints/1754070697.json +1 -0
- package/.claude/checkpoints/1754070704.json +1 -0
- package/.claude/checkpoints/1754070706.json +1 -0
- package/.claude/checkpoints/1754070716.json +1 -0
- package/.claude/checkpoints/1754070718.json +1 -0
- package/.claude/checkpoints/1754070730.json +1 -0
- package/.claude/checkpoints/1754070732.json +1 -0
- package/.claude/checkpoints/1754070738.json +1 -0
- package/.claude/checkpoints/1754070740.json +1 -0
- package/.claude/checkpoints/summary-session-20250731-143729.md +108 -0
- package/.claude/checkpoints/summary-session-20250731-145845.md +109 -0
- package/.claude/checkpoints/summary-session-20250731-150532.md +110 -0
- package/.claude/checkpoints/summary-session-20250731-153445.md +41 -0
- package/.claude/checkpoints/summary-session-20250731-162229.md +43 -0
- package/.claude/checkpoints/summary-session-20250731-162510.md +48 -0
- package/.claude/checkpoints/summary-session-20250731-163301.md +54 -0
- package/.claude/checkpoints/summary-session-20250731-163727.md +60 -0
- package/.claude/checkpoints/summary-session-20250731-164059.md +65 -0
- package/.claude/checkpoints/summary-session-20250731-164245.md +70 -0
- package/.claude/checkpoints/summary-session-20250731-164722.md +78 -0
- package/.claude/checkpoints/summary-session-20250731-164821.md +83 -0
- package/.claude/checkpoints/summary-session-20250731-165000.md +88 -0
- package/.claude/checkpoints/summary-session-20250731-191747.md +70 -0
- package/.claude/checkpoints/summary-session-20250731-192119.md +76 -0
- package/.claude/checkpoints/summary-session-20250731-192226.md +79 -0
- package/.claude/checkpoints/summary-session-20250731-192608.md +83 -0
- package/.claude/checkpoints/summary-session-20250731-192632.md +85 -0
- package/.claude/checkpoints/summary-session-20250731-192658.md +87 -0
- package/.claude/checkpoints/summary-session-20250731-192710.md +0 -0
- package/.claude/checkpoints/summary-session-20250731-192711.md +89 -0
- package/.claude/checkpoints/summary-session-20250731-192731.md +0 -0
- package/.claude/checkpoints/summary-session-20250731-192752.md +95 -0
- package/.claude/checkpoints/summary-session-20250731-192810.md +94 -0
- package/.claude/checkpoints/summary-session-20250731-192839.md +96 -0
- package/.claude/checkpoints/summary-session-20250731-192900.md +97 -0
- package/.claude/checkpoints/summary-session-20250731-192913.md +98 -0
- package/.claude/checkpoints/summary-session-20250731-193017.md +100 -0
- package/.claude/checkpoints/summary-session-20250731-193038.md +106 -0
- package/.claude/checkpoints/summary-session-20250731-193043.md +102 -0
- package/.claude/checkpoints/summary-session-20250731-193115.md +0 -0
- package/.claude/checkpoints/summary-session-20250731-193121.md +105 -0
- package/.claude/checkpoints/summary-session-20250731-193124.md +108 -0
- package/.claude/checkpoints/summary-session-20250731-193231.md +108 -0
- package/.claude/checkpoints/summary-session-20250731-193748.md +112 -0
- package/.claude/checkpoints/summary-session-20250731-194208.md +126 -0
- package/.claude/checkpoints/summary-session-20250731-194343.md +129 -0
- package/.claude/checkpoints/summary-session-20250731-195358.md +137 -0
- package/.claude/checkpoints/summary-session-20250731-201542.md +143 -0
- package/.claude/checkpoints/summary-session-20250731-201737.md +148 -0
- package/.claude/checkpoints/summary-session-20250731-202811.md +135 -0
- package/.claude/checkpoints/summary-session-20250731-204824.md +114 -0
- package/.claude/checkpoints/summary-session-20250801-165013.md +114 -0
- package/.claude/checkpoints/summary-session-20250801-165902.md +118 -0
- package/.claude/checkpoints/summary-session-20250801-170008.md +121 -0
- package/.claude/checkpoints/summary-session-20250801-170732.md +124 -0
- package/.claude/checkpoints/summary-session-20250801-172331.md +127 -0
- package/.claude/checkpoints/summary-session-20250801-174746.md +113 -0
- package/.claude/checkpoints/summary-session-20250801-175251.md +129 -0
- package/.claude/checkpoints/summary-session-20250801-180233.md +130 -0
- package/.claude/checkpoints/summary-session-20250801-182959.md +254 -0
- package/.claude/checkpoints/task-1753978885.json +7 -0
- package/.claude/checkpoints/task-1753979030.json +7 -0
- package/.claude/checkpoints/task-1753979159.json +7 -0
- package/.claude/checkpoints/task-1753979667.json +7 -0
- package/.claude/checkpoints/task-1753979823.json +7 -0
- package/.claude/checkpoints/task-1753980048.json +7 -0
- package/.claude/checkpoints/task-1753980144.json +7 -0
- package/.claude/checkpoints/task-1753980195.json +7 -0
- package/.claude/checkpoints/task-1753980418.json +7 -0
- package/.claude/checkpoints/task-1753980464.json +7 -0
- package/.claude/checkpoints/task-1753980570.json +7 -0
- package/.claude/checkpoints/task-1753989347.json +7 -0
- package/.claude/checkpoints/task-1753989565.json +7 -0
- package/.claude/checkpoints/task-1753989862.json +7 -0
- package/.claude/checkpoints/task-1753989875.json +7 -0
- package/.claude/checkpoints/task-1753990005.json +7 -0
- package/.claude/checkpoints/task-1753990081.json +7 -0
- package/.claude/checkpoints/task-1753990201.json +7 -0
- package/.claude/checkpoints/task-1753990251.json +7 -0
- package/.claude/checkpoints/task-1753990417.json +7 -0
- package/.claude/checkpoints/task-1753990715.json +7 -0
- package/.claude/checkpoints/task-1753990753.json +7 -0
- package/.claude/checkpoints/task-1753990966.json +7 -0
- package/.claude/checkpoints/task-1753991048.json +7 -0
- package/.claude/checkpoints/task-1753991287.json +7 -0
- package/.claude/checkpoints/task-1753992757.json +7 -0
- package/.claude/checkpoints/task-1753992828.json +7 -0
- package/.claude/checkpoints/task-1753992996.json +7 -0
- package/.claude/checkpoints/task-1753993542.json +7 -0
- package/.claude/checkpoints/task-1753994277.json +7 -0
- package/.claude/checkpoints/task-1754066681.json +1 -0
- package/.claude/checkpoints/task-1754067528.json +1 -0
- package/.claude/checkpoints/task-1754067561.json +1 -0
- package/.claude/checkpoints/task-1754067770.json +1 -0
- package/.claude/checkpoints/task-1754068093.json +1 -0
- package/.claude/checkpoints/task-1754070418.json +1 -0
- package/.claude/checkpoints/task-1754070494.json +1 -0
- package/.claude/checkpoints/task-1754071234.json +1 -0
- package/.claude/checkpoints/task-1754072242.json +1 -0
- package/.claude/checkpoints/task-1754073057.json +1 -0
- package/.claude/helpers/checkpoint-manager.sh +2 -250
- package/.claude/settings-backup-1753992809.json +158 -0
- package/.claude/settings-backup-1753992929.json +158 -0
- package/.claude/settings-github-npx.json +158 -0
- package/.claude/settings-npx-hooks.json +158 -0
- package/.claude/settings.json +58 -14
- package/bin/claude-flow +1 -1
- package/bin/claude-flow.js +1 -1
- package/package.json +1 -1
- package/src/agents/agent-loader.ts +32 -4
- package/src/cli/help-text.js +4 -4
- package/src/cli/index-remote.ts +1 -1
- package/src/cli/index.ts +1 -1
- package/src/cli/simple-cli.js +24 -5
- package/src/cli/simple-cli.ts +1 -1
- package/src/cli/simple-commands/github/init.js +4 -4
- package/src/cli/simple-commands/init/templates/CLAUDE.md +19 -19
- package/src/cli/simple-commands/process-ui-enhanced.js +1 -1
- package/src/cli/simple-commands/status.js +1 -1
- package/src/constants/agent-types.ts +9 -15
- package/.claude/checkpoints/1753906298.json +0 -12
package/src/cli/simple-cli.js
CHANGED
|
@@ -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.
|
|
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));
|
|
@@ -50,7 +66,8 @@ function printLegacyHelp() {
|
|
|
50
66
|
console.log(`
|
|
51
67
|
🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
|
|
52
68
|
|
|
53
|
-
🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with
|
|
69
|
+
🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 90+ MCP tools, neural networking, and production-ready infrastructure
|
|
70
|
+
⚡ ALPHA 83: Enhanced GitHub hooks with npx commands, improved checkpoint reliability, seamless CI/CD integration
|
|
54
71
|
|
|
55
72
|
USAGE:
|
|
56
73
|
claude-flow <command> [options]
|
|
@@ -330,12 +347,13 @@ async function main() {
|
|
|
330
347
|
|
|
331
348
|
case 'spawn':
|
|
332
349
|
// Convenience alias for agent spawn
|
|
333
|
-
const
|
|
350
|
+
const rawSpawnType = subArgs[0] || 'general';
|
|
351
|
+
const spawnType = resolveLegacyAgentType(rawSpawnType);
|
|
334
352
|
const spawnName = flags.name || `agent-${Date.now()}`;
|
|
335
353
|
|
|
336
354
|
printSuccess(`Spawning ${spawnType} agent: ${spawnName}`);
|
|
337
355
|
console.log('🤖 Agent would be created with the following configuration:');
|
|
338
|
-
console.log(` Type: ${spawnType}`);
|
|
356
|
+
console.log(` Type: ${spawnType}${rawSpawnType !== spawnType ? ` (resolved from: ${rawSpawnType})` : ''}`);
|
|
339
357
|
console.log(` Name: ${spawnName}`);
|
|
340
358
|
console.log(' Capabilities: Research, Analysis, Code Generation');
|
|
341
359
|
console.log(' Status: Ready');
|
|
@@ -2348,7 +2366,8 @@ Shortcuts:
|
|
|
2348
2366
|
const subCmd = args[0];
|
|
2349
2367
|
switch (subCmd) {
|
|
2350
2368
|
case 'spawn':
|
|
2351
|
-
const
|
|
2369
|
+
const rawType = args[1] || 'researcher';
|
|
2370
|
+
const type = resolveLegacyAgentType(rawType);
|
|
2352
2371
|
const name = args[2] || `agent-${Date.now()}`;
|
|
2353
2372
|
const agent = {
|
|
2354
2373
|
id: `agent-${Date.now()}`,
|
package/src/cli/simple-cli.ts
CHANGED
|
@@ -326,7 +326,7 @@ async function createGitHubSettingsJson() {
|
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
type: 'command',
|
|
329
|
-
command: '
|
|
329
|
+
command: 'bash .claude/helpers/github-checkpoint-hooks.sh pre-edit "{{tool_input}}"'
|
|
330
330
|
}
|
|
331
331
|
]
|
|
332
332
|
}
|
|
@@ -350,7 +350,7 @@ async function createGitHubSettingsJson() {
|
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
352
|
type: 'command',
|
|
353
|
-
command: '
|
|
353
|
+
command: 'bash .claude/helpers/github-checkpoint-hooks.sh post-edit "{{tool_input}}"'
|
|
354
354
|
}
|
|
355
355
|
]
|
|
356
356
|
}
|
|
@@ -360,7 +360,7 @@ async function createGitHubSettingsJson() {
|
|
|
360
360
|
hooks: [
|
|
361
361
|
{
|
|
362
362
|
type: 'command',
|
|
363
|
-
command: '
|
|
363
|
+
command: 'bash .claude/helpers/github-checkpoint-hooks.sh task "{{user_prompt}}"'
|
|
364
364
|
}
|
|
365
365
|
]
|
|
366
366
|
}
|
|
@@ -374,7 +374,7 @@ async function createGitHubSettingsJson() {
|
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
type: 'command',
|
|
377
|
-
command: '
|
|
377
|
+
command: 'bash .claude/helpers/github-checkpoint-hooks.sh session-end'
|
|
378
378
|
}
|
|
379
379
|
]
|
|
380
380
|
}
|
|
@@ -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: "
|
|
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: "
|
|
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
|
|
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": "
|
|
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
|
|
805
|
+
- Always include 1 task-orchestrator
|
|
806
806
|
- For code-heavy tasks: more coders
|
|
807
|
-
- For design tasks: more architects/
|
|
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 (
|
|
899
|
+
- mcp__claude-flow__agent_spawn (code-analyzer)
|
|
900
900
|
- mcp__claude-flow__agent_spawn (tester)
|
|
901
|
-
- mcp__claude-flow__agent_spawn (
|
|
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
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
├── 🟢
|
|
1115
|
+
├── 🟢 code-analyzer: Optimizing query performance...
|
|
1116
1116
|
├── 🟡 tester: Waiting for auth completion...
|
|
1117
|
-
└── 🟢
|
|
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.
|
|
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.
|
|
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 {
|
|
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
|
-
//
|
|
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
|
|
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
|
-
}
|