From c3881a94711c4a1e6c2519fd0c18bf9a84b36641 Mon Sep 17 00:00:00 2001 From: "sayurinana(vm)" Date: Wed, 17 Dec 2025 04:09:24 +0800 Subject: [PATCH] =?UTF-8?q?[aide]=20impl:=20=E5=AD=90=E8=AE=A1=E5=88=922?= =?UTF-8?q?=20=E4=BB=BB=E5=8A=A1=E4=B8=AD=E6=96=AD=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=92=8C=E7=BB=86=E5=88=99=E7=A1=AE=E8=AE=A4=E6=9C=BA=E5=88=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .aide/flow-status.json | 12 +++- .aide/flow-status.lock | 2 +- aide-marketplace/aide-plugin/commands/run.md | 60 +++++++++++++++++--- 3 files changed, 62 insertions(+), 12 deletions(-) diff --git a/.aide/flow-status.json b/.aide/flow-status.json index df02aac..e88e097 100644 --- a/.aide/flow-status.json +++ b/.aide/flow-status.json @@ -1,7 +1,7 @@ { "task_id": "2025-12-17T03-13-17", "current_phase": "impl", - "current_step": 9, + "current_step": 10, "started_at": "2025-12-17T03:13:17+08:00", "history": [ { @@ -73,7 +73,15 @@ "action": "next-step", "phase": "impl", "step": 9, - "summary": "子计划1 Git分支管理核心功能实现完成" + "summary": "子计划1 Git分支管理核心功能实现完成", + "git_commit": "79a22bc137e52d911581b830f34d4e030ec8e7ef" + }, + { + "timestamp": "2025-12-17T04:09:24+08:00", + "action": "next-step", + "phase": "impl", + "step": 10, + "summary": "子计划2 任务中断恢复和细则确认机制更新完成" } ] } diff --git a/.aide/flow-status.lock b/.aide/flow-status.lock index c348896..dd29037 100755 --- a/.aide/flow-status.lock +++ b/.aide/flow-status.lock @@ -1 +1 @@ -26989 \ No newline at end of file +27130 \ No newline at end of file diff --git a/aide-marketplace/aide-plugin/commands/run.md b/aide-marketplace/aide-plugin/commands/run.md index a52caaf..5e84edb 100644 --- a/aide-marketplace/aide-plugin/commands/run.md +++ b/aide-marketplace/aide-plugin/commands/run.md @@ -118,20 +118,40 @@ aide config get task.source 对于存在多种方案、有歧义、需要用户确认的内容,准备待定项数据。 -#### 1.7 待定项处理(如有) +#### 1.7 待定项处理 -```bash -aide decide submit .aide/pending-items.json -# 用户完成后 -aide decide result -``` +**必须执行**,无论是否有待定项: + +1. **如果有待定项**: + ```bash + aide decide submit .aide/pending-items.json + ``` + - 等待用户完成决策 + ```bash + aide decide result + ``` + +2. **如果无待定项**: + - 向用户报告「无需确认的待定项」 + - 继续下一步 #### 1.8 生成任务细则 -产出任务细则文档,保存到配置的路径。 +**必须执行**: + +1. 根据分析结果生成任务细则文档 +2. 保存到配置的路径: + ```bash + aide config get task.spec + ``` +3. **强制确认点**: + - 向用户展示细则摘要 + - 使用 AskUserQuestion 询问用户是否确认 + - 等待用户明确答复后才能继续 + - 如用户有修改意见,更新细则后重新确认 ```bash -aide flow next-step "任务准备完成" +aide flow next-step "任务细则已确认" ``` ### 阶段 2:流程设计 (flow-design) @@ -303,7 +323,29 @@ aide flow next-step "任务完成" 当检测到未完成的任务时: -### 1. 分析当前进度 +### 1. 智能续接判断 + +1. **检查任务细则文档是否存在**: + ```bash + aide config get task.spec + ``` + 读取配置的细则文档路径。 + +2. **如果细则文档不存在**: + - 旧状态已无效,需要 start 新任务 + - 提示用户:「检测到未完成的任务,但任务细则不存在。是否开始新任务?」 + +3. **如果细则文档存在**: + - 阅读细则文档内容 + - 判断上次未完成任务的名称和步骤是否符合细则含义 + - **符合** → 接续之前的状态继续执行 + - **不符合** → 旧状态已无效,需要 start 新任务 + +4. **如果判断为应继续,但 git 状态不干净**: + - aide flow 会自动执行 git add . 并创建清理提交 + - 这是预期行为,无需手动处理 + +### 2. 分析当前进度 ```bash aide flow status