@house365/comate 0.9.26 → 0.9.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@house365/comate",
3
- "version": "0.9.26",
3
+ "version": "0.9.28",
4
4
  "description": "comate —— SDD (规约驱动开发) 的 AI 开发编排器(Agent Skills)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -169,6 +169,30 @@ bash "$COMATE" state <name> set build_mode direct
169
169
 
170
170
  **加载执行技能**:使用 Skill 工具加载所选技能。不可用时停止并提示安装,不要用普通对话替代。加载后按其指引执行:按计划做任务、完成 tasks.md 勾选(`- [ ]` → `- [x]`)、每个任务完成后提交代码。
171
171
 
172
+ **任务状态同步(硬约束)**:
173
+
174
+ 无论选择哪种 `build_mode`,**每完成一个任务后必须立即**:
175
+ 1. 在 `tasks.md` 中勾选对应任务:`- [ ]` → `- [x]`
176
+ - **如果任务有子任务**(缩进的 `- [ ]` 列表),必须**先勾选所有子任务,再勾选父任务**
177
+ - 禁止只勾选父任务而遗漏子任务
178
+ - 示例:
179
+ ```markdown
180
+ - [x] 定义 domain 模型
181
+ - [x] unit_rule.go:单元规则领域模型
182
+ - [x] keyword_rule.go:关键词规则领域模型
183
+ - [x] creative_rule.go:创意规则领域模型
184
+ ```
185
+ 2. 提交任务状态:
186
+ ```bash
187
+ git add tasks.md
188
+ git commit -m "chore: mark task N as completed"
189
+ ```
190
+ 3. 继续下一个任务
191
+
192
+ - `build_mode: subagent-driven-development`:**主控 agent 在每个 subagent 完成并通过 review 后,立即更新 tasks.md(包括所有子任务)并提交**。禁止等所有任务完成后批量勾选。
193
+ - `build_mode: executing-plans`:**当前 agent 在每个任务完成后立即更新 tasks.md(包括所有子任务)并提交**。
194
+ - `build_mode: direct`:同 `executing-plans`。
195
+
172
196
  **TDD 执行约束(Step 3b)**:
173
197
 
174
198
  若 `tdd_mode: tdd`: