diff --git a/scripts/sync_agent_config.py b/scripts/sync_agent_config.py index e31b700..23770bd 100644 --- a/scripts/sync_agent_config.py +++ b/scripts/sync_agent_config.py @@ -295,14 +295,14 @@ def sync_scripts_to_workspaces(): def deploy_soul_files(): - """将项目 agents/xxx/SOUL.md 部署到 ~/.openclaw/workspace-xxx/soul.md""" + """将项目 agents/xxx/SOUL.md 部署到 ~/.openclaw/workspace-xxx/SOUL.md""" agents_dir = BASE / 'agents' deployed = 0 for proj_name, runtime_id in _SOUL_DEPLOY_MAP.items(): src = agents_dir / proj_name / 'SOUL.md' if not src.exists(): continue - ws_dst = OPENCLAW_HOME / f'workspace-{runtime_id}' / 'soul.md' + ws_dst = OPENCLAW_HOME / f'workspace-{runtime_id}' / 'SOUL.md' ws_dst.parent.mkdir(parents=True, exist_ok=True) # 只在内容不同时更新(避免不必要的写入) src_text = src.read_text(encoding='utf-8', errors='ignore')