更新current_agents.md
()
| 41 | |
| 42 | |
| 43 | def update_current_agents(): |
| 44 | """更新current_agents.md""" |
| 45 | doc = PROJECT_ROOT / "docs" / "architecture" / "current_agents.md" |
| 46 | |
| 47 | if not doc.exists(): |
| 48 | print(f" [WARN] File not found: {doc}") |
| 49 | return False |
| 50 | |
| 51 | try: |
| 52 | content = doc.read_text(encoding="utf-8") |
| 53 | original_content = content |
| 54 | |
| 55 | # 替换阶段描述 |
| 56 | content = content.replace("状态:Phase 5完成", "状态:Phase 8+ 活跃开发中") |
| 57 | content = content.replace( |
| 58 | "Phase 5完成,知识库集成已实现", "Phase 8+ 活跃开发中,多Agent协作系统完善" |
| 59 | ) |
| 60 | |
| 61 | if content != original_content: |
| 62 | doc.write_text(content, encoding="utf-8") |
| 63 | print(" [OK] Updated current_agents.md") |
| 64 | print(" - Phase 5 -> Phase 8+") |
| 65 | return True |
| 66 | else: |
| 67 | print(" [INFO] current_agents.md - no update needed") |
| 68 | return True |
| 69 | except Exception as e: |
| 70 | print(f" [ERROR] Update failed: {e}") |
| 71 | return False |
| 72 | |
| 73 | |
| 74 | def update_api_doc(): |