🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py

This commit is contained in:
rUv committed 2025-08-06 02:39:38 +00:00
1 parent 9d5eef8e42
commit 7f262113af
3 files changed
+11 -2

No files matched your search

@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-023933", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py", "timestamp": "2025-08-06T02:39:33Z", "type": "pre-edit", "original_branch": "alpha-88"}
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-023935", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/optimization/engine.py", "timestamp": "2025-08-06T02:39:35Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 120 +++++++++++++++++++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754447970.json | 1 + benchmark/.claude/checkpoints/1754447972.json | 1 + .../optimized_benchmark_engine.cpython-312.pyc | Bin 15770 -> 15428 bytes .../src/swarm_benchmark/optimization/engine.py | 12 ++- claude-flow-wiki | 0 8 files changed, 136 insertions(+), 6 deletions(-) "}
@@ -422,8 +422,15 @@ class AsyncFileManager:
try:
Path(file_path).parent.mkdir(parents=True, exist_ok=True)
async with aiofiles.open(file_path, 'w') as f:
await f.write(content)
if AIOFILES_AVAILABLE and aiofiles:
async with aiofiles.open(file_path, 'w') as f:
await f.write(content)
else:
# Fallback to synchronous write
with open(file_path, 'w') as f:
f.write(content)
# Simulate async behavior
await asyncio.sleep(0.001)
except Exception as e:
print(f"Error writing text to {file_path}: {e}")