mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +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>
85 lines
2.5 KiB
JSON
85 lines
2.5 KiB
JSON
{
|
|
"nodeModulesDir": "auto",
|
|
"compilerOptions": {
|
|
"lib": ["deno.ns", "deno.window", "esnext"],
|
|
"strict": true,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"exactOptionalPropertyTypes": true
|
|
},
|
|
"lint": {
|
|
"rules": {
|
|
"tags": ["recommended"],
|
|
"include": [
|
|
"ban-untagged-todo",
|
|
"camelcase",
|
|
"eqeqeq",
|
|
"explicit-function-return-type",
|
|
"no-await-in-loop",
|
|
"no-console",
|
|
"no-const-assign",
|
|
"no-explicit-any",
|
|
"no-sparse-arrays",
|
|
"no-throw-literal",
|
|
"prefer-ascii"
|
|
]
|
|
},
|
|
"exclude": [
|
|
"tests/",
|
|
"scripts/"
|
|
]
|
|
},
|
|
"fmt": {
|
|
"useTabs": false,
|
|
"lineWidth": 100,
|
|
"indentWidth": 2,
|
|
"semiColons": true,
|
|
"singleQuote": true,
|
|
"proseWrap": "preserve"
|
|
},
|
|
"test": {
|
|
"include": [
|
|
"tests/**/*.test.ts"
|
|
],
|
|
"exclude": [
|
|
"tests/mocks/",
|
|
"tests/fixtures/"
|
|
]
|
|
},
|
|
"tasks": {
|
|
"dev": "deno run --allow-all --watch src/cli/index.ts",
|
|
"start": "deno run --allow-all src/cli/index.ts",
|
|
"test": "./scripts/test-runner.ts",
|
|
"test:unit": "./scripts/test-runner.ts --suites unit",
|
|
"test:integration": "./scripts/test-runner.ts --suites integration",
|
|
"test:e2e": "./scripts/test-runner.ts --suites e2e",
|
|
"test:watch": "./scripts/test-runner.ts --watch",
|
|
"test:coverage": "./scripts/test-runner.ts --coverage",
|
|
"coverage": "./scripts/coverage-report.ts",
|
|
"lint": "deno lint",
|
|
"fmt": "deno fmt",
|
|
"check": "deno check src/**/*.ts",
|
|
"build": "deno compile --allow-all --no-check --output bin/claude-flow src/cli/main.ts",
|
|
"install": "deno install --allow-all --name claude-flow src/cli/index.ts",
|
|
"clean": "rm -rf test-results coverage bin",
|
|
"ci": "deno fmt --check && deno lint && deno check src/**/*.ts && ./scripts/test-runner.ts --coverage --fail-fast"
|
|
},
|
|
"imports": {
|
|
"@std/": "https://deno.land/std@0.224.0/",
|
|
"@cliffy/command": "https://deno.land/x/cliffy@v0.22.2/command/mod.ts",
|
|
"@cliffy/ansi/colors": "https://deno.land/x/cliffy@v0.22.2/ansi/colors.ts",
|
|
"@cliffy/ansi": "https://deno.land/x/cliffy@v0.22.2/ansi/mod.ts",
|
|
"@cliffy/prompt": "https://deno.land/x/cliffy@v0.22.2/prompt/mod.ts",
|
|
"@cliffy/table": "https://deno.land/x/cliffy@v0.22.2/table/mod.ts"
|
|
},
|
|
"exclude": [
|
|
"node_modules/",
|
|
"dist/",
|
|
"bin/",
|
|
"test-results/",
|
|
"coverage/"
|
|
],
|
|
"vendor": false
|
|
} |