_extract_skills_to_robot used shutil.copytree(dirs_exist_ok=True), which only overwrites same-named files. Renamed/removed files and __pycache__ in the robot project's skill copy were left behind, so after a skill refactor (e.g. rag-retrieve adding create_error_response and dropping call_rag_retrieve) stale copies ended up with mismatched imports and failed to load. Switch to rmtree + copytree so each managed skill directory is fully replaced from source on every sync. Also ignore __pycache__/*.pyc so the source's compiled artifacts are not propagated. Refs: #59 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| log_util | ||
| __init__.py | ||
| agent_pool.py | ||
| api_models.py | ||
| async_file_ops.py | ||
| cancel_manager.py | ||
| daytona_file_fetcher.py | ||
| daytona_sync.py | ||
| excel_csv_processor.py | ||
| fastapi_utils.py | ||
| file_manager.py | ||
| file_utils.py | ||
| multi_project_manager.py | ||
| settings.py | ||
| structured_log.py | ||
| system_optimizer.py | ||
| token_counter.py | ||