Compare commits

..

No commits in common. "79206aafea74e5cdda1c96f3c3f6631d5139799c" and "6ecb0d70e323d5c861ce7e44be30cc40ce27000f" have entirely different histories.

View File

@ -395,14 +395,6 @@ def _extract_skills_to_robot(bot_id: str, skills: List[str], project_path: Path)
skills_target_dir.mkdir(parents=True, exist_ok=True)
logger.info(f"Copying skills to {skills_target_dir}")
# 清理不在列表中的多余 skill 文件夹
expected_skill_names = {os.path.basename(skill) for skill in skills}
if skills_target_dir.exists():
for item in skills_target_dir.iterdir():
if item.is_dir() and item.name not in expected_skill_names:
logger.info(f" Removing stale skill directory: {item}")
shutil.rmtree(item)
for skill in skills:
target_dir = skills_target_dir / os.path.basename(skill)