sillyspec 3.17.10 → 3.17.11
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 +3 -2
package/package.json
CHANGED
package/src/run.js
CHANGED
|
@@ -632,11 +632,12 @@ async function outputStep(stageName, stepIndex, steps, cwd, changeName, dbProjec
|
|
|
632
632
|
|
|
633
633
|
// 注入模块上下文(brainstorm/plan/execute 阶段,基于 Module Context Index)
|
|
634
634
|
if (['brainstorm', 'plan', 'execute'].includes(stageName) && projectName) {
|
|
635
|
-
const
|
|
635
|
+
const effectiveSpecBase = platformOpts?.specRoot || join(cwd, '.sillyspec')
|
|
636
|
+
const moduleIndex = loadModuleContextIndex(effectiveSpecBase, projectName)
|
|
636
637
|
if (moduleIndex && Object.keys(moduleIndex).length > 0) {
|
|
637
638
|
// 尝试从 step prompt / changeName 匹配模块
|
|
638
639
|
const taskDesc = step.prompt || changeName || ''
|
|
639
|
-
const injection = buildModuleContextInjection(taskDesc, moduleIndex,
|
|
640
|
+
const injection = buildModuleContextInjection(taskDesc, moduleIndex, effectiveSpecBase, projectName)
|
|
640
641
|
if (injection) {
|
|
641
642
|
promptText = injection + '\n' + promptText
|
|
642
643
|
}
|