🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: git archive
莘权 马938fa8a446de
diff --git a/metagpt/software_company.py b/metagpt/software_company.pyindex d3c2c463b..5aa0864e0 100644--- a/metagpt/software_company.py+++ b/metagpt/software_company.py@@ -59,4 +59,6 @@ class SoftwareCompany(BaseModel):logger.debug(f"{n_round=}")self._check_balance()await self.environment.run()+ if CONFIG.git_repo:+ CONFIG.git_repo.archive()return self.environment.historydiff --git a/metagpt/utils/git_repository.py b/metagpt/utils/git_repository.pyindex c2eb2360e..660561bf3 100644--- a/metagpt/utils/git_repository.py+++ b/metagpt/utils/git_repository.py@@ -151,6 +151,7 @@ class GitRepository::param comments: Comments for the archive commit."""+ logger.info(f"Archive: {[list(self.changed_files.keys())]}")self.add_change(self.changed_files)self.commit(comments)