加载角色元数据
()
| 55 | |
| 56 | |
| 57 | def load_roles_meta() -> Dict[str, Any]: |
| 58 | """加载角色元数据""" |
| 59 | if os.path.exists(ROLE_META_FILE): |
| 60 | with open(ROLE_META_FILE, 'r', encoding='utf-8') as f: |
| 61 | return json.load(f) |
| 62 | return {"roles": {}, "current_role": None} |
| 63 | |
| 64 | |
| 65 | def save_roles_meta(meta: Dict[str, Any]) -> None: |
no outgoing calls
no test coverage detected