qwen_agent/utils
朱潮 ede5960b5a fix: fully replace robot skill dir on sync to avoid stale-file ImportError
_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>
2026-06-22 18:02:57 +08:00
..
log_util add subagent_context_middleware 2026-06-12 15:56:26 +08:00
__init__.py refactor: remove file-parsing knowledge-base pipeline and Huey queue 2026-06-08 19:40:58 +08:00
agent_pool.py chore: replace Chinese comments and log messages with English 2026-04-30 19:45:35 +08:00
api_models.py feat: support multimodal image (base64) input in chat API 2026-06-18 11:34:57 +08:00
async_file_ops.py chore: replace Chinese comments and log messages with English 2026-04-30 19:45:35 +08:00
cancel_manager.py chore: replace Chinese comments and log messages with English 2026-04-30 19:45:35 +08:00
daytona_file_fetcher.py refactor: replace mcp_resources API with direct /robots/ static file access 2026-05-20 18:58:58 +08:00
daytona_sync.py fix: langfuse CallbackHandler API and tarfile dereference parameter 2026-05-14 17:14:37 +08:00
excel_csv_processor.py chore: replace Chinese comments and log messages with English 2026-04-30 19:45:35 +08:00
fastapi_utils.py feat: support multimodal image (base64) input in chat API 2026-06-18 11:34:57 +08:00
file_manager.py dataset to datsets 2026-04-15 11:09:55 +08:00
file_utils.py chore: replace Chinese comments and log messages with English 2026-04-30 19:45:35 +08:00
multi_project_manager.py fix: fully replace robot skill dir on sync to avoid stale-file ImportError 2026-06-22 18:02:57 +08:00
settings.py add REDIS_URL 2026-06-08 19:00:55 +08:00
structured_log.py Add agent final answer first char metric 2026-05-08 15:43:48 +08:00
system_optimizer.py Remove heavy embedding dependencies 2026-06-09 08:56:31 +08:00
token_counter.py chore: replace Chinese comments and log messages with English 2026-04-30 19:45:35 +08:00