让创作节点声明并注入绑定库,并新增用户需求步承接偏好。
装载时同时注入正文安全子集;编排与对话落盘都能看见可用库条目。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 === "叙事指南",
|
||||
|
||||
Reference in New Issue
Block a user