🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: merge geekan:cli-etc
莘权 马6010ce70f651
diff --git a/metagpt/actions/prepare_documents.py b/metagpt/actions/prepare_documents.pyindex b339d897d..3d202e762 100644--- a/metagpt/actions/prepare_documents.py+++ b/metagpt/actions/prepare_documents.py@@ -8,6 +8,7 @@RFC 135 2.2.3.5.1."""import shutil+from pathlib import Pathfrom metagpt.actions import Action, ActionOutputfrom metagpt.config import CONFIG@@ -28,7 +29,7 @@ class PrepareDocuments(Action):# Create and initialize the workspace folder, initialize the Git environment.project_name = CONFIG.project_name or FileRepository.new_filename()- workdir = CONFIG.project_path or DEFAULT_WORKSPACE_ROOT / project_name+ workdir = Path(CONFIG.project_path or DEFAULT_WORKSPACE_ROOT / project_name)if not CONFIG.inc and workdir.exists():shutil.rmtree(workdir)CONFIG.git_repo = GitRepository()diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.pyindex c61684918..3967a0578 100644--- a/metagpt/actions/write_prd.py+++ b/metagpt/actions/write_prd.py@@ -260,7 +260,7 @@ MERGE_PROMPT = """## Old PRD{old_prd}------Role: You are a professional product manager; The goal is to merge the newly added requirements into the existing PRD in order to design a concise, usable, and efficient product.+Role: You are a professional product manager; The goal is to incorporate the newly added requirements from the "Original Requirements" into the existing Product Requirements Document (PRD) in the "Old PRD" in order to design a concise, usable, and efficient product.Language: Please use the same language as the user requirement, but the title and code should be still in English. For example, if the user speaks Chinese, the specific text of your answer should also be in Chinese.Requirements: According to the context, fill in the following missing information, each section name is a key in json ,If the requirements are unclear, ensure minimum viability and avoid excessive designATTENTION: Output carefully referenced "Old PRD" in format.