MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / load_edit_project_data

Function load_edit_project_data

helpers/projects.py:279–308  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

277
278
279def load_edit_project_data(name: str) -> EditProjectData:
280 from helpers import git
281
282 data = load_basic_project_data(name)
283 create_project_meta_folders(name)
284 additional_instructions = get_additional_instructions_files(name)
285 variables = load_project_variables(name)
286 mcp_servers = load_project_mcp_servers(name)
287 secrets = load_project_secrets_masked(name)
288 subagents = load_project_subagents(name)
289 knowledge_files_count = get_knowledge_files_count(name)
290 git_status = cast(GitStatusData, git.get_repo_status(get_project_folder(name)))
291
292 data = cast(
293 EditProjectData,
294 {
295 **data,
296 "name": name,
297 "instruction_files_count": len(additional_instructions),
298 "knowledge_files_count": knowledge_files_count,
299 "variables": variables,
300 "mcp_servers": mcp_servers,
301 "secrets": secrets,
302 "subagents": subagents,
303 "git_status": git_status,
304 },
305 )
306 data = _normalizeEditData(data)
307 _merge_project_extended_data(data, load_project_extended_data(name))
308 return data
309
310
311def save_project_header(name: str, data: BasicProjectData):

Callers 2

update_projectFunction · 0.85
activate_projectFunction · 0.85

Calls 12

load_basic_project_dataFunction · 0.85
load_project_variablesFunction · 0.85
load_project_mcp_serversFunction · 0.85
load_project_subagentsFunction · 0.85
get_project_folderFunction · 0.85
_normalizeEditDataFunction · 0.85

Tested by

no test coverage detected