mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-10 06:23:28 +09:00
## 🔧 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>
63 lines
1.7 KiB
Bash
Executable File
63 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
# Force build script that works around Deno deprecation issues
|
|
|
|
echo "🔨 Force Building Claude Flow..."
|
|
echo "================================"
|
|
|
|
# Ensure bin directory exists
|
|
mkdir -p bin
|
|
|
|
# Set Deno path
|
|
export PATH="/home/codespace/.deno/bin:$PATH"
|
|
|
|
# Backup existing binary
|
|
if [ -f "bin/claude-flow" ]; then
|
|
echo "📦 Backing up existing binary..."
|
|
cp bin/claude-flow bin/claude-flow.working
|
|
fi
|
|
|
|
# Force remove any existing temp files
|
|
rm -f bin/claude-flow.tmp*
|
|
|
|
# Try to compile, ignoring the exit code
|
|
echo "🏗️ Attempting build (ignoring errors)..."
|
|
deno compile --allow-all --no-check --output=bin/claude-flow.tmp src/cli/main.ts 2>&1 | grep -v "Import assertions" || true
|
|
|
|
# Wait a moment for file system
|
|
sleep 1
|
|
|
|
# Check if ANY temporary file was created
|
|
TEMP_FILE=$(ls bin/claude-flow.tmp* 2>/dev/null | head -1)
|
|
|
|
if [ -n "$TEMP_FILE" ] && [ -f "$TEMP_FILE" ]; then
|
|
echo "📦 Found build artifact: $TEMP_FILE"
|
|
|
|
# Check if it's executable
|
|
if [ -x "$TEMP_FILE" ]; then
|
|
echo "✅ Build artifact is executable!"
|
|
|
|
# Move to final location
|
|
mv -f "$TEMP_FILE" bin/claude-flow
|
|
chmod +x bin/claude-flow
|
|
|
|
echo "✅ Build successful!"
|
|
echo "Binary location: bin/claude-flow"
|
|
exit 0
|
|
else
|
|
echo "⚠️ Build artifact is not executable, making it executable..."
|
|
chmod +x "$TEMP_FILE"
|
|
mv -f "$TEMP_FILE" bin/claude-flow
|
|
echo "✅ Build completed with warnings"
|
|
exit 0
|
|
fi
|
|
else
|
|
echo "❌ No build artifact found"
|
|
|
|
# Restore backup
|
|
if [ -f "bin/claude-flow.working" ]; then
|
|
echo "🔄 Restoring working binary..."
|
|
mv bin/claude-flow.working bin/claude-flow
|
|
fi
|
|
|
|
exit 1
|
|
fi |