(data: EditProjectData)
| 201 | |
| 202 | |
| 203 | def _normalizeEditData(data: EditProjectData) -> EditProjectData: |
| 204 | normalized: EditProjectData = { |
| 205 | "name": data.get("name", ""), |
| 206 | "title": data.get("title", ""), |
| 207 | "description": data.get("description", ""), |
| 208 | "instructions": data.get("instructions", ""), |
| 209 | "include_agents_md": _normalize_include_agents_md( |
| 210 | data.get("include_agents_md", True) |
| 211 | ), |
| 212 | "variables": data.get("variables", ""), |
| 213 | "mcp_servers": data.get("mcp_servers", DEFAULT_MCP_SERVERS_CONFIG), |
| 214 | "color": data.get("color", ""), |
| 215 | "git_url": data.get("git_url", ""), |
| 216 | "git_status": data.get("git_status", {"is_git_repo": False}), |
| 217 | "instruction_files_count": data.get("instruction_files_count", 0), |
| 218 | "knowledge_files_count": data.get("knowledge_files_count", 0), |
| 219 | "secrets": data.get("secrets", ""), |
| 220 | "file_structure": data.get( |
| 221 | "file_structure", |
| 222 | _default_file_structure_settings(), |
| 223 | ), |
| 224 | "subagents": data.get("subagents", {}), |
| 225 | } |
| 226 | return normalized |
| 227 | |
| 228 | |
| 229 | def _edit_data_to_basic_data(data: EditProjectData): |
no test coverage detected