让创作节点声明并注入绑定库,并新增用户需求步承接偏好。

装载时同时注入正文安全子集;编排与对话落盘都能看见可用库条目。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-24 00:58:56 +08:00
co-authored by Cursor
parent a4cec3d708
commit da459fb34c
8 changed files with 213 additions and 16 deletions
+10
View File
@@ -499,6 +499,16 @@ describe("creation-flow", () => {
expect(catalog?.modules.find((m) => m.name === "故事推进")?.intake).toBe(
"dictate",
);
expect(catalog?.modules.find((m) => m.name === "用户需求")?.libraries).toEqual([
"preferences",
]);
expect(
catalog?.modules.find((m) => m.name === "叙事指南")?.libraries,
).toEqual(["style-packs"]);
expect(
catalog?.modules.find((m) => m.name === "叙事指南与故事推进")?.libraries,
).toEqual(["style-packs"]);
expect(dictateBlock).toContain("【偏好库 · 可选用】");
expect(
catalogModulesForIntake(catalog!, "recipe").some(
(m) => m.name === "叙事指南",