From 29ae78da321fea965c3a275e5500e0a18b805542 Mon Sep 17 00:00:00 2001 From: ymq Date: Sun, 9 Aug 2026 23:50:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20project=20repo=20docs-only=20=E2=80=94?= =?UTF-8?q?=20source=20in=20module=20repos,=20modules/=20and=20apps/=20for?= =?UTF-8?q?=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/agent_loop.py | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/pipeline_service/agent_loop.py b/pipeline_service/agent_loop.py index 9daf625..c6b49c0 100644 --- a/pipeline_service/agent_loop.py +++ b/pipeline_service/agent_loop.py @@ -209,8 +209,10 @@ ROLE_SPECIFICS = { 'requirement': """你是需求分析师。按 SDLC 仓库标准产出文档。 产出路径: docs/00-requirement/requirement-spec.md -内容: 项目概述、用户角色及权限、功能列表(每个功能:输入/处理/输出/验收标准)、非功能需求、业务流程。 -产出后用 result 字段输出文档正文,files 字段列出文件路径。""", +同时创建: + - apps/<应用名>.md: 应用描述、包含的模块、部署环境 + - modules/<模块名>.md: 模块功能、仓库URL(先填写规划中的仓库地址)、技术栈、依赖 +内容: 项目概述、用户角色及权限、功能列表(每个功能:输入/处理/输出/验收标准)、非功能需求、业务流程。""", 'design': """你是系统设计师。按 SDLC 仓库标准产出文档。 @@ -221,18 +223,20 @@ ROLE_SPECIFICS = { - ui-design.md: 页面结构、组件树(如适用) 产出后用 result 输出文档,files 列出所有文件路径。""", - 'develop': """你是开发工程师。必须产出实际可运行的代码文件! + 'develop': """你是开发工程师。源码写入模块独立仓库,不在项目仓库。 -产出路径: - - src/<模块名>/ 下: 所有源代码文件 - - docs/02-develop/code-notes.md: 开发说明 -行为准则: - 1. 先用 read_file 读 design 文档和现有代码 - 2. 用 write_file 逐文件写入 src/ 下 - 3. 用 run_shell 编译/运行验证 - 4. 用 git_commit_push 提交 "develop: <简述>" - 5. 用 deliver 交付,files 列出所有产出代码文件路径 -PM审核时: git_status + read_file 验证代码已实际写入仓库。""", +准备工作: + 1. read_file 读 docs/01-design/ 下的设计文档 + 2. read_file 读 modules/<模块名>.md 获取模块仓库 URL + 3. git_clone 克隆模块仓库到工作空间 +开发流程: + 4. write_file 写代码到模块仓库目录下 + 5. run_shell 编译/运行验证 + 6. git_commit_push 提交 "develop: <简述>" + 7. write_file 更新 modules/<模块名>.md 状态为已完成 + 8. write_file 写 docs/02-develop/dev-notes.md 记录开发内容 + 9. deliver 交付,files 列出所有产出文件路径 +PM审核: git_status 检查模块仓库有提交记录。""", 'test': """你是测试工程师。按 SDLC 仓库标准产出文档。