sillyspec 3.10.4 → 3.10.5
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 +1 -1
- package/src/run.js +8 -2
- package/src/stages/plan.js +6 -4
package/package.json
CHANGED
package/src/run.js
CHANGED
|
@@ -387,9 +387,15 @@ async function completeStep(pm, progress, stageName, cwd, outputText, inputText
|
|
|
387
387
|
// 提取协调器步骤(prefix 和 suffix 之间)
|
|
388
388
|
const coordinatorSteps = fullSteps.slice(prefixLen, suffixLen > 0 ? -suffixLen : undefined)
|
|
389
389
|
if (coordinatorSteps.length > 0) {
|
|
390
|
-
//
|
|
390
|
+
// 在当前步骤之后插入协调器步骤(含 prompt,否则 outputStep 无法打印)
|
|
391
391
|
for (let i = 0; i < coordinatorSteps.length; i++) {
|
|
392
|
-
steps.splice(currentIdx + 1 + i, 0, {
|
|
392
|
+
steps.splice(currentIdx + 1 + i, 0, {
|
|
393
|
+
name: coordinatorSteps[i].name,
|
|
394
|
+
status: 'pending',
|
|
395
|
+
prompt: coordinatorSteps[i].prompt,
|
|
396
|
+
outputHint: coordinatorSteps[i].outputHint,
|
|
397
|
+
optional: coordinatorSteps[i].optional
|
|
398
|
+
})
|
|
393
399
|
}
|
|
394
400
|
console.log(` 📝 已动态插入 ${coordinatorSteps.length} 个任务蓝图步骤(${coordinatorSteps.map(s => s.name).join(', ')})`)
|
|
395
401
|
}
|
package/src/stages/plan.js
CHANGED
|
@@ -367,9 +367,7 @@ allowed_paths:
|
|
|
367
367
|
}).join('\n\n')
|
|
368
368
|
|
|
369
369
|
|
|
370
|
-
|
|
371
|
-
name: '生成任务蓝图(子代理并行)',
|
|
372
|
-
prompt: `为 plan.md 中的每个任务生成独立蓝图文件。
|
|
370
|
+
const prompt = `为 plan.md 中的每个任务生成独立蓝图文件。
|
|
373
371
|
|
|
374
372
|
## 任务清单
|
|
375
373
|
${taskList}
|
|
@@ -393,7 +391,11 @@ ${subagentPrompts}
|
|
|
393
391
|
- 每个 task-N.md 文件存在且非空
|
|
394
392
|
- 包含 YAML frontmatter(id、title、priority、depends_on、blocks、allowed_paths)
|
|
395
393
|
- 包含所有必要章节:修改文件、实现要求、接口定义、边界处理(≥5条)、非目标、TDD 步骤、验收标准(表格格式)
|
|
396
|
-
- 边界处理覆盖:null
|
|
394
|
+
- 边界处理覆盖:null/空值、兼容性、异常处理、参数不可变、歧义场景`
|
|
395
|
+
|
|
396
|
+
return {
|
|
397
|
+
name: '生成任务蓝图(子代理并行)',
|
|
398
|
+
prompt,
|
|
397
399
|
outputHint: '蓝图生成结果',
|
|
398
400
|
optional: false
|
|
399
401
|
}
|