diff --git a/benchmark/.claude/checkpoints/1754447908.json b/benchmark/.claude/checkpoints/1754447908.json new file mode 100644 index 0000000000..0fe36db689 --- /dev/null +++ b/benchmark/.claude/checkpoints/1754447908.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250806-023828", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py", "timestamp": "2025-08-06T02:38:28Z", "type": "pre-edit", "original_branch": "alpha-88"} diff --git a/benchmark/.claude/checkpoints/1754447910.json b/benchmark/.claude/checkpoints/1754447910.json new file mode 100644 index 0000000000..bdf6508f39 --- /dev/null +++ b/benchmark/.claude/checkpoints/1754447910.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250806-023830", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py", "timestamp": "2025-08-06T02:38:30Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 96 ++++++++++++++++++++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754447899.json | 1 + benchmark/.claude/checkpoints/1754447901.json | 1 + benchmark/src/swarm_benchmark/cli/main.py | 10 +-- claude-flow-wiki | 0 7 files changed, 107 insertions(+), 9 deletions(-) "} diff --git a/benchmark/src/swarm_benchmark/optimization/__pycache__/__init__.cpython-312.pyc b/benchmark/src/swarm_benchmark/optimization/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000000..5c868329e2 Binary files /dev/null and b/benchmark/src/swarm_benchmark/optimization/__pycache__/__init__.cpython-312.pyc differ diff --git a/benchmark/src/swarm_benchmark/optimization/__pycache__/engine.cpython-312.pyc b/benchmark/src/swarm_benchmark/optimization/__pycache__/engine.cpython-312.pyc new file mode 100644 index 0000000000..7b7a5bae79 Binary files /dev/null and b/benchmark/src/swarm_benchmark/optimization/__pycache__/engine.cpython-312.pyc differ diff --git a/benchmark/src/swarm_benchmark/optimization/engine.py b/benchmark/src/swarm_benchmark/optimization/engine.py index f89947078b..aa160eb966 100644 --- a/benchmark/src/swarm_benchmark/optimization/engine.py +++ b/benchmark/src/swarm_benchmark/optimization/engine.py @@ -18,7 +18,13 @@ from typing import Dict, Any, Optional, List, Union from datetime import datetime, timedelta from pathlib import Path import weakref -import aiofiles +# Optional aiofiles import with fallback +try: + import aiofiles + AIOFILES_AVAILABLE = True +except ImportError: + aiofiles = None + AIOFILES_AVAILABLE = False class OptimizedExecutor: