🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Merge branch 'gitlab/mgx_ops_tool_log' into 'mgx_ops'
洪思睿dddbb1af0864
diff --cc metagpt/tools/libs/software_development.pyindex 726f46e12,c5b38e00a..f8a409878--- a/metagpt/tools/libs/software_development.py+++ b/metagpt/tools/libs/software_development.py@@@ -352,15 -333,14 +360,18 @@@ async def git_archive(project_path: st"""from metagpt.context import Context+ log_tool_output(+ output=[ToolLogItem(name=ASSISTANT_ALIAS, value=git_archive.__name__)], tool_name=git_archive.__name__+ )+ctx = Context()ctx.set_repo_dir(project_path)+ files = " ".join(ctx.git_repo.changed_files.keys())+ outputs = [ToolLogItem(name="cmd", value=f"git add {files}")]+ log_tool_output(output=outputs, tool_name=git_archive.__name__)ctx.git_repo.archive()- outputs = [ToolLogItem(name="Git Commit", value=str(ctx.repo.workdir))]+ outputs = [ToolLogItem(name="cmd", value="git commit -m 'Archive'")]log_tool_output(output=outputs, tool_name=git_archive.__name__)return ctx.git_repo.log()