新建作品改为直接进入对话落盘,按本局创作方案写能力,并把楼层呈现和零层卡分开。

输入栏同时可以按分组切换模型。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-30 12:00:46 +08:00
co-authored by Cursor
parent 39fe2732fb
commit c2c9203fb0
87 changed files with 8413 additions and 3180 deletions
+22
View File
@@ -98,4 +98,26 @@ describe("maintain need_generate sampling", () => {
});
expect(buildChanceBatchFromGenerationRule(rules, "nickname")).toBeNull();
});
it("reads flat single-rule body and string pool entries", () => {
const rules = JSON.stringify({
正文: {
rule_id: "wasteland-npc",
池: [
{
名称: "公开职业池",
条目: ["厨师", "医生", "掮客"],
},
],
},
});
const batch = buildChanceBatchFromGenerationRule(rules, "wasteland-npc");
expect(batch).toHaveLength(1);
expect(batch![0]!.id).toBe("pool:公开职业池");
expect(batch![0]!.items?.map((item) => item.id)).toEqual([
"厨师",
"医生",
"掮客",
]);
});
});