Files
ruflo/package.json
T
rUvandClaude 30280971bb fix: Implement critical swarm fixes and add v1.0.50 changelog
## 🔧 Critical Swarm System Fixes

### Fixed Task File Naming Bug
- Tasks were being saved as '[object Object].json' due to TaskId object structure
- Now properly extracts task ID string for file naming
- Files save correctly as 'task_<id>.json'

### Added Task Timeout Protection
- Implemented automatic timeout detection in task execution loop
- Tasks that exceed timeout (default 5 minutes) are marked as failed
- Prevents swarms from hanging indefinitely on stuck tasks
- Agent state properly cleaned up on timeout

### Fixed Target Directory Propagation
- Testing tasks were receiving null targetDir, preventing file access
- Target directory now extracted from objective description
- All tasks inherit targetDir through context
- Enhanced extractTargetDirectory to check multiple sources

### Improved Task Dependencies
- Fixed taskDependenciesMet to handle both string and TaskId objects
- Added convertDependenciesToTaskDependencies for Map structure
- Dependencies now properly resolve for sequential task execution

### Auto Strategy Integration
- Added missing autoStrategy property and initialization
- Proper AutoStrategy instantiation in coordinator constructor
- Enables intelligent task decomposition for 'auto' strategy

## 📊 Added Comprehensive Benchmarks

### Benchmark Suite Integration
- Added complete Python-based benchmarking tool
- Tests 7 strategies across 5 coordination modes
- 100% success rate across all test scenarios
- Performance metrics: 0.10s - 0.20s execution times

### Real-World Performance Data
- Calculator example: 4m 20s total (3 tasks)
- Task breakdown: Analysis 29%, Implementation 22%, Testing 48%
- Successfully created 6 files with proper directory structure

## 📝 Documentation Updates

### Updated README.md
- Added v1.0.50 changelog with critical fixes
- Integrated benchmark performance results table
- Added real-world timing example
- Removed old update notes for clarity
- Added dedicated Benchmarks & Performance section

## 🧪 Test Results
- Swarm now completes successfully with proper task coordination
- All fixes validated in production environment
- Task files save with correct names
- Testing tasks find implementation files
- Swarms exit cleanly after completion

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-14 22:48:11 +00:00

62 lines
1.6 KiB
JSON

{
"name": "claude-flow",
"version": "1.0.49",
"description": "Advanced AI agent orchestration system for Claude Code",
"main": "src/cli/main.ts",
"bin": {
"claude-flow": "./bin/claude-flow"
},
"scripts": {
"postinstall": "node scripts/install.js",
"build": "./scripts/safe-build.sh",
"build:direct": "PATH=\"/home/codespace/.deno/bin:$PATH\" deno compile --allow-all --no-check --output=bin/claude-flow src/cli/main.ts",
"build:simple": "PATH=\"/home/codespace/.deno/bin:$PATH\" deno compile --allow-all --no-check --output=bin/claude-flow-simple src/cli/simple-cli.ts",
"test": "deno task test"
},
"keywords": [
"claude",
"ai",
"agent",
"orchestration",
"mcp",
"workflow",
"automation"
],
"author": "rUv",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ruvnet/claude-code-flow.git"
},
"bugs": {
"url": "https://github.com/ruvnet/claude-code-flow/issues"
},
"homepage": "https://github.com/ruvnet/claude-code-flow#readme",
"engines": {
"node": ">=16.0.0"
},
"files": [
"bin/claude-flow",
"bin/claude-flow-swarm",
"bin/claude-flow-swarm-ui",
"bin/claude-flow-swarm-monitor",
"src/",
"swarm-demo.ts",
"swarm-demo-enhanced.ts",
"scripts/install.js",
"scripts/swarm-blessed-ui.js",
"scripts/swarm-simple.js",
"scripts/swarm-example.sh",
"README.md",
"LICENSE",
"deno.json",
"SWARM_TTY_SOLUTION.md",
"SWARM_VISIBILITY.md"
],
"dependencies": {
"blessed": "^0.1.81",
"node-pty": "^1.0.0",
"p-queue": "^8.1.0"
}
}