sillyspec 3.17.12 → 3.17.13
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 +12 -0
package/package.json
CHANGED
package/src/run.js
CHANGED
|
@@ -1859,6 +1859,18 @@ async function completeStep(pm, progress, stageName, cwd, outputText, inputText
|
|
|
1859
1859
|
if (steps[wsIdx].waitReason) console.log(` 原因:${steps[wsIdx].waitReason}`)
|
|
1860
1860
|
return { stageCompleted: false, currentIdx, nextPendingIdx: -1 }
|
|
1861
1861
|
}
|
|
1862
|
+
// quick 阶段完成前强制检查 quicklog 是否创建
|
|
1863
|
+
if (stageName === 'quick') {
|
|
1864
|
+
const quicklogDir = join(specBase, '.sillyspec', 'quicklog')
|
|
1865
|
+
const hasQuicklog = existsSync(quicklogDir) && readdirSync(quicklogDir).some(f => f.endsWith('.md') && f.startsWith('QUICKLOG'))
|
|
1866
|
+
if (!hasQuicklog) {
|
|
1867
|
+
console.error(`\n❌ quick 阶段完成校验失败:未检测到 QUICKLOG 记录文件。`)
|
|
1868
|
+
console.error(` step 2 要求创建 quicklog 记录,但文件不存在。`)
|
|
1869
|
+
console.error(` 请先创建 quicklog 记录再 --done,或使用 --skip-approval 跳过此校验。`)
|
|
1870
|
+
return { stageCompleted: false, currentIdx, nextPendingIdx: -1 }
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1862
1874
|
stageData.status = 'completed'
|
|
1863
1875
|
stageData.completedAt = new Date().toLocaleString('zh-CN',{hour12:false})
|
|
1864
1876
|
progress.lastActive = new Date().toLocaleString('zh-CN',{hour12:false})
|