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

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

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
+17
View File
@@ -5,6 +5,23 @@ import {
} from "../web/json-doc.js";
describe("tryParseJsonDoc", () => {
it("joins a fragment whose root object closed before later keys", () => {
const raw = `{
"schema":"context-fragment-v1",
"技能":"主角设定",
"brief":"点题",
"brief_ok":true,
"mount":"world-simulator"
},
"稳变":"stable",
"正文": { "称呼": "李宗" }
}`;
const parsed = tryParseJsonDoc(raw);
expect(parsed?.schema).toBe("context-fragment-v1");
expect(parsed?.稳变).toBe("stable");
expect(parsed?.正文?.称呼).toBe("李宗");
});
it("keeps interior Chinese quotes in an otherwise valid fragment", () => {
const raw = JSON.stringify({
schema: "context-fragment.v1",